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

Commit 8d46f7d2 authored by Kevin Chyn's avatar Kevin Chyn Committed by Android (Google) Code Review
Browse files

Merge "Add missing BiometricManager constant"

parents 715b8d6d 811ae8b6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -15977,6 +15977,7 @@ package android.hardware.biometrics {
    method public int canAuthenticate();
    field public static final int ERROR_NONE = 0; // 0x0
    field public static final int ERROR_NO_BIOMETRICS = 11; // 0xb
    field public static final int ERROR_NO_HARDWARE = 12; // 0xc
    field public static final int ERROR_UNAVAILABLE = 1; // 0x1
  }
+6 −1
Original line number Diff line number Diff line
@@ -47,7 +47,12 @@ public class BiometricManager {
     */
    public static final int ERROR_NO_BIOMETRICS = BiometricConstants.BIOMETRIC_ERROR_NO_BIOMETRICS;

    @IntDef({ERROR_NONE, ERROR_UNAVAILABLE, ERROR_NO_BIOMETRICS})
    /**
     * There is no biometric hardware.
     */
    public static final int ERROR_NO_HARDWARE = BiometricConstants.BIOMETRIC_ERROR_HW_NOT_PRESENT;

    @IntDef({ERROR_NONE, ERROR_UNAVAILABLE, ERROR_NO_BIOMETRICS, ERROR_NO_HARDWARE})
    @interface BiometricError {}

    private final Context mContext;