The same flag is being (correctly) added in onCreate, so on top of being wrong this was also completely unnecessary. Bug: 368579654 Test: atest NotificationAccessConfirmationActivityTest Flag: EXEMPT bugfix Change-Id: I539fca77a1d136bdd0e4892993020884430b8a4e
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