Bug: 272053372 Test: manually installed an app which requests the permission and verified it shows up correctly in Settings > Apps > special app access > Turn screen on Test: atest AppFilterRegistryTest Test: atest TurnScreenOnDetailsTest Test: m -j RunSettingsRoboTests Test: adb shell am start -a android.settings.TURN_SCREEN_ON_SETTINGS Change-Id: I7c47d4b1c0b33c7ba6209bb64acf93cb07d9a717
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.