The toggle state should be set for all users in the current profile group; for example a profile user. Test: make RunSettingsRoboTests ROBOTEST_FILTER=SensorToggleControllerTest Fixes: 194280328 Change-Id: Ib0b74e7b27722b44b116e614dc960bff72983a38
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.