If there is no installed application with the ability to start an activity with the SET_WALLPAPER action, we no longer show the "Shortcuts" entry under the "Display > Lock screen" settings page. Flag: CUSTOMIZABLE_LOCK_SCREEN_QUICK_AFFORDANCES Fix: 274075866 Test: expanded unit test Test: manually verified that, if Intent.resolveActivity returns false, the shortcuts item isn't present in settings. Change-Id: I919427d1e71a88a520c762307029a53065a68f46
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.