Home
last modified time | relevance | path

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

/frameworks/native/services/surfaceflinger/Scheduler/
DRefreshRateConfigs.cpp106 nsecs_t displayPeriod) const { in getDisplayFrames()
107 auto [displayFramesQuot, displayFramesRem] = std::div(layerPeriod, displayPeriod); in getDisplayFrames()
109 std::abs(displayFramesRem - displayPeriod) <= MARGIN_FOR_PERIOD_CALCULATION) { in getDisplayFrames()
232 const auto displayPeriod = scores[i].first->hwcConfig->getVsyncPeriod(); in getBestRefreshRate() local
238 auto actualLayerPeriod = displayPeriod; in getBestRefreshRate()
242 actualLayerPeriod = displayPeriod * multiplier; in getBestRefreshRate()
262 getDisplayFrames(layerPeriod, displayPeriod); in getBestRefreshRate()
273 static_cast<float>(displayPeriod)) * in getBestRefreshRate()
279 auto diff = std::abs(displayFramesRem - (displayPeriod - displayFramesRem)); in getBestRefreshRate()
282 diff = diff - (displayPeriod - diff); in getBestRefreshRate()
DRefreshRateConfigs.h313 std::pair<nsecs_t, nsecs_t> getDisplayFrames(nsecs_t layerPeriod, nsecs_t displayPeriod) const;
/frameworks/native/services/surfaceflinger/
DFrameTracker.h74 void setDisplayRefreshPeriod(nsecs_t displayPeriod);
DFrameTracker.cpp72 void FrameTracker::setDisplayRefreshPeriod(nsecs_t displayPeriod) { in setDisplayRefreshPeriod() argument
74 mDisplayPeriod = displayPeriod; in setDisplayRefreshPeriod()