Home
last modified time | relevance | path

Searched refs:idealPeriod (Results 1 – 3 of 3) sorted by relevance

/frameworks/native/services/surfaceflinger/Scheduler/
DVSyncPredictor.cpp87 nsecs_t VSyncPredictor::idealPeriod() const { in idealPeriod() function in android::scheduler::VSyncPredictor
98 (timestamp - aValidTimestamp) % idealPeriod() * kMaxPercent / idealPeriod(); in validate()
109 const auto distancePercent = std::abs(*iter - timestamp) * kMaxPercent / idealPeriod(); in validate()
120 return mRateMap.find(idealPeriod())->second.slope; in currentPeriod()
133 const auto slope = mRateMap.find(idealPeriod())->second.slope; in minFramePeriodLocked()
175 mRateMap[idealPeriod()] = {idealPeriod(), 0}; in addVsyncTimestamp()
199 auto it = mRateMap.find(idealPeriod()); in addVsyncTimestamp()
237 it->second = {idealPeriod(), 0}; in addVsyncTimestamp()
245 auto const percent = std::abs(anticipatedPeriod - idealPeriod()) * kMaxPercent / idealPeriod(); in addVsyncTimestamp()
247 it->second = {idealPeriod(), 0}; in addVsyncTimestamp()
[all …]
DVSyncPredictor.h75 mRateMap.find(idealPeriod())->second.slope; in isCurrentMode()
99 VsyncTimeline(TimePoint knownVsync, Period idealPeriod, std::optional<Fps> renderRateOpt);
138 nsecs_t idealPeriod() const REQUIRES(mMutex);
/frameworks/native/services/surfaceflinger/tests/unittests/
DVSyncPredictorTest.cpp221 auto constexpr idealPeriod = 16600000; in TEST_F() local
225 tracker.setDisplayModePtr(displayMode(idealPeriod)); in TEST_F()
240 auto idealPeriod = 11110000; in TEST_F() local
244 tracker.setDisplayModePtr(displayMode(idealPeriod)); in TEST_F()
267 auto idealPeriod = 45454545; in TEST_F() local
271 tracker.setDisplayModePtr(displayMode(idealPeriod)); in TEST_F()
293 auto idealPeriod = 2000000; in TEST_F() local
297 tracker.setDisplayModePtr(displayMode(idealPeriod)); in TEST_F()
350 auto idealPeriod = 100000; in TEST_F() local
351 tracker.setDisplayModePtr(displayMode(idealPeriod)); in TEST_F()
[all …]