This CL adds a null check condition to avoid crash for some device not support PrintManager. Bug: 159848003 Test: make -j42 SettingsGoogle Change-Id: Ic6c4c17bb563458f4f5a61dc0d93ae22b05f8763
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.