This change uses the new isApplicationQualifiedForRole() API on PermissionControllerManager to correctly report availability of default app shortcut preference. Bug: 110557011 Bug: 123238935 Test: atest DefaultAppShortcutPreferenceControllerBaseTest DefaultSmsShortcutPreferenceControllerTest Change-Id: Ib86ab0fd84334a149f7c6c3556297745f2990f47
Running Settings Robolectric tests
The full suite
$ croot
$ make RunSettingsRoboTests
Running a single test class
$ croot
$ make RunSettingsRoboTests ROBOTEST_FILTER=<ClassName>
For example:
make RunSettingsRoboTests ROBOTEST_FILTER=CodeInspectionTest
You can also use partial class name in ROBOTEST_FILTER. If the partial class name matches multiple file names, all of them will be executed.