Regression from ag/7161923, in this case we should use onResume/onPause pair. Also sort the method to fit android lifecycle. Bug: 131615524 Test: RunSettingsRoboTests Change-Id: I299032bfeb119dac293039917c6673dd4c0ef4e0
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.