Loading services/core/java/com/android/server/biometrics/AuthenticationStats.java +5 −0 Original line number Original line Diff line number Diff line Loading @@ -16,12 +16,16 @@ package com.android.server.biometrics; package com.android.server.biometrics; import android.util.Slog; /** /** * Utility class for on-device biometric authentication data, including total authentication, * Utility class for on-device biometric authentication data, including total authentication, * rejections, and the number of sent enrollment notifications. * rejections, and the number of sent enrollment notifications. */ */ public class AuthenticationStats { public class AuthenticationStats { private static final String TAG = "AuthenticationStats"; private static final float FRR_NOT_ENOUGH_ATTEMPTS = -1.0f; private static final float FRR_NOT_ENOUGH_ATTEMPTS = -1.0f; private final int mUserId; private final int mUserId; Loading Loading @@ -88,6 +92,7 @@ public class AuthenticationStats { public void resetData() { public void resetData() { mTotalAttempts = 0; mTotalAttempts = 0; mRejectedAttempts = 0; mRejectedAttempts = 0; Slog.d(TAG, "Reset Counters."); } } /** Update enrollment notification counter after sending a notification. */ /** Update enrollment notification counter after sending a notification. */ Loading Loading
services/core/java/com/android/server/biometrics/AuthenticationStats.java +5 −0 Original line number Original line Diff line number Diff line Loading @@ -16,12 +16,16 @@ package com.android.server.biometrics; package com.android.server.biometrics; import android.util.Slog; /** /** * Utility class for on-device biometric authentication data, including total authentication, * Utility class for on-device biometric authentication data, including total authentication, * rejections, and the number of sent enrollment notifications. * rejections, and the number of sent enrollment notifications. */ */ public class AuthenticationStats { public class AuthenticationStats { private static final String TAG = "AuthenticationStats"; private static final float FRR_NOT_ENOUGH_ATTEMPTS = -1.0f; private static final float FRR_NOT_ENOUGH_ATTEMPTS = -1.0f; private final int mUserId; private final int mUserId; Loading Loading @@ -88,6 +92,7 @@ public class AuthenticationStats { public void resetData() { public void resetData() { mTotalAttempts = 0; mTotalAttempts = 0; mRejectedAttempts = 0; mRejectedAttempts = 0; Slog.d(TAG, "Reset Counters."); } } /** Update enrollment notification counter after sending a notification. */ /** Update enrollment notification counter after sending a notification. */ Loading