Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5dadb93d authored by Jeff Pu's avatar Jeff Pu
Browse files

Warning if finger is down before HAL operation

Bug: 340126007
Test: atest android.hardware.biometrics.fingerprint.* -c
Change-Id: I43aa9bd1c7826262c10c0df4cec1597fcafdf792
parent a4cbd4bb
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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";