Changed session coordinator clock

Bug: 244355277
Test: Verified device doesn't crash.
Change-Id: I89ea5823f9e90af8abdc29af7df56433023960d2
This commit is contained in:
Joshua McCloskey
2022-10-18 17:05:49 +00:00
parent 5945a4b818
commit df3d625ea7
2 changed files with 1 additions and 6 deletions

View File

@@ -54,7 +54,7 @@ public class AuthSessionCoordinator implements AuthSessionListener {
private AuthResultCoordinator mAuthResultCoordinator;
public AuthSessionCoordinator() {
this(SystemClock.currentNetworkTimeClock());
this(SystemClock.elapsedRealtimeClock());
}
@VisibleForTesting

View File

@@ -22,7 +22,6 @@ import static android.hardware.biometrics.BiometricManager.Authenticators.BIOMET
import static android.hardware.biometrics.BiometricManager.Authenticators.BIOMETRIC_WEAK;
import android.hardware.biometrics.BiometricManager;
import android.os.SystemClock;
import android.util.Slog;
import java.time.Clock;
@@ -43,10 +42,6 @@ class MultiBiometricLockoutState {
private final Map<Integer, Map<Integer, AuthenticatorState>> mCanUserAuthenticate;
private final Clock mClock;
MultiBiometricLockoutState() {
this(SystemClock.currentNetworkTimeClock());
}
MultiBiometricLockoutState(Clock clock) {
mCanUserAuthenticate = new HashMap<>();
mClock = clock;