Inject app prediction service availability directly

Instead of depending on and mocking PackageManager, this change
creates a module to provide the availability signal. This greatly
simplifies test setup when used with Hilt.

This also sets the @Parameter label to a human readable value
shoing the parameter value for a given test (in the test name).

Test: atest IntentResolver-tests-activity
Bug: 300157408
Change-Id: Ief02bf0e51e879916296d5872d1946db43f78ad0
8 files changed
tree: 3a1211bbc3302629a15d6339c922ad935a71b3b7
  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