From 898a2e3dd77973372a0f791701962552d74b6b8b Mon Sep 17 00:00:00 2001 From: Kevin Chyn Date: Fri, 30 Oct 2020 11:39:07 -0700 Subject: [PATCH] Add FIRST_FRAME_RECEIVED to AcquiredInfo Bug: 164922876 Test: m android.hardware.biometrics.face-update-api Change-Id: Ia98ff7099d125e6a015f67a0aefb43e006b7f727 --- .../hardware/biometrics/face/AcquiredInfo.aidl | 1 + .../hardware/biometrics/face/AcquiredInfo.aidl | 16 ++++++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/biometrics/face/aidl/aidl_api/android.hardware.biometrics.face/current/android/hardware/biometrics/face/AcquiredInfo.aidl b/biometrics/face/aidl/aidl_api/android.hardware.biometrics.face/current/android/hardware/biometrics/face/AcquiredInfo.aidl index 011b7112e5..88c066c617 100644 --- a/biometrics/face/aidl/aidl_api/android.hardware.biometrics.face/current/android/hardware/biometrics/face/AcquiredInfo.aidl +++ b/biometrics/face/aidl/aidl_api/android.hardware.biometrics.face/current/android/hardware/biometrics/face/AcquiredInfo.aidl @@ -41,4 +41,5 @@ enum AcquiredInfo { START = 20, SENSOR_DIRTY = 21, VENDOR = 22, + FIRST_FRAME_RECEIVED = 23, } diff --git a/biometrics/face/aidl/android/hardware/biometrics/face/AcquiredInfo.aidl b/biometrics/face/aidl/android/hardware/biometrics/face/AcquiredInfo.aidl index fffb418c03..5897cdcc1a 100644 --- a/biometrics/face/aidl/android/hardware/biometrics/face/AcquiredInfo.aidl +++ b/biometrics/face/aidl/android/hardware/biometrics/face/AcquiredInfo.aidl @@ -198,10 +198,9 @@ enum AcquiredInfo { /** * 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. + * authentication system it's expected to be sent prior to camera initialization. The framework + * will measure latency based on the time between the last START message and the onAuthenticated + * callback. */ START = 20, @@ -213,7 +212,12 @@ enum AcquiredInfo { /** * Vendor-specific acquisition message. See ISessionCallback#onAcquired vendorCode * documentation. - */ - VENDOR = 22 + */ + VENDOR = 22, + + /** + * The first frame from the camera has been received. + */ + FIRST_FRAME_RECEIVED = 23 }