Lines Matching refs:display
55 ndk::ScopedAStatus ComposerClient::createLayer(int64_t display, int32_t bufferSlotCount, in createLayer() argument
57 DEBUG_DISPLAY_FUNC(display); in createLayer()
58 auto err = mHal->createLayer(display, layer); in createLayer()
60 err = mResources->addLayer(display, *layer, bufferSlotCount); in createLayer()
71 VirtualDisplay* display) { in createVirtualDisplay() argument
73 auto err = mHal->createVirtualDisplay(width, height, formatHint, display); in createVirtualDisplay()
75 err = mResources->addVirtualDisplay(display->display, outputBufferSlotCount); in createVirtualDisplay()
81 int64_t display, int32_t maxFrameIntervalNs, std::vector<DisplayConfiguration>* configs) { in getDisplayConfigurations() argument
82 DEBUG_DISPLAY_FUNC(display); in getDisplayConfigurations()
83 auto err = mHal->getDisplayConfigurations(display, maxFrameIntervalNs, configs); in getDisplayConfigurations()
88 int64_t display, const ClockMonotonicTimestamp& expectedPresentTime, in notifyExpectedPresent() argument
90 DEBUG_DISPLAY_FUNC(display); in notifyExpectedPresent()
91 auto err = mHal->notifyExpectedPresent(display, expectedPresentTime, frameIntervalNs); in notifyExpectedPresent()
95 ndk::ScopedAStatus ComposerClient::destroyLayer(int64_t display, int64_t layer) { in destroyLayer() argument
96 DEBUG_DISPLAY_FUNC(display); in destroyLayer()
97 auto err = mHal->destroyLayer(display, layer); in destroyLayer()
99 err = mResources->removeLayer(display, layer); in destroyLayer()
104 ndk::ScopedAStatus ComposerClient::destroyVirtualDisplay(int64_t display) { in destroyVirtualDisplay() argument
105 DEBUG_DISPLAY_FUNC(display); in destroyVirtualDisplay()
106 auto err = mHal->destroyVirtualDisplay(display); in destroyVirtualDisplay()
108 err = mResources->removeDisplay(display); in destroyVirtualDisplay()
115 int64_t display = commands.empty() ? -1 : commands[0].display; in executeCommands() local
116 DEBUG_DISPLAY_FUNC(display); in executeCommands()
133 ndk::ScopedAStatus ComposerClient::getActiveConfig(int64_t display, int32_t* config) { in getActiveConfig() argument
134 DEBUG_DISPLAY_FUNC(display); in getActiveConfig()
135 auto err = mHal->getActiveConfig(display, config); in getActiveConfig()
139 ndk::ScopedAStatus ComposerClient::getColorModes(int64_t display, in getColorModes() argument
141 DEBUG_DISPLAY_FUNC(display); in getColorModes()
142 auto err = mHal->getColorModes(display, colorModes); in getColorModes()
165 ndk::ScopedAStatus ComposerClient::getDisplayAttribute(int64_t display, int32_t config, in getDisplayAttribute() argument
167 DEBUG_DISPLAY_FUNC(display); in getDisplayAttribute()
168 auto err = mHal->getDisplayAttribute(display, config, attribute, value); in getDisplayAttribute()
172 ndk::ScopedAStatus ComposerClient::getDisplayCapabilities(int64_t display, in getDisplayCapabilities() argument
174 DEBUG_DISPLAY_FUNC(display); in getDisplayCapabilities()
175 auto err = mHal->getDisplayCapabilities(display, caps); in getDisplayCapabilities()
181 err = mHal->getDisplayIdleTimerSupport(display, support); in getDisplayCapabilities()
190 err = mHal->getDisplayMultiThreadedPresentSupport(display, support); in getDisplayCapabilities()
203 ndk::ScopedAStatus ComposerClient::getDisplayConfigs(int64_t display, in getDisplayConfigs() argument
205 DEBUG_DISPLAY_FUNC(display); in getDisplayConfigs()
206 auto err = mHal->getDisplayConfigs(display, configs); in getDisplayConfigs()
210 ndk::ScopedAStatus ComposerClient::getDisplayConnectionType(int64_t display, in getDisplayConnectionType() argument
212 DEBUG_DISPLAY_FUNC(display); in getDisplayConnectionType()
213 auto err = mHal->getDisplayConnectionType(display, type); in getDisplayConnectionType()
217 ndk::ScopedAStatus ComposerClient::getDisplayIdentificationData(int64_t display, in getDisplayIdentificationData() argument
219 DEBUG_DISPLAY_FUNC(display); in getDisplayIdentificationData()
220 auto err = mHal->getDisplayIdentificationData(display, id); in getDisplayIdentificationData()
224 ndk::ScopedAStatus ComposerClient::getDisplayName(int64_t display, std::string* name) { in getDisplayName() argument
225 DEBUG_DISPLAY_FUNC(display); in getDisplayName()
226 auto err = mHal->getDisplayName(display, name); in getDisplayName()
230 ndk::ScopedAStatus ComposerClient::getDisplayVsyncPeriod(int64_t display, int32_t* vsyncPeriod) { in getDisplayVsyncPeriod() argument
231 DEBUG_DISPLAY_FUNC(display); in getDisplayVsyncPeriod()
232 auto err = mHal->getDisplayVsyncPeriod(display, vsyncPeriod); in getDisplayVsyncPeriod()
236 ndk::ScopedAStatus ComposerClient::getDisplayedContentSample(int64_t display, int64_t maxFrames, in getDisplayedContentSample() argument
239 DEBUG_DISPLAY_FUNC(display); in getDisplayedContentSample()
240 auto err = mHal->getDisplayedContentSample(display, maxFrames, timestamp, samples); in getDisplayedContentSample()
245 int64_t display, DisplayContentSamplingAttributes* attrs) { in getDisplayedContentSamplingAttributes() argument
246 DEBUG_DISPLAY_FUNC(display); in getDisplayedContentSamplingAttributes()
247 auto err = mHal->getDisplayedContentSamplingAttributes(display, attrs); in getDisplayedContentSamplingAttributes()
251 ndk::ScopedAStatus ComposerClient::getDisplayPhysicalOrientation(int64_t display, in getDisplayPhysicalOrientation() argument
253 DEBUG_DISPLAY_FUNC(display); in getDisplayPhysicalOrientation()
254 auto err = mHal->getDisplayPhysicalOrientation(display, orientation); in getDisplayPhysicalOrientation()
258 ndk::ScopedAStatus ComposerClient::getHdrCapabilities(int64_t display, HdrCapabilities* caps) { in getHdrCapabilities() argument
259 DEBUG_DISPLAY_FUNC(display); in getHdrCapabilities()
260 auto err = mHal->getHdrCapabilities(display, caps); in getHdrCapabilities()
276 ndk::ScopedAStatus ComposerClient::getPerFrameMetadataKeys(int64_t display, in getPerFrameMetadataKeys() argument
278 DEBUG_DISPLAY_FUNC(display); in getPerFrameMetadataKeys()
279 auto err = mHal->getPerFrameMetadataKeys(display, keys); in getPerFrameMetadataKeys()
283 ndk::ScopedAStatus ComposerClient::getReadbackBufferAttributes(int64_t display, in getReadbackBufferAttributes() argument
285 DEBUG_DISPLAY_FUNC(display); in getReadbackBufferAttributes()
286 auto err = mHal->getReadbackBufferAttributes(display, attrs); in getReadbackBufferAttributes()
290 ndk::ScopedAStatus ComposerClient::getReadbackBufferFence(int64_t display, in getReadbackBufferFence() argument
292 DEBUG_DISPLAY_FUNC(display); in getReadbackBufferFence()
293 auto err = mHal->getReadbackBufferFence(display, acquireFence); in getReadbackBufferFence()
297 ndk::ScopedAStatus ComposerClient::getRenderIntents(int64_t display, ColorMode mode, in getRenderIntents() argument
299 DEBUG_DISPLAY_FUNC(display); in getRenderIntents()
300 auto err = mHal->getRenderIntents(display, mode, intents); in getRenderIntents()
304 ndk::ScopedAStatus ComposerClient::getSupportedContentTypes(int64_t display, in getSupportedContentTypes() argument
306 DEBUG_DISPLAY_FUNC(display); in getSupportedContentTypes()
307 auto err = mHal->getSupportedContentTypes(display, types); in getSupportedContentTypes()
312 int64_t display, std::optional<common::DisplayDecorationSupport>* supportStruct) { in getDisplayDecorationSupport() argument
313 DEBUG_DISPLAY_FUNC(display); in getDisplayDecorationSupport()
315 auto err = mHal->getRCDLayerSupport(display, support); in getDisplayDecorationSupport()
339 ndk::ScopedAStatus ComposerClient::setActiveConfig(int64_t display, int32_t config) { in setActiveConfig() argument
340 DEBUG_DISPLAY_FUNC(display); in setActiveConfig()
341 auto err = mHal->setActiveConfig(display, config); in setActiveConfig()
346 int64_t display, int32_t config, const VsyncPeriodChangeConstraints& constraints, in setActiveConfigWithConstraints() argument
348 DEBUG_DISPLAY_FUNC(display); in setActiveConfigWithConstraints()
349 auto err = mHal->setActiveConfigWithConstraints(display, config, constraints, timeline); in setActiveConfigWithConstraints()
353 ndk::ScopedAStatus ComposerClient::setBootDisplayConfig(int64_t display, int32_t config) { in setBootDisplayConfig() argument
354 DEBUG_DISPLAY_FUNC(display); in setBootDisplayConfig()
355 auto err = mHal->setBootDisplayConfig(display, config); in setBootDisplayConfig()
359 ndk::ScopedAStatus ComposerClient::clearBootDisplayConfig(int64_t display) { in clearBootDisplayConfig() argument
360 DEBUG_DISPLAY_FUNC(display); in clearBootDisplayConfig()
361 auto err = mHal->clearBootDisplayConfig(display); in clearBootDisplayConfig()
365 ndk::ScopedAStatus ComposerClient::getPreferredBootDisplayConfig(int64_t display, int32_t* config) { in getPreferredBootDisplayConfig() argument
366 DEBUG_DISPLAY_FUNC(display); in getPreferredBootDisplayConfig()
367 auto err = mHal->getPreferredBootDisplayConfig(display, config); in getPreferredBootDisplayConfig()
386 ndk::ScopedAStatus ComposerClient::setAutoLowLatencyMode(int64_t display, bool on) { in setAutoLowLatencyMode() argument
387 DEBUG_DISPLAY_FUNC(display); in setAutoLowLatencyMode()
388 auto err = mHal->setAutoLowLatencyMode(display, on); in setAutoLowLatencyMode()
392 ndk::ScopedAStatus ComposerClient::setClientTargetSlotCount(int64_t display, int32_t count) { in setClientTargetSlotCount() argument
393 DEBUG_DISPLAY_FUNC(display); in setClientTargetSlotCount()
394 auto err = mResources->setDisplayClientTargetCacheSize(display, count); in setClientTargetSlotCount()
398 ndk::ScopedAStatus ComposerClient::setColorMode(int64_t display, ColorMode mode, in setColorMode() argument
400 DEBUG_DISPLAY_FUNC(display); in setColorMode()
401 auto err = mHal->setColorMode(display, mode, intent); in setColorMode()
405 ndk::ScopedAStatus ComposerClient::setContentType(int64_t display, ContentType type) { in setContentType() argument
406 DEBUG_DISPLAY_FUNC(display); in setContentType()
407 auto err = mHal->setContentType(display, type); in setContentType()
412 int64_t display, bool enable, FormatColorComponent componentMask, int64_t maxFrames) { in setDisplayedContentSamplingEnabled() argument
413 DEBUG_DISPLAY_FUNC(display); in setDisplayedContentSamplingEnabled()
414 auto err = mHal->setDisplayedContentSamplingEnabled(display, enable, componentMask, maxFrames); in setDisplayedContentSamplingEnabled()
418 ndk::ScopedAStatus ComposerClient::setPowerMode(int64_t display, PowerMode mode) { in setPowerMode() argument
419 DEBUG_DISPLAY_FUNC(display); in setPowerMode()
420 auto err = mHal->setPowerMode(display, mode); in setPowerMode()
425 int64_t display, const AidlNativeHandle& aidlBuffer, in setReadbackBuffer() argument
427 DEBUG_DISPLAY_FUNC(display); in setReadbackBuffer()
432 auto err = mResources->getDisplayReadbackBuffer(display, buffer, in setReadbackBuffer()
435 err = mHal->setReadbackBuffer(display, readbackBuffer, releaseFence); in setReadbackBuffer()
440 ndk::ScopedAStatus ComposerClient::setVsyncEnabled(int64_t display, bool enabled) { in setVsyncEnabled() argument
441 DEBUG_DISPLAY_FUNC(display); in setVsyncEnabled()
442 auto err = mHal->setVsyncEnabled(display, enabled); in setVsyncEnabled()
446 ndk::ScopedAStatus ComposerClient::setIdleTimerEnabled(int64_t display, int32_t timeout) { in setIdleTimerEnabled() argument
447 DEBUG_DISPLAY_FUNC(display); in setIdleTimerEnabled()
448 auto err = mHal->setIdleTimerEnabled(display, timeout); in setIdleTimerEnabled()
452 ndk::ScopedAStatus ComposerClient::setRefreshRateChangedCallbackDebugEnabled(int64_t display, in setRefreshRateChangedCallbackDebugEnabled() argument
454 DEBUG_DISPLAY_FUNC(display); in setRefreshRateChangedCallbackDebugEnabled()
455 auto err = mHal->setRefreshRateChangedCallbackDebugEnabled(display, enabled); in setRefreshRateChangedCallbackDebugEnabled()
461 DEBUG_DISPLAY_FUNC(data.display); in onRefreshRateChangedDebug()
468 void ComposerClient::HalEventCallback::onHotplug(int64_t display, bool connected) { in onHotplug() argument
469 DEBUG_DISPLAY_FUNC(display); in onHotplug()
470 processDisplayResources(display, connected); in onHotplug()
471 auto ret = mCallback->onHotplug(display, connected); in onHotplug()
477 void ComposerClient::HalEventCallback::onRefresh(int64_t display) { in onRefresh() argument
478 DEBUG_DISPLAY_FUNC(display); in onRefresh()
479 mResources->setDisplayMustValidateState(display, true); in onRefresh()
480 auto ret = mCallback->onRefresh(display); in onRefresh()
486 void ComposerClient::HalEventCallback::onVsync(int64_t display, int64_t timestamp, in onVsync() argument
488 DEBUG_DISPLAY_FUNC(display); in onVsync()
489 auto ret = mCallback->onVsync(display, timestamp, vsyncPeriodNanos); in onVsync()
496 int64_t display, const VsyncPeriodChangeTimeline& timeline) { in onVsyncPeriodTimingChanged() argument
497 DEBUG_DISPLAY_FUNC(display); in onVsyncPeriodTimingChanged()
498 auto ret = mCallback->onVsyncPeriodTimingChanged(display, timeline); in onVsyncPeriodTimingChanged()
504 void ComposerClient::HalEventCallback::onVsyncIdle(int64_t display) { in onVsyncIdle() argument
505 DEBUG_DISPLAY_FUNC(display); in onVsyncIdle()
506 auto ret = mCallback->onVsyncIdle(display); in onVsyncIdle()
512 void ComposerClient::HalEventCallback::onSeamlessPossible(int64_t display) { in onSeamlessPossible() argument
513 DEBUG_DISPLAY_FUNC(display); in onSeamlessPossible()
514 auto ret = mCallback->onSeamlessPossible(display); in onSeamlessPossible()
520 void ComposerClient::HalEventCallback::onHotplugEvent(int64_t display, in onHotplugEvent() argument
522 DEBUG_DISPLAY_FUNC(display); in onHotplugEvent()
523 processDisplayResources(display, event == common::DisplayHotplugEvent::CONNECTED); in onHotplugEvent()
524 auto ret = mCallback->onHotplugEvent(display, event); in onHotplugEvent()
530 void ComposerClient::HalEventCallback::processDisplayResources(int64_t display, bool connected) { in processDisplayResources() argument
532 if (mResources->hasDisplay(display)) { in processDisplayResources()
537 cleanDisplayResources(display); in processDisplayResources()
538 mResources->removeDisplay(display); in processDisplayResources()
540 mResources->addPhysicalDisplay(display); in processDisplayResources()
542 mResources->removeDisplay(display); in processDisplayResources()
546 void ComposerClient::HalEventCallback::cleanDisplayResources(int64_t display) { in cleanDisplayResources() argument
547 DEBUG_DISPLAY_FUNC(display); in cleanDisplayResources()
549 auto err = mResources->getDisplayClientTargetCacheSize(display, &cacheSize); in cleanDisplayResources()
556 err = mResources->getDisplayClientTarget(display, slot, /*useCache*/ true, in cleanDisplayResources()
565 err = mHal->setClientTarget(display, outHandle, fence, dataspace, damage); in cleanDisplayResources()
568 << " of the client target buffer cache for display" << display; in cleanDisplayResources()
572 LOG(ERROR) << "Can't clean client target cache for display " << display; in cleanDisplayResources()
575 err = mResources->getDisplayOutputBufferCacheSize(display, &cacheSize); in cleanDisplayResources()
582 err = mResources->getDisplayOutputBuffer(display, slot, /*useCache*/ true, in cleanDisplayResources()
589 err = mHal->setOutputBuffer(display, outputBuffer, /*fence*/ emptyFd); in cleanDisplayResources()
592 << " of the output buffer cache for display " << display; in cleanDisplayResources()
596 LOG(ERROR) << "Can't clean output buffer cache for display " << display; in cleanDisplayResources()
615 mResources->clear([this](int64_t display, bool isVirtual, const std::vector<int64_t> layers) { in destroyResources() argument
616 LOG(WARNING) << "destroying client resources for display " << display; in destroyResources()
618 mHal->destroyLayer(display, layer); in destroyResources()
622 mHal->destroyVirtualDisplay(display); in destroyResources()
632 mHal->validateDisplay(display, &changedLayers, &compositionTypes, &displayRequestMask, in destroyResources()
635 mHal->acceptDisplayChanges(display); in destroyResources()
640 mHal->presentDisplay(display, presentFence, &releasedLayers, &releaseFences); in destroyResources()