Lines Matching refs:RefreshRateConfigs

37 std::string formatLayerInfo(const RefreshRateConfigs::LayerRequirement& layer, float weight) {  in formatLayerInfo()
39 RefreshRateConfigs::layerVoteTypeString(layer.vote).c_str(), weight, in formatLayerInfo()
64 using AllRefreshRatesMapType = RefreshRateConfigs::AllRefreshRatesMapType;
65 using RefreshRate = RefreshRateConfigs::RefreshRate;
73 std::string RefreshRateConfigs::layerVoteTypeString(LayerVoteType vote) { in layerVoteTypeString()
92 std::string RefreshRateConfigs::Policy::toString() const { in toString()
99 std::pair<nsecs_t, nsecs_t> RefreshRateConfigs::getDisplayFrames(nsecs_t layerPeriod, in getDisplayFrames()
111 bool RefreshRateConfigs::isVoteAllowed(const LayerRequirement& layer, in isVoteAllowed()
137 float RefreshRateConfigs::calculateLayerScoreLocked(const LayerRequirement& layer, in calculateLayerScoreLocked()
221 RefreshRate RefreshRateConfigs::getBestRefreshRate(const std::vector<LayerRequirement>& layers, in getBestRefreshRate()
243 std::optional<RefreshRate> RefreshRateConfigs::getCachedBestRefreshRate( in getCachedBestRefreshRate()
260 RefreshRate RefreshRateConfigs::getBestRefreshRateLocked( in getBestRefreshRateLocked()
476 std::unordered_map<uid_t, std::vector<const RefreshRateConfigs::LayerRequirement*>>
477 groupLayersByUid(const std::vector<RefreshRateConfigs::LayerRequirement>& layers) { in groupLayersByUid()
478 std::unordered_map<uid_t, std::vector<const RefreshRateConfigs::LayerRequirement*>> layersByUid; in groupLayersByUid()
481 std::vector<const RefreshRateConfigs::LayerRequirement*>()); in groupLayersByUid()
491 if (layer->vote == RefreshRateConfigs::LayerVoteType::Max || in groupLayersByUid()
492 layer->vote == RefreshRateConfigs::LayerVoteType::Heuristic) { in groupLayersByUid()
519 RefreshRateConfigs::UidToFrameRateOverride RefreshRateConfigs::getFrameRateOverrides( in getFrameRateOverrides()
585 const RefreshRate* RefreshRateConfigs::getBestRefreshRate(Iter begin, Iter end) const { in getBestRefreshRate()
604 std::optional<Fps> RefreshRateConfigs::onKernelTimerChanged( in onKernelTimerChanged()
620 const RefreshRate& RefreshRateConfigs::getMinRefreshRateByPolicyLocked() const { in getMinRefreshRateByPolicyLocked()
633 RefreshRate RefreshRateConfigs::getMaxRefreshRateByPolicy() const { in getMaxRefreshRateByPolicy()
638 const RefreshRate& RefreshRateConfigs::getMaxRefreshRateByPolicyLocked() const { in getMaxRefreshRateByPolicyLocked()
652 RefreshRate RefreshRateConfigs::getCurrentRefreshRate() const { in getCurrentRefreshRate()
657 RefreshRate RefreshRateConfigs::getCurrentRefreshRateByPolicy() const { in getCurrentRefreshRateByPolicy()
662 const RefreshRate& RefreshRateConfigs::getCurrentRefreshRateByPolicyLocked() const { in getCurrentRefreshRateByPolicyLocked()
670 void RefreshRateConfigs::setCurrentModeId(DisplayModeId modeId) { in setCurrentModeId()
680 RefreshRateConfigs::RefreshRateConfigs(const DisplayModes& modes, DisplayModeId currentModeId, in RefreshRateConfigs() function in android::scheduler::RefreshRateConfigs
687 void RefreshRateConfigs::initializeIdleTimer() { in initializeIdleTimer()
707 void RefreshRateConfigs::updateDisplayModes(const DisplayModes& modes, in updateDisplayModes()
753 bool RefreshRateConfigs::isPolicyValidLocked(const Policy& policy) const { in isPolicyValidLocked()
769 status_t RefreshRateConfigs::setDisplayManagerPolicy(const Policy& policy) { in setDisplayManagerPolicy()
785 status_t RefreshRateConfigs::setOverridePolicy(const std::optional<Policy>& policy) { in setOverridePolicy()
800 const RefreshRateConfigs::Policy* RefreshRateConfigs::getCurrentPolicyLocked() const { in getCurrentPolicyLocked()
804 RefreshRateConfigs::Policy RefreshRateConfigs::getCurrentPolicy() const { in getCurrentPolicy()
809 RefreshRateConfigs::Policy RefreshRateConfigs::getDisplayManagerPolicy() const { in getDisplayManagerPolicy()
814 bool RefreshRateConfigs::isModeAllowed(DisplayModeId modeId) const { in isModeAllowed()
824 void RefreshRateConfigs::getSortedRefreshRateListLocked( in getSortedRefreshRateListLocked()
849 void RefreshRateConfigs::constructAvailableRefreshRates() { in constructAvailableRefreshRates()
891 Fps RefreshRateConfigs::findClosestKnownFrameRate(Fps frameRate) const { in findClosestKnownFrameRate()
908 RefreshRateConfigs::KernelIdleTimerAction RefreshRateConfigs::getIdleTimerAction() const { in getIdleTimerAction()
919 return RefreshRateConfigs::KernelIdleTimerAction::TurnOff; in getIdleTimerAction()
924 return RefreshRateConfigs::KernelIdleTimerAction::TurnOn; in getIdleTimerAction()
926 return RefreshRateConfigs::KernelIdleTimerAction::TurnOff; in getIdleTimerAction()
929 return RefreshRateConfigs::KernelIdleTimerAction::TurnOn; in getIdleTimerAction()
932 int RefreshRateConfigs::getFrameRateDivider(Fps displayFrameRate, Fps layerFrameRate) { in getFrameRateDivider()
948 void RefreshRateConfigs::dump(std::string& result) const { in dump()
952 scheduler::RefreshRateConfigs::Policy currentPolicy = *getCurrentPolicyLocked(); in dump()