Home
last modified time | relevance | path

Searched refs:workDuration (Results 1 – 18 of 18) sorted by relevance

/frameworks/native/services/surfaceflinger/tests/unittests/
DVSyncDispatchTimerQueueTest.cpp236 {.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 …]
DMessageQueueTest.cpp104 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()
DDispSyncSourceTest.cpp76 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()
DVSyncDispatchRealtimeTest.cpp118 {.workDuration = mWorkload, in repeatedly_schedule()
131 mCallback.schedule({.workDuration = mWorkload, in repeatedly_schedule()
DEventThreadTest.cpp55 void(std::chrono::nanoseconds workDuration,
/frameworks/native/services/surfaceflinger/Scheduler/
DDispSyncSource.cpp35 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 …]
DMessageQueue.cpp122 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()
DMessageQueue.h68 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;
DVSyncDispatch.h97 nsecs_t workDuration = 0; member
102 return workDuration == other.workDuration && readyDuration == other.readyDuration &&
DVSyncDispatchTimerQueue.cpp32 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()
DDispSyncSource.h30 DispSyncSource(VSyncDispatch& vSyncDispatch, std::chrono::nanoseconds workDuration,
39 void setDuration(std::chrono::nanoseconds workDuration,
DEventThread.h77 virtual void setDuration(std::chrono::nanoseconds workDuration,
136 virtual void setDuration(std::chrono::nanoseconds workDuration,
185 void setDuration(std::chrono::nanoseconds workDuration,
DScheduler.h80 std::chrono::nanoseconds workDuration,
101 void setDuration(ConnectionHandle, std::chrono::nanoseconds workDuration,
173 std::chrono::nanoseconds workDuration,
DScheduler.cpp201 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()
DEventThread.cpp265 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/
DHandlerThreadingDomainTest.java167 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/
DMockMessageQueue.h41 MOCK_METHOD1(setDuration, void(std::chrono::nanoseconds workDuration));
DMockEventThread.h41 void(std::chrono::nanoseconds workDuration,