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:
Jeff Pu 2024-06-04 12:48:42 -04:00
parent a4cbd4bb67
commit 5dadb93d1b

View file

@ -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";