Home
last modified time | relevance | path

Searched refs:RefreshRateType (Results 1 – 11 of 11) sorted by relevance

/frameworks/native/services/surfaceflinger/tests/unittests/
DRefreshRateConfigsTest.cpp34 using RefreshRateType = RefreshRateConfigs::RefreshRateType; typedef
81 const auto& powerSavingRate = rates.find(RefreshRateType::POWER_SAVING); in TEST_F()
83 ASSERT_EQ(rates.end(), rates.find(RefreshRateType::PERFORMANCE)); in TEST_F()
84 ASSERT_EQ(rates.end(), rates.find(RefreshRateType::DEFAULT)); in TEST_F()
90 ASSERT_TRUE(mConfigs.getRefreshRate(RefreshRateType::POWER_SAVING)); in TEST_F()
91 assertRatesEqual(expectedConfig, *mConfigs.getRefreshRate(RefreshRateType::POWER_SAVING)); in TEST_F()
92 ASSERT_FALSE(mConfigs.getRefreshRate(RefreshRateType::PERFORMANCE)); in TEST_F()
93 ASSERT_FALSE(mConfigs.getRefreshRate(RefreshRateType::DEFAULT)); in TEST_F()
109 const auto& powerSavingRate = rates.find(RefreshRateType::POWER_SAVING); in TEST_F()
110 const auto& defaultRate = rates.find(RefreshRateType::DEFAULT); in TEST_F()
[all …]
DFakePhaseOffsets.h37 RefreshRateConfigs::RefreshRateType /*refreshRateType*/) const override { in getOffsetsForRefreshRate() argument
50 void setRefreshRateType(RefreshRateConfigs::RefreshRateType /*refreshRateType*/) override {} in setRefreshRateType() argument
/frameworks/native/services/surfaceflinger/Scheduler/
DRefreshRateConfigs.h40 enum class RefreshRateType { POWER_SAVING, DEFAULT, PERFORMANCE }; enum
56 const std::map<RefreshRateType, std::shared_ptr<RefreshRate>>& getRefreshRates() const { in getRefreshRates()
59 std::shared_ptr<RefreshRate> getRefreshRate(RefreshRateType type) const { in getRefreshRate()
67 RefreshRateType getRefreshRateType(hwc2_config_t id) const { in getRefreshRateType()
74 return RefreshRateType::DEFAULT; in getRefreshRateType()
81 mRefreshRates.emplace(RefreshRateType::POWER_SAVING, in populate()
108 mRefreshRates.emplace(RefreshRateType::DEFAULT, in populate()
125 mRefreshRates.emplace(RefreshRateType::PERFORMANCE, in populate()
134 std::map<RefreshRateType, std::shared_ptr<RefreshRate>> mRefreshRates;
DPhaseOffsets.h46 RefreshRateConfigs::RefreshRateType refreshRateType) const = 0;
48 virtual void setRefreshRateType(RefreshRateConfigs::RefreshRateType refreshRateType) = 0;
63 RefreshRateConfigs::RefreshRateType refreshRateType) const override;
72 void setRefreshRateType(RefreshRateConfigs::RefreshRateType refreshRateType) override { in setRefreshRateType()
85 std::atomic<RefreshRateConfigs::RefreshRateType> mRefreshRateType =
86 RefreshRateConfigs::RefreshRateType::DEFAULT;
DScheduler.cpp322 RefreshRateType refreshRateType = (windowType == InputWindowInfo::TYPE_WALLPAPER) in registerLayer()
323 ? RefreshRateType::DEFAULT in registerLayer()
324 : RefreshRateType::PERFORMANCE; in registerLayer()
349 RefreshRateType newRefreshRateType; in updateFpsBasedOnContent()
454 RefreshRateType newRefreshRateType; in timerChangeRefreshRate()
472 RefreshRateType newRefreshRateType; in touchChangeRefreshRate()
492 Scheduler::RefreshRateType Scheduler::calculateRefreshRateType() { in calculateRefreshRateType()
495 return RefreshRateType::DEFAULT; in calculateRefreshRateType()
500 return RefreshRateType::PERFORMANCE; in calculateRefreshRateType()
505 return RefreshRateType::DEFAULT; in calculateRefreshRateType()
[all …]
DScheduler.h51 using RefreshRateType = scheduler::RefreshRateConfigs::RefreshRateType; variable
52 using ChangeRefreshRateCallback = std::function<void(RefreshRateType, ConfigEvent)>;
223 RefreshRateType calculateRefreshRateType() REQUIRES(mFeatureStateLock);
225 void changeRefreshRate(RefreshRateType refreshRateType, ConfigEvent configEvent);
289 RefreshRateType mRefreshRateType GUARDED_BY(mFeatureStateLock);
DPhaseOffsets.cpp101 android::scheduler::RefreshRateConfigs::RefreshRateType refreshRateType) const { in getOffsetsForRefreshRate()
103 case RefreshRateConfigs::RefreshRateType::PERFORMANCE: in getOffsetsForRefreshRate()
/frameworks/native/services/surfaceflinger/
DRefreshRateOverlay.cpp23 using RefreshRateType = scheduler::RefreshRateConfigs::RefreshRateType; typedef
54 void RefreshRateOverlay::changeRefreshRate(RefreshRateType type) { in changeRefreshRate()
55 const half3& color = (type == RefreshRateType::PERFORMANCE) ? GREEN : RED; in changeRefreshRate()
DRefreshRateOverlay.h22 using RefreshRateType = scheduler::RefreshRateConfigs::RefreshRateType; variable
28 void changeRefreshRate(RefreshRateType type);
DSurfaceFlinger.h494 using RefreshRateType = scheduler::RefreshRateConfigs::RefreshRateType; variable
497 RefreshRateType type;
803 void setRefreshRateTo(RefreshRateType, Scheduler::ConfigEvent event) REQUIRES(mStateLock);
DSurfaceFlinger.cpp568 mRefreshRateConfigs.getRefreshRate(RefreshRateType::PERFORMANCE); in bootFinished()
571 setRefreshRateTo(RefreshRateType::PERFORMANCE, Scheduler::ConfigEvent::None); in bootFinished()
573 setRefreshRateTo(RefreshRateType::DEFAULT, Scheduler::ConfigEvent::None); in bootFinished()
710 [this](RefreshRateType type, Scheduler::ConfigEvent event) { in init()
1472 void SurfaceFlinger::setRefreshRateTo(RefreshRateType refreshRate, Scheduler::ConfigEvent event) { in setRefreshRateTo()
5485 RefreshRateType type; in onTransact()