Home
last modified time | relevance | path

Searched refs:displayPeriod (Results 1 – 4 of 4) sorted by relevance

/frameworks/native/services/surfaceflinger/
DFrameTracker.h74 void setDisplayRefreshPeriod(nsecs_t displayPeriod);
DFrameTracker.cpp68 void FrameTracker::setDisplayRefreshPeriod(nsecs_t displayPeriod) { in setDisplayRefreshPeriod() argument
70 mDisplayPeriod = displayPeriod; in setDisplayRefreshPeriod()
/frameworks/native/services/surfaceflinger/Scheduler/
DRefreshRateSelector.cpp297 nsecs_t displayPeriod) const { in getDisplayFrames()
298 auto [quotient, remainder] = std::div(layerPeriod, displayPeriod); in getDisplayFrames()
300 std::abs(remainder - displayPeriod) <= MARGIN_FOR_PERIOD_CALCULATION) { in getDisplayFrames()
309 nsecs_t displayPeriod, nsecs_t layerPeriod) const { in calculateNonExactMatchingDefaultLayerScoreLocked() argument
315 auto actualLayerPeriod = displayPeriod; in calculateNonExactMatchingDefaultLayerScoreLocked()
319 actualLayerPeriod = displayPeriod * multiplier; in calculateNonExactMatchingDefaultLayerScoreLocked()
331 const auto displayPeriod = refreshRate.getPeriodNsecs(); in calculateNonExactMatchingLayerScoreLocked() local
334 return calculateNonExactMatchingDefaultLayerScoreLocked(displayPeriod, layerPeriod); in calculateNonExactMatchingLayerScoreLocked()
376 getDisplayFrames(layerPeriod, displayPeriod); in calculateNonExactMatchingLayerScoreLocked()
385 return (static_cast<float>(layerPeriod) / static_cast<float>(displayPeriod)) * in calculateNonExactMatchingLayerScoreLocked()
[all …]
DRefreshRateSelector.h445 std::pair<nsecs_t, nsecs_t> getDisplayFrames(nsecs_t layerPeriod, nsecs_t displayPeriod) const;
493 float calculateNonExactMatchingDefaultLayerScoreLocked(nsecs_t displayPeriod,