Rename CallerInfo -> ActivityLaunch and inject

Rename CallerInfo to ActivityLaunch and renames some existing
properties as appropriate for clarity.

Adds the [Intent] from the activity. This completes the set of
info that is needed as inputs from the caller, containing the
extras with all request parameters.

Updates readChooserRequest require only an ActivityLaunchInfo
instance.

Injects ActivityLaunch into usage sites. This removes the direct
link of reading acitivty.intent, and will allow writing test code
which operates directly on inputs without starting an activity.

Introduces an extension method to minimize duplicated code in the
activities: CreationExtras.addDefaultArgs:

Bug: 300157408
Test: atest IntentResolver-tests-activity
Test: atest IntentResolver-tests-unit:ActivityLaunchTest
Change-Id: Ie132cb3d61e139e03316063186c3ad79d2c488ef
15 files changed
tree: 3bf332372067cb24a913f5d87bb0527c172c5509
  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