Warning if finger is down before HAL operation
Bug: 340126007 Test: atest android.hardware.biometrics.fingerprint.* -c Change-Id: I43aa9bd1c7826262c10c0df4cec1597fcafdf792
This commit is contained in:
parent
a4cbd4bb67
commit
5dadb93d1b
1 changed files with 4 additions and 0 deletions
|
@ -544,6 +544,10 @@ void FakeFingerprintEngine::lockoutTimerExpired(ISessionCallback* cb) {
|
|||
|
||||
void FakeFingerprintEngine::waitForFingerDown(ISessionCallback* cb,
|
||||
const std::future<void>& cancel) {
|
||||
if (mFingerIsDown) {
|
||||
LOG(WARNING) << "waitForFingerDown: mFingerIsDown==true already!";
|
||||
}
|
||||
|
||||
while (!mFingerIsDown) {
|
||||
if (shouldCancel(cancel)) {
|
||||
LOG(ERROR) << "waitForFingerDown, Fail: cancel";
|
||||
|
|
Loading…
Reference in a new issue