/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | VSyncDispatchTimerQueueTest.cpp | 236 {.workDuration = 100, in TEST_F() 250 {.workDuration = 100, in TEST_F() 267 mDispatch.schedule(cb, {.workDuration = 100, .readyDuration = 0, .earliestVsync = mPeriod}); in TEST_F() 277 auto const workDuration = 10 * mPeriod; in TEST_F() local 278 EXPECT_CALL(mStubTracker, nextAnticipatedVSyncTimeFrom(now + workDuration)) in TEST_F() 284 {.workDuration = workDuration, in TEST_F() 298 {.workDuration = 100, .readyDuration = 0, .earliestVsync = mPeriod}); in TEST_F() 311 {.workDuration = 100, .readyDuration = 0, .earliestVsync = mPeriod}); in TEST_F() 325 {.workDuration = 100, .readyDuration = 0, .earliestVsync = mPeriod}); in TEST_F() 346 {.workDuration = 100, .readyDuration = 0, .earliestVsync = mPeriod}); in TEST_F() [all …]
|
D | MessageQueueTest.cpp | 104 const auto timing = scheduler::VSyncDispatch::ScheduleTiming{.workDuration = mDuration.count(), in TEST_F() 117 const auto timing = scheduler::VSyncDispatch::ScheduleTiming{.workDuration = mDuration.count(), in TEST_F() 134 const auto timing = scheduler::VSyncDispatch::ScheduleTiming{.workDuration = mDuration.count(), in TEST_F() 157 scheduler::VSyncDispatch::ScheduleTiming{.workDuration = mDuration.count(), in TEST_F() 169 scheduler::VSyncDispatch::ScheduleTiming{.workDuration = mDifferentDuration.count(), in TEST_F()
|
D | DispSyncSourceTest.cpp | 76 timing.earliestVsync - timing.workDuration - timing.readyDuration; in MockVSyncDispatch() 222 return timings.workDuration == mWorkDuration.count() && in TEST_F() 249 return timings.workDuration == mWorkDuration.count() && in TEST_F() 261 return timings.workDuration == mWorkDuration.count() && in TEST_F() 275 return timings.workDuration == newDuration.count() && in TEST_F() 282 return timings.workDuration == newDuration.count() && in TEST_F()
|
D | VSyncDispatchRealtimeTest.cpp | 118 {.workDuration = mWorkload, in repeatedly_schedule() 131 mCallback.schedule({.workDuration = mWorkload, in repeatedly_schedule()
|
D | EventThreadTest.cpp | 55 void(std::chrono::nanoseconds workDuration,
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | DispSyncSource.cpp | 35 std::chrono::nanoseconds workDuration, std::chrono::nanoseconds readyDuration, in CallbackRepeater() argument 44 mWorkDuration(workDuration), in CallbackRepeater() 53 void start(std::chrono::nanoseconds workDuration, std::chrono::nanoseconds readyDuration) { in start() argument 56 mWorkDuration = workDuration; in start() 60 mRegistration.schedule({.workDuration = mWorkDuration.count(), in start() 99 mRegistration.schedule({.workDuration = mWorkDuration.count(), in callback() 118 std::chrono::nanoseconds workDuration, in DispSyncSource() argument 125 mWorkDuration(base::StringPrintf("VsyncWorkDuration-%s", name), workDuration), in DispSyncSource() 133 name, workDuration, readyDuration, in DispSyncSource() 156 void DispSyncSource::setDuration(std::chrono::nanoseconds workDuration, in setDuration() argument [all …]
|
D | MessageQueue.cpp | 122 std::chrono::nanoseconds workDuration) { in initVsync() argument 123 setDuration(workDuration); in initVsync() 134 void MessageQueue::setDuration(std::chrono::nanoseconds workDuration) { in setDuration() argument 137 mVsync.workDuration = workDuration; in setDuration() 140 {mVsync.workDuration.get().count(), in setDuration() 186 mVsync.registration->schedule({.workDuration = mVsync.workDuration.get().count(), in invalidate()
|
D | MessageQueue.h | 68 std::chrono::nanoseconds workDuration) = 0; 69 virtual void setDuration(std::chrono::nanoseconds workDuration) = 0; 113 TracedOrdinal<std::chrono::nanoseconds> workDuration 139 std::chrono::nanoseconds workDuration) override; 140 void setDuration(std::chrono::nanoseconds workDuration) override;
|
D | VSyncDispatch.h | 97 nsecs_t workDuration = 0; member 102 return workDuration == other.workDuration && readyDuration == other.readyDuration &&
|
D | VSyncDispatchTimerQueue.cpp | 32 return nextVsyncTime - timing.readyDuration - timing.workDuration; in getExpectedCallbackTime() 38 std::max(timing.earliestVsync, now + timing.workDuration + timing.readyDuration)); in getExpectedCallbackTime() 86 std::max(timing.earliestVsync, now + timing.workDuration + timing.readyDuration)); in schedule() 87 auto nextWakeupTime = nextVsyncTime - timing.workDuration - timing.readyDuration; in schedule() 103 nextWakeupTime = nextVsyncTime - timing.workDuration - timing.readyDuration; in schedule() 130 const auto earliestReadyBy = now + mScheduleTiming.workDuration + mScheduleTiming.readyDuration; in update() 135 const auto nextWakeupTime = nextReadyTime - mScheduleTiming.workDuration; in update() 185 mScheduleTiming.workDuration / 1e6f, mScheduleTiming.readyDuration / 1e6f, in dump()
|
D | DispSyncSource.h | 30 DispSyncSource(VSyncDispatch& vSyncDispatch, std::chrono::nanoseconds workDuration, 39 void setDuration(std::chrono::nanoseconds workDuration,
|
D | EventThread.h | 77 virtual void setDuration(std::chrono::nanoseconds workDuration, 136 virtual void setDuration(std::chrono::nanoseconds workDuration, 185 void setDuration(std::chrono::nanoseconds workDuration,
|
D | Scheduler.h | 80 std::chrono::nanoseconds workDuration, 101 void setDuration(ConnectionHandle, std::chrono::nanoseconds workDuration, 173 std::chrono::nanoseconds workDuration,
|
D | Scheduler.cpp | 201 const char* name, std::chrono::nanoseconds workDuration, in makePrimaryDispSyncSource() argument 203 return std::make_unique<scheduler::DispSyncSource>(*mVsyncSchedule.dispatch, workDuration, in makePrimaryDispSyncSource() 268 std::chrono::nanoseconds workDuration, std::chrono::nanoseconds readyDuration, in createConnection() argument 270 auto vsyncSource = makePrimaryDispSyncSource(connectionName, workDuration, readyDuration); in createConnection() 432 void Scheduler::setDuration(ConnectionHandle handle, std::chrono::nanoseconds workDuration, in setDuration() argument 440 thread->setDuration(workDuration, readyDuration); in setDuration()
|
D | EventThread.cpp | 265 void EventThread::setDuration(std::chrono::nanoseconds workDuration, in setDuration() argument 268 mVSyncSource->setDuration(workDuration, readyDuration); in setDuration()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/location/ |
D | HandlerThreadingDomainTest.java | 167 Duration workDuration = Duration.ofSeconds(5); in postAndWait() local 174 Thread.sleep(workDuration.toMillis()); in postAndWait() 181 domain.postAndWait(testLogic, workDuration.multipliedBy(10).toMillis()); in postAndWait() 185 assertTrue(waitDuration.compareTo(workDuration) >= 0); in postAndWait()
|
/frameworks/native/services/surfaceflinger/tests/unittests/mock/ |
D | MockMessageQueue.h | 41 MOCK_METHOD1(setDuration, void(std::chrono::nanoseconds workDuration));
|
D | MockEventThread.h | 41 void(std::chrono::nanoseconds workDuration,
|