/frameworks/native/services/surfaceflinger/Scheduler/src/ |
D | FrameTargeter.cpp | 31 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/ |
D | FrameTargeter.h | 58 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,
|
D | IVsyncSource.h | 27 virtual Period minFramePeriod() const = 0;
|
/frameworks/native/services/surfaceflinger/Scheduler/tests/ |
D | FrameTargeterTest.cpp | 34 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/ |
D | MockVSyncTracker.cpp | 26 ON_CALL(*this, minFramePeriod()).WillByDefault(Return(Period::fromNs(0))); in VSyncTracker()
|
D | MockVSyncTracker.h | 34 MOCK_METHOD(Period, minFramePeriod, (), (const, override));
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | VSyncTracker.h | 72 virtual Period minFramePeriod() const = 0;
|
D | VsyncSchedule.cpp | 84 Period VsyncSchedule::minFramePeriod() const { in minFramePeriod() function in android::scheduler::VsyncSchedule 86 return mTracker->minFramePeriod(); in minFramePeriod()
|
D | VsyncSchedule.h | 67 Period minFramePeriod() const override;
|
D | VSyncPredictor.cpp | 123 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()
|
D | VSyncPredictor.h | 52 Period minFramePeriod() const final EXCLUDES(mMutex);
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | VSyncDispatchRealtimeTest.cpp | 48 Period minFramePeriod() const final { return Period::fromNs(currentPeriod()); } in minFramePeriod() function in android::scheduler::StubTracker
|
D | SurfaceFlinger_DisplayModeSwitching.cpp | 72 EXPECT_CALL(*vsyncTracker, minFramePeriod()) in SetUp() 162 EXPECT_CALL(*vsyncTracker, minFramePeriod()) in setupScheduler()
|
D | TestableSurfaceFlinger.h | 296 EXPECT_CALL(*vsyncTracker, minFramePeriod())
|
/frameworks/native/services/surfaceflinger/ |
D | SurfaceFlinger.cpp | 5141 const Duration earlyLatchVsyncThreshold = mScheduler->getVsyncSchedule()->minFramePeriod() / 2; in frameIsEarly()
|