From 34dc8bfe5154c0f1418dd04090e428b47b5a4307 Mon Sep 17 00:00:00 2001 From: Diya Bera Date: Tue, 14 Feb 2023 22:47:13 +0000 Subject: [PATCH] Adding POWER_PRESS to AcquiredInfo.aidl and Error.aidl Test: N/A Bug: 269293986 Change-Id: If2e2a1c0f48d86c427a0c8f93f077c940c3eb8d8 --- .../hardware/biometrics/fingerprint/AcquiredInfo.aidl | 1 + .../android/hardware/biometrics/fingerprint/Error.aidl | 1 + .../hardware/biometrics/fingerprint/AcquiredInfo.aidl | 6 ++++++ .../aidl/android/hardware/biometrics/fingerprint/Error.aidl | 6 ++++++ 4 files changed, 14 insertions(+) diff --git a/biometrics/fingerprint/aidl/aidl_api/android.hardware.biometrics.fingerprint/current/android/hardware/biometrics/fingerprint/AcquiredInfo.aidl b/biometrics/fingerprint/aidl/aidl_api/android.hardware.biometrics.fingerprint/current/android/hardware/biometrics/fingerprint/AcquiredInfo.aidl index 89f76f437b..7075f715fd 100644 --- a/biometrics/fingerprint/aidl/aidl_api/android.hardware.biometrics.fingerprint/current/android/hardware/biometrics/fingerprint/AcquiredInfo.aidl +++ b/biometrics/fingerprint/aidl/aidl_api/android.hardware.biometrics.fingerprint/current/android/hardware/biometrics/fingerprint/AcquiredInfo.aidl @@ -49,4 +49,5 @@ enum AcquiredInfo { IMMOBILE, RETRYING_CAPTURE, LIFT_TOO_SOON, + POWER_PRESS, } diff --git a/biometrics/fingerprint/aidl/aidl_api/android.hardware.biometrics.fingerprint/current/android/hardware/biometrics/fingerprint/Error.aidl b/biometrics/fingerprint/aidl/aidl_api/android.hardware.biometrics.fingerprint/current/android/hardware/biometrics/fingerprint/Error.aidl index d3592a1f09..9eeaac53ec 100644 --- a/biometrics/fingerprint/aidl/aidl_api/android.hardware.biometrics.fingerprint/current/android/hardware/biometrics/fingerprint/Error.aidl +++ b/biometrics/fingerprint/aidl/aidl_api/android.hardware.biometrics.fingerprint/current/android/hardware/biometrics/fingerprint/Error.aidl @@ -44,4 +44,5 @@ enum Error { UNABLE_TO_REMOVE, VENDOR, BAD_CALIBRATION, + POWER_PRESS, } diff --git a/biometrics/fingerprint/aidl/android/hardware/biometrics/fingerprint/AcquiredInfo.aidl b/biometrics/fingerprint/aidl/android/hardware/biometrics/fingerprint/AcquiredInfo.aidl index 2cdc196f41..41b7c5e0bf 100644 --- a/biometrics/fingerprint/aidl/android/hardware/biometrics/fingerprint/AcquiredInfo.aidl +++ b/biometrics/fingerprint/aidl/android/hardware/biometrics/fingerprint/AcquiredInfo.aidl @@ -103,4 +103,10 @@ enum AcquiredInfo { * Fingerprint was lifted before the capture completed. */ LIFT_TOO_SOON, + + /** + * Indicates a power press event has occurred. This is typically sent by fingerprint + * sensors that have the sensor co-located with the power button. + */ + POWER_PRESS, } diff --git a/biometrics/fingerprint/aidl/android/hardware/biometrics/fingerprint/Error.aidl b/biometrics/fingerprint/aidl/android/hardware/biometrics/fingerprint/Error.aidl index d8d47fa8a0..39a5676fe1 100644 --- a/biometrics/fingerprint/aidl/android/hardware/biometrics/fingerprint/Error.aidl +++ b/biometrics/fingerprint/aidl/android/hardware/biometrics/fingerprint/Error.aidl @@ -70,4 +70,10 @@ enum Error { * There's a problem with the sensor's calibration. */ BAD_CALIBRATION, + + /** + * Indicates a power press event has occurred. This is typically sent by fingerprint + * sensors that have the sensor co-located with the power button. + */ + POWER_PRESS, }