This update already happened for ZenModeAllBypassingApps to use the new single binder call to get all packages bypassing DND. This change uses that method for bypassing apps as well as collecting the set of all apps with a nonzero number of channels. Bug: 368623163 Bug: 394614704 Test: ZenModeAddBypassingAppsPreferenceControllerTest, manual to confirm correct behavior Flag: android.app.nm_binder_perf_get_apps_with_channels Change-Id: I72a1edcb07d18f5707591a5341d7a7338c23f42b
Running Settings Robolectric tests
The full suite
$ croot
$ atest SettingsRoboTests
Running a single test class
With a filter
$ croot
$ atest SettingsRoboTests:com.android.settings.display.AdaptiveSleepPreferenceControllerTest
You can also run any single test class with atest (it will try to find the correct path)
$ atest AdaptiveSleepPreferenceControllerTest