Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 967a2eaf authored by Beverly's avatar Beverly
Browse files

Only show auth UI after screen-off UDFPS fail

On the first two UDFPS screen-off soft or hard errors,
only show the fingerprint sensor icon and keyguard
indication area (auth error messages surface there).
After 3+ failed attempts, show the full AOD UI.

This CL doesn't update this logic, but continues
to support:
When the user gets locked out (due to too many failed
fingerprints), the device wakes up and the bouncer shows.

To accomplish this, this CL:
  * Updates DozeTriggering logic so that the auth UI only
  shows when the udfps screen off feature is enabled and
  aod is not enabled
  * Updates the fingerprint pulse so that the auth UI-only
  state gets triggered on the first two soft/hard errors,
  and then shows the full AOD UI on subsequent errors
  * Introduces nonAuthUIAlpha to DozingTransitionFlows which
  gets consumed by <KeyguardState>ToDozingTransitionViewModels
  and then used in the KeyguardRootViewModel
  * Update ClockEventController to update the dozeAmount
  based on the nonAuthUIAlpha since it may be hidden
  while DOZING due to the dozing auth pulse
Test: atest DozeServiceHostTest DozingTransitionFlowsTest
Flag: com.android.systemui.new_dozing_keyguard_states
Bug: 415704030

Change-Id: If77b6ebebef8d48bddb208d2c74feda2b0e06ffe
parent 2219f18c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment