check if quiet mode is already in the desired state before calling setQuietModeEnabled Bug: 303722527 Bug: 293441361 Test: atest WorkModePreferenceControllerTest, atest ManagedProfileQuietModeEnablerTest Change-Id: I6a809b6f1b9a78382dccb1cc8b0ae4d8c88fa51a
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.