Searched refs:VSyncDispatch (Results 1 – 19 of 19) sorted by relevance
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | VSyncDispatch.h | 39 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;
|
D | VSyncDispatchTimerQueue.h | 42 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 {
|
D | VSyncDispatchTimerQueue.cpp | 42 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()
|
D | MessageQueue.h | 68 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&,
|
D | MessageQueue.cpp | 77 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()
|
D | VsyncSchedule.h | 48 class VSyncDispatch; variable 52 using VsyncDispatch = VSyncDispatch;
|
D | VSyncReactor.h | 36 class VSyncDispatch; variable
|
D | EventThread.h | 210 scheduler::VSyncDispatch::Callback createDispatchCallback();
|
D | EventThread.cpp | 803 scheduler::VSyncDispatch::Callback EventThread::createDispatchCallback() { in createDispatchCallback()
|
/frameworks/native/services/surfaceflinger/tests/unittests/mock/ |
D | MockVSyncDispatch.cpp | 22 VSyncDispatch::VSyncDispatch() = default; 23 VSyncDispatch::~VSyncDispatch() = default;
|
D | MockVSyncDispatch.h | 25 class VSyncDispatch : public android::scheduler::VSyncDispatch { 27 VSyncDispatch(); 28 ~VSyncDispatch() override;
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | VSyncCallbackRegistrationTest.cpp | 32 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()
|
D | MessageQueueTest.cpp | 35 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()
|
D | EventThreadTest.cpp | 123 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()
|
D | VSyncDispatchTimerQueueTest.cpp | 114 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 …]
|
D | TestableScheduler.h | 103 mock::VSyncDispatch>(), in registerDisplay()
|
D | VsyncScheduleTest.cpp | 50 std::make_shared<mock::VSyncDispatch>(),
|
D | VSyncDispatchRealtimeTest.cpp | 109 RepeatingCallbackReceiver(std::shared_ptr<VSyncDispatch> dispatch, nsecs_t workload, in RepeatingCallbackReceiver()
|
D | VSyncReactorTest.cpp | 123 VSyncDispatch::CallbackToken const mFakeToken{2398};
|