Lines Matching refs:error

45 #define LOG_HWC_ERROR(what, error, displayId)                          \  argument
47 to_string(displayId).c_str(), to_string(error).c_str(), static_cast<int32_t>(error))
57 #define RETURN_IF_HWC_ERROR_FOR(what, error, displayId, ...) \ argument
59 if (error != HWC2::Error::None) { \
60 LOG_HWC_ERROR(what, error, displayId); \
65 #define RETURN_IF_HWC_ERROR(error, displayId, ...) \ argument
66 RETURN_IF_HWC_ERROR_FOR(__FUNCTION__, error, displayId, __VA_ARGS__)
88 const auto error = mHwcDevice->getDisplayIdentificationData(hwcDisplayId, outPort, outData); in getDisplayIdentificationData() local
89 if (error != HWC2::Error::None) { in getDisplayIdentificationData()
90 if (error != HWC2::Error::Unsupported) { in getDisplayIdentificationData()
91 LOG_HWC_DISPLAY_ERROR(hwcDisplayId, to_string(error).c_str()); in getDisplayIdentificationData()
226 auto error = mHwcDevice->createVirtualDisplay(width, height, format, in allocateVirtualDisplay() local
228 if (error != HWC2::Error::None) { in allocateVirtualDisplay()
254 auto error = display->createLayer(&layer); in createLayer() local
255 RETURN_IF_HWC_ERROR(error, displayId, nullptr); in createLayer()
263 auto error = display->destroyLayer(layer); in destroyLayer() local
264 RETURN_IF_HWC_ERROR(error, displayId); in destroyLayer()
303 auto error = mDisplayData.at(displayId).hwcDisplay->getActiveConfig(&config); in getActiveConfig() local
304 if (error == HWC2::Error::BadConfig) { in getActiveConfig()
309 RETURN_IF_HWC_ERROR(error, displayId, nullptr); in getActiveConfig()
323 auto error = mDisplayData.at(displayId).hwcDisplay->getActiveConfigIndex(&index); in getActiveConfigIndex() local
324 if (error == HWC2::Error::BadConfig) { in getActiveConfigIndex()
329 RETURN_IF_HWC_ERROR(error, displayId, -1); in getActiveConfigIndex()
343 auto error = mDisplayData.at(displayId).hwcDisplay->getColorModes(&modes); in getColorModes() local
344 RETURN_IF_HWC_ERROR(error, displayId, {}); in getColorModes()
353 auto error = displayData.hwcDisplay->setColorMode(mode, renderIntent); in setActiveColorMode() local
357 error, displayId, UNKNOWN_ERROR); in setActiveColorMode()
381 auto error = displayData.hwcDisplay->setVsyncEnabled(enabled); in setVsyncEnabled() local
382 RETURN_IF_HWC_ERROR(error, displayId); in setVsyncEnabled()
397 auto error = hwcDisplay->setClientTarget(slot, target, acquireFence, dataspace); in setClientTarget() local
398 RETURN_IF_HWC_ERROR(error, displayId, BAD_VALUE); in setClientTarget()
416 HWC2::Error error = HWC2::Error::None; in prepare() local
430 error = hwcDisplay->presentOrValidate(&numTypes, &numRequests, &outPresentFence , &state); in prepare()
431 if (error != HWC2::Error::HasChanges) { in prepare()
432 RETURN_IF_HWC_ERROR_FOR("presentOrValidate", error, displayId, UNKNOWN_ERROR); in prepare()
436 error = hwcDisplay->getReleaseFences(&releaseFences); in prepare()
440 displayData.presentError = error; in prepare()
445 error = hwcDisplay->validate(&numTypes, &numRequests); in prepare()
448 if (error != HWC2::Error::HasChanges) { in prepare()
449 RETURN_IF_HWC_ERROR_FOR("validate", error, displayId, BAD_INDEX); in prepare()
454 error = hwcDisplay->getChangedCompositionTypes(&changedTypes); in prepare()
455 RETURN_IF_HWC_ERROR_FOR("getChangedCompositionTypes", error, displayId, BAD_INDEX); in prepare()
460 error = hwcDisplay->getRequests(&displayData.displayRequests, in prepare()
462 RETURN_IF_HWC_ERROR_FOR("getRequests", error, displayId, BAD_INDEX); in prepare()
505 error = hwcDisplay->acceptChanges(); in prepare()
506 RETURN_IF_HWC_ERROR_FOR("acceptChanges", error, displayId, BAD_INDEX); in prepare()
570 auto error = mHwcDevice->flushCommands(); in presentAndGetReleaseFences() local
571 RETURN_IF_HWC_ERROR_FOR("flushCommands", error, displayId, UNKNOWN_ERROR); in presentAndGetReleaseFences()
576 auto error = hwcDisplay->present(&displayData.lastPresentFence); in presentAndGetReleaseFences() local
577 RETURN_IF_HWC_ERROR_FOR("present", error, displayId, UNKNOWN_ERROR); in presentAndGetReleaseFences()
580 error = hwcDisplay->getReleaseFences(&releaseFences); in presentAndGetReleaseFences()
581 RETURN_IF_HWC_ERROR_FOR("getReleaseFences", error, displayId, UNKNOWN_ERROR); in presentAndGetReleaseFences()
608 auto error = hwcDisplay->setPowerMode(mode); in setPowerMode() local
609 if (error != HWC2::Error::None) { in setPowerMode()
611 error, displayId); in setPowerMode()
620 auto error = hwcDisplay->supportsDoze(&supportsDoze); in setPowerMode() local
621 if (error != HWC2::Error::None) { in setPowerMode()
622 LOG_HWC_ERROR("supportsDoze", error, displayId); in setPowerMode()
629 error = hwcDisplay->setPowerMode(mode); in setPowerMode()
630 if (error != HWC2::Error::None) { in setPowerMode()
632 error, displayId); in setPowerMode()
653 auto error = displayData.hwcDisplay->setActiveConfig(displayData.configMap[configId]); in setActiveConfig() local
654 RETURN_IF_HWC_ERROR(error, displayId, UNKNOWN_ERROR); in setActiveConfig()
663 auto error = displayData.hwcDisplay->setColorTransform(transform, in setColorTransform() local
666 RETURN_IF_HWC_ERROR(error, displayId, UNKNOWN_ERROR); in setColorTransform()
705 auto error = displayData.hwcDisplay->setOutputBuffer(buffer, acquireFence); in setOutputBuffer() local
706 RETURN_IF_HWC_ERROR(error, displayId, UNKNOWN_ERROR); in setOutputBuffer()
719 auto error = hwcDisplay->getHdrCapabilities(outCapabilities); in getHdrCapabilities() local
720 RETURN_IF_HWC_ERROR(error, displayId, UNKNOWN_ERROR); in getHdrCapabilities()
734 auto error = mDisplayData.at(displayId).hwcDisplay->getRenderIntents(colorMode, &renderIntents); in getRenderIntents() local
735 RETURN_IF_HWC_ERROR(error, displayId, {}); in getRenderIntents()
743 auto error = mDisplayData[displayId].hwcDisplay->getDataspaceSaturationMatrix(dataspace, in getDataspaceSaturationMatrix() local
745 RETURN_IF_HWC_ERROR(error, displayId, {}); in getDataspaceSaturationMatrix()
754 const auto error = in getDisplayedContentSamplingAttributes() local
758 if (error == HWC2::Error::Unsupported) RETURN_IF_HWC_ERROR(error, displayId, INVALID_OPERATION); in getDisplayedContentSamplingAttributes()
759 RETURN_IF_HWC_ERROR(error, displayId, UNKNOWN_ERROR); in getDisplayedContentSamplingAttributes()
766 const auto error = in setDisplayContentSamplingEnabled() local
771 if (error == HWC2::Error::Unsupported) RETURN_IF_HWC_ERROR(error, displayId, INVALID_OPERATION); in setDisplayContentSamplingEnabled()
772 if (error == HWC2::Error::BadParameter) RETURN_IF_HWC_ERROR(error, displayId, BAD_VALUE); in setDisplayContentSamplingEnabled()
773 RETURN_IF_HWC_ERROR(error, displayId, UNKNOWN_ERROR); in setDisplayContentSamplingEnabled()
780 const auto error = in getDisplayedContentSample() local
783 RETURN_IF_HWC_ERROR(error, displayId, UNKNOWN_ERROR); in getDisplayedContentSample()
789 const auto error = mDisplayData[displayId].hwcDisplay->setDisplayBrightness(brightness); in setDisplayBrightness() local
790 if (error == HWC2::Error::Unsupported) { in setDisplayBrightness()
791 RETURN_IF_HWC_ERROR(error, displayId, INVALID_OPERATION); in setDisplayBrightness()
793 if (error == HWC2::Error::BadParameter) { in setDisplayBrightness()
794 RETURN_IF_HWC_ERROR(error, displayId, BAD_VALUE); in setDisplayBrightness()
796 RETURN_IF_HWC_ERROR(error, displayId, UNKNOWN_ERROR); in setDisplayBrightness()