The fix makes the flow more consistent with preexisting behavior: * Apps appear in the "Apps that can interrupt" section only if some channels are set to bypass DND *and* the app is able to show notifications. * Channels cannot be set to bypass if those individual channels are blocked. Fixes: 265064188 Test: atest AppChannelsBypassingDndPreferenceControllerTest Change-Id: If10f086fd60f0f70f53adb8f5cd67f90936bc35f
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.