summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorKevin Chyn <kchyn@google.com>2020-11-11 16:31:07 -0800
committerKevin Chyn <kchyn@google.com>2020-11-13 14:39:03 -0800
commitbf80ecae169035861c6aefee6502d00d100e5426 (patch)
tree2d31573317bcf88e96338b4fe52e38ac91b6266c /core/java
parent38c45bdfc2615aba1d57ac40adef02216d2aeb92 (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.aidl2
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();
}