Loading services/core/java/com/android/server/biometrics/BiometricServiceBase.java +8 −2 Original line number Diff line number Diff line Loading @@ -1045,10 +1045,15 @@ public abstract class BiometricServiceBase extends SystemService } } else { currentClient.stop(initiatedByClient); } mPendingClient = newClient; // Only post the reset runnable for non-cleanup clients. Cleanup clients should // never be forcibly stopped since they ensure synchronization between HAL and // framework. Thus, we should instead just start the pending client once cleanup // finishes instead of using the reset runnable. mHandler.removeCallbacks(mResetClientState); mHandler.postDelayed(mResetClientState, CANCEL_TIMEOUT_LIMIT); } mPendingClient = newClient; } else if (newClient != null) { // For BiometricPrompt clients, do not start until // <Biometric>Service#startPreparedClient is called. BiometricService waits until all Loading Loading @@ -1225,6 +1230,7 @@ public abstract class BiometricServiceBase extends SystemService } else { clearEnumerateState(); if (mPendingClient != null) { Slog.d(getTag(), "Enumerate finished, starting pending client"); startClient(mPendingClient, false /* initiatedByClient */); } } Loading Loading
services/core/java/com/android/server/biometrics/BiometricServiceBase.java +8 −2 Original line number Diff line number Diff line Loading @@ -1045,10 +1045,15 @@ public abstract class BiometricServiceBase extends SystemService } } else { currentClient.stop(initiatedByClient); } mPendingClient = newClient; // Only post the reset runnable for non-cleanup clients. Cleanup clients should // never be forcibly stopped since they ensure synchronization between HAL and // framework. Thus, we should instead just start the pending client once cleanup // finishes instead of using the reset runnable. mHandler.removeCallbacks(mResetClientState); mHandler.postDelayed(mResetClientState, CANCEL_TIMEOUT_LIMIT); } mPendingClient = newClient; } else if (newClient != null) { // For BiometricPrompt clients, do not start until // <Biometric>Service#startPreparedClient is called. BiometricService waits until all Loading Loading @@ -1225,6 +1230,7 @@ public abstract class BiometricServiceBase extends SystemService } else { clearEnumerateState(); if (mPendingClient != null) { Slog.d(getTag(), "Enumerate finished, starting pending client"); startClient(mPendingClient, false /* initiatedByClient */); } } Loading