Call super.onCreate(savedInstanceState) first to pass the correct userId in maxFacesEnrolled. Test: Manual - delete face unlock for work and re-enroll and observe face unlock can be enrolled successfully Test: atest FaceEnrollIntroductionTest Fixes: 284819031 Change-Id: Ic1620c0ca3ca9adc61f5281abd34471f0c1b3f97
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.