Home
last modified time | relevance | path

Searched refs:DisplayModePtr (Results 1 – 23 of 23) sorted by relevance

/frameworks/native/services/surfaceflinger/DisplayHardware/
DDisplayMode.h40 using DisplayModePtr = std::shared_ptr<const DisplayMode>; variable
43 bool operator<(const DisplayModePtr&, const DisplayModePtr&) = delete;
44 bool operator>(const DisplayModePtr&, const DisplayModePtr&) = delete;
45 bool operator<=(const DisplayModePtr&, const DisplayModePtr&) = delete;
46 bool operator>=(const DisplayModePtr&, const DisplayModePtr&) = delete;
50 using DisplayModes = ftl::SmallMap<DisplayModeId, DisplayModePtr, 3>;
59 DisplayModePtr build() { in build()
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/
DMockDisplayMode.h23 inline DisplayModePtr createDisplayMode(
36 inline DisplayModePtr cloneForDisplay(PhysicalDisplayId displayId, const DisplayModePtr& modePtr) { in cloneForDisplay()
/frameworks/native/services/surfaceflinger/Scheduler/
DRefreshRateConfigs.h195 std::pair<DisplayModePtr, GlobalSignals> getBestRefreshRate(
208 DisplayModePtr getMaxRefreshRateByPolicy() const EXCLUDES(mLock);
211 DisplayModePtr getActiveMode() const EXCLUDES(mLock);
335 std::pair<DisplayModePtr, GlobalSignals> getBestRefreshRateLocked(
344 const DisplayModePtr& getMinRefreshRateByPolicyLocked() const REQUIRES(mLock);
348 const DisplayModePtr& getMaxRefreshRateByPolicyLocked(int anchorGroup) const REQUIRES(mLock);
349 const DisplayModePtr& getMaxRefreshRateByPolicyLocked() const REQUIRES(mLock) { in getMaxRefreshRateByPolicyLocked()
402 std::pair<DisplayModePtr, GlobalSignals> result;
DScheduler.h89 virtual void requestDisplayMode(DisplayModePtr, DisplayModeEvent) = 0;
139 void onPrimaryDisplayModeChanged(ConnectionHandle, DisplayModePtr) EXCLUDES(mPolicyLock);
140 void onNonPrimaryDisplayModeChanged(ConnectionHandle, DisplayModePtr);
204 DisplayModePtr getPreferredDisplayMode();
271 std::pair<DisplayModePtr, GlobalSignals> chooseDisplayMode() REQUIRES(mPolicyLock);
331 DisplayModePtr mode;
335 DisplayModePtr mode;
DRefreshRateConfigs.cpp51 const DisplayModePtr& getMaxScoreRefreshRate(Iterator begin, Iterator end) { in getMaxScoreRefreshRate()
262 -> std::pair<DisplayModePtr, GlobalSignals> { in getBestRefreshRate()
277 -> std::pair<DisplayModePtr, GlobalSignals> { in getBestRefreshRateLocked()
340 const DisplayModePtr& max = getMaxRefreshRateByPolicyLocked(anchorGroup); in getBestRefreshRateLocked()
352 const DisplayModePtr& min = getMinRefreshRateByPolicyLocked(); in getBestRefreshRateLocked()
358 const DisplayModePtr& max = getMaxRefreshRateByPolicyLocked(anchorGroup); in getBestRefreshRateLocked()
365 const DisplayModePtr& min = getMinRefreshRateByPolicyLocked(); in getBestRefreshRateLocked()
516 const DisplayModePtr& bestRefreshRate = maxVoteLayers > 0 in getBestRefreshRateLocked()
525 const DisplayModePtr& max = getMaxRefreshRateByPolicyLocked(anchorGroup); in getBestRefreshRateLocked()
537 const DisplayModePtr& touchRefreshRate = getMaxRefreshRateByPolicyLocked(anchorGroup); in getBestRefreshRateLocked()
[all …]
DScheduler.cpp285 void Scheduler::onPrimaryDisplayModeChanged(ConnectionHandle handle, DisplayModePtr mode) { in onPrimaryDisplayModeChanged()
327 void Scheduler::onNonPrimaryDisplayModeChanged(ConnectionHandle handle, DisplayModePtr mode) { in onNonPrimaryDisplayModeChanged()
668 DisplayModePtr newMode; in applyPolicy()
707 auto Scheduler::chooseDisplayMode() -> std::pair<DisplayModePtr, GlobalSignals> { in chooseDisplayMode()
727 DisplayModePtr Scheduler::getPreferredDisplayMode() { in getPreferredDisplayMode()
DEventThread.h138 virtual void onModeChanged(DisplayModePtr) = 0;
191 void onModeChanged(DisplayModePtr) override;
DEventThread.cpp127 DisplayEventReceiver::Event makeModeChanged(DisplayModePtr mode) { in makeModeChanged()
410 void EventThread::onModeChanged(DisplayModePtr mode) { in onModeChanged()
/frameworks/native/services/surfaceflinger/tests/unittests/mock/
DMockSchedulerCallback.h27 MOCK_METHOD(void, requestDisplayMode, (DisplayModePtr, DisplayModeEvent), (override));
34 void requestDisplayMode(DisplayModePtr, DisplayModeEvent) override {} in requestDisplayMode()
DMockEventThread.h36 MOCK_METHOD1(onModeChanged, void(DisplayModePtr));
/frameworks/native/services/surfaceflinger/
DDisplayDevice.h196 const DisplayModePtr& getActiveMode() const;
199 DisplayModePtr mode;
228 DisplayModePtr getMode(DisplayModeId) const;
286 DisplayModePtr mActiveMode;
321 DisplayModePtr activeMode;
DDisplayDevice.cpp232 const DisplayModePtr& DisplayDevice::getActiveMode() const { in getActiveMode()
240 DisplayModePtr DisplayDevice::getMode(DisplayModeId modeId) const { in getMode()
241 const DisplayModePtr nullMode; in getMode()
DSurfaceFlinger.h691 void requestDisplayMode(DisplayModePtr, DisplayModeEvent) override;
990 std::pair<DisplayModes, DisplayModePtr> loadDisplayModes(PhysicalDisplayId) const
DSurfaceFlinger.cpp2687 std::pair<DisplayModes, DisplayModePtr> SurfaceFlinger::loadDisplayModes( in loadDisplayModes()
2747 const DisplayModePtr activeMode = in loadDisplayModes()
3362 void SurfaceFlinger::requestDisplayMode(DisplayModePtr mode, DisplayModeEvent event) { in requestDisplayMode()
6977 const DisplayModePtr preferredDisplayMode = [&] { in applyRefreshRateConfigsPolicy()
/frameworks/native/services/surfaceflinger/tests/unittests/
DDisplayDevice_InitiateModeChange.cpp58 static inline const DisplayModePtr kMode60 = createDisplayMode(kModeId60, 60_Hz);
59 static inline const DisplayModePtr kMode90 = createDisplayMode(kModeId90, 90_Hz);
60 static inline const DisplayModePtr kMode120 = createDisplayMode(kModeId120, 120_Hz);
DSurfaceFlinger_DisplayModeSwitching.cpp68 static inline const DisplayModePtr kMode60 = createDisplayMode(kModeId60, 60_Hz, 0);
69 static inline const DisplayModePtr kMode90 = createDisplayMode(kModeId90, 90_Hz, 1);
70 static inline const DisplayModePtr kMode120 = createDisplayMode(kModeId120, 120_Hz, 2);
73 static inline const DisplayModePtr kMode90_4K =
DRefreshRateConfigsTest.cpp44 DisplayModePtr getMinSupportedRefreshRate() const { in getMinSupportedRefreshRate()
49 DisplayModePtr getMaxSupportedRefreshRate() const { in getMaxSupportedRefreshRate()
54 DisplayModePtr getMinRefreshRateByPolicy() const { in getMinRefreshRateByPolicy()
69 DisplayModePtr getBestRefreshRate(const std::vector<LayerRequirement>& layers = {}, in getBestRefreshRate()
92 static inline const DisplayModePtr kMode60 = createDisplayMode(kModeId60, 60_Hz);
93 static inline const DisplayModePtr kMode60Frac = createDisplayMode(kModeId60Frac, 59.94_Hz);
94 static inline const DisplayModePtr kMode90 = createDisplayMode(kModeId90, 90_Hz);
95 static inline const DisplayModePtr kMode90_G1 = createDisplayMode(kModeId90, 90_Hz, 1);
96 static inline const DisplayModePtr kMode90_4K =
98 static inline const DisplayModePtr kMode72 = createDisplayMode(kModeId72, 72_Hz);
[all …]
DSchedulerTest.cpp61 static inline const DisplayModePtr kMode60 = createDisplayMode(DisplayModeId(0), 60_Hz);
62 static inline const DisplayModePtr kMode120 = createDisplayMode(DisplayModeId(1), 120_Hz);
DTestableScheduler.h106 void onNonPrimaryDisplayModeChanged(ConnectionHandle handle, DisplayModePtr mode) { in onNonPrimaryDisplayModeChanged()
DSurfaceFlinger_SetupNewDisplayDeviceInternalTest.cpp242 DisplayModePtr activeMode = DisplayMode::Builder(Case::Display::HWC_ACTIVE_CONFIG_ID) in setupNewDisplayDeviceInternalTest()
DDisplayTransactionTestHelpers.h747 inline DisplayModePtr createDisplayMode(DisplayModeId modeId, Fps refreshRate, int32_t group = 0,
DTestableSurfaceFlinger.h833 DisplayModePtr mode = in inject()
/frameworks/native/services/surfaceflinger/fuzzer/
Dsurfaceflinger_fuzzers_utils.h269 void onNonPrimaryDisplayModeChanged(ConnectionHandle handle, DisplayModePtr mode) { in onNonPrimaryDisplayModeChanged()
813 void requestDisplayMode(DisplayModePtr, DisplayModeEvent) override {} in requestDisplayMode() argument