Searched refs:RefreshRateType (Results 1 – 11 of 11) sorted by relevance
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | RefreshRateConfigsTest.cpp | 34 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 …]
|
D | FakePhaseOffsets.h | 37 RefreshRateConfigs::RefreshRateType /*refreshRateType*/) const override { in getOffsetsForRefreshRate() argument 50 void setRefreshRateType(RefreshRateConfigs::RefreshRateType /*refreshRateType*/) override {} in setRefreshRateType() argument
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | RefreshRateConfigs.h | 40 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;
|
D | PhaseOffsets.h | 46 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;
|
D | Scheduler.cpp | 322 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 …]
|
D | Scheduler.h | 51 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);
|
D | PhaseOffsets.cpp | 101 android::scheduler::RefreshRateConfigs::RefreshRateType refreshRateType) const { in getOffsetsForRefreshRate() 103 case RefreshRateConfigs::RefreshRateType::PERFORMANCE: in getOffsetsForRefreshRate()
|
/frameworks/native/services/surfaceflinger/ |
D | RefreshRateOverlay.cpp | 23 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()
|
D | RefreshRateOverlay.h | 22 using RefreshRateType = scheduler::RefreshRateConfigs::RefreshRateType; variable 28 void changeRefreshRate(RefreshRateType type);
|
D | SurfaceFlinger.h | 494 using RefreshRateType = scheduler::RefreshRateConfigs::RefreshRateType; variable 497 RefreshRateType type; 803 void setRefreshRateTo(RefreshRateType, Scheduler::ConfigEvent event) REQUIRES(mStateLock);
|
D | SurfaceFlinger.cpp | 568 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()
|