When the Sensors Off quick settings tile was originally added, the primary concern was the tile accidentally being toggled off from the lock screen. However, if Sensors Off can be toggled on from the lock screen, this could be enabled on a stolen device to prevent determining the location of the device. This commit updates the Sensors Off tile to prevent its state from being modified at all from the lock screen. Bug: 282071050 Test: make RunSettingsRoboTests ROBOTEST_FILTER=SensorsOffTest Test: Manually verified tile couldn't be toggled when device locked Change-Id: Ib2ea1d92c0b215ebeaf33fb8e4f5e7e297133b82
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.