- Keep apps optimize state as what it set even it's a system or default app - Previously we force system/defualt apps present as Unrestricted mode only and disable other options but that can not shows that apps actual optimize states, it's possible to be other states even it's a system or default apps, so we change the UI logic back to: present it's actual states and disable other options when it's a system or default apps. Bug: 234419032 Test: make SettingsRoboTests Change-Id: Ib5b6cb0aacb570cb8d15b1bb9ac2d480356eda49
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.