Home
last modified time | relevance | path

Searched refs:DisplayId (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DMockHWComposer.h45 MOCK_CONST_METHOD2(hasDisplayCapability, bool(DisplayId, hal::DisplayCapability));
48 std::optional<DisplayId>(uint32_t, uint32_t, ui::PixelFormat*));
49 MOCK_METHOD2(allocatePhysicalDisplay, void(hal::HWDisplayId, DisplayId));
50 MOCK_METHOD1(createLayer, HWC2::Layer*(DisplayId));
51 MOCK_METHOD2(destroyLayer, void(DisplayId, HWC2::Layer*));
53 status_t(DisplayId, bool,
56 status_t(DisplayId, uint32_t, const sp<Fence>&, const sp<GraphicBuffer>&,
58 MOCK_METHOD1(presentAndGetReleaseFences, status_t(DisplayId));
59 MOCK_METHOD2(setPowerMode, status_t(DisplayId, hal::PowerMode));
60 MOCK_METHOD2(setActiveConfig, status_t(DisplayId, size_t));
[all …]
DMockPowerAdvisor.h33 MOCK_METHOD2(setExpensiveRenderingExpected, void(DisplayId displayId, bool expected));
DRenderSurfaceTest.cpp36 constexpr std::optional<DisplayId> DEFAULT_DISPLAY_ID = std::make_optional(DisplayId{123u});
DDisplayTest.cpp59 constexpr DisplayId DEFAULT_DISPLAY_ID = DisplayId{42};
60 constexpr DisplayId VIRTUAL_DISPLAY_ID = DisplayId{43};
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWComposer.h89 virtual bool hasDisplayCapability(DisplayId displayId,
93 virtual std::optional<DisplayId> allocateVirtualDisplay(uint32_t width, uint32_t height,
96 virtual void allocatePhysicalDisplay(hal::HWDisplayId hwcDisplayId, DisplayId displayId) = 0;
99 virtual HWC2::Layer* createLayer(DisplayId displayId) = 0;
101 virtual void destroyLayer(DisplayId displayId, HWC2::Layer* layer) = 0;
111 DisplayId, bool frameUsesClientComposition,
114 virtual status_t setClientTarget(DisplayId displayId, uint32_t slot,
119 virtual status_t presentAndGetReleaseFences(DisplayId displayId) = 0;
122 virtual status_t setPowerMode(DisplayId displayId, hal::PowerMode mode) = 0;
125 virtual status_t setColorTransform(DisplayId displayId, const mat4& transform) = 0;
[all …]
DDisplayIdentification.h34 struct DisplayId { struct
40 static DisplayId fromEdid(uint8_t port, uint16_t manufacturerId, uint32_t modelHash); argument
43 inline bool operator==(DisplayId lhs, DisplayId rhs) {
47 inline bool operator!=(DisplayId lhs, DisplayId rhs) {
51 inline std::string to_string(DisplayId displayId) { in to_string()
58 DisplayId id;
97 std::optional<PnpId> getPnpId(DisplayId);
102 DisplayId getFallbackDisplayId(uint8_t port);
103 DisplayId getVirtualDisplayId(uint32_t id);
110 struct hash<android::DisplayId> {
[all …]
DHWComposer.cpp189 bool HWComposer::hasDisplayCapability(DisplayId displayId, in hasDisplayCapability()
245 std::optional<DisplayId> HWComposer::allocateVirtualDisplay(uint32_t width, uint32_t height, in allocateVirtualDisplay()
271 DisplayId displayId; in allocateVirtualDisplay()
287 void HWComposer::allocatePhysicalDisplay(hal::HWDisplayId hwcDisplayId, DisplayId displayId) { in allocatePhysicalDisplay()
303 HWC2::Layer* HWComposer::createLayer(DisplayId displayId) { in createLayer()
312 void HWComposer::destroyLayer(DisplayId displayId, HWC2::Layer* layer) { in destroyLayer()
319 nsecs_t HWComposer::getRefreshTimestamp(DisplayId displayId) const { in getRefreshTimestamp()
331 bool HWComposer::isConnected(DisplayId displayId) const { in isConnected()
337 DisplayId displayId) const { in getConfigs()
351 DisplayId displayId) const { in getActiveConfig()
[all …]
DPowerAdvisor.h35 virtual void setExpensiveRenderingExpected(DisplayId displayId, bool expected) = 0;
57 void setExpensiveRenderingExpected(DisplayId displayId, bool expected) override;
67 std::unordered_set<DisplayId> mExpensiveDisplays;
DDisplayIdentification.cpp161 uint16_t DisplayId::manufacturerId() const { in manufacturerId()
165 DisplayId DisplayId::fromEdid(uint8_t port, uint16_t manufacturerId, uint32_t modelHash) { in fromEdid()
333 std::optional<PnpId> getPnpId(DisplayId displayId) { in getPnpId()
349 const auto displayId = DisplayId::fromEdid(port, edid->manufacturerId, edid->modelHash); in parseDisplayIdentificationData()
355 DisplayId getFallbackDisplayId(uint8_t port) { in getFallbackDisplayId()
356 return DisplayId::fromEdid(port, kFallbackEdidManufacturerId, 0); in getFallbackDisplayId()
359 DisplayId getVirtualDisplayId(uint32_t id) { in getVirtualDisplayId()
360 return DisplayId::fromEdid(0, kVirtualEdidManufacturerId, id); in getVirtualDisplayId()
DFramebufferSurface.h42 FramebufferSurface(HWComposer& hwc, DisplayId displayId,
72 const DisplayId mDisplayId;
DVirtualDisplaySurface.h80 VirtualDisplaySurface(HWComposer& hwc, const std::optional<DisplayId>& displayId,
158 const std::optional<DisplayId> mDisplayId;
DPowerAdvisor.cpp79 void PowerAdvisor::setExpensiveRenderingExpected(DisplayId displayId, bool expected) { in setExpensiveRenderingExpected()
DFramebufferSurface.cpp59 FramebufferSurface::FramebufferSurface(HWComposer& hwc, DisplayId displayId, in FramebufferSurface()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/
DDisplay.h46 std::optional<DisplayId> getDisplayId() const override;
60 const std::optional<DisplayId>& getId() const override;
83 virtual std::optional<DisplayId> maybeAllocateDisplayIdForVirtualDisplay(ui::Size,
88 void setDisplayIdForTesting(std::optional<DisplayId> displayId);
92 std::optional<DisplayId> mId;
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DDisplay.cpp69 std::optional<DisplayId> Display::maybeAllocateDisplayIdForVirtualDisplay( in maybeAllocateDisplayIdForVirtualDisplay()
80 const std::optional<DisplayId>& Display::getId() const { in getId()
92 std::optional<DisplayId> Display::getDisplayId() const { in getDisplayId()
96 void Display::setDisplayIdForTesting(std::optional<DisplayId> displayId) { in setDisplayIdForTesting()
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/
DMockPowerAdvisor.h33 MOCK_METHOD2(setExpensiveRenderingExpected, void(DisplayId displayId, bool expected));
/frameworks/base/packages/SystemUI/src/com/android/systemui/dagger/qualifiers/
DDisplayId.java29 public @interface DisplayId { annotation
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DDisplay.h38 virtual const std::optional<DisplayId>& getId() const = 0;
DDisplayCreationArgs.h39 DisplayId id;
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/mock/
DDisplay.h35 MOCK_CONST_METHOD0(getId, const std::optional<DisplayId>&());
DOutput.h36 MOCK_CONST_METHOD0(getDisplayId, std::optional<DisplayId>());
/frameworks/base/packages/SystemUI/src/com/android/systemui/dagger/
DSystemServicesModule.java68 import com.android.systemui.dagger.qualifiers.DisplayId;
125 @DisplayId
/frameworks/native/services/surfaceflinger/
DDisplayDevice.h107 const std::optional<DisplayId>& getId() const;
189 DisplayId id;
DSurfaceFlinger.h610 void initScheduler(DisplayId primaryDisplayId);
887 sp<IBinder> getPhysicalDisplayTokenLocked(DisplayId displayId) const REQUIRES(mStateLock) { in getPhysicalDisplayTokenLocked()
892 std::optional<DisplayId> getPhysicalDisplayIdLocked(const sp<IBinder>& displayToken) const in getPhysicalDisplayIdLocked()
908 std::optional<DisplayId> getInternalDisplayIdLocked() const REQUIRES(mStateLock) { in getInternalDisplayIdLocked()
1073 std::unordered_map<DisplayId, sp<IBinder>> mPhysicalDisplayTokens GUARDED_BY(mStateLock);
/frameworks/native/services/surfaceflinger/tests/unittests/
DDisplayTransactionTest.cpp253 constexpr DisplayId DEFAULT_DISPLAY_ID = DisplayId{777}; in injectDefaultInternalDisplay()
334 template <DisplayId::Type displayId>
335 using VirtualDisplayId = std::integral_constant<DisplayId::Type, displayId>;
350 static std::optional<DisplayId> get() { in get()
364 template <DisplayId::Type displayId>
366 static std::optional<DisplayId> get() { return DisplayId{displayId}; } in get()
371 static std::optional<DisplayId> get() { return {}; } in get()
391 template <DisplayId::Type displayId>
1925 return std::make_optional(DisplayId{physicalDisplayId}); in expectHotplugReceived()

12