Home
last modified time | relevance | path

Searched refs:HWConfigId (Results 1 – 18 of 18) sorted by relevance

/frameworks/native/services/surfaceflinger/DisplayHardware/
DDisplayMode.h63 explicit Builder(hal::HWConfigId id) : mDisplayMode(new DisplayMode(id)) {} in Builder()
137 hal::HWConfigId getHwcId() const { return mHwcId; } in getHwcId()
170 explicit DisplayMode(hal::HWConfigId id) : mHwcId(id) {} in DisplayMode()
172 const hal::HWConfigId mHwcId;
DHWComposer.h100 hal::HWConfigId hwcId;
243 virtual ftl::Expected<hal::HWConfigId, status_t> getActiveMode(PhysicalDisplayId) const = 0;
254 virtual status_t setActiveModeWithConstraints(PhysicalDisplayId, hal::HWConfigId,
294 virtual status_t setBootDisplayMode(PhysicalDisplayId, hal::HWConfigId) = 0;
296 virtual std::optional<hal::HWConfigId> getPreferredBootDisplayMode(PhysicalDisplayId) = 0;
433 ftl::Expected<hal::HWConfigId, status_t> getActiveMode(PhysicalDisplayId) const override;
445 status_t setActiveModeWithConstraints(PhysicalDisplayId, hal::HWConfigId,
456 status_t setBootDisplayMode(PhysicalDisplayId, hal::HWConfigId) override;
458 std::optional<hal::HWConfigId> getPreferredBootDisplayMode(PhysicalDisplayId) override;
527 int32_t getAttribute(hal::HWDisplayId hwcDisplayId, hal::HWConfigId configId,
DHWC2.h168 hal::HWConfigId configId, const hal::VsyncPeriodChangeConstraints& constraints,
170 [[nodiscard]] virtual hal::Error setBootDisplayConfig(hal::HWConfigId configId) = 0;
173 hal::HWConfigId* configId) const = 0;
251 hal::Error setActiveConfigWithConstraints(hal::HWConfigId configId,
254 hal::Error setBootDisplayConfig(hal::HWConfigId configId) override;
256 hal::Error getPreferredBootDisplayConfig(hal::HWConfigId* configId) const override;
DHWComposer.cpp242 int32_t HWComposer::getAttribute(hal::HWDisplayId hwcDisplayId, hal::HWConfigId configId, in getAttribute()
291 auto hwcMode = HWCDisplayMode{.hwcId = static_cast<hal::HWConfigId>(config.configId), in getModesFromDisplayConfigurations()
315 std::vector<hal::HWConfigId> configIds; in getModesFromLegacyDisplayConfigs()
344 ftl::Expected<hal::HWConfigId, status_t> HWComposer::getActiveMode( in getActiveMode()
349 hal::HWConfigId configId; in getActiveMode()
671 PhysicalDisplayId displayId, hal::HWConfigId hwcModeId, in setActiveModeWithConstraints()
827 hal::HWConfigId displayModeId) { in setBootDisplayMode()
853 std::optional<hal::HWConfigId> HWComposer::getPreferredBootDisplayMode( in getPreferredBootDisplayMode()
856 hal::HWConfigId displayModeId; in getPreferredBootDisplayMode()
DHWC2.cpp427 Error Display::setActiveConfigWithConstraints(hal::HWConfigId configId, in setActiveConfigWithConstraints()
569 Error Display::setBootDisplayConfig(hal::HWConfigId configId) { in setBootDisplayConfig()
579 Error Display::getPreferredBootDisplayConfig(hal::HWConfigId* configId) const { in getPreferredBootDisplayConfig()
DHal.h65 using HWConfigId = V2_1::Config; variable
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DMockHWComposer.h101 MOCK_CONST_METHOD1(getActiveMode, ftl::Expected<hal::HWConfigId, status_t>(PhysicalDisplayId));
109 status_t(PhysicalDisplayId, hal::HWConfigId,
112 MOCK_METHOD2(setBootDisplayMode, status_t(PhysicalDisplayId, hal::HWConfigId));
114 MOCK_METHOD1(getPreferredBootDisplayMode, std::optional<hal::HWConfigId>(PhysicalDisplayId));
/frameworks/native/services/surfaceflinger/Display/
DDisplaySnapshot.h42 std::optional<DisplayModeId> translateModeId(hal::HWConfigId) const;
DDisplaySnapshot.cpp39 std::optional<DisplayModeId> DisplaySnapshot::translateModeId(hal::HWConfigId hwcId) const { in translateModeId()
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/
DMockHWC2.h87 (hal::HWConfigId, const hal::VsyncPeriodChangeConstraints &,
90 MOCK_METHOD(hal::Error, setBootDisplayConfig, (hal::HWConfigId), (override));
92 MOCK_METHOD(hal::Error, getPreferredBootDisplayConfig, (hal::HWConfigId *), (const, override));
DMockDisplayMode.h27 return DisplayMode::Builder(hal::HWConfigId(ftl::to_underlying(modeId)))
/frameworks/native/services/surfaceflinger/tests/unittests/
DHWComposerTest.cpp152 constexpr hal::HWConfigId kConfigId = 42; in TEST_F()
162 constexpr hal::HWConfigId kConfigId = 42; in TEST_F()
210 .WillRepeatedly(DoAll(SetArgPointee<1>(std::vector<hal::HWConfigId>{kConfigId}), in TEST_F()
254 constexpr hal::HWConfigId kConfigId = 42; in TEST_F()
302 .WillRepeatedly(DoAll(SetArgPointee<1>(std::vector<hal::HWConfigId>{kConfigId}), in TEST_F()
344 constexpr hal::HWConfigId kConfigId = 42; in TEST_F()
DEventThreadTest.cpp733 const auto mode = DisplayMode::Builder(hal::HWConfigId(0)) in TEST_F()
747 const auto mode = DisplayMode::Builder(hal::HWConfigId(0)) in TEST_F()
761 const auto mode = DisplayMode::Builder(hal::HWConfigId(0)) in TEST_F()
778 const auto mode = DisplayMode::Builder(hal::HWConfigId(0)) in TEST_F()
DTestableSurfaceFlinger.h809 static constexpr hal::HWConfigId DEFAULT_ACTIVE_CONFIG = 0;
840 auto& setActiveConfig(hal::HWConfigId config) { in setActiveConfig()
882 DoAll(SetArgPointee<1>(std::vector<hal::HWConfigId>{mActiveConfig}), in inject()
941 hal::HWConfigId mActiveConfig = DEFAULT_ACTIVE_CONFIG;
DDisplayModeControllerTest.cpp102 const hal::HWConfigId hwcModeId = request.mode.modePtr->getHwcId(); in expectModeSet()
DDisplayTransactionTestHelpers.h349 static constexpr hal::HWConfigId HWC_ACTIVE_CONFIG_ID = 2001;
420 .WillRepeatedly(DoAll(SetArgPointee<1>(std::vector<hal::HWConfigId>{
DSurfaceFlinger_DisplayModeSwitching.cpp34 static_cast<hal::HWConfigId>( \
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp3421 std::optional<hal::HWConfigId> activeModeHwcIdOpt; in loadDisplayModes()