Home
last modified time | relevance | path

Searched refs:LockoutMode (Results 1 – 7 of 7) sorted by relevance

/hardware/interfaces/biometrics/fingerprint/aidl/default/
DFakeLockoutTracker.cpp29 mCurrentMode = LockoutMode::kNone; in reset()
41 mCurrentMode = LockoutMode::kPermanent; in addFailedAttempt()
44 if (mCurrentMode == LockoutMode::kNone) { in addFailedAttempt()
45 mCurrentMode = LockoutMode::kTimed; in addFailedAttempt()
54 FakeLockoutTracker::LockoutMode FakeLockoutTracker::getMode() { in getMode()
55 if (mCurrentMode == LockoutMode::kTimed) { in getMode()
59 mCurrentMode = LockoutMode::kNone; in getMode()
DFakeFingerprintEngine.cpp215 return FakeLockoutTracker::LockoutMode::kPermanent == mLockoutTracker.getMode(); in onAuthenticateFingerDown()
509 FakeLockoutTracker::LockoutMode lockoutMode = mLockoutTracker.getMode(); in checkSensorLockout()
510 if (lockoutMode == FakeLockoutTracker::LockoutMode::kPermanent) { in checkSensorLockout()
515 } else if (lockoutMode == FakeLockoutTracker::LockoutMode::kTimed) { in checkSensorLockout()
/hardware/interfaces/biometrics/face/aidl/default/
DFakeLockoutTracker.cpp34 mCurrentMode = LockoutMode::kNone; in reset()
49 mCurrentMode = LockoutMode::kPermanent; in addFailedAttempt()
54 if (mCurrentMode == LockoutMode::kNone) { in addFailedAttempt()
55 mCurrentMode = LockoutMode::kTimed; in addFailedAttempt()
66 FakeLockoutTracker::LockoutMode FakeLockoutTracker::getMode() { in getMode()
89 if (mCurrentMode == LockoutMode::kPermanent) { in checkIfLockout()
93 } else if (mCurrentMode == LockoutMode::kTimed) { in checkIfLockout()
DFakeLockoutTracker.h33 mCurrentMode(LockoutMode::kNone), in FakeLockoutTracker()
38 enum class LockoutMode : int8_t { kNone = 0, kTimed, kPermanent }; enum
43 LockoutMode getMode();
67 LockoutMode mCurrentMode;
/hardware/interfaces/biometrics/fingerprint/aidl/default/tests/
DFakeLockoutTrackerTest.cpp60 ASSERT_EQ(mLockoutTracker.getMode(), FakeLockoutTracker::LockoutMode::kNone); in TEST_F()
67 ASSERT_EQ(mLockoutTracker.getMode(), FakeLockoutTracker::LockoutMode::kTimed); in TEST_F()
77 ASSERT_EQ(mLockoutTracker.getMode(), FakeLockoutTracker::LockoutMode::kNone); in TEST_F()
84 ASSERT_NE(mLockoutTracker.getMode(), FakeLockoutTracker::LockoutMode::kPermanent); in TEST_F()
86 ASSERT_EQ(mLockoutTracker.getMode(), FakeLockoutTracker::LockoutMode::kPermanent); in TEST_F()
/hardware/interfaces/biometrics/face/aidl/default/tests/
DFakeLockoutTrackerTest.cpp129 ASSERT_EQ(mLockoutTracker.getMode(), FakeLockoutTracker::LockoutMode::kNone); in TEST_F()
138 ASSERT_NE(mLockoutTracker.getMode(), FakeLockoutTracker::LockoutMode::kPermanent); in TEST_F()
141 ASSERT_EQ(mLockoutTracker.getMode(), FakeLockoutTracker::LockoutMode::kPermanent); in TEST_F()
153 ASSERT_EQ(mLockoutTracker.getMode(), FakeLockoutTracker::LockoutMode::kTimed); in TEST_F()
167 ASSERT_EQ(mLockoutTracker.getMode(), FakeLockoutTracker::LockoutMode::kNone); in TEST_F()
176 ASSERT_EQ(mLockoutTracker.getMode(), FakeLockoutTracker::LockoutMode::kTimed); in TEST_F()
178 ASSERT_EQ(mLockoutTracker.getMode(), FakeLockoutTracker::LockoutMode::kNone); in TEST_F()
181 ASSERT_EQ(mLockoutTracker.getMode(), FakeLockoutTracker::LockoutMode::kPermanent); in TEST_F()
202 ASSERT_EQ(mLockoutTracker.getMode(), FakeLockoutTracker::LockoutMode::kNone); in TEST_F()
205 ASSERT_EQ(mLockoutTracker.getMode(), FakeLockoutTracker::LockoutMode::kPermanent); in TEST_F()
/hardware/interfaces/biometrics/fingerprint/aidl/default/include/
DFakeLockoutTracker.h30 enum class LockoutMode : int8_t { kNone = 0, kTimed, kPermanent }; enum
33 LockoutMode getMode();
48 LockoutMode mCurrentMode;