When users turn on battery saver manually more than 3 times, the "Tap to schedule Battery Saver" notification will suggest users to enable scheduling battery saver. But this notification is still shown if users have already turned on scheduling battery saver, which is caused by no mechanism to suppress this notification. Solution: Adding a mechanism to suppress battery saver suggestion if users scheduled battery saver. Bug: 147862112 Test: robotests Change-Id: I8290d76dac09104e64fb98b8a9f4d783a8177d7c
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.