Home
last modified time | relevance | path

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

/frameworks/native/services/surfaceflinger/Scheduler/
DPhaseOffsets.cpp28 using RefreshRateType = RefreshRateConfigs::RefreshRateType; typedef
78 defaultOffsets.early = {RefreshRateType::DEFAULT, in PhaseOffsets()
81 defaultOffsets.earlyGl = {RefreshRateType::DEFAULT, in PhaseOffsets()
84 defaultOffsets.late = {RefreshRateType::DEFAULT, sfVsyncPhaseOffsetNs, vsyncPhaseOffsetNs}; in PhaseOffsets()
86 highFpsOffsets.early = {RefreshRateType::PERFORMANCE, in PhaseOffsets()
91 highFpsOffsets.earlyGl = {RefreshRateType::PERFORMANCE, in PhaseOffsets()
96 highFpsOffsets.late = {RefreshRateType::PERFORMANCE, highFpsLateSfOffsetNs, in PhaseOffsets()
99 mOffsets.insert({RefreshRateType::DEFAULT, defaultOffsets}); in PhaseOffsets()
100 mOffsets.insert({RefreshRateType::PERFORMANCE, highFpsOffsets}); in PhaseOffsets()
108 android::scheduler::RefreshRateConfigs::RefreshRateType refreshRateType) const { in getOffsetsForRefreshRate()
DRefreshRateConfigs.h39 enum class RefreshRateType { DEFAULT, PERFORMANCE }; enum
62 const std::map<RefreshRateType, RefreshRate>& getRefreshRateMap() const { in getRefreshRateMap()
67 const RefreshRate& getRefreshRateFromType(RefreshRateType type) const { in getRefreshRateFromType()
77 std::pair<RefreshRateType, const RefreshRate&> getCurrentRefreshRate() const { in getCurrentRefreshRate()
87 return {RefreshRateType::DEFAULT, mRefreshRates[currentConfig]}; in getCurrentRefreshRate()
95 RefreshRateType getRefreshRateTypeFromHwcConfigId(hwc2_config_t hwcId) const { in getRefreshRateTypeFromHwcConfigId()
96 if (!mRefreshRateSwitchingSupported) return RefreshRateType::DEFAULT; in getRefreshRateTypeFromHwcConfigId()
104 return RefreshRateType::DEFAULT; in getRefreshRateTypeFromHwcConfigId()
185 mRefreshRateMap[RefreshRateType::DEFAULT] = mRefreshRates[defaultAndPerfConfigs->first]; in init()
186 mRefreshRateMap[RefreshRateType::PERFORMANCE] = in init()
[all …]
DPhaseOffsets.h47 RefreshRateConfigs::RefreshRateType refreshRateType) const = 0;
49 virtual void setRefreshRateType(RefreshRateConfigs::RefreshRateType refreshRateType) = 0;
64 RefreshRateConfigs::RefreshRateType refreshRateType) const override;
73 void setRefreshRateType(RefreshRateConfigs::RefreshRateType refreshRateType) override { in setRefreshRateType()
83 std::atomic<RefreshRateConfigs::RefreshRateType> mRefreshRateType =
84 RefreshRateConfigs::RefreshRateType::DEFAULT;
86 std::unordered_map<RefreshRateConfigs::RefreshRateType, Offsets> mOffsets;
DVSyncModulator.cpp29 using RefreshRateType = scheduler::RefreshRateConfigs::RefreshRateType; typedef
35 const Offsets defaultOffsets = {RefreshRateType::DEFAULT, 0, 0}; in VSyncModulator()
151 mOffsets.fpsMode == RefreshRateType::DEFAULT && type == OffsetType::Early); in flushOffsets()
153 mOffsets.fpsMode == RefreshRateType::DEFAULT && type == OffsetType::EarlyGl); in flushOffsets()
155 mOffsets.fpsMode == RefreshRateType::DEFAULT && type == OffsetType::Late); in flushOffsets()
157 mOffsets.fpsMode == RefreshRateType::PERFORMANCE && type == OffsetType::Early); in flushOffsets()
159 mOffsets.fpsMode == RefreshRateType::PERFORMANCE && type == OffsetType::EarlyGl); in flushOffsets()
161 mOffsets.fpsMode == RefreshRateType::PERFORMANCE && type == OffsetType::Late); in flushOffsets()
DScheduler.cpp331 defaultFps = mRefreshRateConfigs.getRefreshRateFromType(RefreshRateType::DEFAULT).fps; in registerLayer()
335 ? RefreshRateType::DEFAULT in registerLayer()
336 : RefreshRateType::PERFORMANCE) in registerLayer()
363 RefreshRateType newRefreshRateType; in updateFpsBasedOnContent()
445 if (refreshRate.first == RefreshRateType::PERFORMANCE) { in resetKernelTimerCallback()
481 if (refreshRate.first != RefreshRateType::PERFORMANCE) { in expiredKernelTimerCallback()
499 RefreshRateType newRefreshRateType; in handleTimerStateChanged()
519 Scheduler::RefreshRateType Scheduler::calculateRefreshRateType() { in calculateRefreshRateType()
521 return RefreshRateType::DEFAULT; in calculateRefreshRateType()
526 return RefreshRateType::DEFAULT; in calculateRefreshRateType()
[all …]
DScheduler.h51 using RefreshRateType = scheduler::RefreshRateConfigs::RefreshRateType; variable
52 using ChangeRefreshRateCallback = std::function<void(RefreshRateType, ConfigEvent)>;
224 RefreshRateType calculateRefreshRateType() REQUIRES(mFeatureStateLock);
226 void changeRefreshRate(RefreshRateType refreshRateType, ConfigEvent configEvent);
296 RefreshRateType mRefreshRateType GUARDED_BY(mFeatureStateLock);
DVSyncModulator.h47 scheduler::RefreshRateConfigs::RefreshRateType fpsMode;
122 Offsets mOffsets GUARDED_BY(mMutex) = {Scheduler::RefreshRateType::DEFAULT, 0, 0};
/frameworks/native/services/surfaceflinger/tests/unittests/
DFakePhaseOffsets.h26 using RefreshRateType = RefreshRateConfigs::RefreshRateType; variable
39 RefreshRateType /*refreshRateType*/) const override { in getOffsetsForRefreshRate() argument
45 return Offsets{{RefreshRateType::DEFAULT, FAKE_PHASE_OFFSET_NS, FAKE_PHASE_OFFSET_NS}, in getCurrentOffsets()
46 {RefreshRateType::DEFAULT, FAKE_PHASE_OFFSET_NS, FAKE_PHASE_OFFSET_NS}, in getCurrentOffsets()
47 {RefreshRateType::DEFAULT, FAKE_PHASE_OFFSET_NS, FAKE_PHASE_OFFSET_NS}}; in getCurrentOffsets()
52 void setRefreshRateType(RefreshRateType /*refreshRateType*/) override {} in setRefreshRateType() argument
DRefreshRateConfigsTest.cpp33 using RefreshRateType = RefreshRateConfigs::RefreshRateType; typedef
90 const auto& defaultRate = rates.find(RefreshRateType::DEFAULT); in TEST_F()
91 const auto& performanceRate = rates.find(RefreshRateType::PERFORMANCE); in TEST_F()
102 refreshRateConfigs->getRefreshRateFromType(RefreshRateType::DEFAULT)); in TEST_F()
104 refreshRateConfigs->getRefreshRateFromType(RefreshRateType::PERFORMANCE)); in TEST_F()
/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.h509 using RefreshRateType = scheduler::RefreshRateConfigs::RefreshRateType; variable
512 RefreshRateType type = RefreshRateType::DEFAULT;
820 void setRefreshRateTo(RefreshRateType, Scheduler::ConfigEvent event) REQUIRES(mStateLock);
DSurfaceFlinger.cpp576 mRefreshRateConfigs->getRefreshRateFromType(RefreshRateType::PERFORMANCE); in bootFinished()
579 setRefreshRateTo(RefreshRateType::PERFORMANCE, Scheduler::ConfigEvent::Changed); in bootFinished()
581 setRefreshRateTo(RefreshRateType::DEFAULT, Scheduler::ConfigEvent::Changed); in bootFinished()
1449 void SurfaceFlinger::setRefreshRateTo(RefreshRateType refreshRate, Scheduler::ConfigEvent event) { in setRefreshRateTo()
3057 [this](RefreshRateType type, Scheduler::ConfigEvent event) { in initScheduler()
5599 RefreshRateType type; in onTransact()
6211 {RefreshRateType::DEFAULT, allowedConfigs[0], Scheduler::ConfigEvent::Changed}); in setAllowedDisplayConfigsInternal()