Lines Matching refs:displayPeriod
297 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()
391 auto diff = std::abs(displayFramesRemainder - (displayPeriod - displayFramesRemainder)); in calculateNonExactMatchingLayerScoreLocked()
394 diff = diff - (displayPeriod - diff); in calculateNonExactMatchingLayerScoreLocked()