diff options
author | Kevin Chyn <kchyn@google.com> | 2018-09-28 16:37:45 -0700 |
---|---|---|
committer | Kevin Chyn <kchyn@google.com> | 2018-10-03 18:16:30 -0700 |
commit | ba9ec8795aec556343232a0b5113f15d4b02949b (patch) | |
tree | 555e71437197378015fce94944395c39bc85ee19 /biometrics | |
parent | c9816c691fdee653c1773fec8a40cef1fcc1c8af (diff) | |
download | android_hardware_interfaces-ba9ec8795aec556343232a0b5113f15d4b02949b.tar.gz android_hardware_interfaces-ba9ec8795aec556343232a0b5113f15d4b02949b.tar.bz2 android_hardware_interfaces-ba9ec8795aec556343232a0b5113f15d4b02949b.zip |
Add IBiometricsFace#userActivity
Fixes: 116821097
Test: builds
Change-Id: I88363e186a41ce65665122606b357c7d31d8c18d
Diffstat (limited to 'biometrics')
-rw-r--r-- | biometrics/face/1.0/IBiometricsFace.hal | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/biometrics/face/1.0/IBiometricsFace.hal b/biometrics/face/1.0/IBiometricsFace.hal index 1c7bfb9be..0ac788ed8 100644 --- a/biometrics/face/1.0/IBiometricsFace.hal +++ b/biometrics/face/1.0/IBiometricsFace.hal @@ -225,7 +225,10 @@ interface IBiometricsFace { * Authenticates the active user. * * An optional operationId can be specified as a token from the transaction - * being authorized. + * being authorized. The hardware may enter a standby state during + * authentication, where the device is idle to conserve power while + * authenticating, e.g. after 3 seconds without finding a face. See + * IBiometricsFace#userActivity() for more info. * * @param operationId A non-zero operation id associated with a crypto * object instance; or 0 if not being used. @@ -233,4 +236,17 @@ interface IBiometricsFace { */ @callflow(next={"cancel", "generateChallenge", "remove"}) authenticate(uint64_t operationId) generates (Status status); + + /** + * A hint to the HAL to continue looking for faces. + * + * This method should only be used when the HAL is in the authenticating + * or standby state. Using this method when the HAL is not in one of the + * mentioned states must return OPERATION_NOT_SUPPORTED. Calling this + * method while the HAL is already authenticating may extend the duration + * where it's looking for a face. + * + * @return status The status of this method call. + */ + userActivity() generates (Status status); }; |