Home
last modified time | relevance | path

Searched refs:VSyncDispatch (Results 1 – 19 of 19) sorted by relevance

/frameworks/native/services/surfaceflinger/Scheduler/
DVSyncDispatch.h39 class VSyncDispatch {
47 virtual ~VSyncDispatch();
163 VSyncDispatch() = default;
165 VSyncDispatch(const VSyncDispatch&) = delete;
166 VSyncDispatch& operator=(const VSyncDispatch&) = delete;
171 VSyncCallbackRegistration(std::shared_ptr<VSyncDispatch>, VSyncDispatch::Callback,
179 std::optional<ScheduleResult> schedule(VSyncDispatch::ScheduleTiming scheduleTiming);
182 std::optional<ScheduleResult> update(VSyncDispatch::ScheduleTiming scheduleTiming);
190 std::shared_ptr<VSyncDispatch> mDispatch;
191 std::optional<VSyncDispatch::CallbackToken> mToken;
DVSyncDispatchTimerQueue.h42 VSyncDispatchTimerQueueEntry(std::string name, VSyncDispatch::Callback,
51 ScheduleResult schedule(VSyncDispatch::ScheduleTiming, VSyncTracker&, nsecs_t now);
73 VSyncDispatch::ScheduleTiming);
94 ArmingInfo getArmedInfo(VSyncTracker&, nsecs_t now, VSyncDispatch::ScheduleTiming,
98 const VSyncDispatch::Callback mCallback;
100 VSyncDispatch::ScheduleTiming mScheduleTiming;
106 std::optional<VSyncDispatch::ScheduleTiming> mWorkloadUpdateInfo;
117 class VSyncDispatchTimerQueue : public VSyncDispatch {
DVSyncDispatchTimerQueue.cpp42 const VSyncDispatch::ScheduleTiming& timing) { in getExpectedCallbackTime()
60 VSyncDispatch::~VSyncDispatch() = default;
64 VSyncDispatch::Callback callback, in VSyncDispatchTimerQueueEntry()
99 ScheduleResult VSyncDispatchTimerQueueEntry::schedule(VSyncDispatch::ScheduleTiming timing, in schedule()
137 VSyncTracker& tracker, nsecs_t now, VSyncDispatch::ScheduleTiming timing) { in addPendingWorkloadUpdate()
172 VSyncDispatch::ScheduleTiming timing, in getArmedInfo()
505 VSyncCallbackRegistration::VSyncCallbackRegistration(std::shared_ptr<VSyncDispatch> dispatch, in VSyncCallbackRegistration()
506 VSyncDispatch::Callback callback, in VSyncCallbackRegistration()
529 VSyncDispatch::ScheduleTiming scheduleTiming) { in schedule()
537 VSyncDispatch::ScheduleTiming scheduleTiming) { in update()
DMessageQueue.h68 virtual void initVsyncInternal(std::shared_ptr<scheduler::VSyncDispatch>,
111 void onNewVsyncSchedule(std::shared_ptr<scheduler::VSyncDispatch>) EXCLUDES(mVsync.mutex);
137 std::shared_ptr<scheduler::VSyncDispatch>) REQUIRES(mVsync.mutex);
142 void initVsyncInternal(std::shared_ptr<scheduler::VSyncDispatch>, frametimeline::TokenManager&,
DMessageQueue.cpp77 void MessageQueue::initVsyncInternal(std::shared_ptr<scheduler::VSyncDispatch> dispatch, in initVsyncInternal()
94 void MessageQueue::onNewVsyncSchedule(std::shared_ptr<scheduler::VSyncDispatch> dispatch) { in onNewVsyncSchedule()
112 std::shared_ptr<scheduler::VSyncDispatch> dispatch) { in onNewVsyncScheduleLocked()
DVsyncSchedule.h48 class VSyncDispatch; variable
52 using VsyncDispatch = VSyncDispatch;
DVSyncReactor.h36 class VSyncDispatch; variable
DEventThread.h210 scheduler::VSyncDispatch::Callback createDispatchCallback();
DEventThread.cpp803 scheduler::VSyncDispatch::Callback EventThread::createDispatchCallback() { in createDispatchCallback()
/frameworks/native/services/surfaceflinger/tests/unittests/mock/
DMockVSyncDispatch.cpp22 VSyncDispatch::VSyncDispatch() = default;
23 VSyncDispatch::~VSyncDispatch() = default;
DMockVSyncDispatch.h25 class VSyncDispatch : public android::scheduler::VSyncDispatch {
27 VSyncDispatch();
28 ~VSyncDispatch() override;
/frameworks/native/services/surfaceflinger/tests/unittests/
DVSyncCallbackRegistrationTest.cpp32 VSyncDispatch::Callback mCallback = [](nsecs_t, nsecs_t, nsecs_t) {}; in __anone41b1a070102()
34 std::shared_ptr<mock::VSyncDispatch> mVsyncDispatch = std::make_shared<mock::VSyncDispatch>();
35 VSyncDispatch::CallbackToken mCallbackToken{7};
38 std::shared_ptr<mock::VSyncDispatch> mVsyncDispatch2 = std::make_shared<mock::VSyncDispatch>();
39 VSyncDispatch::CallbackToken mCallbackToken2{42};
43 std::shared_ptr<VSyncDispatch> dispatch) { in assertDispatch()
48 const std::optional<VSyncDispatch::CallbackToken>& token) { in assertToken()
DMessageQueueTest.cpp35 using CallbackToken = scheduler::VSyncDispatch::CallbackToken;
84 std::shared_ptr<mock::VSyncDispatch> mVSyncDispatch = std::make_shared<mock::VSyncDispatch>();
97 const auto timing = scheduler::VSyncDispatch::ScheduleTiming{.workDuration = kDuration.ns(), in TEST_F()
115 const auto timing = scheduler::VSyncDispatch::ScheduleTiming{.workDuration = kDuration.ns(), in TEST_F()
142 const auto timing = scheduler::VSyncDispatch::ScheduleTiming{.workDuration = kDuration.ns(), in TEST_F()
173 scheduler::VSyncDispatch::ScheduleTiming{.workDuration = kDuration.ns(), in TEST_F()
186 scheduler::VSyncDispatch::ScheduleTiming{.workDuration = kDifferentDuration.ns(), in TEST_F()
DEventThreadTest.cpp123 scheduler::ScheduleResult (*)(scheduler::VSyncDispatch::CallbackToken,
124 scheduler::VSyncDispatch::ScheduleTiming)>
127 scheduler::ScheduleResult (*)(scheduler::VSyncDispatch::CallbackToken,
128 scheduler::VSyncDispatch::ScheduleTiming)>
131 scheduler::VSyncDispatch::CallbackToken (*)(scheduler::VSyncDispatch::Callback,
133 mVSyncCallbackRegisterRecorder{scheduler::VSyncDispatch::CallbackToken(0)};
134 AsyncCallRecorder<void (*)(scheduler::VSyncDispatch::CallbackToken)>
159 auto mockDispatchPtr = std::make_shared<mock::VSyncDispatch>(); in EventThreadTest()
164 mock::VSyncDispatch& mockDispatch = *mockDispatchPtr; in EventThreadTest()
DVSyncDispatchTimerQueueTest.cpp114 CountingCallback(std::shared_ptr<VSyncDispatch> dispatch) in CountingCallback()
123 operator VSyncDispatch::CallbackToken() const { return mToken; } in operator VSyncDispatch::CallbackToken()
131 std::shared_ptr<VSyncDispatch> mDispatch;
132 VSyncDispatch::CallbackToken mToken;
140 PausingCallback(std::shared_ptr<VSyncDispatch> dispatch, std::chrono::milliseconds pauseAmount) in PausingCallback()
150 operator VSyncDispatch::CallbackToken() const { return mToken; } in operator VSyncDispatch::CallbackToken()
185 std::shared_ptr<VSyncDispatch> mDispatch;
186 VSyncDispatch::CallbackToken mToken;
232 std::shared_ptr<VSyncDispatch> mDispatch =
241 std::shared_ptr<VSyncDispatch> mDispatch = in TEST_F()
[all …]
DTestableScheduler.h103 mock::VSyncDispatch>(), in registerDisplay()
DVsyncScheduleTest.cpp50 std::make_shared<mock::VSyncDispatch>(),
DVSyncDispatchRealtimeTest.cpp109 RepeatingCallbackReceiver(std::shared_ptr<VSyncDispatch> dispatch, nsecs_t workload, in RepeatingCallbackReceiver()
DVSyncReactorTest.cpp123 VSyncDispatch::CallbackToken const mFakeToken{2398};