Add additional check in enrollment base class. Flag: EXEMPT CVE_FIX Bug: 418774489 Test: atest FaceEnrollTest FaceEnrollIntroductionTest (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:c07d03e5ef9ff05f34b6358440af6770044579ae) Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:e0476f87117c1b689b96c9a37ac12162d79c6cf6 Merged-In: I49f4a980a0c9ed80cc2e370a42bd60425d018a4c Change-Id: I49f4a980a0c9ed80cc2e370a42bd60425d018a4c
Running Settings Robolectric tests
The full suite
$ croot
$ atest SettingsRoboTests
Running a single test class
With a filter
$ croot
$ atest SettingsRoboTests:com.android.settings.display.AdaptiveSleepPreferenceControllerTest
You can also run any single test class with atest (it will try to find the correct path)
$ atest AdaptiveSleepPreferenceControllerTest