Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 39e88771 authored by Ilya Matyukhin's avatar Ilya Matyukhin
Browse files

Add new AcquiredInfo constants

Bug: 173711478
Test: m android.hardware.biometrics.face-update-api
Change-Id: Iac8a6f423744782883f141e0012e037630fb43a7
parent 81c813d8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -42,4 +42,8 @@ enum AcquiredInfo {
  SENSOR_DIRTY = 21,
  VENDOR = 22,
  FIRST_FRAME_RECEIVED = 23,
  DARK_GLASSES_DETECTED = 24,
  FACE_COVERING_DETECTED = 25,
  EYES_NOT_VISIBLE = 26,
  MOUTH_NOT_VISIBLE = 27,
}
+25 −1
Original line number Diff line number Diff line
@@ -218,6 +218,30 @@ enum AcquiredInfo {
    /**
     * The first frame from the camera has been received.
     */
    FIRST_FRAME_RECEIVED = 23
    FIRST_FRAME_RECEIVED = 23,

    /**
     * Dark glasses detected. This can be useful for providing relevant feedback to the user and
     * enabling an alternative authentication logic if the implementation supports it.
     */
    DARK_GLASSES_DETECTED = 24,

    /**
     * A face mask or face covering detected. This can be useful for providing relevant feedback to
     * the user and enabling an alternative authentication logic if the implementation supports it.
     */
    FACE_COVERING_DETECTED = 25,

    /**
     * Either one or both eyes are not visible in the frame. Prefer to use DARK_GLASSES_DETECTED if
     * the eyes are not visible due to dark glasses.
     */
    EYES_NOT_VISIBLE = 26,

    /**
     * The mouth is not visible in the frame. Prefer to use MASK_DETECTED if the mouth is not
     * visible due to a mask.
     */
    MOUTH_NOT_VISIBLE = 27,
}