This also unifies the "icon picker" screen with the new "add mode" screen since in both cases we want to edit name and icon together (and not save updates until the user confirms). Bug: 326442408 Bug: 346278854 Test: atest com.android.settings.notification.modes Flag: android.app.modes_ui Change-Id: I8a9d07ba0b6c55f3abc1b9884f278d51d178dc83
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