summaryrefslogtreecommitdiff
path: root/java/src-debug/com
diff options
context:
space:
mode:
author Joshua Trask <joshtrask@google.com> 2023-01-30 09:35:49 -0500
committer Joshua Trask <joshtrask@google.com> 2023-02-07 18:13:46 +0000
commitad6c99c6d25b7710bcf650d1a0bb1f7c8996f9ad (patch)
treef40ff30e33afef4f0f9f0859a1d9be0c4d2d24c3 /java/src-debug/com
parent0d66c83c4dd1188a2d425ffa65256af19b90d220 (diff)
Introduce `AnnotatedUserHandles` class.
This component is a container for precomputed `UserHandle` values that should be consistent wherever they're referenced throughout a chooser/resolver session. This includes some low-hanging integrations in `ChooserActivity` and `ResolverActivity` that seemed unobjectionable and suitable for "pure" refactoring -- i.e. the same handles are ultimately evaluated from the same expressions, and I don't immediately plan to change the legacy logic. Once this is checked in, we can proceed to looking at some of the more complex/refactorable applications of `UserHandle` and eventually integrate this component more thoroughly. First follow-up priority is test coverage; existing coverage validates our typical behavior as observed in the activities, but it would be great if we could validate our understanding with thorough unit tests directly against the `AnnotatedUserHandles` API. Test: `atest IntentResolverUnitTests` Change-Id: I36116d8c7156b7d30e777dd3c609c7e883ffc042
Diffstat (limited to 'java/src-debug/com')
0 files changed, 0 insertions, 0 deletions