Merge "Remove timeout from face generateChallenge" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
01e0568c35
@@ -32,7 +32,6 @@ import com.android.server.biometrics.sensors.GenerateChallengeClient;
|
||||
*/
|
||||
public class FaceGenerateChallengeClient extends GenerateChallengeClient<ISession> {
|
||||
private static final String TAG = "FaceGenerateChallengeClient";
|
||||
private static final int CHALLENGE_TIMEOUT_SEC = 600; // 10 minutes
|
||||
|
||||
FaceGenerateChallengeClient(@NonNull Context context,
|
||||
@NonNull LazyDaemon<ISession> lazyDaemon, @NonNull IBinder token,
|
||||
@@ -43,7 +42,7 @@ public class FaceGenerateChallengeClient extends GenerateChallengeClient<ISessio
|
||||
@Override
|
||||
protected void startHalOperation() {
|
||||
try {
|
||||
getFreshDaemon().generateChallenge(mSequentialId, CHALLENGE_TIMEOUT_SEC);
|
||||
getFreshDaemon().generateChallenge(mSequentialId);
|
||||
} catch (RemoteException e) {
|
||||
Slog.e(TAG, "Unable to generateChallenge", e);
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ public class TestHal extends IFace.Stub {
|
||||
|
||||
return new ISession.Stub() {
|
||||
@Override
|
||||
public void generateChallenge(int cookie, int timeoutSec) throws RemoteException {
|
||||
public void generateChallenge(int cookie) throws RemoteException {
|
||||
Slog.w(TAG, "generateChallenge, cookie: " + cookie);
|
||||
cb.onChallengeGenerated(0L);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user