[flexiglass] Wipe dialog + more refactoring of Auth/Bouncer code.
Some users have a `DevicePolicyManager` that requires the user/profile/device data to be wiped after N unsuccessful authentication attempts. Once a grace period is reached, we start showing a dialog on every failed authentication attempt as a clear warning, until the wipe begins. Additional changes in this CL include: 1. Refactor the `authenticate()` function to be easier to follow, e.g. by extracting the skipping check into `shouldSkipAuthenticationAttempt`. 2. Add support for multiple dialogs being shown in the bouncer, one after the other. 3. Change the generic term `errorMessage` in the bouncer code to be `wrongInputMessage`, which is more accurate and descriptive. 4. Misc minor refactorings. Fix: 306559035 Fix: 314757822 Test: Added unit tests. Flag: ACONFIG com.android.systemui.scene_container DEVELOPMENT Change-Id: I7f1a785228704e73052b16834996aa06c36d130d
Loading
Please register or sign in to comment