Lines Matching refs:Error
126 Error Device::getDisplayIdentificationData(hwc2_display_t hwcDisplayId, uint8_t* outPort, in getDisplayIdentificationData()
129 return static_cast<Error>(intError); in getDisplayIdentificationData()
132 Error Device::createVirtualDisplay(uint32_t width, uint32_t height, in createVirtualDisplay()
140 auto error = static_cast<Error>(intError); in createVirtualDisplay()
141 if (error != Error::None) { in createVirtualDisplay()
151 return Error::None; in createVirtualDisplay()
176 auto error = static_cast<Error>(intError); in onHotplug()
177 if (error != Error::None) { in onHotplug()
220 Error Device::flushCommands() in flushCommands()
222 return static_cast<Error>(mComposer->executeCommands()); in flushCommands()
273 auto error = static_cast<Error>(intError); in ~Display()
274 ALOGE_IF(error != Error::None, "destroyVirtualDisplay(%" PRIu64 in ~Display()
278 if (error != Error::None) { in ~Display()
287 Error Display::acceptChanges() in acceptChanges()
290 return static_cast<Error>(intError); in acceptChanges()
293 Error Display::createLayer(HWC2::Layer** outLayer) { in createLayer()
295 return Error::BadParameter; in createLayer()
299 auto error = static_cast<Error>(intError); in createLayer()
300 if (error != Error::None) { in createLayer()
307 return Error::None; in createLayer()
310 Error Display::destroyLayer(HWC2::Layer* layer) { in destroyLayer()
312 return Error::BadParameter; in destroyLayer()
315 return Error::None; in destroyLayer()
318 Error Display::getActiveConfig( in getActiveConfig()
324 auto error = static_cast<Error>(intError); in getActiveConfig()
326 if (error != Error::None) { in getActiveConfig()
342 return Error::None; in getActiveConfig()
345 Error Display::getActiveConfigIndex(int* outIndex) const { in getActiveConfigIndex()
349 auto error = static_cast<Error>(intError); in getActiveConfigIndex()
351 if (error != Error::None) { in getActiveConfigIndex()
367 return Error::None; in getActiveConfigIndex()
370 Error Display::getChangedCompositionTypes(std::unordered_map<HWC2::Layer*, Composition>* outTypes) { in getChangedCompositionTypes()
376 auto error = static_cast<Error>(intError); in getChangedCompositionTypes()
377 error = static_cast<Error>(intError); in getChangedCompositionTypes()
378 if (error != Error::None) { in getChangedCompositionTypes()
397 return Error::None; in getChangedCompositionTypes()
400 Error Display::getColorModes(std::vector<ColorMode>* outModes) const in getColorModes()
403 return static_cast<Error>(intError); in getColorModes()
443 Error Display::getRenderIntents(ColorMode colorMode, in getRenderIntents()
447 return static_cast<Error>(intError); in getRenderIntents()
450 Error Display::getDataspaceSaturationMatrix(Dataspace dataspace, android::mat4* outMatrix) in getDataspaceSaturationMatrix()
453 return static_cast<Error>(intError); in getDataspaceSaturationMatrix()
465 Error Display::getName(std::string* outName) const in getName()
468 return static_cast<Error>(intError); in getName()
471 Error Display::getRequests(HWC2::DisplayRequest* outDisplayRequests, in getRequests()
479 auto error = static_cast<Error>(intError); in getRequests()
480 if (error != Error::None) { in getRequests()
499 return Error::None; in getRequests()
502 Error Display::getType(DisplayType* outType) const in getType()
505 return Error::None; in getType()
508 Error Display::supportsDoze(bool* outSupport) const { in supportsDoze()
510 return Error::None; in supportsDoze()
513 Error Display::getHdrCapabilities(HdrCapabilities* outCapabilities) const in getHdrCapabilities()
521 auto error = static_cast<HWC2::Error>(intError); in getHdrCapabilities()
523 if (error != Error::None) { in getHdrCapabilities()
529 return Error::None; in getHdrCapabilities()
532 Error Display::getDisplayedContentSamplingAttributes(PixelFormat* outFormat, in getDisplayedContentSamplingAttributes()
537 return static_cast<Error>(intError); in getDisplayedContentSamplingAttributes()
540 Error Display::setDisplayContentSamplingEnabled(bool enabled, uint8_t componentMask, in setDisplayContentSamplingEnabled()
544 return static_cast<Error>(intError); in setDisplayContentSamplingEnabled()
547 Error Display::getDisplayedContentSample(uint64_t maxFrames, uint64_t timestamp, in getDisplayedContentSample()
550 return static_cast<Error>(intError); in getDisplayedContentSample()
553 Error Display::getReleaseFences(std::unordered_map<HWC2::Layer*, sp<Fence>>* outFences) const { in getReleaseFences()
557 auto error = static_cast<Error>(intError); in getReleaseFences()
559 if (error != Error::None) { in getReleaseFences()
576 return Error::BadLayer; in getReleaseFences()
581 return Error::None; in getReleaseFences()
584 Error Display::present(sp<Fence>* outPresentFence) in present()
588 auto error = static_cast<Error>(intError); in present()
589 if (error != Error::None) { in present()
594 return Error::None; in present()
597 Error Display::setActiveConfig(const std::shared_ptr<const Config>& config) in setActiveConfig()
603 return Error::BadConfig; in setActiveConfig()
606 return static_cast<Error>(intError); in setActiveConfig()
609 Error Display::setClientTarget(uint32_t slot, const sp<GraphicBuffer>& target, in setClientTarget()
616 return static_cast<Error>(intError); in setClientTarget()
619 Error Display::setColorMode(ColorMode mode, RenderIntent renderIntent) in setColorMode()
622 return static_cast<Error>(intError); in setColorMode()
625 Error Display::setColorTransform(const android::mat4& matrix, in setColorTransform()
630 return static_cast<Error>(intError); in setColorTransform()
633 Error Display::setOutputBuffer(const sp<GraphicBuffer>& buffer, in setOutputBuffer()
640 return static_cast<Error>(intError); in setOutputBuffer()
643 Error Display::setPowerMode(PowerMode mode) in setPowerMode()
652 static_cast<Error>(mComposer.getDisplayCapabilities(mId, &tmpCapabilities)); in setPowerMode()
653 if (error == Error::None) { in setPowerMode()
657 } else if (error == Error::Unsupported) { in setPowerMode()
662 error = static_cast<Error>(mComposer.getDozeSupport(mId, &dozeSupport)); in setPowerMode()
663 if (error == Error::None && dozeSupport) { in setPowerMode()
670 return static_cast<Error>(intError); in setPowerMode()
673 Error Display::setVsyncEnabled(Vsync enabled) in setVsyncEnabled()
677 return static_cast<Error>(intError); in setVsyncEnabled()
680 Error Display::validate(uint32_t* outNumTypes, uint32_t* outNumRequests) in validate()
685 auto error = static_cast<Error>(intError); in validate()
686 if (error != Error::None && error != Error::HasChanges) { in validate()
695 Error Display::presentOrValidate(uint32_t* outNumTypes, uint32_t* outNumRequests, in presentOrValidate()
703 auto error = static_cast<Error>(intError); in presentOrValidate()
704 if (error != Error::None && error != Error::HasChanges) { in presentOrValidate()
719 Error Display::setDisplayBrightness(float brightness) const { in setDisplayBrightness()
721 return static_cast<Error>(intError); in setDisplayBrightness()
742 auto error = static_cast<Error>(intError); in getAttribute()
743 if (error != Error::None) { in getAttribute()
772 auto error = static_cast<Error>(intError); in loadConfigs()
773 if (error != Error::None) { in loadConfigs()
815 auto error = static_cast<Error>(intError); in ~Layer()
816 ALOGE_IF(error != Error::None, "destroyLayer(%" PRIu64 ", %" PRIu64 ")" in ~Layer()
821 Error Layer::setCursorPosition(int32_t x, int32_t y) in setCursorPosition()
824 return static_cast<Error>(intError); in setCursorPosition()
827 Error Layer::setBuffer(uint32_t slot, const sp<GraphicBuffer>& buffer, in setBuffer()
831 return Error::None; in setBuffer()
838 return static_cast<Error>(intError); in setBuffer()
841 Error Layer::setSurfaceDamage(const Region& damage) in setSurfaceDamage()
845 return Error::None; in setSurfaceDamage()
851 Hwc2::Error intError = Hwc2::Error::NONE; in setSurfaceDamage()
868 return static_cast<Error>(intError); in setSurfaceDamage()
871 Error Layer::setBlendMode(BlendMode mode) in setBlendMode()
875 return static_cast<Error>(intError); in setBlendMode()
878 Error Layer::setColor(hwc_color_t color) in setColor()
882 return static_cast<Error>(intError); in setColor()
885 Error Layer::setCompositionType(Composition type) in setCompositionType()
890 return static_cast<Error>(intError); in setCompositionType()
893 Error Layer::setDataspace(Dataspace dataspace) in setDataspace()
896 return Error::None; in setDataspace()
900 return static_cast<Error>(intError); in setDataspace()
903 Error Layer::setPerFrameMetadata(const int32_t supportedPerFrameMetadata, in setPerFrameMetadata()
907 return Error::None; in setPerFrameMetadata()
945 Error error = static_cast<Error>( in setPerFrameMetadata()
952 Error setMetadataBlobsError = static_cast<Error>( in setPerFrameMetadata()
954 if (error == Error::None) { in setPerFrameMetadata()
961 Error Layer::setDisplayFrame(const Rect& frame) in setDisplayFrame()
966 return static_cast<Error>(intError); in setDisplayFrame()
969 Error Layer::setPlaneAlpha(float alpha) in setPlaneAlpha()
972 return static_cast<Error>(intError); in setPlaneAlpha()
975 Error Layer::setSidebandStream(const native_handle_t* stream) in setSidebandStream()
980 return Error::Unsupported; in setSidebandStream()
983 return static_cast<Error>(intError); in setSidebandStream()
986 Error Layer::setSourceCrop(const FloatRect& crop) in setSourceCrop()
991 return static_cast<Error>(intError); in setSourceCrop()
994 Error Layer::setTransform(Transform transform) in setTransform()
998 return static_cast<Error>(intError); in setTransform()
1001 Error Layer::setVisibleRegion(const Region& region) in setVisibleRegion()
1005 return Error::None; in setVisibleRegion()
1019 return static_cast<Error>(intError); in setVisibleRegion()
1022 Error Layer::setZOrder(uint32_t z) in setZOrder()
1025 return static_cast<Error>(intError); in setZOrder()
1028 Error Layer::setInfo(uint32_t type, uint32_t appId) in setInfo()
1031 return static_cast<Error>(intError); in setInfo()
1035 Error Layer::setColorTransform(const android::mat4& matrix) { in setColorTransform()
1037 return Error::None; in setColorTransform()
1040 Error error = static_cast<Error>(intError); in setColorTransform()
1041 if (error != Error::None) { in setColorTransform()