Home
last modified time | relevance | path

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

/frameworks/native/services/surfaceflinger/Scheduler/
DVSyncDispatch.h34 enum class CancelResult { Cancelled, TooLate, Error }; enum
158 virtual CancelResult cancel(CallbackToken token) = 0;
185 CancelResult cancel();
DVSyncDispatchTimerQueue.cpp466 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()
DVSyncDispatchTimerQueue.h134 CancelResult cancel(CallbackToken) final;
DMessageQueue.cpp114 mVsync.registration->cancel() == scheduler::CancelResult::Cancelled; in onNewVsyncScheduleLocked()
DEventThread.cpp788 const bool reschedule = mVsyncRegistration.cancel() == scheduler::CancelResult::Cancelled; in onNewVsyncScheduleInternal()
/frameworks/native/services/surfaceflinger/tests/unittests/mock/
DMockVSyncDispatch.h36 MOCK_METHOD(scheduler::CancelResult, cancel, (CallbackToken token), (override));
/frameworks/native/services/surfaceflinger/tests/unittests/
DVSyncDispatchTimerQueueTest.cpp354 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()