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

Commit ca897c0e authored by Wenhui Yang's avatar Wenhui Yang Committed by Android (Google) Code Review
Browse files

Merge "Add a log when resetting frr counters" into main

parents 658af0a1 7df6c573
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -16,12 +16,16 @@

package com.android.server.biometrics;

import android.util.Slog;

/**
 * Utility class for on-device biometric authentication data, including total authentication,
 * rejections, and the number of sent enrollment notifications.
 */
public class AuthenticationStats {

    private static final String TAG = "AuthenticationStats";

    private static final float FRR_NOT_ENOUGH_ATTEMPTS = -1.0f;

    private final int mUserId;
@@ -88,6 +92,7 @@ public class AuthenticationStats {
    public void resetData() {
        mTotalAttempts = 0;
        mRejectedAttempts = 0;
        Slog.d(TAG, "Reset Counters.");
    }

    /** Update enrollment notification counter after sending a notification. */