Lines Matching refs:mCb
163 mCb = ndk::SharedRefBase::make<SessionCallback>(); in SetUp()
180 isOk = mHal->createSession(kSensorId, kUserId, mCb, &mSession).isOk(); in SetUp()
192 auto lock = std::unique_lock<std::mutex>(mCb->mMutex); in TearDown()
193 mCb->mCv.wait(lock, [this] { return mCb->mOnSessionClosedInvoked; }); in TearDown()
197 std::shared_ptr<SessionCallback> mCb; member in aidl::android::hardware::biometrics::face::__anon6530394c0111::Face
221 auto lock = std::unique_lock{mCb->mMutex}; in TEST_P()
222 mCb->mCv.wait(lock, [this] { return mCb->mOnErrorInvoked; }); in TEST_P()
223 EXPECT_EQ(mCb->mError, Error::UNABLE_TO_PROCESS); in TEST_P()
224 EXPECT_EQ(mCb->mVendorCode, 0); in TEST_P()
236 auto lock = std::unique_lock{mCb->mMutex}; in TEST_P()
237 mCb->mCv.wait(lock, [this] { return mCb->mOnChallengeGeneratedInvoked; }); in TEST_P()
238 ASSERT_NE(mCb->mGeneratedChallenge, 0); in TEST_P()
239 ASSERT_EQ(challenges.find(mCb->mGeneratedChallenge), challenges.end()); in TEST_P()
241 challenges.insert(mCb->mGeneratedChallenge); in TEST_P()
242 mCb->mOnChallengeGeneratedInvoked = false; in TEST_P()
253 auto lock = std::unique_lock{mCb->mMutex}; in TEST_P()
254 mCb->mCv.wait(lock, [this] { return mCb->mOnChallengeRevokedInvoked; }); in TEST_P()
255 ASSERT_EQ(mCb->mRevokedChallenge, nonexistentChallenge); in TEST_P()
263 auto lock = std::unique_lock{mCb->mMutex}; in TEST_P()
264 mCb->mCv.wait(lock, [this] { return mCb->mOnChallengeGeneratedInvoked; }); in TEST_P()
268 ASSERT_TRUE(mSession->revokeChallenge(mCb->mGeneratedChallenge).isOk()); in TEST_P()
272 mCb->mCv.wait(lock, [this] { return mCb->mOnChallengeRevokedInvoked; }); in TEST_P()
273 ASSERT_EQ(mCb->mRevokedChallenge, mCb->mGeneratedChallenge); in TEST_P()
281 auto lock = std::unique_lock{mCb->mMutex}; in TEST_P()
282 mCb->mCv.wait(lock, [this] { return mCb->mOnEnrollmentsEnumeratedInvoked; }); in TEST_P()
290 auto lock = std::unique_lock{mCb->mMutex}; in TEST_P()
291 mCb->mCv.wait(lock, [this] { return mCb->mOnEnrollmentsRemovedInvoked; }); in TEST_P()
299 auto lock = std::unique_lock{mCb->mMutex}; in TEST_P()
300 mCb->mCv.wait(lock, [this] { return mCb->mOnErrorInvoked; }); in TEST_P()
301 EXPECT_EQ(mCb->mError, Error::UNABLE_TO_PROCESS); in TEST_P()
302 EXPECT_EQ(mCb->mVendorCode, 0); in TEST_P()
310 auto lock = std::unique_lock{mCb->mMutex}; in TEST_P()
311 mCb->mCv.wait(lock, [this] { return mCb->mOnAuthenticatorIdRetrievedInvoked; }); in TEST_P()
319 auto lock = std::unique_lock{mCb->mMutex}; in TEST_P()
320 mCb->mCv.wait(lock, [this] { return mCb->mOnAuthenticatorIdInvalidatedInvoked; }); in TEST_P()