Home
last modified time | relevance | path

Searched refs:CancelResult (Results 1 – 5 of 5) sorted by relevance

/frameworks/native/services/surfaceflinger/Scheduler/
DVSyncDispatch.h30 enum class CancelResult { Cancelled, TooLate, Error }; enum
109 virtual CancelResult cancel(CallbackToken token) = 0;
135 CancelResult cancel();
DVSyncDispatchTimerQueue.cpp332 CancelResult VSyncDispatchTimerQueue::cancel(CallbackToken token) { in cancel()
337 return CancelResult::Error; in cancel()
349 return CancelResult::Cancelled; in cancel()
351 return CancelResult::TooLate; in cancel()
404 CancelResult VSyncCallbackRegistration::cancel() { in cancel()
406 return CancelResult::Error; in cancel()
DVSyncDispatchTimerQueue.h129 CancelResult cancel(CallbackToken token) final;
/frameworks/native/services/surfaceflinger/tests/unittests/
DVSyncDispatchTimerQueueTest.cpp272 EXPECT_EQ(mDispatch.cancel(cb), CancelResult::Cancelled); in TEST_F()
282 EXPECT_EQ(mDispatch.cancel(cb), CancelResult::TooLate); in TEST_F()
294 EXPECT_EQ(mDispatch.cancel(cb), CancelResult::TooLate); in TEST_F()
446 EXPECT_EQ(mDispatch.cancel(cb0), CancelResult::Cancelled); in TEST_F()
574 EXPECT_THAT(mDispatch.cancel(token), Eq(CancelResult::Error)); in TEST_F()
718 EXPECT_EQ(mDispatch.cancel(cb2), CancelResult::Cancelled); in TEST_F()
740 EXPECT_EQ(mDispatch.cancel(cb1), CancelResult::Cancelled); in TEST_F()
DVSyncReactorTest.cpp87 MOCK_METHOD1(cancel, CancelResult(CallbackToken token));
106 CancelResult cancel(CallbackToken token) final { return mDispatch->cancel(token); } in cancel()