summaryrefslogtreecommitdiffstats
path: root/biometrics
diff options
context:
space:
mode:
authorKevin Chyn <kchyn@google.com>2018-08-31 15:10:03 -0700
committerKevin Chyn <kchyn@google.com>2018-09-05 00:32:11 -0700
commit57acf9749a2e469e86198a0b4e7b341cddeb70dc (patch)
tree319192cabdae2cf5bdd605073c151674293a9825 /biometrics
parentf22f2202a4e709eb007264c667c7ac199faea921 (diff)
downloadplatform_hardware_interfaces-57acf9749a2e469e86198a0b4e7b341cddeb70dc.tar.gz
platform_hardware_interfaces-57acf9749a2e469e86198a0b4e7b341cddeb70dc.tar.bz2
platform_hardware_interfaces-57acf9749a2e469e86198a0b4e7b341cddeb70dc.zip
Update Face HIDL enroll method
Bug: 110597778 Test: builds Change-Id: I61e4f4a61ad0561448bc50a29b84b668e9569551
Diffstat (limited to 'biometrics')
-rw-r--r--biometrics/face/1.0/IBiometricsFace.hal12
1 files changed, 11 insertions, 1 deletions
diff --git a/biometrics/face/1.0/IBiometricsFace.hal b/biometrics/face/1.0/IBiometricsFace.hal
index fbdb210694..3c3b0c24cf 100644
--- a/biometrics/face/1.0/IBiometricsFace.hal
+++ b/biometrics/face/1.0/IBiometricsFace.hal
@@ -109,10 +109,20 @@ interface IBiometricsFace {
* @param timeoutSec A timeout in seconds, after which this enrollment
* attempt is cancelled. Note that the client still needs to
* call postEnroll() to terminate the enrollment session.
+ * @param requireAttention When set to true, requires user attention (e.g.
+ * eyes open and looking at the device) for enrollment to complete, as
+ * well as subsequent authentication. This is expected to be enabled by
+ * default to improve security and decrease falsing (unintentional face
+ * detection). This feature can be disabled at the user's request
+ * during enrollment, e.g. for accessibility reasons. When enabled,
+ * the FaceAcquiredInfo#POOR_GAZE message must be sent when the user's
+ * attention has not been established. The UI should inform the user
+ * to look at the device.
* @return status The status of this method call.
*/
@callflow(next={"cancel", "enroll", "postEnroll", "remove"})
- enroll(vec<uint8_t> hat, uint32_t timeoutSec) generates (Status status);
+ enroll(vec<uint8_t> hat, uint32_t timeoutSec, bool requireAttention)
+ generates (Status status);
/**
* Finishes the enrollment session and invalidates the challenge generated