Fixes flicker of toggle by setting not visible when launching confirm pin/pattern/password or enrollment prior to displaying FingerprintSettings. Also cleans up FingerprintSettings and security_settings_fingerprint.xml to better separate SFPS and non-SFPS logic and rename methods for clarity Test: (manual) navigate to sfps fp settings and observe toggle doesn’t flicker Test: make RunSettingsRoboTests ROBOTEST_FILTER=FingerprintSettingsRequireScreenOnToAuthPreferenceControllerTest Test: make RunSettingsRoboTests ROBOTEST_FILTER=FingerprintSettingsUnlockCategoryControllerTest Fixes: 263843645 Change-Id: Ide3a666fc31b926ac14645dc22d090f77d81f901
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.