Lines Matching refs:halDisplay
174 int32_t HalImpl::getHalDisplay(int64_t display, ExynosDisplay*& halDisplay) { in getHalDisplay() argument
177 halDisplay = mDevice->getDisplay(static_cast<uint32_t>(hwcDisplay)); in getHalDisplay()
179 if (!halDisplay) { [[unlikely]] in getHalDisplay()
186 ExynosDisplay* halDisplay; in getHalLayer() local
187 RET_IF_ERR(getHalDisplay(display, halDisplay)); in getHalLayer()
191 halLayer = halDisplay->checkLayer(mapped_layer); in getHalLayer()
200 ExynosDisplay* halDisplay; in layerSf2Hwc() local
201 RET_IF_ERR(getHalDisplay(display, halDisplay)); in layerSf2Hwc()
272 ExynosDisplay* halDisplay; in acceptDisplayChanges() local
273 RET_IF_ERR(getHalDisplay(display, halDisplay)); in acceptDisplayChanges()
275 return halDisplay->acceptDisplayChanges(); in acceptDisplayChanges()
279 ExynosDisplay* halDisplay; in createLayer() local
280 RET_IF_ERR(getHalDisplay(display, halDisplay)); in createLayer()
283 RET_IF_ERR(halDisplay->createLayer(&hwcLayer)); in createLayer()
296 ExynosDisplay* halDisplay; in batchedCreateDestroyLayer() local
297 RET_IF_ERR(getHalDisplay(display, halDisplay)); in batchedCreateDestroyLayer()
303 RET_IF_ERR(halDisplay->createLayer(&hwcLayer)); in batchedCreateDestroyLayer()
319 err = halDisplay->destroyLayer(reinterpret_cast<hwc2_layer_t>(halLayer)); in batchedCreateDestroyLayer()
336 ExynosDisplay* halDisplay; in destroyLayer() local
337 RET_IF_ERR(getHalDisplay(display, halDisplay)); in destroyLayer()
341 err = halDisplay->destroyLayer(reinterpret_cast<hwc2_layer_t>(halLayer)); in destroyLayer()
358 auto halDisplay = mDevice->getDisplay(static_cast<uint32_t>(hwcDisplay)); in createVirtualDisplay() local
359 if (!halDisplay) { in createVirtualDisplay()
363 RET_IF_ERR(mDevice->createVirtualDisplay(width, height, &hwcFormat, halDisplay)); in createVirtualDisplay()
372 ExynosDisplay* halDisplay; in destroyVirtualDisplay() local
373 RET_IF_ERR(getHalDisplay(display, halDisplay)); in destroyVirtualDisplay()
375 return mDevice->destroyVirtualDisplay(halDisplay); in destroyVirtualDisplay()
379 ExynosDisplay* halDisplay; in getActiveConfig() local
380 RET_IF_ERR(getHalDisplay(display, halDisplay)); in getActiveConfig()
383 RET_IF_ERR(halDisplay->getActiveConfig(&hwcConfig)); in getActiveConfig()
390 ExynosDisplay* halDisplay; in getColorModes() local
391 RET_IF_ERR(getHalDisplay(display, halDisplay)); in getColorModes()
394 RET_IF_ERR(halDisplay->getColorModes(&count, nullptr)); in getColorModes()
397 RET_IF_ERR(halDisplay->getColorModes(&count, hwcModes.data())); in getColorModes()
419 ExynosDisplay* halDisplay; in getDisplayAttribute() local
420 RET_IF_ERR(getHalDisplay(display, halDisplay)); in getDisplayAttribute()
427 auto err = halDisplay->getDisplayAttribute(hwcConfig, hwcAttr, outValue); in getDisplayAttribute()
435 ExynosDisplay* halDisplay; in getDisplayBrightnessSupport() local
436 RET_IF_ERR(getHalDisplay(display, halDisplay)); in getDisplayBrightnessSupport()
438 return halDisplay->getDisplayBrightnessSupport(&outSupport); in getDisplayBrightnessSupport()
443 ExynosDisplay* halDisplay; in getDisplayCapabilities() local
444 RET_IF_ERR(getHalDisplay(display, halDisplay)); in getDisplayCapabilities()
447 RET_IF_ERR(halDisplay->getDisplayCapabilities(&count, nullptr)); in getDisplayCapabilities()
450 RET_IF_ERR(halDisplay->getDisplayCapabilities(&count, hwcCaps.data())); in getDisplayCapabilities()
457 ExynosDisplay* halDisplay; in getDisplayConfigs() local
458 RET_IF_ERR(getHalDisplay(display, halDisplay)); in getDisplayConfigs()
461 RET_IF_ERR(halDisplay->getDisplayConfigs(&count, nullptr)); in getDisplayConfigs()
464 RET_IF_ERR(halDisplay->getDisplayConfigs(&count, hwcConfigs.data())); in getDisplayConfigs()
472 ExynosDisplay* halDisplay; in getDisplayConfigurations() local
473 RET_IF_ERR(getHalDisplay(display, halDisplay)); in getDisplayConfigurations()
500 std::optional<VrrConfig_t> vrrConfig = halDisplay->getVrrConfigs(hwcConfigId); in getDisplayConfigurations()
525 ExynosDisplay* halDisplay; in notifyExpectedPresent() local
526 RET_IF_ERR(getHalDisplay(display, halDisplay)); in notifyExpectedPresent()
529 halDisplay->notifyExpectedPresent(expectedPresentTime.timestampNanos, frameIntervalNs)); in notifyExpectedPresent()
534 ExynosDisplay* halDisplay; in getDisplayConnectionType() local
535 RET_IF_ERR(getHalDisplay(display, halDisplay)); in getDisplayConnectionType()
538 RET_IF_ERR(halDisplay->getDisplayConnectionType(&hwcType)); in getDisplayConnectionType()
545 ExynosDisplay* halDisplay; in getDisplayIdentificationData() local
546 RET_IF_ERR(getHalDisplay(display, halDisplay)); in getDisplayIdentificationData()
550 RET_IF_ERR(halDisplay->getDisplayIdentificationData(&port, &count, nullptr)); in getDisplayIdentificationData()
553 RET_IF_ERR(halDisplay->getDisplayIdentificationData(&port, &count, id->data.data())); in getDisplayIdentificationData()
560 ExynosDisplay* halDisplay; in getDisplayName() local
561 RET_IF_ERR(getHalDisplay(display, halDisplay)); in getDisplayName()
564 RET_IF_ERR(halDisplay->getDisplayName(&count, nullptr)); in getDisplayName()
567 RET_IF_ERR(halDisplay->getDisplayName(&count, outName->data())); in getDisplayName()
573 ExynosDisplay* halDisplay; in getDisplayVsyncPeriod() local
574 RET_IF_ERR(getHalDisplay(display, halDisplay)); in getDisplayVsyncPeriod()
577 RET_IF_ERR(halDisplay->getDisplayVsyncPeriod(&hwcVsyncPeriod)); in getDisplayVsyncPeriod()
598 ExynosDisplay* halDisplay; in getDisplayPhysicalOrientation() local
599 RET_IF_ERR(getHalDisplay(display, halDisplay)); in getDisplayPhysicalOrientation()
602 RET_IF_ERR(halDisplay->getMountOrientation(&hwcOrientation)); in getDisplayPhysicalOrientation()
609 ExynosDisplay* halDisplay; in getDozeSupport() local
610 RET_IF_ERR(getHalDisplay(display, halDisplay)); in getDozeSupport()
613 RET_IF_ERR(halDisplay->getDozeSupport(&hwcSupport)); in getDozeSupport()
620 ExynosDisplay* halDisplay; in getHdrCapabilities() local
621 RET_IF_ERR(getHalDisplay(display, halDisplay)); in getHdrCapabilities()
624 RET_IF_ERR(halDisplay->getHdrCapabilities(&count, nullptr, &caps->maxLuminance, in getHdrCapabilities()
628 RET_IF_ERR(halDisplay->getHdrCapabilities(&count, hwcHdrTypes.data(), in getHdrCapabilities()
650 ExynosDisplay* halDisplay; in getPerFrameMetadataKeys() local
651 RET_IF_ERR(getHalDisplay(display, halDisplay)); in getPerFrameMetadataKeys()
671 ExynosDisplay* halDisplay; in getReadbackBufferAttributes() local
672 RET_IF_ERR(getHalDisplay(display, halDisplay)); in getReadbackBufferAttributes()
676 RET_IF_ERR(halDisplay->getReadbackBufferAttributes(&format, &dataspace)); in getReadbackBufferAttributes()
686 ExynosDisplay* halDisplay; in getReadbackBufferFence() local
687 RET_IF_ERR(getHalDisplay(display, halDisplay)); in getReadbackBufferFence()
690 RET_IF_ERR(halDisplay->getReadbackBufferFence(&fd)); in getReadbackBufferFence()
698 ExynosDisplay* halDisplay; in getRenderIntents() local
699 RET_IF_ERR(getHalDisplay(display, halDisplay)); in getRenderIntents()
704 RET_IF_ERR(halDisplay->getRenderIntents(hwcMode, &count, nullptr)); in getRenderIntents()
707 RET_IF_ERR(halDisplay->getRenderIntents(hwcMode, &count, hwcIntents.data())); in getRenderIntents()
714 ExynosDisplay* halDisplay; in getSupportedContentTypes() local
715 RET_IF_ERR(getHalDisplay(display, halDisplay)); in getSupportedContentTypes()
718 RET_IF_ERR(halDisplay->getSupportedContentTypes(&count, nullptr)); in getSupportedContentTypes()
721 RET_IF_ERR(halDisplay->getSupportedContentTypes(&count, hwcTypes.data())); in getSupportedContentTypes()
728 ExynosDisplay* halDisplay; in flushDisplayBrightnessChange() local
729 RET_IF_ERR(getHalDisplay(display, halDisplay)); in flushDisplayBrightnessChange()
731 return halDisplay->flushDisplayBrightnessChange(); in flushDisplayBrightnessChange()
737 ExynosDisplay* halDisplay; in presentDisplay() local
738 RET_IF_ERR(getHalDisplay(display, halDisplay)); in presentDisplay()
741 if (halDisplay->mRenderingState == RENDERING_STATE_VALIDATED) { in presentDisplay()
742 LOG(INFO) << halDisplay->mDisplayName.c_str() in presentDisplay()
744 if (halDisplay->acceptDisplayChanges() != HWC2_ERROR_NONE) { in presentDisplay()
745 LOG(ERROR) << halDisplay->mDisplayName.c_str() in presentDisplay()
751 RET_IF_ERR(halDisplay->presentDisplay(&hwcFence)); in presentDisplay()
755 RET_IF_ERR(halDisplay->getReleaseFences(&count, nullptr, nullptr)); in presentDisplay()
759 RET_IF_ERR(halDisplay->getReleaseFences(&count, hwcLayers.data(), hwcFences.data())); in presentDisplay()
777 ExynosDisplay* halDisplay; in setActiveConfig() local
778 RET_IF_ERR(getHalDisplay(display, halDisplay)); in setActiveConfig()
782 return halDisplay->setActiveConfig(hwcConfig); in setActiveConfig()
789 ExynosDisplay* halDisplay; in setActiveConfigWithConstraints() local
790 RET_IF_ERR(getHalDisplay(display, halDisplay)); in setActiveConfigWithConstraints()
798 … RET_IF_ERR(halDisplay->setActiveConfigWithConstraints(hwcConfig, &hwcConstraints, &hwcTimeline)); in setActiveConfigWithConstraints()
805 ExynosDisplay* halDisplay; in setBootDisplayConfig() local
806 RET_IF_ERR(getHalDisplay(display, halDisplay)); in setBootDisplayConfig()
808 return halDisplay->setBootDisplayConfig(config); in setBootDisplayConfig()
812 ExynosDisplay* halDisplay; in clearBootDisplayConfig() local
813 RET_IF_ERR(getHalDisplay(display, halDisplay)); in clearBootDisplayConfig()
815 return halDisplay->clearBootDisplayConfig(); in clearBootDisplayConfig()
819 ExynosDisplay* halDisplay; in getPreferredBootDisplayConfig() local
820 RET_IF_ERR(getHalDisplay(display, halDisplay)); in getPreferredBootDisplayConfig()
822 return halDisplay->getPreferredBootDisplayConfig(config); in getPreferredBootDisplayConfig()
834 ExynosDisplay* halDisplay; in setAutoLowLatencyMode() local
835 RET_IF_ERR(getHalDisplay(display, halDisplay)); in setAutoLowLatencyMode()
837 return halDisplay->setAutoLowLatencyMode(on); in setAutoLowLatencyMode()
844 ExynosDisplay* halDisplay; in setClientTarget() local
845 RET_IF_ERR(getHalDisplay(display, halDisplay)); in setClientTarget()
857 return halDisplay->setClientTarget(target, hwcFence, hwcDataspace); in setClientTarget()
861 ExynosDisplay* halDisplay; in getHasClientComposition() local
862 RET_IF_ERR(getHalDisplay(display, halDisplay)); in getHasClientComposition()
864 outHasClientComp = halDisplay->hasClientComposition(); in getHasClientComposition()
870 ExynosDisplay* halDisplay; in setColorMode() local
871 RET_IF_ERR(getHalDisplay(display, halDisplay)); in setColorMode()
878 return halDisplay->setColorModeWithRenderIntent(hwcMode, hwcIntent); in setColorMode()
894 ExynosDisplay* halDisplay; in setColorTransform() local
895 RET_IF_ERR(getHalDisplay(display, halDisplay)); in setColorTransform()
899 return halDisplay->setColorTransform(matrix.data(), hwcHint); in setColorTransform()
903 ExynosDisplay* halDisplay; in setContentType() local
904 RET_IF_ERR(getHalDisplay(display, halDisplay)); in setContentType()
908 return halDisplay->setContentType(type); in setContentType()
912 ExynosDisplay* halDisplay; in setDisplayBrightness() local
913 RET_IF_ERR(getHalDisplay(display, halDisplay)); in setDisplayBrightness()
915 return halDisplay->setDisplayBrightness(brightness, true /* wait present */); in setDisplayBrightness()
949 ExynosDisplay* halDisplay; in uncacheLayerBuffers() local
950 RET_IF_ERR(getHalDisplay(display, halDisplay)); in uncacheLayerBuffers()
955 return halDisplay->uncacheLayerBuffers(halLayer, buffers, outClearableBuffers); in uncacheLayerBuffers()
1126 ExynosDisplay* halDisplay; in setOutputBuffer() local
1127 RET_IF_ERR(getHalDisplay(display, halDisplay)); in setOutputBuffer()
1132 auto err = halDisplay->setOutputBuffer(buffer, hwcFence); in setOutputBuffer()
1146 ExynosDisplay* halDisplay; in setPowerMode() local
1147 RET_IF_ERR(getHalDisplay(display, halDisplay)); in setPowerMode()
1151 return halDisplay->setPowerMode(hwcMode); in setPowerMode()
1155 ExynosDisplay* halDisplay; in getPowerMode() local
1156 RET_IF_ERR(getHalDisplay(display, halDisplay)); in getPowerMode()
1158 auto mode = halDisplay->getPowerMode(); in getPowerMode()
1165 ExynosDisplay* halDisplay; in setReadbackBuffer() local
1166 RET_IF_ERR(getHalDisplay(display, halDisplay)); in setReadbackBuffer()
1171 return halDisplay->setReadbackBuffer(buffer, hwcFence); in setReadbackBuffer()
1175 ExynosDisplay* halDisplay; in setVsyncEnabled() local
1176 RET_IF_ERR(getHalDisplay(display, halDisplay)); in setVsyncEnabled()
1180 return halDisplay->setVsyncEnabled(hwcEnable); in setVsyncEnabled()
1184 ExynosDisplay* halDisplay; in setIdleTimerEnabled() local
1185 RET_IF_ERR(getHalDisplay(display, halDisplay)); in setIdleTimerEnabled()
1187 return halDisplay->setDisplayIdleTimer(timeout); in setIdleTimerEnabled()
1197 ExynosDisplay* halDisplay; in validateDisplay() local
1198 RET_IF_ERR(getHalDisplay(display, halDisplay)); in validateDisplay()
1202 auto err = halDisplay->validateDisplay(&typesCount, &reqsCount); in validateDisplay()
1210 RET_IF_ERR(halDisplay->getChangedCompositionTypes(&typesCount, hwcChangedLayers.data(), in validateDisplay()
1216 RET_IF_ERR(halDisplay->getDisplayRequests(&displayReqs, &reqsCount, in validateDisplay()
1244 if (!halDisplay->getClientTargetProperty(&hwcProperty, &hwcDimmingStage)) { in validateDisplay()
1255 ExynosDisplay* halDisplay; in setExpectedPresentTime() local
1256 RET_IF_ERR(getHalDisplay(display, halDisplay)); in setExpectedPresentTime()
1260 if (halDisplay->getPendingExpectedPresentTime() != 0) { in setExpectedPresentTime()
1264 halDisplay->setExpectedPresentTime(expectedPresentTime->timestampNanos, frameIntervalNs); in setExpectedPresentTime()
1270 ExynosDisplay* halDisplay; in getRCDLayerSupport() local
1271 RET_IF_ERR(getHalDisplay(display, halDisplay)); in getRCDLayerSupport()
1273 return halDisplay->getRCDLayerSupport(outSupport); in getRCDLayerSupport()
1289 ExynosDisplay* halDisplay; in getDisplayIdleTimerSupport() local
1290 RET_IF_ERR(getHalDisplay(display, halDisplay)); in getDisplayIdleTimerSupport()
1292 return halDisplay->getDisplayIdleTimerSupport(outSupport); in getDisplayIdleTimerSupport()
1296 ExynosDisplay* halDisplay; in getDisplayMultiThreadedPresentSupport() local
1297 RET_IF_ERR(getHalDisplay(display, halDisplay)); in getDisplayMultiThreadedPresentSupport()
1299 return halDisplay->getDisplayMultiThreadedPresentSupport(outSupport); in getDisplayMultiThreadedPresentSupport()
1303 ExynosDisplay* halDisplay; in setRefreshRateChangedCallbackDebugEnabled() local
1304 RET_IF_ERR(getHalDisplay(display, halDisplay)); in setRefreshRateChangedCallbackDebugEnabled()
1306 return halDisplay->setRefreshRateChangedCallbackDebugEnabled(enabled); in setRefreshRateChangedCallbackDebugEnabled()