Lines Matching refs:display

356 Error AidlComposer::executeCommands(Display display) {  in executeCommands()  argument
358 auto error = execute(display); in executeCommands()
389 *outDisplay = translate<Display>(virtualDisplay.display); in createVirtualDisplay()
391 addDisplay(translate<Display>(virtualDisplay.display)); in createVirtualDisplay()
395 Error AidlComposer::destroyVirtualDisplay(Display display) { in destroyVirtualDisplay() argument
396 const auto status = mAidlComposerClient->destroyVirtualDisplay(translate<int64_t>(display)); in destroyVirtualDisplay()
401 removeDisplay(display); in destroyVirtualDisplay()
405 Error AidlComposer::acceptDisplayChanges(Display display) { in acceptDisplayChanges() argument
408 if (auto writer = getWriter(display)) { in acceptDisplayChanges()
409 writer->get().acceptDisplayChanges(translate<int64_t>(display)); in acceptDisplayChanges()
417 Error AidlComposer::createLayer(Display display, Layer* outLayer) { in createLayer() argument
421 const auto status = mAidlComposerClient->createLayer(translate<int64_t>(display), in createLayer()
433 if (auto writer = getWriter(display)) { in createLayer()
434 writer->get().setLayerLifecycleBatchCommandType(translate<int64_t>(display), in createLayer()
437 writer->get().setNewBufferSlotCount(translate<int64_t>(display), in createLayer()
448 Error AidlComposer::destroyLayer(Display display, Layer layer) { in destroyLayer() argument
451 const auto status = mAidlComposerClient->destroyLayer(translate<int64_t>(display), in destroyLayer()
459 if (auto writer = getWriter(display)) { in destroyLayer()
461 .setLayerLifecycleBatchCommandType(translate<int64_t>(display), in destroyLayer()
473 Error AidlComposer::getActiveConfig(Display display, Config* outConfig) { in getActiveConfig() argument
475 const auto status = mAidlComposerClient->getActiveConfig(translate<int64_t>(display), &config); in getActiveConfig()
485 Display display, std::vector<Layer>* outLayers, in getChangedCompositionTypes() argument
491 if (auto reader = getReader(display)) { in getChangedCompositionTypes()
492 changedLayers = reader->get().takeChangedCompositionTypes(translate<int64_t>(display)); in getChangedCompositionTypes()
508 Error AidlComposer::getColorModes(Display display, std::vector<ColorMode>* outModes) { in getColorModes() argument
510 const auto status = mAidlComposerClient->getColorModes(translate<int64_t>(display), &modes); in getColorModes()
519 Error AidlComposer::getDisplayAttribute(Display display, Config config, in getDisplayAttribute() argument
522 mAidlComposerClient->getDisplayAttribute(translate<int64_t>(display), in getDisplayAttribute()
533 Error AidlComposer::getDisplayConfigs(Display display, std::vector<Config>* outConfigs) { in getDisplayConfigs() argument
536 mAidlComposerClient->getDisplayConfigs(translate<int64_t>(display), &configs); in getDisplayConfigs()
545 Error AidlComposer::getDisplayConfigurations(Display display, int32_t maxFrameIntervalNs, in getDisplayConfigurations() argument
548 mAidlComposerClient->getDisplayConfigurations(translate<int64_t>(display), in getDisplayConfigurations()
558 Error AidlComposer::getDisplayName(Display display, std::string* outName) { in getDisplayName() argument
559 const auto status = mAidlComposerClient->getDisplayName(translate<int64_t>(display), outName); in getDisplayName()
567 Error AidlComposer::getDisplayRequests(Display display, uint32_t* outDisplayRequestMask, in getDisplayRequests() argument
574 if (auto reader = getReader(display)) { in getDisplayRequests()
575 displayRequests = reader->get().takeDisplayRequests(translate<int64_t>(display)); in getDisplayRequests()
592 Error AidlComposer::getDozeSupport(Display display, bool* outSupport) { in getDozeSupport() argument
595 mAidlComposerClient->getDisplayCapabilities(translate<int64_t>(display), &capabilities); in getDozeSupport()
605 Error AidlComposer::hasDisplayIdleTimerCapability(Display display, bool* outSupport) { in hasDisplayIdleTimerCapability() argument
608 mAidlComposerClient->getDisplayCapabilities(translate<int64_t>(display), &capabilities); in hasDisplayIdleTimerCapability()
618 Error AidlComposer::getHdrCapabilities(Display display, std::vector<Hdr>* outTypes, in getHdrCapabilities() argument
623 mAidlComposerClient->getHdrCapabilities(translate<int64_t>(display), &capabilities); in getHdrCapabilities()
652 Error AidlComposer::getReleaseFences(Display display, std::vector<Layer>* outLayers, in getReleaseFences() argument
658 if (auto reader = getReader(display)) { in getReleaseFences()
659 fences = reader->get().takeReleaseFences(translate<int64_t>(display)); in getReleaseFences()
678 Error AidlComposer::presentDisplay(Display display, int* outPresentFence) { in presentDisplay() argument
679 const auto displayId = translate<int64_t>(display); in presentDisplay()
684 auto writer = getWriter(display); in presentDisplay()
685 auto reader = getReader(display); in presentDisplay()
688 error = execute(display); in presentDisplay()
706 Error AidlComposer::setActiveConfig(Display display, Config config) { in setActiveConfig() argument
707 const auto status = mAidlComposerClient->setActiveConfig(translate<int64_t>(display), in setActiveConfig()
716 Error AidlComposer::setClientTarget(Display display, uint32_t slot, const sp<GraphicBuffer>& target, in setClientTarget() argument
727 if (auto writer = getWriter(display)) { in setClientTarget()
729 .setClientTarget(translate<int64_t>(display), slot, handle, acquireFence, in setClientTarget()
740 Error AidlComposer::setColorMode(Display display, ColorMode mode, RenderIntent renderIntent) { in setColorMode() argument
742 mAidlComposerClient->setColorMode(translate<int64_t>(display), in setColorMode()
752 Error AidlComposer::setColorTransform(Display display, const float* matrix) { in setColorTransform() argument
755 if (auto writer = getWriter(display)) { in setColorTransform()
756 writer->get().setColorTransform(translate<int64_t>(display), matrix); in setColorTransform()
764 Error AidlComposer::setOutputBuffer(Display display, const native_handle_t* buffer, in setOutputBuffer() argument
768 if (auto writer = getWriter(display)) { in setOutputBuffer()
769 writer->get().setOutputBuffer(translate<int64_t>(display), 0, buffer, dup(releaseFence)); in setOutputBuffer()
777 Error AidlComposer::setPowerMode(Display display, IComposerClient::PowerMode mode) { in setPowerMode() argument
778 const auto status = mAidlComposerClient->setPowerMode(translate<int64_t>(display), in setPowerMode()
787 Error AidlComposer::setVsyncEnabled(Display display, IComposerClient::Vsync enabled) { in setVsyncEnabled() argument
790 mAidlComposerClient->setVsyncEnabled(translate<int64_t>(display), enableVsync); in setVsyncEnabled()
798 Error AidlComposer::setClientTargetSlotCount(Display display) { in setClientTargetSlotCount() argument
800 const auto status = mAidlComposerClient->setClientTargetSlotCount(translate<int64_t>(display), in setClientTargetSlotCount()
809 Error AidlComposer::validateDisplay(Display display, nsecs_t expectedPresentTime, in validateDisplay() argument
812 const auto displayId = translate<int64_t>(display); in validateDisplay()
817 auto writer = getWriter(display); in validateDisplay()
818 auto reader = getReader(display); in validateDisplay()
822 error = execute(display); in validateDisplay()
838 Error AidlComposer::presentOrValidateDisplay(Display display, nsecs_t expectedPresentTime, in presentOrValidateDisplay() argument
842 const auto displayId = translate<int64_t>(display); in presentOrValidateDisplay()
847 auto writer = getWriter(display); in presentOrValidateDisplay()
848 auto reader = getReader(display); in presentOrValidateDisplay()
853 error = execute(display); in presentOrValidateDisplay()
887 Error AidlComposer::setCursorPosition(Display display, Layer layer, int32_t x, int32_t y) { in setCursorPosition() argument
890 if (auto writer = getWriter(display)) { in setCursorPosition()
891 writer->get().setLayerCursorPosition(translate<int64_t>(display), translate<int64_t>(layer), in setCursorPosition()
900 Error AidlComposer::setLayerBuffer(Display display, Layer layer, uint32_t slot, in setLayerBuffer() argument
909 if (auto writer = getWriter(display)) { in setLayerBuffer()
910 writer->get().setLayerBuffer(translate<int64_t>(display), translate<int64_t>(layer), slot, in setLayerBuffer()
919 Error AidlComposer::setLayerBufferSlotsToClear(Display display, Layer layer, in setLayerBufferSlotsToClear() argument
928 if (auto writer = getWriter(display)) { in setLayerBufferSlotsToClear()
930 writer->get().setLayerBufferSlotsToClear(translate<int64_t>(display), in setLayerBufferSlotsToClear()
939 writer->get().setLayerBufferWithNewCommand(translate<int64_t>(display), in setLayerBufferSlotsToClear()
949 writer->get().setLayerBufferWithNewCommand(translate<int64_t>(display), in setLayerBufferSlotsToClear()
962 Error AidlComposer::setLayerSurfaceDamage(Display display, Layer layer, in setLayerSurfaceDamage() argument
966 if (auto writer = getWriter(display)) { in setLayerSurfaceDamage()
967 writer->get().setLayerSurfaceDamage(translate<int64_t>(display), translate<int64_t>(layer), in setLayerSurfaceDamage()
976 Error AidlComposer::setLayerBlendMode(Display display, Layer layer, in setLayerBlendMode() argument
980 if (auto writer = getWriter(display)) { in setLayerBlendMode()
981 writer->get().setLayerBlendMode(translate<int64_t>(display), translate<int64_t>(layer), in setLayerBlendMode()
990 Error AidlComposer::setLayerColor(Display display, Layer layer, const Color& color) { in setLayerColor() argument
993 if (auto writer = getWriter(display)) { in setLayerColor()
994 writer->get().setLayerColor(translate<int64_t>(display), translate<int64_t>(layer), color); in setLayerColor()
1003 Display display, Layer layer, in setLayerCompositionType() argument
1007 if (auto writer = getWriter(display)) { in setLayerCompositionType()
1008 writer->get().setLayerCompositionType(translate<int64_t>(display), in setLayerCompositionType()
1017 Error AidlComposer::setLayerDataspace(Display display, Layer layer, Dataspace dataspace) { in setLayerDataspace() argument
1020 if (auto writer = getWriter(display)) { in setLayerDataspace()
1021 writer->get().setLayerDataspace(translate<int64_t>(display), translate<int64_t>(layer), in setLayerDataspace()
1030 Error AidlComposer::setLayerDisplayFrame(Display display, Layer layer, in setLayerDisplayFrame() argument
1034 if (auto writer = getWriter(display)) { in setLayerDisplayFrame()
1035 writer->get().setLayerDisplayFrame(translate<int64_t>(display), translate<int64_t>(layer), in setLayerDisplayFrame()
1044 Error AidlComposer::setLayerPlaneAlpha(Display display, Layer layer, float alpha) { in setLayerPlaneAlpha() argument
1047 if (auto writer = getWriter(display)) { in setLayerPlaneAlpha()
1048 writer->get().setLayerPlaneAlpha(translate<int64_t>(display), translate<int64_t>(layer), in setLayerPlaneAlpha()
1057 Error AidlComposer::setLayerSidebandStream(Display display, Layer layer, in setLayerSidebandStream() argument
1061 if (auto writer = getWriter(display)) { in setLayerSidebandStream()
1062 writer->get().setLayerSidebandStream(translate<int64_t>(display), translate<int64_t>(layer), in setLayerSidebandStream()
1071 Error AidlComposer::setLayerSourceCrop(Display display, Layer layer, in setLayerSourceCrop() argument
1075 if (auto writer = getWriter(display)) { in setLayerSourceCrop()
1076 writer->get().setLayerSourceCrop(translate<int64_t>(display), translate<int64_t>(layer), in setLayerSourceCrop()
1085 Error AidlComposer::setLayerTransform(Display display, Layer layer, Transform transform) { in setLayerTransform() argument
1088 if (auto writer = getWriter(display)) { in setLayerTransform()
1089 writer->get().setLayerTransform(translate<int64_t>(display), translate<int64_t>(layer), in setLayerTransform()
1098 Error AidlComposer::setLayerVisibleRegion(Display display, Layer layer, in setLayerVisibleRegion() argument
1102 if (auto writer = getWriter(display)) { in setLayerVisibleRegion()
1103 writer->get().setLayerVisibleRegion(translate<int64_t>(display), translate<int64_t>(layer), in setLayerVisibleRegion()
1112 Error AidlComposer::setLayerZOrder(Display display, Layer layer, uint32_t z) { in setLayerZOrder() argument
1115 if (auto writer = getWriter(display)) { in setLayerZOrder()
1116 writer->get().setLayerZOrder(translate<int64_t>(display), translate<int64_t>(layer), z); in setLayerZOrder()
1124 Error AidlComposer::execute(Display display) { in execute() argument
1125 auto writer = getWriter(display); in execute()
1126 auto reader = getReader(display); in execute()
1168 Display display, Layer layer, in setLayerPerFrameMetadata() argument
1172 if (auto writer = getWriter(display)) { in setLayerPerFrameMetadata()
1173 writer->get().setLayerPerFrameMetadata(translate<int64_t>(display), in setLayerPerFrameMetadata()
1184 Display display) { in getPerFrameMetadataKeys() argument
1187 mAidlComposerClient->getPerFrameMetadataKeys(translate<int64_t>(display), &keys); in getPerFrameMetadataKeys()
1195 Error AidlComposer::getRenderIntents(Display display, ColorMode colorMode, in getRenderIntents() argument
1198 const auto status = mAidlComposerClient->getRenderIntents(translate<int64_t>(display), in getRenderIntents()
1222 Error AidlComposer::getDisplayIdentificationData(Display display, uint8_t* outPort, in getDisplayIdentificationData() argument
1226 mAidlComposerClient->getDisplayIdentificationData(translate<int64_t>(display), in getDisplayIdentificationData()
1239 Error AidlComposer::setLayerColorTransform(Display display, Layer layer, const float* matrix) { in setLayerColorTransform() argument
1242 if (auto writer = getWriter(display)) { in setLayerColorTransform()
1243 writer->get().setLayerColorTransform(translate<int64_t>(display), translate<int64_t>(layer), in setLayerColorTransform()
1252 Error AidlComposer::getDisplayedContentSamplingAttributes(Display display, PixelFormat* outFormat, in getDisplayedContentSamplingAttributes() argument
1261 mAidlComposerClient->getDisplayedContentSamplingAttributes(translate<int64_t>(display), in getDisplayedContentSamplingAttributes()
1274 Error AidlComposer::setDisplayContentSamplingEnabled(Display display, bool enabled, in setDisplayContentSamplingEnabled() argument
1278 ->setDisplayedContentSamplingEnabled(translate<int64_t>(display), enabled, in setDisplayContentSamplingEnabled()
1289 Error AidlComposer::getDisplayedContentSample(Display display, uint64_t maxFrames, in getDisplayedContentSample() argument
1297 mAidlComposerClient->getDisplayedContentSample(translate<int64_t>(display), in getDisplayedContentSample()
1310 Display display, Layer layer, in setLayerPerFrameMetadataBlobs() argument
1314 if (auto writer = getWriter(display)) { in setLayerPerFrameMetadataBlobs()
1315 writer->get().setLayerPerFrameMetadataBlobs(translate<int64_t>(display), in setLayerPerFrameMetadataBlobs()
1325 Error AidlComposer::setDisplayBrightness(Display display, float brightness, float brightnessNits, in setDisplayBrightness() argument
1329 if (auto writer = getWriter(display)) { in setDisplayBrightness()
1330 writer->get().setDisplayBrightness(translate<int64_t>(display), brightness, brightnessNits); in setDisplayBrightness()
1333 error = execute(display); in setDisplayBrightness()
1344 Error AidlComposer::getDisplayCapabilities(Display display, in getDisplayCapabilities() argument
1346 const auto status = mAidlComposerClient->getDisplayCapabilities(translate<int64_t>(display), in getDisplayCapabilities()
1357 Display display, IComposerClient::DisplayConnectionType* outType) { in getDisplayConnectionType() argument
1360 mAidlComposerClient->getDisplayConnectionType(translate<int64_t>(display), &type); in getDisplayConnectionType()
1369 V2_4::Error AidlComposer::getDisplayVsyncPeriod(Display display, VsyncPeriodNanos* outVsyncPeriod) { in getDisplayVsyncPeriod() argument
1372 mAidlComposerClient->getDisplayVsyncPeriod(translate<int64_t>(display), &vsyncPeriod); in getDisplayVsyncPeriod()
1382 Display display, Config config, in setActiveConfigWithConstraints() argument
1388 ->setActiveConfigWithConstraints(translate<int64_t>(display), in setActiveConfigWithConstraints()
1401 V2_4::Error AidlComposer::setAutoLowLatencyMode(Display display, bool on) { in setAutoLowLatencyMode() argument
1402 const auto status = mAidlComposerClient->setAutoLowLatencyMode(translate<int64_t>(display), on); in setAutoLowLatencyMode()
1423 V2_4::Error AidlComposer::setContentType(Display display, in setContentType() argument
1426 mAidlComposerClient->setContentType(translate<int64_t>(display), in setContentType()
1447 Error AidlComposer::setBootDisplayConfig(Display display, Config config) { in setBootDisplayConfig() argument
1448 const auto status = mAidlComposerClient->setBootDisplayConfig(translate<int64_t>(display), in setBootDisplayConfig()
1457 Error AidlComposer::clearBootDisplayConfig(Display display) { in clearBootDisplayConfig() argument
1458 const auto status = mAidlComposerClient->clearBootDisplayConfig(translate<int64_t>(display)); in clearBootDisplayConfig()
1466 Error AidlComposer::getPreferredBootDisplayConfig(Display display, Config* config) { in getPreferredBootDisplayConfig() argument
1469 mAidlComposerClient->getPreferredBootDisplayConfig(translate<int64_t>(display), in getPreferredBootDisplayConfig()
1530 Display display, ClientTargetPropertyWithBrightness* outClientTargetProperty) { in getClientTargetProperty() argument
1533 if (auto reader = getReader(display)) { in getClientTargetProperty()
1535 reader->get().takeClientTargetProperty(translate<int64_t>(display)); in getClientTargetProperty()
1543 Error AidlComposer::setLayerBrightness(Display display, Layer layer, float brightness) { in setLayerBrightness() argument
1546 if (auto writer = getWriter(display)) { in setLayerBrightness()
1547 writer->get().setLayerBrightness(translate<int64_t>(display), translate<int64_t>(layer), in setLayerBrightness()
1556 Error AidlComposer::setLayerBlockingRegion(Display display, Layer layer, in setLayerBlockingRegion() argument
1560 if (auto writer = getWriter(display)) { in setLayerBlockingRegion()
1561 writer->get().setLayerBlockingRegion(translate<int64_t>(display), translate<int64_t>(layer), in setLayerBlockingRegion()
1570 Error AidlComposer::getDisplayDecorationSupport(Display display, in getDisplayDecorationSupport() argument
1573 mAidlComposerClient->getDisplayDecorationSupport(translate<int64_t>(display), support); in getDisplayDecorationSupport()
1605 ftl::Optional<std::reference_wrapper<ComposerClientWriter>> AidlComposer::getWriter(Display display) in getWriter() argument
1607 return mWriters.get(display); in getWriter()
1610 ftl::Optional<std::reference_wrapper<ComposerClientReader>> AidlComposer::getReader(Display display) in getReader() argument
1613 display = translate<Display>(kSingleReaderKey); in getReader()
1615 return mReaders.get(display); in getReader()
1618 void AidlComposer::removeDisplay(Display display) { in removeDisplay() argument
1620 bool wasErased = mWriters.erase(display); in removeDisplay()
1623 translate<int64_t>(display)); in removeDisplay()
1625 removeReader(display); in removeDisplay()
1630 void AidlComposer::onHotplugDisconnect(Display display) { in onHotplugDisconnect() argument
1631 removeDisplay(display); in onHotplugDisconnect()
1634 bool AidlComposer::hasMultiThreadedPresentSupport(Display display) { in hasMultiThreadedPresentSupport() argument
1636 const auto displayId = translate<int64_t>(display); in hasMultiThreadedPresentSupport()
1647 void AidlComposer::addReader(Display display) { in addReader() argument
1648 const auto displayId = translate<int64_t>(display); in addReader()
1653 auto [it, added] = mReaders.try_emplace(display, std::move(displayOpt)); in addReader()
1658 void AidlComposer::removeReader(Display display) { in removeReader() argument
1659 bool wasErased = mReaders.erase(display); in removeReader()
1662 translate<int64_t>(display)); in removeReader()
1665 void AidlComposer::addDisplay(Display display) { in addDisplay() argument
1666 const auto displayId = translate<int64_t>(display); in addDisplay()
1668 auto [it, added] = mWriters.try_emplace(display, displayId); in addDisplay()
1672 if (hasMultiThreadedPresentSupport(display)) { in addDisplay()
1681 addReader(display); in addDisplay()
1686 void AidlComposer::onHotplugConnect(Display display) { in onHotplugConnect() argument
1687 addDisplay(display); in onHotplugConnect()