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

Commit 7abae100 authored by Steven Wu's avatar Steven Wu Committed by android-build-merger
Browse files

Merge "Logs biometric authentication error type." into qt-dev am: 2c402057 am: 2e6c2f56

am: 96f03a16

Change-Id: Ia67b15ea76401bdcac34aae9a90f57afbf53fec7
parents 5004b24c 96f03a16
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -433,7 +433,8 @@ public class BiometricUnlockController extends KeyguardUpdateMonitorCallback {
    public void onBiometricError(int msgId, String errString,
    public void onBiometricError(int msgId, String errString,
            BiometricSourceType biometricSourceType) {
            BiometricSourceType biometricSourceType) {
        mMetricsLogger.write(new LogMaker(MetricsEvent.BIOMETRIC_AUTH)
        mMetricsLogger.write(new LogMaker(MetricsEvent.BIOMETRIC_AUTH)
                .setType(MetricsEvent.TYPE_ERROR).setSubtype(toSubtype(biometricSourceType)));
                .setType(MetricsEvent.TYPE_ERROR).setSubtype(toSubtype(biometricSourceType))
                .addTaggedData(MetricsEvent.FIELD_BIOMETRIC_AUTH_ERROR, msgId));
        cleanup();
        cleanup();
    }
    }


+5 −0
Original line number Original line Diff line number Diff line
@@ -7371,6 +7371,11 @@ message MetricsEvent {
    // Note: Only shows up on first time toggle
    // Note: Only shows up on first time toggle
    DIALOG_DARK_UI_INFO = 1740;
    DIALOG_DARK_UI_INFO = 1740;


    // FIELD - Detailed reason in biometric authentication error.
    // One of the constant value in BiometricConstants.java file.
    // OS: Q
    FIELD_BIOMETRIC_AUTH_ERROR = 1741;

    // ---- End Q Constants, all Q constants go above this line ----
    // ---- End Q Constants, all Q constants go above this line ----
    // Add new aosp constants above this line.
    // Add new aosp constants above this line.
    // END OF AOSP CONSTANTS
    // END OF AOSP CONSTANTS