In Android P, we only show "Battery saver" and "Power management" in battery settings. So we need to remove other preferences. Keep "Battery percentage" toggle for now because it is not cross-listed in other places. Bug: 71502850 Test: Screenshot Change-Id: Ia3c919f61239ff71f9343f2bce961aa4b89533c0
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.