Lines Matching refs:DisplayId
89 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;
128 virtual void disconnectDisplay(DisplayId displayId) = 0;
131 virtual sp<Fence> getPresentFence(DisplayId displayId) const = 0;
134 virtual sp<Fence> getLayerReleaseFence(DisplayId displayId, HWC2::Layer* layer) const = 0;
138 virtual status_t setOutputBuffer(DisplayId displayId, const sp<Fence>& acquireFence,
143 virtual void clearReleaseFences(DisplayId displayId) = 0;
146 virtual status_t getHdrCapabilities(DisplayId displayId, HdrCapabilities* outCapabilities) = 0;
148 virtual int32_t getSupportedPerFrameMetadata(DisplayId displayId) const = 0;
151 virtual std::vector<ui::RenderIntent> getRenderIntents(DisplayId displayId,
154 virtual mat4 getDataspaceSaturationMatrix(DisplayId displayId, ui::Dataspace dataspace) = 0;
157 virtual status_t getDisplayedContentSamplingAttributes(DisplayId displayId,
161 virtual status_t setDisplayContentSamplingEnabled(DisplayId displayId, bool enabled,
164 virtual status_t getDisplayedContentSample(DisplayId displayId, uint64_t maxFrames,
169 virtual std::future<status_t> setDisplayBrightness(DisplayId displayId, float brightness) = 0;
180 virtual void setVsyncEnabled(DisplayId displayId, hal::Vsync enabled) = 0;
182 virtual nsecs_t getRefreshTimestamp(DisplayId displayId) const = 0;
183 virtual bool isConnected(DisplayId displayId) const = 0;
187 DisplayId displayId) const = 0;
190 DisplayId displayId) const = 0;
191 virtual int getActiveConfigIndex(DisplayId displayId) const = 0;
193 virtual std::vector<ui::ColorMode> getColorModes(DisplayId displayId) const = 0;
195 virtual status_t setActiveColorMode(DisplayId displayId, ui::ColorMode mode,
201 virtual DisplayConnectionType getDisplayConnectionType(DisplayId) const = 0;
202 virtual bool isVsyncPeriodSwitchSupported(DisplayId displayId) const = 0;
203 virtual nsecs_t getDisplayVsyncPeriod(DisplayId displayId) const = 0;
205 DisplayId displayId, size_t configId,
208 virtual status_t setAutoLowLatencyMode(DisplayId displayId, bool on) = 0;
210 DisplayId displayId, std::vector<hal::ContentType>* outSupportedContentTypes) = 0;
211 virtual status_t setContentType(DisplayId displayId, hal::ContentType contentType) = 0;
224 virtual std::optional<DisplayId> toPhysicalDisplayId(hal::HWDisplayId hwcDisplayId) const = 0;
225 virtual std::optional<hal::HWDisplayId> fromPhysicalDisplayId(DisplayId displayId) const = 0;
243 bool hasDisplayCapability(DisplayId displayId,
247 std::optional<DisplayId> allocateVirtualDisplay(uint32_t width, uint32_t height,
251 void allocatePhysicalDisplay(hal::HWDisplayId hwcDisplayId, DisplayId displayId) override;
254 HWC2::Layer* createLayer(DisplayId displayId) override;
256 void destroyLayer(DisplayId displayId, HWC2::Layer* layer) override;
259 DisplayId, bool frameUsesClientComposition,
262 status_t setClientTarget(DisplayId displayId, uint32_t slot, const sp<Fence>& acquireFence,
266 status_t presentAndGetReleaseFences(DisplayId displayId) override;
269 status_t setPowerMode(DisplayId displayId, hal::PowerMode mode) override;
272 status_t setColorTransform(DisplayId displayId, const mat4& transform) override;
275 void disconnectDisplay(DisplayId displayId) override;
278 sp<Fence> getPresentFence(DisplayId displayId) const override;
281 sp<Fence> getLayerReleaseFence(DisplayId displayId, HWC2::Layer* layer) const override;
285 status_t setOutputBuffer(DisplayId displayId, const sp<Fence>& acquireFence,
290 void clearReleaseFences(DisplayId displayId) override;
293 status_t getHdrCapabilities(DisplayId displayId, HdrCapabilities* outCapabilities) override;
295 int32_t getSupportedPerFrameMetadata(DisplayId displayId) const override;
298 std::vector<ui::RenderIntent> getRenderIntents(DisplayId displayId,
301 mat4 getDataspaceSaturationMatrix(DisplayId displayId, ui::Dataspace dataspace) override;
304 status_t getDisplayedContentSamplingAttributes(DisplayId displayId, ui::PixelFormat* outFormat,
307 status_t setDisplayContentSamplingEnabled(DisplayId displayId, bool enabled,
309 status_t getDisplayedContentSample(DisplayId displayId, uint64_t maxFrames, uint64_t timestamp,
311 std::future<status_t> setDisplayBrightness(DisplayId displayId, float brightness) override;
321 void setVsyncEnabled(DisplayId displayId, hal::Vsync enabled) override;
323 nsecs_t getRefreshTimestamp(DisplayId displayId) const override;
324 bool isConnected(DisplayId displayId) const override;
328 DisplayId displayId) const override;
331 DisplayId displayId) const override;
332 int getActiveConfigIndex(DisplayId displayId) const override;
334 std::vector<ui::ColorMode> getColorModes(DisplayId displayId) const override;
336 status_t setActiveColorMode(DisplayId displayId, ui::ColorMode mode,
342 DisplayConnectionType getDisplayConnectionType(DisplayId) const override;
343 bool isVsyncPeriodSwitchSupported(DisplayId displayId) const override;
344 nsecs_t getDisplayVsyncPeriod(DisplayId displayId) const override;
345 status_t setActiveConfigWithConstraints(DisplayId displayId, size_t configId,
348 status_t setAutoLowLatencyMode(DisplayId displayId, bool) override;
349 status_t getSupportedContentTypes(DisplayId displayId, std::vector<hal::ContentType>*) override;
350 status_t setContentType(DisplayId displayId, hal::ContentType) override;
367 std::optional<DisplayId> toPhysicalDisplayId(hal::HWDisplayId hwcDisplayId) const override;
368 std::optional<hal::HWDisplayId> fromPhysicalDisplayId(DisplayId displayId) const override;
405 std::unordered_map<DisplayId, DisplayData> mDisplayData;
412 std::unordered_map<hal::HWDisplayId, DisplayId> mPhysicalDisplayIdMap;
417 std::unordered_set<DisplayId> mFreeVirtualDisplayIds;