Home
last modified time | relevance | path

Searched refs:minFramePeriod (Results 1 – 15 of 15) sorted by relevance

/frameworks/native/services/surfaceflinger/Scheduler/src/
DFrameTargeter.cpp31 TimePoint FrameTarget::pastVsyncTime(Period minFramePeriod) const { in pastVsyncTime()
33 const int shift = static_cast<int>(targetsVsyncsAhead<2>(minFramePeriod)); in pastVsyncTime()
34 return mExpectedPresentTime - Period::fromNs(minFramePeriod.ns() << shift); in pastVsyncTime()
37 FenceTimePtr FrameTarget::presentFenceForPastVsync(Period minFramePeriod) const { in presentFenceForPastVsync()
41 const size_t i = static_cast<size_t>(targetsVsyncsAhead<2>(minFramePeriod)); in presentFenceForPastVsync()
45 bool FrameTarget::wouldPresentEarly(Period minFramePeriod) const { in wouldPresentEarly()
51 if (!allowNVsyncs && targetsVsyncsAhead<3>(minFramePeriod)) { in wouldPresentEarly()
55 const auto fence = presentFenceForPastVsync(minFramePeriod); in wouldPresentEarly()
75 const Period minFramePeriod = vsyncSource.minFramePeriod(); in beginFrame() local
90 mEarliestPresentTime = computeEarliestPresentTime(minFramePeriod, args.hwcMinWorkDuration); in beginFrame()
[all …]
/frameworks/native/services/surfaceflinger/Scheduler/include/scheduler/
DFrameTargeter.h58 TimePoint pastVsyncTime(Period minFramePeriod) const;
65 FenceTimePtr presentFenceForPastVsync(Period minFramePeriod) const;
81 bool wouldPresentEarly(Period minFramePeriod) const;
84 TimePoint previousFrameVsyncTime(Period minFramePeriod) const { in previousFrameVsyncTime() argument
85 return mExpectedPresentTime - minFramePeriod; in previousFrameVsyncTime()
118 inline bool targetsVsyncsAhead(Period minFramePeriod) const { in targetsVsyncsAhead() argument
120 return expectedFrameDuration() > (N - 1) * minFramePeriod; in targetsVsyncsAhead()
156 std::optional<TimePoint> computeEarliestPresentTime(Period minFramePeriod,
DIVsyncSource.h27 virtual Period minFramePeriod() const = 0;
/frameworks/native/services/surfaceflinger/Scheduler/tests/
DFrameTargeterTest.cpp34 VsyncSource(Period period, Period minFramePeriod, TimePoint deadline) in VsyncSource()
35 : vsyncPeriod(period), framePeriod(minFramePeriod), vsyncDeadline(deadline) {} in VsyncSource()
45 Period minFramePeriod() const override { return framePeriod; } in minFramePeriod() function
56 bool wouldPresentEarly(Period minFramePeriod) const { in wouldPresentEarly()
57 return target().wouldPresentEarly(minFramePeriod); in wouldPresentEarly()
68 minFramePeriod(peakRefreshRate.getPeriod()) { in Frame()
110 const Period minFramePeriod; member
/frameworks/native/services/surfaceflinger/tests/unittests/mock/
DMockVSyncTracker.cpp26 ON_CALL(*this, minFramePeriod()).WillByDefault(Return(Period::fromNs(0))); in VSyncTracker()
DMockVSyncTracker.h34 MOCK_METHOD(Period, minFramePeriod, (), (const, override));
/frameworks/native/services/surfaceflinger/Scheduler/
DVSyncTracker.h72 virtual Period minFramePeriod() const = 0;
DVsyncSchedule.cpp84 Period VsyncSchedule::minFramePeriod() const { in minFramePeriod() function in android::scheduler::VsyncSchedule
86 return mTracker->minFramePeriod(); in minFramePeriod()
DVsyncSchedule.h67 Period minFramePeriod() const override;
DVSyncPredictor.cpp123 Period VSyncPredictor::minFramePeriod() const { in minFramePeriod() function in android::scheduler::VSyncPredictor
444 const auto minFramePeriod = minFramePeriodLocked().ns(); in ensureMinFrameDurationIsKept() local
454 const auto minPeriodViolation = current.ns() - prev + threshold < minFramePeriod; in ensureMinFrameDurationIsKept()
457 current = TimePoint::fromNs(prev + minFramePeriod); in ensureMinFrameDurationIsKept()
DVSyncPredictor.h52 Period minFramePeriod() const final EXCLUDES(mMutex);
/frameworks/native/services/surfaceflinger/tests/unittests/
DVSyncDispatchRealtimeTest.cpp48 Period minFramePeriod() const final { return Period::fromNs(currentPeriod()); } in minFramePeriod() function in android::scheduler::StubTracker
DSurfaceFlinger_DisplayModeSwitching.cpp72 EXPECT_CALL(*vsyncTracker, minFramePeriod()) in SetUp()
162 EXPECT_CALL(*vsyncTracker, minFramePeriod()) in setupScheduler()
DTestableSurfaceFlinger.h296 EXPECT_CALL(*vsyncTracker, minFramePeriod())
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp5141 const Duration earlyLatchVsyncThreshold = mScheduler->getVsyncSchedule()->minFramePeriod() / 2; in frameIsEarly()