Settings will send a broadcast when the user disable Grayscale in Settings. Also, Settings registers a broadcast receiver to monitor the status changed of Grayscale. Bug: 118387886 Test: robotests Change-Id: I92d1b9adf7a600b4abac943ebbd5a11d02d3d1b8
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.