Home
last modified time | relevance | path

Searched refs:expectedPresentTime (Results 1 – 25 of 32) sorted by relevance

12

/frameworks/native/services/surfaceflinger/tests/unittests/
DSurfaceFlinger_NotifyExpectedPresentTest.cpp132 auto expectedPresentTime = TimePoint::now().ns() + ms2ns(10); in TEST_F() local
135 TimePoint::fromNs(expectedPresentTime), in TEST_F()
139 expectedPresentTime += 2 * kFrameInterval5HzNs; in TEST_F()
141 TimePoint::fromNs(expectedPresentTime), kFps60Hz, in TEST_F()
144 mFlinger.verifyLastExpectedPresentTime(mPhysicalDisplayId, expectedPresentTime)); in TEST_F()
150 auto expectedPresentTime = TimePoint::now().ns() + ms2ns(10); in TEST_F() local
154 notifyExpectedPresent(kHwcDisplayId, expectedPresentTime, kFrameInterval60HzNs)) in TEST_F()
157 TimePoint::fromNs(expectedPresentTime), kFps60Hz, in TEST_F()
168 expectedPresentTime += kFrameInterval60HzNs; in TEST_F()
172 .WillRepeatedly(Return(expectedPresentTime)); in TEST_F()
[all …]
DEventThreadTest.cpp111 void expectOnExpectedPresentTimePosted(nsecs_t expectedPresentTime);
198 void EventThreadTest::onExpectedPresentTimePosted(TimePoint expectedPresentTime) { in onExpectedPresentTimePosted() argument
199 mOnExpectedPresentTimePostedRecorder.recordCall(expectedPresentTime.ns()); in onExpectedPresentTimePosted()
256 void EventThreadTest::expectOnExpectedPresentTimePosted(nsecs_t expectedPresentTime) { in expectOnExpectedPresentTimePosted() argument
259 EXPECT_EQ(expectedPresentTime, std::get<0>(args.value())); in expectOnExpectedPresentTimePosted()
DTestableSurfaceFlinger.h717 TimePoint expectedPresentTime, Fps frameInterval, in notifyExpectedPresentIfRequired() argument
719 mFlinger->notifyExpectedPresentIfRequired(displayId, vsyncPeriod, expectedPresentTime, in notifyExpectedPresentIfRequired()
748 bool verifyLastExpectedPresentTime(PhysicalDisplayId displayId, nsecs_t expectedPresentTime) { in verifyLastExpectedPresentTime() argument
750 .lastExpectedPresentTimestamp.ns() == expectedPresentTime; in verifyLastExpectedPresentTime()
/frameworks/native/services/surfaceflinger/Scheduler/include/scheduler/
DFrameTargeter.h53 TimePoint expectedPresentTime() const { return mExpectedPresentTime; } in expectedPresentTime() function
89 TimePoint expectedPresentTime) { in addFence() argument
91 expectedPresentTime}; in addFence()
107 TimePoint expectedPresentTime = TimePoint(); member
126 const auto& [_, fenceTimePtr, expectedPresentTime] = mFenceWithFenceTimes[i]; in pastVsyncTimePtr()
127 if (expectedPresentTime > mFrameBeginTime) { in pastVsyncTimePtr()
/frameworks/native/services/surfaceflinger/Scheduler/tests/
DFrameTargeterTest.cpp143 EXPECT_EQ(target().expectedPresentTime(), TimePoint(999ms)); in TEST_F()
152 EXPECT_EQ(target().expectedPresentTime(), TimePoint(1111ms)); in TEST_F()
168 EXPECT_EQ(target().expectedPresentTime(), vsyncSource.vsyncDeadline + vsyncSource.vsyncPeriod); in TEST_F()
315 target().expectedPresentTime() - kPeriod - kHwcMinWorkDuration); in TEST_F()
377 target().expectedPresentTime() - kPeriod - kHwcMinWorkDuration); in TEST_F()
410 target().expectedPresentTime() - period - kHwcMinWorkDuration); in TEST_F()
436 target().expectedPresentTime() - kPeriod - kHwcMinWorkDuration); in TEST_F()
482 const auto expectedPresentTime = target().expectedPresentTime(); in TEST_F() local
483 fence->signalForTest(expectedPresentTime.ns() + kPeriod.ns() / 2 + 1); in TEST_F()
490 const auto expectedPresentTime = target().expectedPresentTime(); in TEST_F() local
[all …]
/frameworks/native/services/surfaceflinger/Scheduler/
DVSyncTracker.h115 virtual void onFrameBegin(TimePoint expectedPresentTime,
118 virtual void onFrameMissed(TimePoint expectedPresentTime) = 0;
DVSyncPredictor.cpp434 Duration VSyncPredictor::ensureMinFrameDurationIsKept(TimePoint expectedPresentTime, in ensureMinFrameDurationIsKept() argument
465 const auto phase = Duration(mPastExpectedPresentTimes.back() - expectedPresentTime); in ensureMinFrameDurationIsKept()
478 void VSyncPredictor::onFrameBegin(TimePoint expectedPresentTime, in onFrameBegin() argument
487 static_cast<float>(expectedPresentTime.ns() - in onFrameBegin()
493 mPastExpectedPresentTimes.push_back(expectedPresentTime); in onFrameBegin()
510 const auto phase = ensureMinFrameDurationIsKept(expectedPresentTime, lastConfirmedPresentTime); in onFrameBegin()
512 mMissedVsync = {expectedPresentTime, minFramePeriodLocked()}; in onFrameBegin()
516 void VSyncPredictor::onFrameMissed(TimePoint expectedPresentTime) { in onFrameMissed() argument
525 TimePoint::fromNs(expectedPresentTime.ns() + currentPeriod); in onFrameMissed()
527 const auto phase = ensureMinFrameDurationIsKept(expectedPresentTime, lastConfirmedPresentTime); in onFrameMissed()
[all …]
DVSyncPredictor.h80 void onFrameBegin(TimePoint expectedPresentTime, TimePoint lastConfirmedPresentTime) final
82 void onFrameMissed(TimePoint expectedPresentTime) final EXCLUDES(mMutex);
DScheduler.cpp219 expectedVsyncTime = pacesetterPtr->targeterPtr->target().expectedPresentTime(); in onFrameSignal()
301 bool Scheduler::throttleVsync(android::TimePoint expectedPresentTime, uid_t uid) { in throttleVsync() argument
302 return !isVsyncValid(expectedPresentTime, uid); in throttleVsync()
334 void Scheduler::onExpectedPresentTimePosted(TimePoint expectedPresentTime) { in onExpectedPresentTimePosted() argument
343 mSchedulerCallback.onExpectedPresentTimePosted(expectedPresentTime, frameRateMode.modePtr, in onExpectedPresentTimePosted()
DScheduler.h260 return display.targeterPtr->target().expectedPresentTime(); in expectedPresentTimeForPacesetter()
467 void onExpectedPresentTimePosted(TimePoint expectedPresentTime) override EXCLUDES(mDisplayLock);
/frameworks/native/libs/gui/include/gui/test/
DCallbackUtils.h85 void addExpectedPresentTime(nsecs_t expectedPresentTime) { in addExpectedPresentTime() argument
86 mExpectedPresentTime = expectedPresentTime; in addExpectedPresentTime()
89 void addExpectedPresentTimeForVsyncId(nsecs_t expectedPresentTime) { in addExpectedPresentTimeForVsyncId() argument
90 mExpectedPresentTimeForVsyncId = expectedPresentTime; in addExpectedPresentTimeForVsyncId()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/
DOutputCompositionState.h130 nsecs_t expectedPresentTime{0};
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DMockPowerAdvisor.h58 MOCK_METHOD(void, setExpectedPresentTime, (TimePoint expectedPresentTime), (override));
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/
DMockPowerAdvisor.h56 MOCK_METHOD(void, setExpectedPresentTime, (TimePoint expectedPresentTime), (override));
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWComposer.h151 nsecs_t expectedPresentTime, Fps frameInterval,
310 virtual status_t notifyExpectedPresent(PhysicalDisplayId, TimePoint expectedPresentTime,
354 nsecs_t expectedPresentTime, Fps frameInterval,
472 status_t notifyExpectedPresent(PhysicalDisplayId, TimePoint expectedPresentTime,
DAidlComposerHal.h138 Error validateDisplay(Display display, nsecs_t expectedPresentTime, int32_t frameIntervalNs,
141 Error presentOrValidateDisplay(Display display, nsecs_t expectedPresentTime,
245 Error notifyExpectedPresent(Display, nsecs_t expectedPresentTime,
DComposerHal.h177 virtual Error validateDisplay(Display display, nsecs_t expectedPresentTime,
181 virtual Error presentOrValidateDisplay(Display display, nsecs_t expectedPresentTime,
304 virtual Error notifyExpectedPresent(Display, nsecs_t expectedPresentTime,
DPowerAdvisor.h84 virtual void setExpectedPresentTime(TimePoint expectedPresentTime) = 0;
140 void setExpectedPresentTime(TimePoint expectedPresentTime) override;
DHWC2.h156 [[nodiscard]] virtual hal::Error validate(nsecs_t expectedPresentTime, int32_t frameIntervalNs,
158 [[nodiscard]] virtual hal::Error presentOrValidate(nsecs_t expectedPresentTime,
242 hal::Error validate(nsecs_t expectedPresentTime, int32_t frameIntervalNs, uint32_t* outNumTypes,
244 hal::Error presentOrValidate(nsecs_t expectedPresentTime, int32_t frameIntervalNs,
DHWComposer.cpp456 nsecs_t expectedPresentTime, Fps frameInterval, in getDeviceCompositionChanges() argument
500 error = hwcDisplay->presentOrValidate(expectedPresentTime, frameInterval.getPeriodNsecs(), in getDeviceCompositionChanges()
516 error = hwcDisplay->validate(expectedPresentTime, frameInterval.getPeriodNsecs(), &numTypes, in getDeviceCompositionChanges()
898 TimePoint expectedPresentTime, Fps frameInterval) { in notifyExpectedPresent() argument
901 ticks<std::milli, float>(expectedPresentTime - TimePoint::now()), in notifyExpectedPresent()
904 expectedPresentTime.ns(), in notifyExpectedPresent()
DHWC2.cpp518 Error Display::validate(nsecs_t expectedPresentTime, int32_t frameIntervalNs, uint32_t* outNumTypes, in validate() argument
522 auto intError = mComposer.validateDisplay(mId, expectedPresentTime, frameIntervalNs, &numTypes, in validate()
534 Error Display::presentOrValidate(nsecs_t expectedPresentTime, int32_t frameIntervalNs, in presentOrValidate() argument
541 mComposer.presentOrValidateDisplay(mId, expectedPresentTime, frameIntervalNs, &numTypes, in presentOrValidate()
DHidlComposerHal.h240 Error validateDisplay(Display display, nsecs_t expectedPresentTime, int32_t frameIntervalNs,
243 Error presentOrValidateDisplay(Display display, nsecs_t expectedPresentTime,
/frameworks/base/tests/ChoreographerTests/src/main/java/android/view/choreographertests/
DAttachedChoreographerTest.java550 long expectedPresentTime = in verifyVsyncCallbacks()
556 expectedPresentTime - mExpectedPresentTime); in verifyVsyncCallbacks()
568 mExpectedPresentTime = expectedPresentTime; in verifyVsyncCallbacks()
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp315 bool isFrameIntervalOnCadence(TimePoint expectedPresentTime, TimePoint lastExpectedPresentTimestamp, in isFrameIntervalOnCadence() argument
322 expectedPresentTime.ns() - lastExpectedPresentTimestamp.ns(); in isFrameIntervalOnCadence()
335 std::abs(expectedPresentTime.ns() - calculatedExpectedPresentTimeNs); in isFrameIntervalOnCadence()
339 bool isExpectedPresentWithinTimeout(TimePoint expectedPresentTime, in isExpectedPresentWithinTimeout() argument
354 if (expectedPresentTime.ns() < lastExpectedPresentTimestamp.ns() + timeoutOpt->ns()) { in isExpectedPresentWithinTimeout()
359 return std::abs(expectedPresentTime.ns() - in isExpectedPresentWithinTimeout()
2637 pacesetterFrameTarget.expectedPresentTime()); in commit()
2653 mPowerAdvisor->setExpectedPresentTime(pacesetterFrameTarget.expectedPresentTime()); in commit()
2697 pacesetterFrameTarget.expectedPresentTime(), in commit()
2833 mScheduler->getNextFrameInterval(pacesetterId, pacesetterTarget.expectedPresentTime()); in composite()
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DOutput.cpp443 return frameTargetPtr.get()->expectedPresentTime(); in present()
445 .transform([](TimePoint expectedPresentTime) { in present() argument
447 ticks<std::milli, float>(expectedPresentTime - in present()
854 editState().expectedPresentTime = frameTargetPtrOpt->get()->expectedPresentTime().ns(); in writeCompositionState()

12