Cache Activity#isTaskRoot result.

Activity#isTaskRoot performs a binder call under the hood and was
invoked on (almost) every layout change (through calculateDrawerOffset
call).
To avoid unncessary blocking binder calls, read (and cache) the value
once in onCreate.

Bug: 404593897
Test: instrument the code and collect traces.
Flag: android.service.chooser.interactive_chooser
Change-Id: Ie1952218a291e2d75d7744f90148f441231b6cfa
1 file changed
tree: a8c35f7fbf4850b0d8ea1479192479143c3e0813
  1. aconfig/
  2. java/
  3. tests/
  4. Android.bp
  5. AndroidManifest-app.xml
  6. AndroidManifest-lib.xml
  7. lint-baseline.xml
  8. OWNERS
  9. PREUPLOAD.cfg
  10. proguard.flags
  11. README.md
  12. TEST_MAPPING
README.md

IntentResolver

About

IntentResolver provides the implementation for Intent ACTION_CHOOSER

See also: ShareCompat.IntentBuilder