/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | MockHWComposer.h | 52 std::optional<PhysicalDisplayId>)); 53 MOCK_METHOD2(allocatePhysicalDisplay, void(hal::HWDisplayId, PhysicalDisplayId)); 65 MOCK_METHOD2(setPowerMode, status_t(PhysicalDisplayId, hal::PowerMode)); 85 MOCK_METHOD2(setDisplayBrightness, std::future<status_t>(PhysicalDisplayId, float)); 86 MOCK_METHOD2(getDisplayBrightnessSupport, status_t(PhysicalDisplayId, bool*)); 92 MOCK_METHOD2(setVsyncEnabled, void(PhysicalDisplayId, hal::Vsync)); 93 MOCK_CONST_METHOD1(isConnected, bool(PhysicalDisplayId)); 94 MOCK_CONST_METHOD1(getModes, std::vector<HWComposer::HWCDisplayMode>(PhysicalDisplayId)); 95 MOCK_CONST_METHOD1(getActiveMode, std::optional<hal::HWConfigId>(PhysicalDisplayId)); 96 MOCK_CONST_METHOD1(getColorModes, std::vector<ui::ColorMode>(PhysicalDisplayId)); [all …]
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | HWComposer.h | 120 std::optional<PhysicalDisplayId> mirror) = 0; 122 virtual void allocatePhysicalDisplay(hal::HWDisplayId, PhysicalDisplayId) = 0; 149 virtual status_t setPowerMode(PhysicalDisplayId, hal::PowerMode) = 0; 192 virtual std::future<status_t> setDisplayBrightness(PhysicalDisplayId, float brightness) = 0; 207 virtual void setVsyncEnabled(PhysicalDisplayId, hal::Vsync enabled) = 0; 209 virtual bool isConnected(PhysicalDisplayId) const = 0; 211 virtual std::vector<HWCDisplayMode> getModes(PhysicalDisplayId) const = 0; 213 virtual std::optional<hal::HWConfigId> getActiveMode(PhysicalDisplayId) const = 0; 215 virtual std::vector<ui::ColorMode> getColorModes(PhysicalDisplayId) const = 0; 217 virtual status_t setActiveColorMode(PhysicalDisplayId, ui::ColorMode mode, [all …]
|
D | DisplayIdentification.h | 38 PhysicalDisplayId id; 77 std::optional<PnpId> getPnpId(PhysicalDisplayId); 82 PhysicalDisplayId getVirtualDisplayId(uint32_t id);
|
D | HWComposer.cpp | 249 std::optional<PhysicalDisplayId> mirror) { in allocateVirtualDisplay() 285 PhysicalDisplayId displayId) { in allocatePhysicalDisplay() 323 bool HWComposer::isConnected(PhysicalDisplayId displayId) const { in isConnected() 331 std::vector<HWComposer::HWCDisplayMode> HWComposer::getModes(PhysicalDisplayId displayId) const { in getModes() 356 std::optional<hal::HWConfigId> HWComposer::getActiveMode(PhysicalDisplayId displayId) const { in getActiveMode() 374 ui::DisplayConnectionType HWComposer::getDisplayConnectionType(PhysicalDisplayId displayId) const { in getDisplayConnectionType() 389 bool HWComposer::isVsyncPeriodSwitchSupported(PhysicalDisplayId displayId) const { in isVsyncPeriodSwitchSupported() 394 status_t HWComposer::getDisplayVsyncPeriod(PhysicalDisplayId displayId, in getDisplayVsyncPeriod() 410 std::vector<ui::ColorMode> HWComposer::getColorModes(PhysicalDisplayId displayId) const { in getColorModes() 419 status_t HWComposer::setActiveColorMode(PhysicalDisplayId displayId, ui::ColorMode mode, in setActiveColorMode() [all …]
|
D | FramebufferSurface.h | 43 FramebufferSurface(HWComposer& hwc, PhysicalDisplayId displayId, 78 const PhysicalDisplayId mDisplayId;
|
D | DisplayIdentification.cpp | 314 std::optional<PnpId> getPnpId(PhysicalDisplayId displayId) { in getPnpId() 330 const auto displayId = PhysicalDisplayId::fromEdid(port, edid->manufacturerId, edid->modelHash); in parseDisplayIdentificationData() 336 PhysicalDisplayId getVirtualDisplayId(uint32_t id) { in getVirtualDisplayId() 337 return PhysicalDisplayId::fromEdid(0, kVirtualEdidManufacturerId, id); in getVirtualDisplayId()
|
/frameworks/native/libs/ui/include/ui/ |
D | DisplayId.h | 60 struct PhysicalDisplayId : DisplayId { struct 61 static constexpr std::optional<PhysicalDisplayId> tryCast(DisplayId id) { in tryCast() argument 65 return {PhysicalDisplayId(id)}; in tryCast() 69 static constexpr PhysicalDisplayId fromEdid(uint8_t port, uint16_t manufacturerId, in fromEdid() argument 71 return PhysicalDisplayId(FLAG_STABLE, port, manufacturerId, modelHash); in fromEdid() 75 static constexpr PhysicalDisplayId fromPort(uint8_t port) { in fromPort() argument 78 return PhysicalDisplayId(0, port, kManufacturerId, kModelHash); in fromPort() 82 PhysicalDisplayId() = default; 84 explicit constexpr PhysicalDisplayId(uint64_t id) : DisplayId(id) {} in PhysicalDisplayId() argument 91 constexpr PhysicalDisplayId(uint64_t flags, uint8_t port, uint16_t manufacturerId, in PhysicalDisplayId() argument [all …]
|
/frameworks/native/libs/ui/include_vndk/ui/ |
D | DisplayId.h | 60 struct PhysicalDisplayId : DisplayId { struct 61 static constexpr std::optional<PhysicalDisplayId> tryCast(DisplayId id) { in tryCast() argument 65 return {PhysicalDisplayId(id)}; in tryCast() 69 static constexpr PhysicalDisplayId fromEdid(uint8_t port, uint16_t manufacturerId, in fromEdid() argument 71 return PhysicalDisplayId(FLAG_STABLE, port, manufacturerId, modelHash); in fromEdid() 75 static constexpr PhysicalDisplayId fromPort(uint8_t port) { in fromPort() argument 78 return PhysicalDisplayId(0, port, kManufacturerId, kModelHash); in fromPort() 82 PhysicalDisplayId() = default; 84 explicit constexpr PhysicalDisplayId(uint64_t id) : DisplayId(id) {} in PhysicalDisplayId() function 91 constexpr PhysicalDisplayId(uint64_t flags, uint8_t port, uint16_t manufacturerId, in PhysicalDisplayId() function [all …]
|
/frameworks/native/libs/ui/tests/ |
D | DisplayId_test.cpp | 27 PhysicalDisplayId id = PhysicalDisplayId::fromEdid(port, manufacturerId, modelHash); in TEST() 33 EXPECT_TRUE(PhysicalDisplayId::tryCast(id)); in TEST() 39 PhysicalDisplayId id = PhysicalDisplayId::fromPort(port); in TEST() 44 EXPECT_TRUE(PhysicalDisplayId::tryCast(id)); in TEST() 53 EXPECT_FALSE(PhysicalDisplayId::tryCast(id)); in TEST() 62 EXPECT_FALSE(PhysicalDisplayId::tryCast(id)); in TEST()
|
/frameworks/native/libs/gui/include/gui/ |
D | DisplayEventDispatcher.h | 62 virtual void dispatchVsync(nsecs_t timestamp, PhysicalDisplayId displayId, uint32_t count, 64 virtual void dispatchHotplug(nsecs_t timestamp, PhysicalDisplayId displayId, 66 virtual void dispatchModeChanged(nsecs_t timestamp, PhysicalDisplayId displayId, int32_t modeId, 70 virtual void dispatchNullEvent(nsecs_t timestamp, PhysicalDisplayId displayId) = 0; 72 virtual void dispatchFrameRateOverrides(nsecs_t timestamp, PhysicalDisplayId displayId, 75 bool processPendingEvents(nsecs_t* outTimestamp, PhysicalDisplayId* outDisplayId,
|
D | ISurfaceComposer.h | 141 virtual std::vector<PhysicalDisplayId> getPhysicalDisplayIds() const = 0; 144 std::optional<PhysicalDisplayId> getInternalDisplayId() const { in getInternalDisplayId() 152 virtual sp<IBinder> getPhysicalDisplayToken(PhysicalDisplayId displayId) const = 0;
|
/frameworks/base/core/jni/ |
D | android_view_DisplayEventReceiver.cpp | 69 void dispatchVsync(nsecs_t timestamp, PhysicalDisplayId displayId, uint32_t count, 71 void dispatchHotplug(nsecs_t timestamp, PhysicalDisplayId displayId, bool connected) override; 72 void dispatchModeChanged(nsecs_t timestamp, PhysicalDisplayId displayId, int32_t modeId, 74 void dispatchFrameRateOverrides(nsecs_t timestamp, PhysicalDisplayId displayId, 76 void dispatchNullEvent(nsecs_t timestamp, PhysicalDisplayId displayId) override {} in dispatchNullEvent() 101 void NativeDisplayEventReceiver::dispatchVsync(nsecs_t timestamp, PhysicalDisplayId displayId, in dispatchVsync() 117 void NativeDisplayEventReceiver::dispatchHotplug(nsecs_t timestamp, PhysicalDisplayId displayId, in dispatchHotplug() 132 void NativeDisplayEventReceiver::dispatchModeChanged(nsecs_t timestamp, PhysicalDisplayId displayId, in dispatchModeChanged() 148 nsecs_t timestamp, PhysicalDisplayId displayId, std::vector<FrameRateOverride> overrides) { in dispatchFrameRateOverrides()
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | EventThread.h | 124 virtual void onHotplugReceived(PhysicalDisplayId displayId, bool connected) = 0; 127 virtual void onModeChanged(PhysicalDisplayId displayId, DisplayModeId modeId, 131 virtual void onFrameRateOverridesChanged(PhysicalDisplayId displayId, 175 void onHotplugReceived(PhysicalDisplayId displayId, bool connected) override; 177 void onModeChanged(PhysicalDisplayId displayId, DisplayModeId modeId, 180 void onFrameRateOverridesChanged(PhysicalDisplayId displayId, 226 explicit VSyncState(PhysicalDisplayId displayId) : displayId(displayId) {} in VSyncState() 228 const PhysicalDisplayId displayId;
|
D | Scheduler.h | 89 void onHotplugReceived(ConnectionHandle, PhysicalDisplayId, bool connected); 90 void onPrimaryDisplayModeChanged(ConnectionHandle, PhysicalDisplayId, DisplayModeId, 92 void onNonPrimaryDisplayModeChanged(ConnectionHandle, PhysicalDisplayId, DisplayModeId, 97 void onFrameRateOverridesChanged(ConnectionHandle, PhysicalDisplayId) 299 PhysicalDisplayId displayId;
|
D | EventThread.cpp | 101 DisplayEventReceiver::Event makeHotplug(PhysicalDisplayId displayId, nsecs_t timestamp, in makeHotplug() 109 DisplayEventReceiver::Event makeVSync(PhysicalDisplayId displayId, nsecs_t timestamp, in makeVSync() 121 DisplayEventReceiver::Event makeModeChanged(PhysicalDisplayId displayId, DisplayModeId modeId, in makeModeChanged() 130 DisplayEventReceiver::Event makeFrameRateOverrideEvent(PhysicalDisplayId displayId, in makeFrameRateOverrideEvent() 143 DisplayEventReceiver::Event makeFrameRateOverrideFlushEvent(PhysicalDisplayId displayId) { in makeFrameRateOverrideFlushEvent() 371 void EventThread::onHotplugReceived(PhysicalDisplayId displayId, bool connected) { in onHotplugReceived() 378 void EventThread::onModeChanged(PhysicalDisplayId displayId, DisplayModeId modeId, in onModeChanged() 386 void EventThread::onFrameRateOverridesChanged(PhysicalDisplayId displayId, in onFrameRateOverridesChanged()
|
/frameworks/native/services/surfaceflinger/tests/unittests/mock/ |
D | MockEventThread.h | 35 MOCK_METHOD2(onHotplugReceived, void(PhysicalDisplayId, bool)); 36 MOCK_METHOD3(onModeChanged, void(PhysicalDisplayId, DisplayModeId, nsecs_t)); 38 void(PhysicalDisplayId, std::vector<FrameRateOverride>));
|
/frameworks/native/libs/nativedisplay/ |
D | AChoreographer.cpp | 138 void dispatchVsync(nsecs_t timestamp, PhysicalDisplayId displayId, uint32_t count, 140 void dispatchHotplug(nsecs_t timestamp, PhysicalDisplayId displayId, bool connected) override; 141 void dispatchModeChanged(nsecs_t timestamp, PhysicalDisplayId displayId, int32_t modeId, 143 void dispatchNullEvent(nsecs_t, PhysicalDisplayId) override; 144 void dispatchFrameRateOverrides(nsecs_t timestamp, PhysicalDisplayId displayId, 310 PhysicalDisplayId(0), systemTime()}; in scheduleLatestConfigRequest() 359 void Choreographer::dispatchVsync(nsecs_t timestamp, PhysicalDisplayId, uint32_t, in dispatchVsync() argument 380 void Choreographer::dispatchHotplug(nsecs_t, PhysicalDisplayId displayId, bool connected) { in dispatchHotplug() 385 void Choreographer::dispatchModeChanged(nsecs_t, PhysicalDisplayId, int32_t, nsecs_t) { in dispatchModeChanged() argument 389 void Choreographer::dispatchFrameRateOverrides(nsecs_t, PhysicalDisplayId, in dispatchFrameRateOverrides() argument [all …]
|
D | ADisplay.cpp | 84 PhysicalDisplayId id; 137 const std::vector<PhysicalDisplayId> ids = SurfaceComposerClient::getPhysicalDisplayIds(); in ADisplay_acquirePhysicalDisplays() 176 const std::optional<PhysicalDisplayId> internalId = in ADisplay_acquirePhysicalDisplays() 208 const PhysicalDisplayId id = ids[i]; in ADisplay_acquirePhysicalDisplays()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | EventThreadTest.cpp | 44 constexpr PhysicalDisplayId INTERNAL_DISPLAY_ID(111); 45 constexpr PhysicalDisplayId EXTERNAL_DISPLAY_ID(222); 46 constexpr PhysicalDisplayId DISPLAY_ID_64BIT(0xabcd12349876fedcULL); 96 void expectHotplugEventReceivedByConnection(PhysicalDisplayId expectedDisplayId, 98 void expectConfigChangedEventReceivedByConnection(PhysicalDisplayId expectedDisplayId, 102 void expectUidFrameRateMappingEventReceivedByConnection(PhysicalDisplayId expectedDisplayId, 247 void EventThreadTest::expectHotplugEventReceivedByConnection(PhysicalDisplayId expectedDisplayId, in expectHotplugEventReceivedByConnection() 258 PhysicalDisplayId expectedDisplayId, int32_t expectedConfigId, in expectConfigChangedEventReceivedByConnection() 270 PhysicalDisplayId expectedDisplayId, std::vector<FrameRateOverride> expectedOverrides) { in expectUidFrameRateMappingEventReceivedByConnection()
|
D | SurfaceFlinger_HandleTransactionLockedTest.cpp | 117 const auto displayId = PhysicalDisplayId::tryCast(Case::Display::DISPLAY_ID::get()); in verifyDisplayIsConnected() 146 ASSERT_TRUE(PhysicalDisplayId::tryCast(displayId)); in verifyPhysicalDisplayIsConnected() 251 ASSERT_TRUE(PhysicalDisplayId::tryCast(displayId)); in processesHotplugDisconnectCommon() 329 ASSERT_TRUE(PhysicalDisplayId::tryCast(displayId)); in TEST_F() 368 ASSERT_TRUE(PhysicalDisplayId::tryCast(displayId)); in TEST_F()
|
/frameworks/native/libs/gui/ |
D | DisplayEventDispatcher.cpp | 74 PhysicalDisplayId vsyncDisplayId; in scheduleVsync() 118 PhysicalDisplayId vsyncDisplayId; in handleEvent() 134 PhysicalDisplayId* outDisplayId, in processPendingEvents()
|
/frameworks/base/cmds/screencap/ |
D | screencap.cpp | 48 static void usage(const char* pname, PhysicalDisplayId displayId) in usage() 124 std::optional<PhysicalDisplayId> displayId = SurfaceComposerClient::getInternalDisplayId(); in main() 139 displayId = PhysicalDisplayId(atoll(optarg)); in main()
|
/frameworks/native/services/surfaceflinger/ |
D | DisplayDevice.h | 109 PhysicalDisplayId getPhysicalId() const { in getPhysicalId() 110 const auto id = PhysicalDisplayId::tryCast(getId()); in getPhysicalId() 237 PhysicalDisplayId id;
|
D | SurfaceFlinger.h | 616 std::vector<PhysicalDisplayId> getPhysicalDisplayIds() const override; 617 sp<IBinder> getPhysicalDisplayToken(PhysicalDisplayId displayId) const override; 955 sp<const DisplayDevice> getDisplayDeviceLocked(PhysicalDisplayId id) const in getDisplayDeviceLocked() 1025 void loadDisplayModes(PhysicalDisplayId displayId, DisplayModes& outModes, 1042 void dispatchDisplayHotplugEvent(PhysicalDisplayId displayId, bool connected); 1084 sp<IBinder> getPhysicalDisplayTokenLocked(PhysicalDisplayId displayId) const in getPhysicalDisplayTokenLocked() 1090 std::optional<PhysicalDisplayId> getPhysicalDisplayIdLocked( in getPhysicalDisplayIdLocked() 1106 std::optional<PhysicalDisplayId> getInternalDisplayIdLocked() const REQUIRES(mStateLock) { in getInternalDisplayIdLocked() 1191 std::vector<ui::ColorMode> getDisplayColorModes(PhysicalDisplayId displayId) 1285 std::unordered_map<PhysicalDisplayId, sp<IBinder>> mPhysicalDisplayTokens
|
/frameworks/native/services/automotive/display/ |
D | AutomotiveDisplayProxyService.cpp | 37 displayToken = SurfaceComposerClient::getPhysicalDisplayToken(PhysicalDisplayId(id)); in getIGraphicBufferProducer() 160 auto displayToken = SurfaceComposerClient::getPhysicalDisplayToken(PhysicalDisplayId(id)); in getDisplayInfo()
|