Home
last modified time | relevance | path

Searched refs:ScheduleResult (Results 1 – 6 of 6) sorted by relevance

/frameworks/native/services/surfaceflinger/tests/unittests/
DVSyncDispatchTimerQueueTest.cpp226 EXPECT_EQ(mDispatch.schedule(cb, 100, 1000), ScheduleResult::Scheduled); in TEST_F()
235 EXPECT_EQ(mDispatch.schedule(cb, 100, intended), ScheduleResult::Scheduled); in TEST_F()
263 EXPECT_EQ(mDispatch.schedule(cb, workDuration, mPeriod), ScheduleResult::Scheduled); in TEST_F()
271 EXPECT_EQ(mDispatch.schedule(cb, 100, mPeriod), ScheduleResult::Scheduled); in TEST_F()
280 EXPECT_EQ(mDispatch.schedule(cb, 100, mPeriod), ScheduleResult::Scheduled); in TEST_F()
290 EXPECT_EQ(mDispatch.schedule(cb, 100, mPeriod), ScheduleResult::Scheduled); in TEST_F()
307 EXPECT_EQ(mDispatch.schedule(cb, 100, mPeriod), ScheduleResult::Scheduled); in TEST_F()
492 ScheduleResult::Scheduled); in TEST_F()
493 EXPECT_EQ(mDispatch.schedule(tmp, 400, timestamp), ScheduleResult::Scheduled); in TEST_F()
495 ScheduleResult::Scheduled); in TEST_F()
[all …]
DVSyncReactorTest.cpp86 MOCK_METHOD3(schedule, ScheduleResult(CallbackToken, nsecs_t, nsecs_t));
101 ScheduleResult schedule(CallbackToken token, nsecs_t workDuration, in schedule()
616 .WillOnce(Return(ScheduleResult::Scheduled)); in TEST_F()
620 .WillOnce(Return(ScheduleResult::Scheduled)); in TEST_F()
624 .WillOnce(Return(ScheduleResult::Scheduled)); in TEST_F()
724 .WillByDefault(Return(ScheduleResult::CannotSchedule)); in TEST_F()
731 EXPECT_CALL(*mMockDispatch, schedule(_, _, _)).WillOnce(Return(ScheduleResult::Scheduled)); in TEST_F()
738 .WillByDefault(Return(ScheduleResult::CannotSchedule)); in TEST_F()
/frameworks/native/services/surfaceflinger/Scheduler/
DVSyncDispatch.h29 enum class ScheduleResult { Scheduled, CannotSchedule, Error }; enum
99 virtual ScheduleResult schedule(CallbackToken token, nsecs_t workDuration,
132 ScheduleResult schedule(nsecs_t workDuration, nsecs_t earliestVsync);
DVSyncDispatchTimerQueue.cpp64 ScheduleResult VSyncDispatchTimerQueueEntry::schedule(nsecs_t workDuration, nsecs_t earliestVsync, in schedule()
72 return ScheduleResult::Scheduled; in schedule()
87 return ScheduleResult::Scheduled; in schedule()
298 ScheduleResult VSyncDispatchTimerQueue::schedule(CallbackToken token, nsecs_t workDuration, in schedule()
300 auto result = ScheduleResult::Error; in schedule()
316 return ScheduleResult::Scheduled; in schedule()
320 if (result == ScheduleResult::CannotSchedule) { in schedule()
397 ScheduleResult VSyncCallbackRegistration::schedule(nsecs_t workDuration, nsecs_t earliestVsync) { in schedule()
399 return ScheduleResult::Error; in schedule()
DVSyncDispatchTimerQueue.h50 ScheduleResult schedule(nsecs_t workDuration, nsecs_t earliestVsync, VSyncTracker& tracker,
128 ScheduleResult schedule(CallbackToken token, nsecs_t workDuration, nsecs_t earliestVsync) final;
DVSyncReactor.cpp100 LOG_ALWAYS_FATAL_IF((schedule_result != ScheduleResult::Scheduled), in start()
141 LOG_ALWAYS_FATAL_IF((schedule_result != ScheduleResult::Scheduled), in callback()