Clean up indexing/lookup methods in pager adapter

This is originally from snapshot 33 in ag/25335069:

"consolidate and rename-more-explicitly the assorted index
conversion/lookup methods in `MultiProfilePagerAdapter`.

Keeping these methods together (and implemented in terms of each
other where possible) makes it easier to audit our logic as we
prepare for 3+ tabs. Particularly, this establishes a 'source of
truth' for the aspect of our business logic that assigns the clone
profile as a sort of 'secondary handle' for the personal tab."

Bug: 310211468
Test: `IntentResolver-tests-actvity`, `ResolverActivityTest`
Change-Id: I5dda5909318d9741927f3e2657cb4aefdfab6c6b
3 files changed
tree: 9a3fe1693556bbf2eabb291ef7d10748f944ab3c
  1. aconfig/
  2. java/
  3. tests/
  4. Android.bp
  5. AndroidManifest-app.xml
  6. AndroidManifest-lib.xml
  7. OWNERS
  8. PREUPLOAD.cfg
  9. proguard.flags
  10. README.md
  11. TEST_MAPPING
README.md

IntentResolver

About

IntentResolver provides the implementation for Intent ACTION_CHOOSER

See also: ShareCompat.IntentBuilder