summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorKevin Chyn <kchyn@google.com>2019-01-28 12:46:22 -0800
committerKevin Chyn <kchyn@google.com>2019-01-28 12:46:22 -0800
commitaad80b109bd4bd6edcfaaa7c2a7d89721b998a82 (patch)
treeef2ba066b92f1881c079f19058ab4e26dfe9be3e /core/java/android
parent367f06869632e103d8a58898101617d4700851e4 (diff)
Add ACQUIRED_START message
Change-Id: I59ca30d9c1ba9634b6af0c0a13776ae54456f925 Fixes: 123520106 Bug: 117060268
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/hardware/biometrics/BiometricFaceConstants.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/core/java/android/hardware/biometrics/BiometricFaceConstants.java b/core/java/android/hardware/biometrics/BiometricFaceConstants.java
index 209afb88ccd3..125dabef779c 100644
--- a/core/java/android/hardware/biometrics/BiometricFaceConstants.java
+++ b/core/java/android/hardware/biometrics/BiometricFaceConstants.java
@@ -295,12 +295,22 @@ public interface BiometricFaceConstants {
public static final int FACE_ACQUIRED_FACE_OBSCURED = 19;
/**
+ * This message represents the earliest message sent at the beginning of the authentication
+ * pipeline. It is expected to be used to measure latency. For example, in a camera-based
+ * authentication system it's expected to be sent prior to camera initialization. Note this
+ * should be sent whenever authentication is restarted (see IBiometricsFace#userActivity).
+ * The framework will measure latency based on the time between the last START message and the
+ * onAuthenticated callback.
+ */
+ public static final int FACE_ACQUIRED_START = 20;
+
+ /**
* Hardware vendors may extend this list if there are conditions that do not fall under one of
* the above categories. Vendors are responsible for providing error strings for these errors.
*
* @hide
*/
- public static final int FACE_ACQUIRED_VENDOR = 20;
+ public static final int FACE_ACQUIRED_VENDOR = 21;
/**
* @hide