Lines Matching refs:Error
356 Error AidlComposer::executeCommands(Display display) { in executeCommands()
373 Error AidlComposer::createVirtualDisplay(uint32_t width, uint32_t height, PixelFormat* format, in createVirtualDisplay()
386 return static_cast<Error>(status.getServiceSpecificError()); in createVirtualDisplay()
392 return Error::NONE; in createVirtualDisplay()
395 Error AidlComposer::destroyVirtualDisplay(Display display) { in destroyVirtualDisplay()
399 return static_cast<Error>(status.getServiceSpecificError()); in destroyVirtualDisplay()
402 return Error::NONE; in destroyVirtualDisplay()
405 Error AidlComposer::acceptDisplayChanges(Display display) { in acceptDisplayChanges()
406 Error error = Error::NONE; in acceptDisplayChanges()
411 error = Error::BAD_DISPLAY; in acceptDisplayChanges()
417 Error AidlComposer::createLayer(Display display, Layer* outLayer) { in createLayer()
419 Error error = Error::NONE; in createLayer()
425 return static_cast<Error>(status.getServiceSpecificError()); in createLayer()
440 error = Error::BAD_DISPLAY; in createLayer()
448 Error AidlComposer::destroyLayer(Display display, Layer layer) { in destroyLayer()
449 Error error = Error::NONE; in destroyLayer()
455 return static_cast<Error>(status.getServiceSpecificError()); in destroyLayer()
465 error = Error::BAD_DISPLAY; in destroyLayer()
473 Error AidlComposer::getActiveConfig(Display display, Config* outConfig) { in getActiveConfig()
478 return static_cast<Error>(status.getServiceSpecificError()); in getActiveConfig()
481 return Error::NONE; in getActiveConfig()
484 Error AidlComposer::getChangedCompositionTypes( in getChangedCompositionTypes()
488 Error error = Error::NONE; in getChangedCompositionTypes()
494 error = Error::BAD_DISPLAY; in getChangedCompositionTypes()
508 Error AidlComposer::getColorModes(Display display, std::vector<ColorMode>* outModes) { in getColorModes()
513 return static_cast<Error>(status.getServiceSpecificError()); in getColorModes()
516 return Error::NONE; in getColorModes()
519 Error AidlComposer::getDisplayAttribute(Display display, Config config, in getDisplayAttribute()
528 return static_cast<Error>(status.getServiceSpecificError()); in getDisplayAttribute()
530 return Error::NONE; in getDisplayAttribute()
533 Error AidlComposer::getDisplayConfigs(Display display, std::vector<Config>* outConfigs) { in getDisplayConfigs()
539 return static_cast<Error>(status.getServiceSpecificError()); in getDisplayConfigs()
542 return Error::NONE; in getDisplayConfigs()
545 Error AidlComposer::getDisplayConfigurations(Display display, int32_t maxFrameIntervalNs, in getDisplayConfigurations()
552 return static_cast<Error>(status.getServiceSpecificError()); in getDisplayConfigurations()
555 return Error::NONE; in getDisplayConfigurations()
558 Error AidlComposer::getDisplayName(Display display, std::string* outName) { in getDisplayName()
562 return static_cast<Error>(status.getServiceSpecificError()); in getDisplayName()
564 return Error::NONE; in getDisplayName()
567 Error AidlComposer::getDisplayRequests(Display display, uint32_t* outDisplayRequestMask, in getDisplayRequests()
570 Error error = Error::NONE; in getDisplayRequests()
577 error = Error::BAD_DISPLAY; in getDisplayRequests()
592 Error AidlComposer::getDozeSupport(Display display, bool* outSupport) { in getDozeSupport()
598 return static_cast<Error>(status.getServiceSpecificError()); in getDozeSupport()
602 return Error::NONE; in getDozeSupport()
605 Error AidlComposer::hasDisplayIdleTimerCapability(Display display, bool* outSupport) { in hasDisplayIdleTimerCapability()
611 return static_cast<Error>(status.getServiceSpecificError()); in hasDisplayIdleTimerCapability()
615 return Error::NONE; in hasDisplayIdleTimerCapability()
618 Error AidlComposer::getHdrCapabilities(Display display, std::vector<Hdr>* outTypes, in getHdrCapabilities()
626 return static_cast<Error>(status.getServiceSpecificError()); in getHdrCapabilities()
633 return Error::NONE; in getHdrCapabilities()
643 Error AidlComposer::getOverlaySupport(AidlOverlayProperties* outProperties) { in getOverlaySupport()
647 return static_cast<Error>(status.getServiceSpecificError()); in getOverlaySupport()
649 return Error::NONE; in getOverlaySupport()
652 Error AidlComposer::getReleaseFences(Display display, std::vector<Layer>* outLayers, in getReleaseFences()
654 Error error = Error::NONE; in getReleaseFences()
661 error = Error::BAD_DISPLAY; in getReleaseFences()
678 Error AidlComposer::presentDisplay(Display display, int* outPresentFence) { in presentDisplay()
682 Error error = Error::NONE; in presentDisplay()
690 error = Error::BAD_DISPLAY; in presentDisplay()
693 if (error != Error::NONE) { in presentDisplay()
703 return Error::NONE; in presentDisplay()
706 Error AidlComposer::setActiveConfig(Display display, Config config) { in setActiveConfig()
711 return static_cast<Error>(status.getServiceSpecificError()); in setActiveConfig()
713 return Error::NONE; in setActiveConfig()
716 Error AidlComposer::setClientTarget(Display display, uint32_t slot, const sp<GraphicBuffer>& target, in setClientTarget()
725 Error error = Error::NONE; in setClientTarget()
734 error = Error::BAD_DISPLAY; in setClientTarget()
740 Error AidlComposer::setColorMode(Display display, ColorMode mode, RenderIntent renderIntent) { in setColorMode()
747 return static_cast<Error>(status.getServiceSpecificError()); in setColorMode()
749 return Error::NONE; in setColorMode()
752 Error AidlComposer::setColorTransform(Display display, const float* matrix) { in setColorTransform()
753 auto error = Error::NONE; in setColorTransform()
758 error = Error::BAD_DISPLAY; in setColorTransform()
764 Error AidlComposer::setOutputBuffer(Display display, const native_handle_t* buffer, in setOutputBuffer()
766 auto error = Error::NONE; in setOutputBuffer()
771 error = Error::BAD_DISPLAY; in setOutputBuffer()
777 Error AidlComposer::setPowerMode(Display display, IComposerClient::PowerMode mode) { in setPowerMode()
782 return static_cast<Error>(status.getServiceSpecificError()); in setPowerMode()
784 return Error::NONE; in setPowerMode()
787 Error AidlComposer::setVsyncEnabled(Display display, IComposerClient::Vsync enabled) { in setVsyncEnabled()
793 return static_cast<Error>(status.getServiceSpecificError()); in setVsyncEnabled()
795 return Error::NONE; in setVsyncEnabled()
798 Error AidlComposer::setClientTargetSlotCount(Display display) { in setClientTargetSlotCount()
804 return static_cast<Error>(status.getServiceSpecificError()); in setClientTargetSlotCount()
806 return Error::NONE; in setClientTargetSlotCount()
809 Error AidlComposer::validateDisplay(Display display, nsecs_t expectedPresentTime, in validateDisplay()
815 Error error = Error::NONE; in validateDisplay()
824 error = Error::BAD_DISPLAY; in validateDisplay()
827 if (error != Error::NONE) { in validateDisplay()
835 return Error::NONE; in validateDisplay()
838 Error AidlComposer::presentOrValidateDisplay(Display display, nsecs_t expectedPresentTime, in presentOrValidateDisplay()
845 Error error = Error::NONE; in presentOrValidateDisplay()
855 error = Error::BAD_DISPLAY; in presentOrValidateDisplay()
858 if (error != Error::NONE) { in presentOrValidateDisplay()
867 return Error::NO_RESOURCES; in presentOrValidateDisplay()
884 return Error::NONE; in presentOrValidateDisplay()
887 Error AidlComposer::setCursorPosition(Display display, Layer layer, int32_t x, int32_t y) { in setCursorPosition()
888 Error error = Error::NONE; in setCursorPosition()
894 error = Error::BAD_DISPLAY; in setCursorPosition()
900 Error AidlComposer::setLayerBuffer(Display display, Layer layer, uint32_t slot, in setLayerBuffer()
907 Error error = Error::NONE; in setLayerBuffer()
913 error = Error::BAD_DISPLAY; in setLayerBuffer()
919 Error AidlComposer::setLayerBufferSlotsToClear(Display display, Layer layer, in setLayerBufferSlotsToClear()
923 return Error::NONE; in setLayerBufferSlotsToClear()
926 Error error = Error::NONE; in setLayerBufferSlotsToClear()
956 error = Error::BAD_DISPLAY; in setLayerBufferSlotsToClear()
962 Error AidlComposer::setLayerSurfaceDamage(Display display, Layer layer, in setLayerSurfaceDamage()
964 Error error = Error::NONE; in setLayerSurfaceDamage()
970 error = Error::BAD_DISPLAY; in setLayerSurfaceDamage()
976 Error AidlComposer::setLayerBlendMode(Display display, Layer layer, in setLayerBlendMode()
978 Error error = Error::NONE; in setLayerBlendMode()
984 error = Error::BAD_DISPLAY; in setLayerBlendMode()
990 Error AidlComposer::setLayerColor(Display display, Layer layer, const Color& color) { in setLayerColor()
991 Error error = Error::NONE; in setLayerColor()
996 error = Error::BAD_DISPLAY; in setLayerColor()
1002 Error AidlComposer::setLayerCompositionType( in setLayerCompositionType()
1005 Error error = Error::NONE; in setLayerCompositionType()
1011 error = Error::BAD_DISPLAY; in setLayerCompositionType()
1017 Error AidlComposer::setLayerDataspace(Display display, Layer layer, Dataspace dataspace) { in setLayerDataspace()
1018 Error error = Error::NONE; in setLayerDataspace()
1024 error = Error::BAD_DISPLAY; in setLayerDataspace()
1030 Error AidlComposer::setLayerDisplayFrame(Display display, Layer layer, in setLayerDisplayFrame()
1032 Error error = Error::NONE; in setLayerDisplayFrame()
1038 error = Error::BAD_DISPLAY; in setLayerDisplayFrame()
1044 Error AidlComposer::setLayerPlaneAlpha(Display display, Layer layer, float alpha) { in setLayerPlaneAlpha()
1045 Error error = Error::NONE; in setLayerPlaneAlpha()
1051 error = Error::BAD_DISPLAY; in setLayerPlaneAlpha()
1057 Error AidlComposer::setLayerSidebandStream(Display display, Layer layer, in setLayerSidebandStream()
1059 Error error = Error::NONE; in setLayerSidebandStream()
1065 error = Error::BAD_DISPLAY; in setLayerSidebandStream()
1071 Error AidlComposer::setLayerSourceCrop(Display display, Layer layer, in setLayerSourceCrop()
1073 Error error = Error::NONE; in setLayerSourceCrop()
1079 error = Error::BAD_DISPLAY; in setLayerSourceCrop()
1085 Error AidlComposer::setLayerTransform(Display display, Layer layer, Transform transform) { in setLayerTransform()
1086 Error error = Error::NONE; in setLayerTransform()
1092 error = Error::BAD_DISPLAY; in setLayerTransform()
1098 Error AidlComposer::setLayerVisibleRegion(Display display, Layer layer, in setLayerVisibleRegion()
1100 Error error = Error::NONE; in setLayerVisibleRegion()
1106 error = Error::BAD_DISPLAY; in setLayerVisibleRegion()
1112 Error AidlComposer::setLayerZOrder(Display display, Layer layer, uint32_t z) { in setLayerZOrder()
1113 Error error = Error::NONE; in setLayerZOrder()
1118 error = Error::BAD_DISPLAY; in setLayerZOrder()
1124 Error AidlComposer::execute(Display display) { in execute()
1128 return Error::BAD_DISPLAY; in execute()
1133 return Error::NONE; in execute()
1141 return static_cast<Error>(status.getServiceSpecificError()); in execute()
1147 Error error = Error::NONE; in execute()
1152 return Error::BAD_PARAMETER; in execute()
1157 error = translate<Error>(cmdErr.errorCode); in execute()
1167 Error AidlComposer::setLayerPerFrameMetadata( in setLayerPerFrameMetadata()
1170 Error error = Error::NONE; in setLayerPerFrameMetadata()
1177 error = Error::BAD_DISPLAY; in setLayerPerFrameMetadata()
1195 Error AidlComposer::getRenderIntents(Display display, ColorMode colorMode, in getRenderIntents()
1203 return static_cast<Error>(status.getServiceSpecificError()); in getRenderIntents()
1206 return Error::NONE; in getRenderIntents()
1209 Error AidlComposer::getDataspaceSaturationMatrix(Dataspace dataspace, mat4* outMatrix) { in getDataspaceSaturationMatrix()
1216 return static_cast<Error>(status.getServiceSpecificError()); in getDataspaceSaturationMatrix()
1219 return Error::NONE; in getDataspaceSaturationMatrix()
1222 Error AidlComposer::getDisplayIdentificationData(Display display, uint8_t* outPort, in getDisplayIdentificationData()
1230 return static_cast<Error>(status.getServiceSpecificError()); in getDisplayIdentificationData()
1236 return Error::NONE; in getDisplayIdentificationData()
1239 Error AidlComposer::setLayerColorTransform(Display display, Layer layer, const float* matrix) { in setLayerColorTransform()
1240 Error error = Error::NONE; in setLayerColorTransform()
1246 error = Error::BAD_DISPLAY; in setLayerColorTransform()
1252 Error AidlComposer::getDisplayedContentSamplingAttributes(Display display, PixelFormat* outFormat, in getDisplayedContentSamplingAttributes()
1256 return Error::BAD_PARAMETER; in getDisplayedContentSamplingAttributes()
1265 return static_cast<Error>(status.getServiceSpecificError()); in getDisplayedContentSamplingAttributes()
1271 return Error::NONE; in getDisplayedContentSamplingAttributes()
1274 Error AidlComposer::setDisplayContentSamplingEnabled(Display display, bool enabled, in setDisplayContentSamplingEnabled()
1284 return static_cast<Error>(status.getServiceSpecificError()); in setDisplayContentSamplingEnabled()
1286 return Error::NONE; in setDisplayContentSamplingEnabled()
1289 Error AidlComposer::getDisplayedContentSample(Display display, uint64_t maxFrames, in getDisplayedContentSample()
1292 return Error::BAD_PARAMETER; in getDisplayedContentSample()
1303 return static_cast<Error>(status.getServiceSpecificError()); in getDisplayedContentSample()
1306 return Error::NONE; in getDisplayedContentSample()
1309 Error AidlComposer::setLayerPerFrameMetadataBlobs( in setLayerPerFrameMetadataBlobs()
1312 Error error = Error::NONE; in setLayerPerFrameMetadataBlobs()
1319 error = Error::BAD_DISPLAY; in setLayerPerFrameMetadataBlobs()
1325 Error AidlComposer::setDisplayBrightness(Display display, float brightness, float brightnessNits, in setDisplayBrightness()
1327 Error error = Error::NONE; in setDisplayBrightness()
1338 error = Error::BAD_DISPLAY; in setDisplayBrightness()
1344 Error AidlComposer::getDisplayCapabilities(Display display, in getDisplayCapabilities()
1351 return static_cast<Error>(status.getServiceSpecificError()); in getDisplayCapabilities()
1353 return Error::NONE; in getDisplayCapabilities()
1356 V2_4::Error AidlComposer::getDisplayConnectionType( in getDisplayConnectionType()
1363 return static_cast<V2_4::Error>(status.getServiceSpecificError()); in getDisplayConnectionType()
1366 return V2_4::Error::NONE; in getDisplayConnectionType()
1369 V2_4::Error AidlComposer::getDisplayVsyncPeriod(Display display, VsyncPeriodNanos* outVsyncPeriod) { in getDisplayVsyncPeriod()
1375 return static_cast<V2_4::Error>(status.getServiceSpecificError()); in getDisplayVsyncPeriod()
1378 return V2_4::Error::NONE; in getDisplayVsyncPeriod()
1381 V2_4::Error AidlComposer::setActiveConfigWithConstraints( in setActiveConfigWithConstraints()
1395 return static_cast<V2_4::Error>(status.getServiceSpecificError()); in setActiveConfigWithConstraints()
1398 return V2_4::Error::NONE; in setActiveConfigWithConstraints()
1401 V2_4::Error AidlComposer::setAutoLowLatencyMode(Display display, bool on) { in setAutoLowLatencyMode()
1405 return static_cast<V2_4::Error>(status.getServiceSpecificError()); in setAutoLowLatencyMode()
1407 return V2_4::Error::NONE; in setAutoLowLatencyMode()
1410 V2_4::Error AidlComposer::getSupportedContentTypes( in getSupportedContentTypes()
1417 return static_cast<V2_4::Error>(status.getServiceSpecificError()); in getSupportedContentTypes()
1420 return V2_4::Error::NONE; in getSupportedContentTypes()
1423 V2_4::Error AidlComposer::setContentType(Display display, in setContentType()
1430 return static_cast<V2_4::Error>(status.getServiceSpecificError()); in setContentType()
1432 return V2_4::Error::NONE; in setContentType()
1435 V2_4::Error AidlComposer::setLayerGenericMetadata(Display, Layer, const std::string&, bool, in setLayerGenericMetadata()
1438 return V2_4::Error::UNSUPPORTED; in setLayerGenericMetadata()
1441 V2_4::Error AidlComposer::getLayerGenericMetadataKeys( in getLayerGenericMetadataKeys()
1444 return V2_4::Error::UNSUPPORTED; in getLayerGenericMetadataKeys()
1447 Error AidlComposer::setBootDisplayConfig(Display display, Config config) { in setBootDisplayConfig()
1452 return static_cast<Error>(status.getServiceSpecificError()); in setBootDisplayConfig()
1454 return Error::NONE; in setBootDisplayConfig()
1457 Error AidlComposer::clearBootDisplayConfig(Display display) { in clearBootDisplayConfig()
1461 return static_cast<Error>(status.getServiceSpecificError()); in clearBootDisplayConfig()
1463 return Error::NONE; in clearBootDisplayConfig()
1466 Error AidlComposer::getPreferredBootDisplayConfig(Display display, Config* config) { in getPreferredBootDisplayConfig()
1473 return static_cast<Error>(status.getServiceSpecificError()); in getPreferredBootDisplayConfig()
1476 return Error::NONE; in getPreferredBootDisplayConfig()
1479 Error AidlComposer::getHdrConversionCapabilities( in getHdrConversionCapabilities()
1486 return static_cast<Error>(status.getServiceSpecificError()); in getHdrConversionCapabilities()
1488 return Error::NONE; in getHdrConversionCapabilities()
1491 Error AidlComposer::setHdrConversionStrategy(AidlHdrConversionStrategy hdrConversionStrategy, in setHdrConversionStrategy()
1497 return static_cast<Error>(status.getServiceSpecificError()); in setHdrConversionStrategy()
1499 return Error::NONE; in setHdrConversionStrategy()
1502 Error AidlComposer::setRefreshRateChangedCallbackDebugEnabled(Display displayId, bool enabled) { in setRefreshRateChangedCallbackDebugEnabled()
1510 return static_cast<Error>(status.getServiceSpecificError()); in setRefreshRateChangedCallbackDebugEnabled()
1512 return Error::NONE; in setRefreshRateChangedCallbackDebugEnabled()
1515 Error AidlComposer::notifyExpectedPresent(Display displayId, nsecs_t expectedPresentTime, in notifyExpectedPresent()
1524 return static_cast<Error>(status.getServiceSpecificError()); in notifyExpectedPresent()
1526 return Error::NONE; in notifyExpectedPresent()
1529 Error AidlComposer::getClientTargetProperty( in getClientTargetProperty()
1531 Error error = Error::NONE; in getClientTargetProperty()
1537 error = Error::BAD_DISPLAY; in getClientTargetProperty()
1543 Error AidlComposer::setLayerBrightness(Display display, Layer layer, float brightness) { in setLayerBrightness()
1544 Error error = Error::NONE; in setLayerBrightness()
1550 error = Error::BAD_DISPLAY; in setLayerBrightness()
1556 Error AidlComposer::setLayerBlockingRegion(Display display, Layer layer, in setLayerBlockingRegion()
1558 Error error = Error::NONE; in setLayerBlockingRegion()
1564 error = Error::BAD_DISPLAY; in setLayerBlockingRegion()
1570 Error AidlComposer::getDisplayDecorationSupport(Display display, in getDisplayDecorationSupport()
1577 return static_cast<Error>(status.getServiceSpecificError()); in getDisplayDecorationSupport()
1579 return Error::NONE; in getDisplayDecorationSupport()
1582 Error AidlComposer::setIdleTimerEnabled(Display displayId, std::chrono::milliseconds timeout) { in setIdleTimerEnabled()
1588 return static_cast<Error>(status.getServiceSpecificError()); in setIdleTimerEnabled()
1590 return Error::NONE; in setIdleTimerEnabled()
1593 Error AidlComposer::getPhysicalDisplayOrientation(Display displayId, in getPhysicalDisplayOrientation()
1600 return static_cast<Error>(status.getServiceSpecificError()); in getPhysicalDisplayOrientation()
1602 return Error::NONE; in getPhysicalDisplayOrientation()