When switching to second user and try to preview the flash notification effect it'll not work. The root cause is the receiver is registered in system process and the broadcast is sent as second user. Needs to send the broadcast as system user to let the receiver receive the preview broadcast. Bug: 286039180 Test: atest FlashNotificationsPreviewPreferenceControllerTest Test: switch to second user and test the preview function Change-Id: I7dd553dac9fd66dab59eaec25849aac9f92989b6
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.