Loading api/current.txt +2 −2 Original line number Diff line number Diff line Loading @@ -16434,9 +16434,9 @@ package android.hardware.biometrics { public class BiometricManager { method public int canAuthenticate(); field public static final int BIOMETRIC_ERROR_NO_BIOMETRICS = 11; // 0xb field public static final int BIOMETRIC_ERROR_HW_UNAVAILABLE = 1; // 0x1 field public static final int BIOMETRIC_ERROR_NONE_ENROLLED = 11; // 0xb field public static final int BIOMETRIC_ERROR_NO_HARDWARE = 12; // 0xc field public static final int BIOMETRIC_ERROR_UNAVAILABLE = 1; // 0x1 field public static final int BIOMETRIC_SUCCESS = 0; // 0x0 } core/java/android/hardware/biometrics/BiometricManager.java +7 −7 Original line number Diff line number Diff line Loading @@ -42,13 +42,13 @@ public class BiometricManager { /** * The hardware is unavailable. Try again later. */ public static final int BIOMETRIC_ERROR_UNAVAILABLE = public static final int BIOMETRIC_ERROR_HW_UNAVAILABLE = BiometricConstants.BIOMETRIC_ERROR_HW_UNAVAILABLE; /** * The user does not have any biometrics enrolled. */ public static final int BIOMETRIC_ERROR_NO_BIOMETRICS = public static final int BIOMETRIC_ERROR_NONE_ENROLLED = BiometricConstants.BIOMETRIC_ERROR_NO_BIOMETRICS; /** Loading @@ -58,8 +58,8 @@ public class BiometricManager { BiometricConstants.BIOMETRIC_ERROR_HW_NOT_PRESENT; @IntDef({BIOMETRIC_SUCCESS, BIOMETRIC_ERROR_UNAVAILABLE, BIOMETRIC_ERROR_NO_BIOMETRICS, BIOMETRIC_ERROR_HW_UNAVAILABLE, BIOMETRIC_ERROR_NONE_ENROLLED, BIOMETRIC_ERROR_NO_HARDWARE}) @interface BiometricError {} Loading Loading @@ -95,8 +95,8 @@ public class BiometricManager { * Determine if biometrics can be used. In other words, determine if {@link BiometricPrompt} * can be expected to be shown (hardware available, templates enrolled, user-enabled). * * @return Returns {@link #BIOMETRIC_ERROR_NO_BIOMETRICS} if the user does not have any * enrolled, or {@link #BIOMETRIC_ERROR_UNAVAILABLE} if none are currently * @return Returns {@link #BIOMETRIC_ERROR_NONE_ENROLLED} if the user does not have any * enrolled, or {@link #BIOMETRIC_ERROR_HW_UNAVAILABLE} if none are currently * supported/enabled. Returns {@link #BIOMETRIC_SUCCESS} if a biometric can currently be * used (enrolled and available). */ Loading @@ -113,7 +113,7 @@ public class BiometricManager { return BIOMETRIC_ERROR_NO_HARDWARE; } else { Slog.w(TAG, "hasEnrolledBiometrics(): Service not connected"); return BIOMETRIC_ERROR_UNAVAILABLE; return BIOMETRIC_ERROR_HW_UNAVAILABLE; } } } Loading Loading
api/current.txt +2 −2 Original line number Diff line number Diff line Loading @@ -16434,9 +16434,9 @@ package android.hardware.biometrics { public class BiometricManager { method public int canAuthenticate(); field public static final int BIOMETRIC_ERROR_NO_BIOMETRICS = 11; // 0xb field public static final int BIOMETRIC_ERROR_HW_UNAVAILABLE = 1; // 0x1 field public static final int BIOMETRIC_ERROR_NONE_ENROLLED = 11; // 0xb field public static final int BIOMETRIC_ERROR_NO_HARDWARE = 12; // 0xc field public static final int BIOMETRIC_ERROR_UNAVAILABLE = 1; // 0x1 field public static final int BIOMETRIC_SUCCESS = 0; // 0x0 }
core/java/android/hardware/biometrics/BiometricManager.java +7 −7 Original line number Diff line number Diff line Loading @@ -42,13 +42,13 @@ public class BiometricManager { /** * The hardware is unavailable. Try again later. */ public static final int BIOMETRIC_ERROR_UNAVAILABLE = public static final int BIOMETRIC_ERROR_HW_UNAVAILABLE = BiometricConstants.BIOMETRIC_ERROR_HW_UNAVAILABLE; /** * The user does not have any biometrics enrolled. */ public static final int BIOMETRIC_ERROR_NO_BIOMETRICS = public static final int BIOMETRIC_ERROR_NONE_ENROLLED = BiometricConstants.BIOMETRIC_ERROR_NO_BIOMETRICS; /** Loading @@ -58,8 +58,8 @@ public class BiometricManager { BiometricConstants.BIOMETRIC_ERROR_HW_NOT_PRESENT; @IntDef({BIOMETRIC_SUCCESS, BIOMETRIC_ERROR_UNAVAILABLE, BIOMETRIC_ERROR_NO_BIOMETRICS, BIOMETRIC_ERROR_HW_UNAVAILABLE, BIOMETRIC_ERROR_NONE_ENROLLED, BIOMETRIC_ERROR_NO_HARDWARE}) @interface BiometricError {} Loading Loading @@ -95,8 +95,8 @@ public class BiometricManager { * Determine if biometrics can be used. In other words, determine if {@link BiometricPrompt} * can be expected to be shown (hardware available, templates enrolled, user-enabled). * * @return Returns {@link #BIOMETRIC_ERROR_NO_BIOMETRICS} if the user does not have any * enrolled, or {@link #BIOMETRIC_ERROR_UNAVAILABLE} if none are currently * @return Returns {@link #BIOMETRIC_ERROR_NONE_ENROLLED} if the user does not have any * enrolled, or {@link #BIOMETRIC_ERROR_HW_UNAVAILABLE} if none are currently * supported/enabled. Returns {@link #BIOMETRIC_SUCCESS} if a biometric can currently be * used (enrolled and available). */ Loading @@ -113,7 +113,7 @@ public class BiometricManager { return BIOMETRIC_ERROR_NO_HARDWARE; } else { Slog.w(TAG, "hasEnrolledBiometrics(): Service not connected"); return BIOMETRIC_ERROR_UNAVAILABLE; return BIOMETRIC_ERROR_HW_UNAVAILABLE; } } } Loading