Merge "ResetLockout should be scheduled on FaceService's handler" into qt-r1-dev
am: 7809a34760
Change-Id: I5b799c9e30efcd1e5254228b2c3db58f894d4f5f
This commit is contained in:
@@ -344,16 +344,19 @@ public class FaceService extends BiometricServiceBase {
|
|||||||
@Override // Binder call
|
@Override // Binder call
|
||||||
public int revokeChallenge(IBinder token) {
|
public int revokeChallenge(IBinder token) {
|
||||||
checkPermission(MANAGE_BIOMETRIC);
|
checkPermission(MANAGE_BIOMETRIC);
|
||||||
// TODO(b/137106905): Schedule binder calls in FaceService to avoid deadlocks.
|
mHandler.post(() -> {
|
||||||
if (getCurrentClient() == null) {
|
// TODO(b/137106905): Schedule binder calls in FaceService to avoid deadlocks.
|
||||||
// if we aren't handling any other HIDL calls (mCurrentClient == null), revoke the
|
if (getCurrentClient() == null) {
|
||||||
// challenge right away.
|
// if we aren't handling any other HIDL calls (mCurrentClient == null), revoke
|
||||||
return startRevokeChallenge(token);
|
// the challenge right away.
|
||||||
} else {
|
startRevokeChallenge(token);
|
||||||
// postpone revoking the challenge until we finish processing the current HIDL call.
|
} else {
|
||||||
mRevokeChallengePending = true;
|
// postpone revoking the challenge until we finish processing the current HIDL
|
||||||
return Status.OK;
|
// call.
|
||||||
}
|
mRevokeChallengePending = true;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return Status.OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override // Binder call
|
@Override // Binder call
|
||||||
|
|||||||
Reference in New Issue
Block a user