Searched refs:CancelResult (Results 1 – 7 of 7) sorted by relevance
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | VSyncDispatch.h | 34 enum class CancelResult { Cancelled, TooLate, Error }; enum 158 virtual CancelResult cancel(CallbackToken token) = 0; 185 CancelResult cancel();
|
D | VSyncDispatchTimerQueue.cpp | 466 CancelResult VSyncDispatchTimerQueue::cancel(CallbackToken token) { in cancel() 471 return CancelResult::Error; in cancel() 483 return CancelResult::Cancelled; in cancel() 485 return CancelResult::TooLate; in cancel() 544 CancelResult VSyncCallbackRegistration::cancel() { in cancel() 546 return CancelResult::Error; in cancel()
|
D | VSyncDispatchTimerQueue.h | 134 CancelResult cancel(CallbackToken) final;
|
D | MessageQueue.cpp | 114 mVsync.registration->cancel() == scheduler::CancelResult::Cancelled; in onNewVsyncScheduleLocked()
|
D | EventThread.cpp | 788 const bool reschedule = mVsyncRegistration.cancel() == scheduler::CancelResult::Cancelled; in onNewVsyncScheduleInternal()
|
/frameworks/native/services/surfaceflinger/tests/unittests/mock/ |
D | MockVSyncDispatch.h | 36 MOCK_METHOD(scheduler::CancelResult, cancel, (CallbackToken token), (override));
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | VSyncDispatchTimerQueueTest.cpp | 354 EXPECT_EQ(mDispatch->cancel(cb), CancelResult::Cancelled); in TEST_F() 369 EXPECT_EQ(mDispatch->cancel(cb), CancelResult::TooLate); in TEST_F() 386 EXPECT_EQ(mDispatch->cancel(cb), CancelResult::TooLate); in TEST_F() 583 EXPECT_EQ(mDispatch->cancel(cb0), CancelResult::Cancelled); in TEST_F() 733 EXPECT_THAT(mDispatch->cancel(token), Eq(CancelResult::Error)); in TEST_F() 1029 EXPECT_EQ(mDispatch->cancel(cb2), CancelResult::Cancelled); in TEST_F() 1058 EXPECT_EQ(mDispatch->cancel(cb1), CancelResult::Cancelled); in TEST_F()
|