Lines Matching refs:modePtr
254 return isStrictlyLess(lhs.modePtr->getVsyncRate(), in createFrameRateModes()
255 rhs.modePtr->getVsyncRate()); in createFrameRateModes()
500 const auto& activeMode = *getActiveModeLocked().modePtr; in getRankedFrameRatesLocked()
507 return mode.modePtr->getPeakFps() == pacesetterFps; in getRankedFrameRatesLocked()
654 mode.modePtr->getId() == activeModeId; in getRankedFrameRatesLocked()
683 const auto& [fps, modePtr] = mode; in getRankedFrameRatesLocked()
684 const bool isSeamlessSwitch = modePtr->getGroup() == activeMode.getGroup(); in getRankedFrameRatesLocked()
688 formatLayerInfo(layer, weight).c_str(), to_string(*modePtr).c_str(), in getRankedFrameRatesLocked()
697 formatLayerInfo(layer, weight).c_str(), to_string(*modePtr).c_str(), in getRankedFrameRatesLocked()
702 if (smoothSwitchOnly && modePtr->getId() != activeModeId) { in getRankedFrameRatesLocked()
705 formatLayerInfo(layer, weight).c_str(), to_string(*modePtr).c_str(), in getRankedFrameRatesLocked()
715 const bool isInPolicyForDefault = modePtr->getGroup() == anchorGroup; in getRankedFrameRatesLocked()
718 to_string(*modePtr).c_str(), to_string(activeMode).c_str()); in getRankedFrameRatesLocked()
723 policy->primaryRanges.physical.includes(modePtr->getPeakFps()); in getRankedFrameRatesLocked()
765 modePtr->getPeakFps() >= Fps::fromValue(mConfig.frameRateMultipleThreshold); in getRankedFrameRatesLocked()
769 to_string(modePtr->getPeakFps()).c_str(), in getRankedFrameRatesLocked()
770 to_string(modePtr->getVsyncRate()).c_str(), layerScore); in getRankedFrameRatesLocked()
775 to_string(modePtr->getPeakFps()).c_str(), in getRankedFrameRatesLocked()
776 to_string(modePtr->getVsyncRate()).c_str(), layerScore); in getRankedFrameRatesLocked()
781 to_string(fps).c_str(), to_string(modePtr->getPeakFps()).c_str(), in getRankedFrameRatesLocked()
782 to_string(modePtr->getVsyncRate()).c_str(), layerScore); in getRankedFrameRatesLocked()
807 to_string(maxScoreIt->frameRateMode.modePtr->getPeakFps()).c_str(), in getRankedFrameRatesLocked()
808 to_string(maxScoreIt->frameRateMode.modePtr->getVsyncRate()).c_str(), in getRankedFrameRatesLocked()
810 return maxScoreIt->frameRateMode.modePtr->getPeakFps() >= in getRankedFrameRatesLocked()
821 to_string(frameRateMode.modePtr->getPeakFps()).c_str(), in getRankedFrameRatesLocked()
822 to_string(frameRateMode.modePtr->getVsyncRate()).c_str(), overallScore); in getRankedFrameRatesLocked()
1088 .transform([](const DisplayModePtr& modePtr) { in onKernelTimerChanged() argument
1089 return FrameRateMode{modePtr->getPeakFps(), ftl::as_non_null(modePtr)}; in onKernelTimerChanged()
1098 if (current.modePtr->getId() == min->getId()) { in onKernelTimerChanged()
1106 const auto& activeMode = *getActiveModeLocked().modePtr; in getMinRefreshRateByPolicyLocked()
1109 if (activeMode.getGroup() == mode.modePtr->getGroup()) { in getMinRefreshRateByPolicyLocked()
1110 return mode.modePtr.get(); in getMinRefreshRateByPolicyLocked()
1118 return mPrimaryFrameRates.front().modePtr.get(); in getMinRefreshRateByPolicyLocked()
1122 const ftl::NonNull<DisplayModePtr>* maxByAnchor = &mPrimaryFrameRates.back().modePtr; in getMaxRefreshRateByPolicyLocked()
1123 const ftl::NonNull<DisplayModePtr>* max = &mPrimaryFrameRates.back().modePtr; in getMaxRefreshRateByPolicyLocked()
1128 if (it->modePtr->getPeakFps() > (*max)->getPeakFps()) { in getMaxRefreshRateByPolicyLocked()
1129 max = &it->modePtr; in getMaxRefreshRateByPolicyLocked()
1132 if (anchorGroup == it->modePtr->getGroup() && in getMaxRefreshRateByPolicyLocked()
1133 it->modePtr->getPeakFps() >= (*maxByAnchor)->getPeakFps()) { in getMaxRefreshRateByPolicyLocked()
1135 maxByAnchor = &it->modePtr; in getMaxRefreshRateByPolicyLocked()
1164 if (anchorGroupOpt && frameRateMode.modePtr->getGroup() != anchorGroupOpt) { in rankFrameRates()
1168 const auto [iter, _] = maxRenderRateForMode.try_emplace(frameRateMode.modePtr->getId(), in rankFrameRates()
1178 const auto& modePtr = frameRateMode.modePtr; in rankFrameRates() local
1179 if ((anchorGroupOpt && modePtr->getGroup() != anchorGroupOpt) || in rankFrameRates()
1185 const auto id = modePtr->getId(); in rankFrameRates()
1200 if (*preferredDisplayModeOpt == modePtr->getId()) { in rankFrameRates()
1214 to_string(frameRateMode.fps).c_str(), to_string(modePtr->getPeakFps()).c_str(), in rankFrameRates()
1215 to_string(modePtr->getVsyncRate()).c_str(), score); in rankFrameRates()
1430 displayId = getActiveModeLocked().modePtr->getPhysicalDisplayId(); in setPolicy()
1550 getMaxRefreshRateByPolicyLocked(getActiveModeLocked().modePtr->getGroup()); in getIdleTimerAction()
1598 dumper.dump("activeMode"sv, to_string(*activeMode.modePtr)); in dump()