summaryrefslogtreecommitdiffstats
path: root/biometrics
diff options
context:
space:
mode:
authorKevin Chyn <kchyn@google.com>2019-02-12 15:56:24 -0800
committerKevin Chyn <kchyn@google.com>2019-02-12 17:33:16 -0800
commit99625ae67088cb8207e4bb75d5a29d1d7875d394 (patch)
treecff36e44bf8fc328b1b352da968b2067acae348c /biometrics
parent3e9aeb2ed3ad727216395967009ea1a0c3b438b6 (diff)
downloadandroid_hardware_interfaces-99625ae67088cb8207e4bb75d5a29d1d7875d394.tar.gz
android_hardware_interfaces-99625ae67088cb8207e4bb75d5a29d1d7875d394.tar.bz2
android_hardware_interfaces-99625ae67088cb8207e4bb75d5a29d1d7875d394.zip
Add onLockoutChanged for IBiometricsFace
Lockout is moved to the HAL (as compared to IBiometricsFingerprint@2.1) To maintain public API behavior (BiometricPrompt) there needs to be a way to synchronously retrieve the lockout status. Bug: 121196511 Bug: 121198195 Bug: 123262389 Test: Builds Change-Id: Idb0a1225451e9f123ccb42accbbbd2914ad6cabc
Diffstat (limited to 'biometrics')
-rw-r--r--biometrics/face/1.0/IBiometricsFaceClientCallback.hal15
1 files changed, 15 insertions, 0 deletions
diff --git a/biometrics/face/1.0/IBiometricsFaceClientCallback.hal b/biometrics/face/1.0/IBiometricsFaceClientCallback.hal
index 93848c57b..c9dd0e262 100644
--- a/biometrics/face/1.0/IBiometricsFaceClientCallback.hal
+++ b/biometrics/face/1.0/IBiometricsFaceClientCallback.hal
@@ -113,4 +113,19 @@ interface IBiometricsFaceClientCallback {
*/
oneway onEnumerate(uint64_t deviceId, vec<uint32_t> faceIds,
int32_t userId);
+
+ /**
+ * A callback invoked when the lockout state changes.
+ *
+ * This method must only be invoked when setActiveUser() is called,
+ * when lockout starts, and when lockout ends. When lockout starts,
+ * duration must be greater than 0, and when lockout ends, duration must
+ * be 0. This must be called before calling onError() with parameters
+ * LOCKOUT or LOCKOUT_PERMANENT. If the user is permanently locked out,
+ * the duration must be MAX_UINT64.
+ *
+ * @param duration the remaining lockout duration in milliseconds, or 0
+ * if the user is not locked out.
+ */
+ oneway onLockoutChanged(uint64_t duration);
};