Do not disturb search result can still switch on/off when users are restricted by DISALLOW_ADJUST_VOLUME. The DND search result is presented by slice and there was no user restriction check when creating DND slice, which caused DND search result can access. To prevent DND from being access if user restriction is enabled, adding user restriction check during creating the DND slice. Bug: 242846154 Test: robotest pass and manual test Change-Id: I897a99e9dda2f9f84365d96841a4c4f4cf975331
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.