Lines Matching refs:Error
60 HWC2::Error DrmHwcTwo::CreateDisplay(hwc2_display_t displ, in CreateDisplay()
66 return HWC2::Error::NoResources; in CreateDisplay()
75 return HWC2::Error::BadDisplay; in CreateDisplay()
83 return HWC2::Error::None; in CreateDisplay()
86 HWC2::Error DrmHwcTwo::Init() { in Init()
90 return HWC2::Error::NoResources; in Init()
93 HWC2::Error ret = HWC2::Error::None; in Init()
96 if (ret != HWC2::Error::None) { in Init()
110 static inline HWC2::Error unsupported(char const *func, Args... /*args*/) { in unsupported()
112 return HWC2::Error::Unsupported; in unsupported()
119 HWC2::Error DrmHwcTwo::CreateVirtualDisplay(uint32_t width, uint32_t height, in CreateVirtualDisplay()
126 HWC2::Error DrmHwcTwo::DestroyVirtualDisplay(hwc2_display_t display) { in DestroyVirtualDisplay()
142 HWC2::Error DrmHwcTwo::RegisterCallback(int32_t descriptor, in RegisterCallback()
150 return HWC2::Error::None; in RegisterCallback()
174 return HWC2::Error::None; in RegisterCallback()
193 HWC2::Error DrmHwcTwo::HwcDisplay::Init(std::vector<DrmPlane *> *planes) { in Init()
198 return HWC2::Error::NoResources; in Init()
205 return HWC2::Error::NoResources; in Init()
223 return HWC2::Error::BadDisplay; in Init()
229 return HWC2::Error::BadDisplay; in Init()
235 return HWC2::Error::BadDisplay; in Init()
241 HWC2::Error DrmHwcTwo::HwcDisplay::ChosePreferredConfig() { in ChosePreferredConfig()
244 HWC2::Error err = GetDisplayConfigs(&num_configs, NULL); in ChosePreferredConfig()
245 if (err != HWC2::Error::None || !num_configs) in ChosePreferredConfig()
251 HWC2::Error DrmHwcTwo::HwcDisplay::RegisterVsyncCallback( in RegisterVsyncCallback()
256 return HWC2::Error::None; in RegisterVsyncCallback()
259 HWC2::Error DrmHwcTwo::HwcDisplay::AcceptDisplayChanges() { in AcceptDisplayChanges()
263 return HWC2::Error::None; in AcceptDisplayChanges()
266 HWC2::Error DrmHwcTwo::HwcDisplay::CreateLayer(hwc2_layer_t *layer) { in CreateLayer()
271 return HWC2::Error::None; in CreateLayer()
274 HWC2::Error DrmHwcTwo::HwcDisplay::DestroyLayer(hwc2_layer_t layer) { in DestroyLayer()
277 return HWC2::Error::None; in DestroyLayer()
280 HWC2::Error DrmHwcTwo::HwcDisplay::GetActiveConfig(hwc2_config_t *config) { in GetActiveConfig()
284 return HWC2::Error::BadConfig; in GetActiveConfig()
287 return HWC2::Error::None; in GetActiveConfig()
290 HWC2::Error DrmHwcTwo::HwcDisplay::GetChangedCompositionTypes( in GetChangedCompositionTypes()
305 return HWC2::Error::None; in GetChangedCompositionTypes()
308 HWC2::Error DrmHwcTwo::HwcDisplay::GetClientTargetSupport(uint32_t width, in GetClientTargetSupport()
317 return HWC2::Error::Unsupported; in GetClientTargetSupport()
320 return HWC2::Error::Unsupported; in GetClientTargetSupport()
324 return HWC2::Error::Unsupported; in GetClientTargetSupport()
327 return HWC2::Error::None; in GetClientTargetSupport()
330 HWC2::Error DrmHwcTwo::HwcDisplay::GetColorModes(uint32_t *num_modes, in GetColorModes()
339 return HWC2::Error::None; in GetColorModes()
342 HWC2::Error DrmHwcTwo::HwcDisplay::GetDisplayAttribute(hwc2_config_t config, in GetDisplayAttribute()
353 return HWC2::Error::BadConfig; in GetDisplayAttribute()
381 return HWC2::Error::BadConfig; in GetDisplayAttribute()
383 return HWC2::Error::None; in GetDisplayAttribute()
386 HWC2::Error DrmHwcTwo::HwcDisplay::GetDisplayConfigs(uint32_t *num_configs, in GetDisplayConfigs()
398 return HWC2::Error::BadDisplay; in GetDisplayConfigs()
405 return HWC2::Error::None; in GetDisplayConfigs()
415 return HWC2::Error::None; in GetDisplayConfigs()
418 HWC2::Error DrmHwcTwo::HwcDisplay::GetDisplayName(uint32_t *size, char *name) { in GetDisplayName()
426 return HWC2::Error::None; in GetDisplayName()
431 return HWC2::Error::None; in GetDisplayName()
434 HWC2::Error DrmHwcTwo::HwcDisplay::GetDisplayRequests(int32_t *display_requests, in GetDisplayRequests()
443 return HWC2::Error::None; in GetDisplayRequests()
446 HWC2::Error DrmHwcTwo::HwcDisplay::GetDisplayType(int32_t *type) { in GetDisplayType()
449 return HWC2::Error::None; in GetDisplayType()
452 HWC2::Error DrmHwcTwo::HwcDisplay::GetDozeSupport(int32_t *support) { in GetDozeSupport()
455 return HWC2::Error::None; in GetDozeSupport()
458 HWC2::Error DrmHwcTwo::HwcDisplay::GetHdrCapabilities( in GetHdrCapabilities()
463 return HWC2::Error::None; in GetHdrCapabilities()
466 HWC2::Error DrmHwcTwo::HwcDisplay::GetReleaseFences(uint32_t *num_elements, in GetReleaseFences()
478 return HWC2::Error::None; in GetReleaseFences()
485 return HWC2::Error::None; in GetReleaseFences()
501 HWC2::Error DrmHwcTwo::HwcDisplay::CreateComposition(bool test) { in CreateComposition()
541 return HWC2::Error::BadLayer; in CreateComposition()
550 return HWC2::Error::NoResources; in CreateComposition()
563 return HWC2::Error::BadLayer; in CreateComposition()
571 return HWC2::Error::BadConfig; in CreateComposition()
593 return HWC2::Error::BadParameter; in CreateComposition()
595 return HWC2::Error::None; in CreateComposition()
598 HWC2::Error DrmHwcTwo::HwcDisplay::PresentDisplay(int32_t *retire_fence) { in PresentDisplay()
600 HWC2::Error ret; in PresentDisplay()
603 if (ret == HWC2::Error::BadLayer) { in PresentDisplay()
606 return HWC2::Error::None; in PresentDisplay()
608 if (ret != HWC2::Error::None) in PresentDisplay()
617 return HWC2::Error::None; in PresentDisplay()
620 HWC2::Error DrmHwcTwo::HwcDisplay::SetActiveConfig(hwc2_config_t config) { in SetActiveConfig()
629 return HWC2::Error::BadConfig; in SetActiveConfig()
639 return HWC2::Error::BadConfig; in SetActiveConfig()
656 return HWC2::Error::None; in SetActiveConfig()
659 HWC2::Error DrmHwcTwo::HwcDisplay::SetClientTarget(buffer_handle_t target, in SetClientTarget()
669 return HWC2::Error::None; in SetClientTarget()
672 HWC2::Error DrmHwcTwo::HwcDisplay::SetColorMode(int32_t mode) { in SetColorMode()
676 return HWC2::Error::Unsupported; in SetColorMode()
679 return HWC2::Error::None; in SetColorMode()
682 HWC2::Error DrmHwcTwo::HwcDisplay::SetColorTransform(const float *matrix, in SetColorTransform()
689 HWC2::Error DrmHwcTwo::HwcDisplay::SetOutputBuffer(buffer_handle_t buffer, in SetOutputBuffer()
696 HWC2::Error DrmHwcTwo::HwcDisplay::SetPowerMode(int32_t mode_in) { in SetPowerMode()
709 return HWC2::Error::Unsupported; in SetPowerMode()
719 return HWC2::Error::BadParameter; in SetPowerMode()
721 return HWC2::Error::None; in SetPowerMode()
724 HWC2::Error DrmHwcTwo::HwcDisplay::SetVsyncEnabled(int32_t enabled) { in SetVsyncEnabled()
727 return HWC2::Error::None; in SetVsyncEnabled()
730 HWC2::Error DrmHwcTwo::HwcDisplay::ValidateDisplay(uint32_t *num_types, in ValidateDisplay()
738 HWC2::Error ret; in ValidateDisplay()
744 if (ret != HWC2::Error::None) in ValidateDisplay()
776 return *num_types ? HWC2::Error::HasChanges : HWC2::Error::None; in ValidateDisplay()
779 HWC2::Error DrmHwcTwo::HwcLayer::SetCursorPosition(int32_t x, int32_t y) { in SetCursorPosition()
783 return HWC2::Error::None; in SetCursorPosition()
786 HWC2::Error DrmHwcTwo::HwcLayer::SetLayerBlendMode(int32_t mode) { in SetLayerBlendMode()
789 return HWC2::Error::None; in SetLayerBlendMode()
792 HWC2::Error DrmHwcTwo::HwcLayer::SetLayerBuffer(buffer_handle_t buffer, in SetLayerBuffer()
801 return HWC2::Error::None; in SetLayerBuffer()
805 return HWC2::Error::None; in SetLayerBuffer()
808 HWC2::Error DrmHwcTwo::HwcLayer::SetLayerColor(hwc_color_t color) { in SetLayerColor()
813 HWC2::Error DrmHwcTwo::HwcLayer::SetLayerCompositionType(int32_t type) { in SetLayerCompositionType()
815 return HWC2::Error::None; in SetLayerCompositionType()
818 HWC2::Error DrmHwcTwo::HwcLayer::SetLayerDataspace(int32_t dataspace) { in SetLayerDataspace()
821 return HWC2::Error::None; in SetLayerDataspace()
824 HWC2::Error DrmHwcTwo::HwcLayer::SetLayerDisplayFrame(hwc_rect_t frame) { in SetLayerDisplayFrame()
827 return HWC2::Error::None; in SetLayerDisplayFrame()
830 HWC2::Error DrmHwcTwo::HwcLayer::SetLayerPlaneAlpha(float alpha) { in SetLayerPlaneAlpha()
833 return HWC2::Error::None; in SetLayerPlaneAlpha()
836 HWC2::Error DrmHwcTwo::HwcLayer::SetLayerSidebandStream( in SetLayerSidebandStream()
843 HWC2::Error DrmHwcTwo::HwcLayer::SetLayerSourceCrop(hwc_frect_t crop) { in SetLayerSourceCrop()
846 return HWC2::Error::None; in SetLayerSourceCrop()
849 HWC2::Error DrmHwcTwo::HwcLayer::SetLayerSurfaceDamage(hwc_region_t damage) { in SetLayerSurfaceDamage()
853 return HWC2::Error::None; in SetLayerSurfaceDamage()
856 HWC2::Error DrmHwcTwo::HwcLayer::SetLayerTransform(int32_t transform) { in SetLayerTransform()
859 return HWC2::Error::None; in SetLayerTransform()
862 HWC2::Error DrmHwcTwo::HwcLayer::SetLayerVisibleRegion(hwc_region_t visible) { in SetLayerVisibleRegion()
866 return HWC2::Error::None; in SetLayerVisibleRegion()
869 HWC2::Error DrmHwcTwo::HwcLayer::SetLayerZOrder(uint32_t order) { in SetLayerZOrder()
872 return HWC2::Error::None; in SetLayerZOrder()
1179 HWC2::Error err = ctx->Init(); in HookDevOpen()
1180 if (err != HWC2::Error::None) { in HookDevOpen()