From f2aa6035242cbe192af0ff75ea60a987f6253bb8 Mon Sep 17 00:00:00 2001 From: Kevin Chyn Date: Thu, 25 Oct 2018 10:52:16 -0700 Subject: [PATCH] Add face acquired constants Bug: 118382625 Test: Builds Change-Id: I9d4024f1077a397dcb0895b16164a59a18449ce5 --- .../biometrics/BiometricFaceConstants.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/core/java/android/hardware/biometrics/BiometricFaceConstants.java b/core/java/android/hardware/biometrics/BiometricFaceConstants.java index c788bc5272051..1d9330d4dfed1 100644 --- a/core/java/android/hardware/biometrics/BiometricFaceConstants.java +++ b/core/java/android/hardware/biometrics/BiometricFaceConstants.java @@ -223,13 +223,26 @@ public interface BiometricFaceConstants { */ public static final int FACE_ACQUIRED_RECALIBRATE = 13; + /** + * The face is too different from a previous acquisition. This condition + * only applies to enrollment. This can happen if the user passes the + * device to someone else in the middle of enrollment. + */ + public static final int FACE_ACQUIRED_TOO_DIFFERENT = 14; + + /** + * The face is too similar to a previous acquisition. This condition only + * applies to enrollment. The user should change their pose. + */ + public static final int FACE_ACQUIRED_TOO_SIMILAR = 15; + /** * 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 = 14; + public static final int FACE_ACQUIRED_VENDOR = 16; /** * @hide