Lines Matching refs:RefreshRate
58 class RefreshRate {
67 RefreshRate(DisplayModeId modeId, DisplayModePtr mode, Fps fps, ConstructorTag) in RefreshRate() function
83 bool operator!=(const RefreshRate& other) const {
87 bool operator<(const RefreshRate& other) const {
91 bool operator==(const RefreshRate& other) const { return !(*this != other); }
94 friend std::ostream& operator<<(std::ostream& os, const RefreshRate& refreshRate) {
109 std::unordered_map<DisplayModeId, std::unique_ptr<const RefreshRate>>;
264 RefreshRate getBestRefreshRate(const std::vector<LayerRequirement>& layers,
279 RefreshRate getMaxRefreshRateByPolicy() const EXCLUDES(mLock);
282 RefreshRate getCurrentRefreshRate() const EXCLUDES(mLock);
286 RefreshRate getCurrentRefreshRateByPolicy() const;
291 RefreshRate getRefreshRateFromModeId(DisplayModeId modeId) const EXCLUDES(mLock) { in getRefreshRateFromModeId()
363 const std::function<bool(const RefreshRate&)>& shouldAddRefreshRate,
364 std::vector<const RefreshRate*>* outRefreshRates) REQUIRES(mLock);
366 std::optional<RefreshRate> getCachedBestRefreshRate(const std::vector<LayerRequirement>& layers,
371 RefreshRate getBestRefreshRateLocked(const std::vector<LayerRequirement>& layers,
379 const RefreshRate* getBestRefreshRate(Iter begin, Iter end) const;
387 const RefreshRate& getMinRefreshRateByPolicyLocked() const REQUIRES(mLock);
391 const RefreshRate& getMaxRefreshRateByPolicyLocked() const REQUIRES(mLock);
395 const RefreshRate& getCurrentRefreshRateByPolicyLocked() const REQUIRES(mLock);
401 bool isVoteAllowed(const LayerRequirement&, const RefreshRate&) const;
405 float calculateLayerScoreLocked(const LayerRequirement&, const RefreshRate&,
414 std::vector<const RefreshRate*> mPrimaryRefreshRates GUARDED_BY(mLock);
418 std::vector<const RefreshRate*> mAppRequestRefreshRates GUARDED_BY(mLock);
422 const RefreshRate* mCurrentRefreshRate GUARDED_BY(mLock);
431 const RefreshRate* mMinSupportedRefreshRate GUARDED_BY(mLock);
432 const RefreshRate* mMaxSupportedRefreshRate GUARDED_BY(mLock);
447 RefreshRate resultingBestRefreshRate;