diff options
| author | Kevin Chyn <kchyn@google.com> | 2020-11-11 16:31:07 -0800 |
|---|---|---|
| committer | Kevin Chyn <kchyn@google.com> | 2020-11-13 14:39:03 -0800 |
| commit | bf80ecae169035861c6aefee6502d00d100e5426 (patch) | |
| tree | 2d31573317bcf88e96338b4fe52e38ac91b6266c /core/java | |
| parent | 38c45bdfc2615aba1d57ac40adef02216d2aeb92 (diff) | |
Start UDFPS sensors only after BiometricPrompt UI is showing
Since UDFPS sensors have a UI affordance, and the affordance is
controlled by FingerprintAuthenticationClient, start the prepared
sensor only after the BiometricPrompt dialog is done animating.
Plumbing-wise, adds:
1) Adds AuthSession.STATE_AUTH_STARTED_UI_SHOWING
2) Adds IBiometricSysuiReceiver#onDialogAnimatedIn
Since not all sensors are started immediately anymore, adds
logic in BiometricScheduler when attempting to cancel auth
for a sensor that's waiting for cookie (HAL still idle).
Fixes: 171931476
Test: atest com.android.server.biometrics
Test: atest com.android.systemui.biometrics
Change-Id: Iaedc26c51e274614ac2af6ebd98afe26263dad81
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/hardware/biometrics/IBiometricSysuiReceiver.aidl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/android/hardware/biometrics/IBiometricSysuiReceiver.aidl b/core/java/android/hardware/biometrics/IBiometricSysuiReceiver.aidl index 7a006c34e1e1..492ceebe4d06 100644 --- a/core/java/android/hardware/biometrics/IBiometricSysuiReceiver.aidl +++ b/core/java/android/hardware/biometrics/IBiometricSysuiReceiver.aidl @@ -28,4 +28,6 @@ oneway interface IBiometricSysuiReceiver { void onDeviceCredentialPressed(); // Notifies the client that an internal event, e.g. back button has occurred. void onSystemEvent(int event); + // Notifies that the dialog has finished animating in. + void onDialogAnimatedIn(); } |
