Skip to content
Commit 145b3a51 authored by George Hodulik's avatar George Hodulik
Browse files

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
parent 9b92030a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment