We only require one auth after onStart(), and only for increasing the timeout. Test: atest SettingsRoboTests:com.android.settings.display.ScreenTimeoutSettingsTest Test: also manually tested Bug: 315937886 Change-Id: If4aed67736cd7545d3a518aadd8253ea6a9fae43
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.