Doing some improvement for stability: 1. Check hasSystemFeature(PackageManager.FEATURE_FACE) for non-face service devices. 2. Wrap addAuthenticatorsRegisteredCallback() 3. Find mPreference before addAuthenticatorsRegisteredCallback Bug: 276680407 Bug: 278174667 Bug: 277647959 Bug: 277725506 Test: m RunSettingsRoboTests -j30 ROBOTEST_FILTER= \ FaceSettingsFooterPreferenceControllerTest Change-Id: I81346b6eb8c44106c5e52867d69c8736203dd558
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.