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

Commit 811ae8b6 authored by Kevin Chyn's avatar Kevin Chyn
Browse files

Add missing BiometricManager constant

This constant is being sent from BiometricService but was not exposed
properly.

Fixes: 116823693

Test: atest BiometricManagerTest
Change-Id: I3b80b4908f440b983b4aa68eefb3a785266a4065
parent b97e9c93
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -15966,6 +15966,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;