Home
last modified time | relevance | path

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

12

/frameworks/native/services/surfaceflinger/DisplayHardware/
DDisplayMode.h41 using DisplayModePtr = std::shared_ptr<const DisplayMode>; variable
44 bool operator<(const DisplayModePtr&, const DisplayModePtr&) = delete;
45 bool operator>(const DisplayModePtr&, const DisplayModePtr&) = delete;
46 bool operator<=(const DisplayModePtr&, const DisplayModePtr&) = delete;
47 bool operator>=(const DisplayModePtr&, const DisplayModePtr&) = delete;
56 using DisplayModes = ftl::SmallMap<DisplayModeId, DisplayModePtr, 3>;
65 DisplayModePtr build() { in build()
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/
DMockDisplayMode.h35 inline DisplayModePtr createDisplayMode(
42 inline DisplayModePtr createDisplayMode(PhysicalDisplayId displayId, DisplayModeId modeId, in createDisplayMode()
47 inline DisplayModePtr createVrrDisplayMode(
56 inline DisplayModePtr cloneForDisplay(PhysicalDisplayId displayId, const DisplayModePtr& modePtr) { in cloneForDisplay()
/frameworks/native/services/surfaceflinger/tests/unittests/
DSurfaceFlinger_ExcludeDolbyVisionTest.cpp29 void injectDisplayModes(std::vector<DisplayModePtr> displayModePtrs) { in injectDisplayModes()
31 for (DisplayModePtr displayMode : displayModePtrs) { in injectDisplayModes()
48 static inline const DisplayModePtr mode1080p60 =
50 static inline const DisplayModePtr mode4k30 =
52 static inline const DisplayModePtr mode4k30NonStandard =
54 static inline const DisplayModePtr mode4k60 =
DDisplayModeControllerTest.cpp128 static inline const ftl::NonNull<DisplayModePtr> kMode60 =
130 static inline const ftl::NonNull<DisplayModePtr> kMode90 =
132 static inline const ftl::NonNull<DisplayModePtr> kMode120 =
DVSyncPredictorTest.cpp71 ftl::NonNull<DisplayModePtr> displayMode(nsecs_t period) { in displayMode()
105 ftl::NonNull<DisplayModePtr> mMode = displayMode(mPeriod);
685 const ftl::NonNull<DisplayModePtr> kMode = in TEST_F()
751 const ftl::NonNull<DisplayModePtr> kMode = in TEST_F()
778 const ftl::NonNull<DisplayModePtr> kMode = in TEST_F()
810 const ftl::NonNull<DisplayModePtr> kMode = in TEST_F()
837 const ftl::NonNull<DisplayModePtr> kMode = in TEST_F()
860 const ftl::NonNull<DisplayModePtr> kMode = in TEST_F()
897 const ftl::NonNull<DisplayModePtr> kMode = in TEST_F()
DVSyncDispatchRealtimeTest.cpp52 void setDisplayModePtr(ftl::NonNull<DisplayModePtr>) final {} in setDisplayModePtr() argument
57 bool isCurrentMode(const ftl::NonNull<DisplayModePtr>&) const final { return false; }; in isCurrentMode()
DSurfaceFlinger_DisplayModeSwitching.cpp128 static inline const DisplayModePtr kMode60 = createDisplayMode(kModeId60, 60_Hz, 0);
129 static inline const DisplayModePtr kMode90 = createDisplayMode(kModeId90, 90_Hz, 1);
130 static inline const DisplayModePtr kMode120 = createDisplayMode(kModeId120, 120_Hz, 2);
133 static inline const DisplayModePtr kMode90_4K =
DRefreshRateSelectorTest.cpp73 ftl::NonNull<DisplayModePtr> getMinSupportedRefreshRate() const { in getMinSupportedRefreshRate()
78 ftl::NonNull<DisplayModePtr> getMaxSupportedRefreshRate() const { in getMaxSupportedRefreshRate()
83 ftl::NonNull<DisplayModePtr> getMinRefreshRateByPolicy() const { in getMinRefreshRateByPolicy()
88 ftl::NonNull<DisplayModePtr> getMaxRefreshRateByPolicy() const { in getMaxRefreshRateByPolicy()
167 static inline const ftl::NonNull<DisplayModePtr> kMode60 =
169 static inline const ftl::NonNull<DisplayModePtr> kMode60Frac =
171 static inline const ftl::NonNull<DisplayModePtr> kMode90 =
173 static inline const ftl::NonNull<DisplayModePtr> kMode90_G1 =
175 static inline const ftl::NonNull<DisplayModePtr> kMode90_4K =
177 static inline const ftl::NonNull<DisplayModePtr> kMode72 =
[all …]
DSchedulerTest.cpp81 static inline const ftl::NonNull<DisplayModePtr> kDisplay1Mode60 =
83 static inline const ftl::NonNull<DisplayModePtr> kDisplay1Mode120 =
88 static inline const ftl::NonNull<DisplayModePtr> kDisplay2Mode60 =
90 static inline const ftl::NonNull<DisplayModePtr> kDisplay2Mode120 =
95 static inline const ftl::NonNull<DisplayModePtr> kDisplay3Mode60 =
577 const ftl::NonNull<DisplayModePtr> kMode = ftl::as_non_null( in TEST_F()
/frameworks/native/services/surfaceflinger/Scheduler/
DVSyncReactor.h49 void onDisplayModeChanged(ftl::NonNull<DisplayModePtr>, bool force) final;
61 void startPeriodTransitionInternal(ftl::NonNull<DisplayModePtr>) REQUIRES(mMutex);
78 DisplayModePtr mModePtrTransitioningTo GUARDED_BY(mMutex);
DVSyncTracker.h77 virtual bool isCurrentMode(const ftl::NonNull<DisplayModePtr>& modePtr) const = 0;
99 virtual void setDisplayModePtr(ftl::NonNull<DisplayModePtr>) = 0;
DVsyncSchedule.h60 VsyncSchedule(ftl::NonNull<DisplayModePtr> modePtr, FeatureFlags, RequestHardwareVsync);
76 void onDisplayModeChanged(ftl::NonNull<DisplayModePtr>, bool force);
130 static TrackerPtr createTracker(ftl::NonNull<DisplayModePtr> modePtr);
DVSyncPredictor.h43 VSyncPredictor(std::unique_ptr<Clock>, ftl::NonNull<DisplayModePtr> modePtr, size_t historySize,
69 void setDisplayModePtr(ftl::NonNull<DisplayModePtr>) final EXCLUDES(mMutex);
71 bool isCurrentMode(const ftl::NonNull<DisplayModePtr>& modePtr) const EXCLUDES(mMutex) { in isCurrentMode()
154 ftl::NonNull<DisplayModePtr> mDisplayModePtr GUARDED_BY(mMutex);
DVsyncSchedule.cpp59 VsyncSchedule::VsyncSchedule(ftl::NonNull<DisplayModePtr> modePtr, FeatureFlags features, in VsyncSchedule()
117 VsyncSchedule::TrackerPtr VsyncSchedule::createTracker(ftl::NonNull<DisplayModePtr> modePtr) { in createTracker()
153 void VsyncSchedule::onDisplayModeChanged(ftl::NonNull<DisplayModePtr> modePtr, bool force) { in onDisplayModeChanged()
DISchedulerCallback.h33 virtual void onExpectedPresentTimePosted(TimePoint, ftl::NonNull<DisplayModePtr>,
DVsyncController.h70 virtual void onDisplayModeChanged(ftl::NonNull<DisplayModePtr>, bool force) = 0;
DVSyncReactor.cpp123 void VSyncReactor::startPeriodTransitionInternal(ftl::NonNull<DisplayModePtr> modePtr) { in startPeriodTransitionInternal()
138 void VSyncReactor::onDisplayModeChanged(ftl::NonNull<DisplayModePtr> modePtr, bool force) { in onDisplayModeChanged()
DRefreshRateSelector.cpp1088 .transform([](const DisplayModePtr& modePtr) { in onKernelTimerChanged()
1097 const DisplayModePtr& min = mMinRefreshRateModeIt->second; in onKernelTimerChanged()
1105 const DisplayModePtr& RefreshRateSelector::getMinRefreshRateByPolicyLocked() const { in getMinRefreshRateByPolicyLocked()
1121 const DisplayModePtr& RefreshRateSelector::getMaxRefreshRateByPolicyLocked(int anchorGroup) const { in getMaxRefreshRateByPolicyLocked()
1122 const ftl::NonNull<DisplayModePtr>* maxByAnchor = &mPrimaryFrameRates.back().modePtr; in getMaxRefreshRateByPolicyLocked()
1123 const ftl::NonNull<DisplayModePtr>* max = &mPrimaryFrameRates.back().modePtr; in getMaxRefreshRateByPolicyLocked()
1540 const DisplayModePtr& minByPolicy = getMinRefreshRateByPolicyLocked(); in getIdleTimerAction()
1549 const DisplayModePtr& maxByPolicy = in getIdleTimerAction()
DVSyncPredictor.cpp49 int numVsyncsPerFrame(const ftl::NonNull<DisplayModePtr>& displayModePtr) { in numVsyncsPerFrame()
59 VSyncPredictor::VSyncPredictor(std::unique_ptr<Clock> clock, ftl::NonNull<DisplayModePtr> modePtr, in VSyncPredictor()
405 void VSyncPredictor::setDisplayModePtr(ftl::NonNull<DisplayModePtr> modePtr) { in setDisplayModePtr()
DRefreshRateSelector.h449 const DisplayModePtr& getMinRefreshRateByPolicyLocked() const REQUIRES(mLock);
453 const DisplayModePtr& getMaxRefreshRateByPolicyLocked(int anchorGroup) const REQUIRES(mLock);
DScheduler.h209 DisplayModePtr modePtr = nullptr) EXCLUDES(mDisplayLock) { in EXCLUDES()
375 DisplayModePtr modePtr = nullptr)
/frameworks/native/services/surfaceflinger/tests/unittests/mock/
DMockVSyncTracker.h38 MOCK_METHOD(void, setDisplayModePtr, (ftl::NonNull<DisplayModePtr>), (override));
43 MOCK_METHOD(bool, isCurrentMode, (const ftl::NonNull<DisplayModePtr>&), (const, override));
DMockSchedulerCallback.h31 MOCK_METHOD(void, onExpectedPresentTimePosted, (TimePoint, ftl::NonNull<DisplayModePtr>, Fps),
43 void onExpectedPresentTimePosted(TimePoint, ftl::NonNull<DisplayModePtr>, Fps) override {} in onExpectedPresentTimePosted()
DMockVsyncController.h32 MOCK_METHOD(void, onDisplayModeChanged, (ftl::NonNull<DisplayModePtr>, bool), (override));
/frameworks/native/services/surfaceflinger/Scheduler/include/scheduler/
DFrameRateMode.h29 ftl::NonNull<DisplayModePtr> modePtr;

12