Update lockscreenAlpha depending on DozeTransitionFlows
<KeyguardState>ToDozingTransitionViewModels now rely on DozingTransitionFlows for lockscreenAlpha. Now, lockscreenAlpha updates based on the DozeTransitionModel state (ie: DOZE vs PULSING). This CL also: - Moves the device wakeup to _after_ biometric unlock events are sent to consumers. This is to avoid waking up before a biometric wakeup gets to control the DOZING/AOD => LOCKSCREEN/BOUNCER/GONE animation. - Always wakes and unlocks from pulsing instead of WAKE_ONLY for non-bypass face auth. Currently face auth will only run if the user interacts with the fp sensor while pulsing, so we can always wake and unlock. This will trigger a DOZING => GONE transition instead of DOZING => LOCKSCREEN. To test this, intentionally tap UDFPS too quickly from screen off; succeed non-bypass face auth; observe transition to GONE instead of LOCKSCREEN. Test: atest DozingTransitionFlowsTest Test: enroll UDFPS; enable Screen-off Fingerprint Unlock; succeed UDFPS from screen off and failed UDFPS from screen off; observe transitions & expected UI Flag: com.android.systemui.new_dozing_keyguard_states Bug: 415704030 Change-Id: I27f3ec82cc127c7597c22bb4b1f1a73d06a643bd
Loading
Please register or sign in to comment