Home
last modified time | relevance | path

Searched refs:hwcDisplayId (Results 1 – 7 of 7) sorted by relevance

/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWComposer.cpp39 #define LOG_HWC_DISPLAY_ERROR(hwcDisplayId, msg) \ argument
40 ALOGE("%s failed for HWC display %" PRIu64 ": %s", __FUNCTION__, hwcDisplayId, msg)
86 bool HWComposer::getDisplayIdentificationData(hwc2_display_t hwcDisplayId, uint8_t* outPort, in getDisplayIdentificationData() argument
88 const auto error = mHwcDevice->getDisplayIdentificationData(hwcDisplayId, outPort, outData); in getDisplayIdentificationData()
91 LOG_HWC_DISPLAY_ERROR(hwcDisplayId, to_string(error).c_str()); in getDisplayIdentificationData()
141 std::optional<DisplayIdentificationInfo> HWComposer::onHotplug(hwc2_display_t hwcDisplayId, in onHotplug() argument
145 if (const auto displayId = toPhysicalDisplayId(hwcDisplayId)) { in onHotplug()
149 ALOGE("Ignoring disconnection of invalid HWC display %" PRIu64, hwcDisplayId); in onHotplug()
153 info = onHotplugConnect(hwcDisplayId); in onHotplug()
158 hwcDisplayId == mInternalHwcDisplayId ? "internal" : "external", in onHotplug()
[all …]
DHWComposer.h58 virtual bool getDisplayIdentificationData(hwc2_display_t hwcDisplayId, uint8_t* outPort,
150 virtual std::optional<DisplayIdentificationInfo> onHotplug(hwc2_display_t hwcDisplayId,
153 virtual bool onVsync(hwc2_display_t hwcDisplayId, int64_t timestamp) = 0;
183 virtual std::optional<DisplayId> toPhysicalDisplayId(hwc2_display_t hwcDisplayId) const = 0;
197 bool getDisplayIdentificationData(hwc2_display_t hwcDisplayId, uint8_t* outPort,
283 std::optional<DisplayIdentificationInfo> onHotplug(hwc2_display_t hwcDisplayId,
286 bool onVsync(hwc2_display_t hwcDisplayId, int64_t timestamp) override;
320 std::optional<DisplayId> toPhysicalDisplayId(hwc2_display_t hwcDisplayId) const override;
327 std::optional<DisplayIdentificationInfo> onHotplugConnect(hwc2_display_t hwcDisplayId);
DHWC2.cpp126 Error Device::getDisplayIdentificationData(hwc2_display_t hwcDisplayId, uint8_t* outPort, in getDisplayIdentificationData() argument
128 auto intError = mComposer->getDisplayIdentificationData(hwcDisplayId, outPort, outData); in getDisplayIdentificationData()
DHWC2.h96 Error getDisplayIdentificationData(hwc2_display_t hwcDisplayId, uint8_t* outPort,
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.h478 void onVsyncReceived(int32_t sequenceId, hwc2_display_t hwcDisplayId,
480 void onHotplugReceived(int32_t sequenceId, hwc2_display_t hwcDisplayId,
482 void onRefreshReceived(int32_t sequenceId, hwc2_display_t hwcDisplayId) override;
831 const auto hwcDisplayId = getHwComposer().getInternalHwcDisplayId(); in getInternalDisplayIdLocked() local
832 return hwcDisplayId ? getHwComposer().toPhysicalDisplayId(*hwcDisplayId) : std::nullopt; in getInternalDisplayIdLocked()
985 hwc2_display_t hwcDisplayId; member
DSurfaceFlinger.cpp1430 void SurfaceFlinger::onVsyncReceived(int32_t sequenceId, hwc2_display_t hwcDisplayId, in onVsyncReceived() argument
1440 if (!getHwComposer().onVsync(hwcDisplayId, timestamp)) { in onVsyncReceived()
1444 if (hwcDisplayId != getHwComposer().getInternalHwcDisplayId()) { in onVsyncReceived()
1489 void SurfaceFlinger::onHotplugReceived(int32_t sequenceId, hwc2_display_t hwcDisplayId, in onHotplugReceived() argument
1491 ALOGV("%s(%d, %" PRIu64 ", %s)", __FUNCTION__, sequenceId, hwcDisplayId, in onHotplugReceived()
1505 mPendingHotplugEvents.emplace_back(HotplugEvent{hwcDisplayId, connection}); in onHotplugReceived()
2524 getHwComposer().onHotplug(event.hwcDisplayId, event.connection); in processDisplayHotplugEventsLocked()
4732 const auto hwcDisplayId = getHwComposer().fromPhysicalDisplayId(*displayId); in dumpDisplayIdentificationData() local
4733 if (!hwcDisplayId) { in dumpDisplayIdentificationData()
4739 *hwcDisplayId); in dumpDisplayIdentificationData()
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DDisplayTransactionTest.cpp110 bool hasPhysicalHwcDisplay(hwc2_display_t hwcDisplayId);
231 bool DisplayTransactionTest::hasPhysicalHwcDisplay(hwc2_display_t hwcDisplayId) { in hasPhysicalHwcDisplay() argument
232 return mFlinger.mutableHwcPhysicalDisplayIdMap().count(hwcDisplayId) == 1; in hasPhysicalHwcDisplay()
402 template <hwc2_display_t hwcDisplayId, HWC2::DisplayType hwcDisplayType, typename DisplayVariant,
406 static constexpr hwc2_display_t HWC_DISPLAY_ID = hwcDisplayId;
499 template <hwc2_display_t hwcDisplayId, typename PhysicalDisplay, int width, int height,
504 HwcDisplayVariant<hwcDisplayId, HWC2::DisplayType::Physical,
912 EXPECT_EQ(hwcDisplayId1, pendingEvents[0].hwcDisplayId); in TEST_F()
914 EXPECT_EQ(hwcDisplayId2, pendingEvents[1].hwcDisplayId); in TEST_F()