Loading
Add AppPredictionServiceExists check.
When the flag is set, Chooser will check if APS exists and use it for direct share ranking. Otherwise, Chooser defaults to just querying ShortcutManager itself. ResolverActivity will register an appPredictor with ui surface "resolver" and ChooserActivity will use ui surface "share". Later, we will add a similar behavior to use the AppPredictor to sort actvities by default (if it exists), otherwise use the old API ResolverRankerService. Test: atest frameworks/base/core/tests/coretests/src/com/android/internal/app Test: Added parameterized tests for case when there is no AppPredictionService. Bug:129014961 Change-Id: I6109aa8f2436cf0b3c3b4fbc36e571b2b00fe45c