Lines Matching refs:display

86     return {addDisplayToDisplayResources(outVirtualDisplay.display, /*isVirtual*/ true),  in createVirtualDisplay()
90 ScopedAStatus VtsComposerClient::destroyVirtualDisplay(int64_t display) { in destroyVirtualDisplay() argument
91 auto status = mComposerClient->destroyVirtualDisplay(display); in destroyVirtualDisplay()
95 mDisplayResources.erase(display); in destroyVirtualDisplay()
99 std::pair<ScopedAStatus, int64_t> VtsComposerClient::createLayer(int64_t display, in createLayer() argument
104 writer->setLayerLifecycleBatchCommandType(display, layer, in createLayer()
106 writer->setNewBufferSlotCount(display, layer, bufferSlotCount); in createLayer()
107 return {addLayerToDisplayResources(display, layer), layer}; in createLayer()
111 auto status = mComposerClient->createLayer(display, bufferSlotCount, &outLayer); in createLayer()
116 return {addLayerToDisplayResources(display, outLayer), outLayer}; in createLayer()
119 ScopedAStatus VtsComposerClient::destroyLayer(int64_t display, int64_t layer, in destroyLayer() argument
122 writer->setLayerLifecycleBatchCommandType(display, layer, in destroyLayer()
125 auto status = mComposerClient->destroyLayer(display, layer); in destroyLayer()
131 removeLayerFromDisplayResources(display, layer); in destroyLayer()
135 std::pair<ScopedAStatus, int32_t> VtsComposerClient::getActiveConfig(int64_t display) { in getActiveConfig() argument
137 return {mComposerClient->getActiveConfig(display, &outConfig), outConfig}; in getActiveConfig()
167 int64_t display, int32_t config, DisplayAttribute displayAttribute) { in getDisplayAttribute() argument
169 return {mComposerClient->getDisplayAttribute(display, config, displayAttribute, in getDisplayAttribute()
174 ScopedAStatus VtsComposerClient::setPowerMode(int64_t display, PowerMode powerMode) { in setPowerMode() argument
175 return mComposerClient->setPowerMode(display, powerMode); in setPowerMode()
178 ScopedAStatus VtsComposerClient::setVsync(int64_t display, bool enable) { in setVsync() argument
179 return mComposerClient->setVsyncEnabled(display, enable); in setVsync()
203 ScopedAStatus VtsComposerClient::setContentType(int64_t display, ContentType contentType) { in setContentType() argument
204 return mComposerClient->setContentType(display, contentType); in setContentType()
220 int64_t display) { in getDisplayCapabilities() argument
222 return {mComposerClient->getDisplayCapabilities(display, &outCapabilities), outCapabilities}; in getDisplayCapabilities()
238 int64_t display) { in getDisplayIdentificationData() argument
240 return {mComposerClient->getDisplayIdentificationData(display, &outDisplayIdentification), in getDisplayIdentificationData()
244 std::pair<ScopedAStatus, HdrCapabilities> VtsComposerClient::getHdrCapabilities(int64_t display) { in getHdrCapabilities() argument
246 return {mComposerClient->getHdrCapabilities(display, &outHdrCapabilities), outHdrCapabilities}; in getHdrCapabilities()
250 VtsComposerClient::getPerFrameMetadataKeys(int64_t display) { in getPerFrameMetadataKeys() argument
252 return {mComposerClient->getPerFrameMetadataKeys(display, &outPerFrameMetadataKeys), in getPerFrameMetadataKeys()
257 int64_t display) { in getReadbackBufferAttributes() argument
259 return {mComposerClient->getReadbackBufferAttributes(display, &outReadbackBufferAttributes), in getReadbackBufferAttributes()
263 ScopedAStatus VtsComposerClient::setReadbackBuffer(int64_t display, const native_handle_t* buffer, in setReadbackBuffer() argument
265 return mComposerClient->setReadbackBuffer(display, ::android::dupToAidl(buffer), releaseFence); in setReadbackBuffer()
269 int64_t display) { in getReadbackBufferFence() argument
271 return {mComposerClient->getReadbackBufferFence(display, &outReleaseFence), in getReadbackBufferFence()
275 std::pair<ScopedAStatus, std::vector<ColorMode>> VtsComposerClient::getColorModes(int64_t display) { in getColorModes() argument
277 return {mComposerClient->getColorModes(display, &outColorModes), outColorModes}; in getColorModes()
281 int64_t display, ColorMode colorMode) { in getRenderIntents() argument
283 return {mComposerClient->getRenderIntents(display, colorMode, &outRenderIntents), in getRenderIntents()
287 ScopedAStatus VtsComposerClient::setColorMode(int64_t display, ColorMode colorMode, in setColorMode() argument
289 return mComposerClient->setColorMode(display, colorMode, renderIntent); in setColorMode()
293 VtsComposerClient::getDisplayedContentSamplingAttributes(int64_t display) { in getDisplayedContentSamplingAttributes() argument
295 return {mComposerClient->getDisplayedContentSamplingAttributes(display, &outAttributes), in getDisplayedContentSamplingAttributes()
300 int64_t display, bool isEnabled, FormatColorComponent formatColorComponent, in setDisplayedContentSamplingEnabled() argument
302 return mComposerClient->setDisplayedContentSamplingEnabled(display, isEnabled, in setDisplayedContentSamplingEnabled()
307 int64_t display, int64_t maxFrames, int64_t timestamp) { in getDisplayedContentSample() argument
309 return {mComposerClient->getDisplayedContentSample(display, maxFrames, timestamp, in getDisplayedContentSample()
315 int64_t display) { in getDisplayConnectionType() argument
317 return {mComposerClient->getDisplayConnectionType(display, &outDisplayConnectionType), in getDisplayConnectionType()
322 int64_t display) { in getDisplayConfigs() argument
325 return {mComposerClient->getDisplayConfigs(display, &outConfigs), outConfigs}; in getDisplayConfigs()
328 auto [status, configs] = getDisplayConfigurations(display); in getDisplayConfigs()
339 VtsComposerClient::getDisplayConfigurations(int64_t display) { in getDisplayConfigurations() argument
341 return {mComposerClient->getDisplayConfigurations(display, kMaxFrameIntervalNs, &outConfigs), in getDisplayConfigurations()
345 ScopedAStatus VtsComposerClient::notifyExpectedPresent(int64_t display, in notifyExpectedPresent() argument
348 return mComposerClient->notifyExpectedPresent(display, expectedPresentTime, frameIntervalNs); in notifyExpectedPresent()
351 std::pair<ScopedAStatus, int32_t> VtsComposerClient::getDisplayVsyncPeriod(int64_t display) { in getDisplayVsyncPeriod() argument
353 return {mComposerClient->getDisplayVsyncPeriod(display, &outVsyncPeriodNanos), in getDisplayVsyncPeriod()
357 ScopedAStatus VtsComposerClient::setAutoLowLatencyMode(int64_t display, bool isEnabled) { in setAutoLowLatencyMode() argument
358 return mComposerClient->setAutoLowLatencyMode(display, isEnabled); in setAutoLowLatencyMode()
362 int64_t display) { in getSupportedContentTypes() argument
364 return {mComposerClient->getSupportedContentTypes(display, &outContentTypes), outContentTypes}; in getSupportedContentTypes()
368 VtsComposerClient::getDisplayDecorationSupport(int64_t display) { in getDisplayDecorationSupport() argument
370 return {mComposerClient->getDisplayDecorationSupport(display, &outSupport), outSupport}; in getDisplayDecorationSupport()
379 std::pair<ScopedAStatus, std::string> VtsComposerClient::getDisplayName(int64_t display) { in getDisplayName() argument
381 return {mComposerClient->getDisplayName(display, &outDisplayName), outDisplayName}; in getDisplayName()
384 ScopedAStatus VtsComposerClient::setClientTargetSlotCount(int64_t display, in setClientTargetSlotCount() argument
386 return mComposerClient->setClientTargetSlotCount(display, bufferSlotCount); in setClientTargetSlotCount()
394 ScopedAStatus VtsComposerClient::setBootDisplayConfig(int64_t display, int32_t config) { in setBootDisplayConfig() argument
395 return mComposerClient->setBootDisplayConfig(display, config); in setBootDisplayConfig()
398 ScopedAStatus VtsComposerClient::clearBootDisplayConfig(int64_t display) { in clearBootDisplayConfig() argument
399 return mComposerClient->clearBootDisplayConfig(display); in clearBootDisplayConfig()
403 int64_t display) { in getPreferredBootDisplayConfig() argument
405 return {mComposerClient->getPreferredBootDisplayConfig(display, &outConfig), outConfig}; in getPreferredBootDisplayConfig()
423 int64_t display) { in getDisplayPhysicalOrientation() argument
425 return {mComposerClient->getDisplayPhysicalOrientation(display, &outDisplayOrientation), in getDisplayPhysicalOrientation()
434 ScopedAStatus VtsComposerClient::setIdleTimerEnabled(int64_t display, int32_t timeoutMs) { in setIdleTimerEnabled() argument
435 return mComposerClient->setIdleTimerEnabled(display, timeoutMs); in setIdleTimerEnabled()
446 ndk::ScopedAStatus VtsComposerClient::setRefreshRateChangedCallbackDebugEnabled(int64_t display, in setRefreshRateChangedCallbackDebugEnabled() argument
449 return mComposerClient->setRefreshRateChangedCallbackDebugEnabled(display, enabled); in setRefreshRateChangedCallbackDebugEnabled()
465 [id](const auto& display) { return id == display; })) { in getInvalidDisplayId() argument
490 for (int64_t display : displays) { in getDisplays() local
491 auto vtsDisplay = VtsDisplay{display}; in getDisplays()
493 auto [status, configs] = getDisplayConfigurations(display); in getDisplays()
497 display); in getDisplays()
502 auto [status, configs] = getDisplayConfigs(display); in getDisplays()
506 display); in getDisplays()
514 display); in getDisplays()
519 auto activeConfig = getActiveConfig(display); in getDisplays()
523 display); in getDisplays()
531 display); in getDisplays()
536 addDisplayToDisplayResources(display, /*isVirtual*/ false); in getDisplays()
594 ScopedAStatus VtsComposerClient::addDisplayToDisplayResources(int64_t display, bool isVirtual) { in addDisplayToDisplayResources() argument
595 if (mDisplayResources.insert({display, DisplayResource(isVirtual)}).second) { in addDisplayToDisplayResources()
599 ALOGE("Duplicate display id %" PRId64, display); in addDisplayToDisplayResources()
603 ScopedAStatus VtsComposerClient::addLayerToDisplayResources(int64_t display, int64_t layer) { in addLayerToDisplayResources() argument
604 auto resource = mDisplayResources.find(display); in addLayerToDisplayResources()
606 resource = mDisplayResources.insert({display, DisplayResource(false)}).first; in addLayerToDisplayResources()
616 void VtsComposerClient::removeLayerFromDisplayResources(int64_t display, int64_t layer) { in removeLayerFromDisplayResources() argument
617 auto resource = mDisplayResources.find(display); in removeLayerFromDisplayResources()
665 const auto& [display, resource] = *it; in destroyAllLayers()
669 const auto status = destroyLayer(display, layer, writer); in destroyAllLayers()
678 const auto status = destroyVirtualDisplay(display); in destroyAllLayers()
680 ALOGE("Unable to destroy the display %" PRId64 " failed with error %s", display, in destroyAllLayers()