From ba831331399e310d53f766920f16a8da062b0f2a Mon Sep 17 00:00:00 2001 From: Ilya Matyukhin Date: Tue, 29 Jun 2021 21:42:43 +0000 Subject: [PATCH] IFace: Add more comments Bug: 152412683 Test: N/A Change-Id: I0d444804acdd7e063c411cc2dec05efb26c6facf --- .../biometrics/face/EnrollmentType.aidl | 9 ++++++++ .../biometrics/face/FaceSensorType.aidl | 21 ++++++++++++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/biometrics/face/aidl/android/hardware/biometrics/face/EnrollmentType.aidl b/biometrics/face/aidl/android/hardware/biometrics/face/EnrollmentType.aidl index d7f31756bc..c960933996 100644 --- a/biometrics/face/aidl/android/hardware/biometrics/face/EnrollmentType.aidl +++ b/biometrics/face/aidl/android/hardware/biometrics/face/EnrollmentType.aidl @@ -19,6 +19,15 @@ package android.hardware.biometrics.face; @VintfStability @Backing(type="byte") enum EnrollmentType { + /** + * Default enrollment type. + */ DEFAULT, + + /** + * Enrollment type for people with limited vision or mobility. For example, + * enrollment of this type will not ask the user to move their head or + * look directly at the device. + */ ACCESSIBILITY, } diff --git a/biometrics/face/aidl/android/hardware/biometrics/face/FaceSensorType.aidl b/biometrics/face/aidl/android/hardware/biometrics/face/FaceSensorType.aidl index 57f39d4f51..a5ed2e84e7 100644 --- a/biometrics/face/aidl/android/hardware/biometrics/face/FaceSensorType.aidl +++ b/biometrics/face/aidl/android/hardware/biometrics/face/FaceSensorType.aidl @@ -16,4 +16,23 @@ package android.hardware.biometrics.face; -@VintfStability @Backing(type="byte") enum FaceSensorType { UNKNOWN, RGB, IR } +@VintfStability +@Backing(type="byte") +enum FaceSensorType { + /** + * Placeholder value used for default initialization of FaceSensorType. + * This value means FaceSensorType wasn't explicitly initialized and must + * be discarded by the recipient. + */ + UNKNOWN, + + /** + * The face sensor is an RGB camera. + */ + RGB, + + /** + * The face sensor is an infrared camera. + */ + IR, +}