Adding a settings screen to control the permission SCHEDULE_EXACT_ALARM. Apps can start this by starting a newly introduced API intent REQUEST_SCHEDULE_EXACT_ALARM. Test: make -j RunSettingsRoboTests Manually by UI inspection: Settings -> Apps -> Special App access -> Alarms and Reminders or by running: adb shell am start -a android.settings.REQUEST_SCHEDULE_EXACT_ALARM Bug: 171306433 Bug: 171305516 Change-Id: I1293d38fc50a22b2af46f80ab24f676ed632f964
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.