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

Commit 7df6c573 authored by Wenhui Yang's avatar Wenhui Yang
Browse files

Add a log when resetting frr counters

Bug: 295582896
Test: manual (logcat)
Change-Id: Icf9c7e48d524fc9dde988cc443e9185137b0871a
parent 1df8c205
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. */