Lines Matching refs:DMError

42     virtual DMError HasPrivateWindow(DisplayId displayId, bool& hasPrivateWindow) = 0;

48 virtual DMError DestroyVirtualScreen(ScreenId screenId) = 0;
49 virtual DMError SetVirtualScreenSurface(ScreenId screenId, sptr<IBufferProducer> surface) = 0;
50 virtual DMError SetVirtualMirrorScreenCanvasRotation(ScreenId screenId, bool rotate) { return DMError::DM_OK; }
51 virtual DMError SetVirtualMirrorScreenScaleMode(ScreenId screenId, ScreenScaleMode scaleMode)
53 return DMError::DM_ERROR_DEVICE_NOT_SUPPORT;
55 virtual DMError SetOrientation(ScreenId screenId, Orientation orientation) = 0;
63 virtual DMError SetScreenRotationLocked(bool isLocked) = 0;
64 virtual DMError SetScreenRotationLockedFromJs(bool isLocked) = 0;
65 virtual DMError IsScreenRotationLocked(bool& isLocked) = 0;
68 virtual DMError GetScreenSupportedColorGamuts(ScreenId screenId, std::vector<ScreenColorGamut>& colorGamuts) = 0;
69 virtual DMError GetScreenColorGamut(ScreenId screenId, ScreenColorGamut& colorGamut) = 0;
70 virtual DMError SetScreenColorGamut(ScreenId screenId, int32_t colorGamutIdx) = 0;
71 virtual DMError GetScreenGamutMap(ScreenId screenId, ScreenGamutMap& gamutMap) = 0;
72 virtual DMError SetScreenGamutMap(ScreenId screenId, ScreenGamutMap gamutMap) = 0;
73 virtual DMError SetScreenColorTransform(ScreenId screenId) = 0;
75 virtual DMError GetPixelFormat(ScreenId screenId, GraphicPixelFormat& pixelFormat)
77 return DMError::DM_ERROR_DEVICE_NOT_SUPPORT;
79 virtual DMError SetPixelFormat(ScreenId screenId, GraphicPixelFormat pixelFormat)
81 return DMError::DM_ERROR_DEVICE_NOT_SUPPORT;
83 virtual DMError GetSupportedHDRFormats(ScreenId screenId,
86 return DMError::DM_ERROR_DEVICE_NOT_SUPPORT;
88 virtual DMError GetScreenHDRFormat(ScreenId screenId, ScreenHDRFormat& hdrFormat)
90 return DMError::DM_ERROR_DEVICE_NOT_SUPPORT;
92 virtual DMError SetScreenHDRFormat(ScreenId screenId, int32_t modeIdx)
94 return DMError::DM_ERROR_DEVICE_NOT_SUPPORT;
96 virtual DMError GetSupportedColorSpaces(ScreenId screenId,
99 return DMError::DM_ERROR_DEVICE_NOT_SUPPORT;
101 virtual DMError GetScreenColorSpace(ScreenId screenId, GraphicCM_ColorSpaceType& colorSpace)
103 return DMError::DM_ERROR_DEVICE_NOT_SUPPORT;
105 virtual DMError SetScreenColorSpace(ScreenId screenId, GraphicCM_ColorSpaceType colorSpace)
107 return DMError::DM_ERROR_DEVICE_NOT_SUPPORT;
110 virtual DMError RegisterDisplayManagerAgent(const sptr<IDisplayManagerAgent>& displayManagerAgent,
112 virtual DMError UnregisterDisplayManagerAgent(const sptr<IDisplayManagerAgent>& displayManagerAgent,
137 virtual DMError GetAllScreenInfos(std::vector<sptr<ScreenInfo>>& screenInfos) = 0;
138 virtual DMError MakeMirror(ScreenId mainScreenId, std::vector<ScreenId> mirrorScreenIds,
140 virtual DMError SetMultiScreenMode(ScreenId mainScreenId, ScreenId secondaryScreenId,
143 return DMError::DM_ERROR_DEVICE_NOT_SUPPORT;
145 virtual DMError SetMultiScreenRelativePosition(MultiScreenPositionOptions mainScreenOptions,
148 return DMError::DM_ERROR_DEVICE_NOT_SUPPORT;
150 virtual DMError MakeExpand(std::vector<ScreenId> screenId, std::vector<Point> startPoints,
152 virtual DMError StopMirror(const std::vector<ScreenId>& mirrorScreenIds) = 0;
153 virtual DMError StopExpand(const std::vector<ScreenId>& expandScreenIds) = 0;
154 virtual DMError DisableMirror(bool disableOrNot) { return DMError::DM_ERROR_INVALID_PERMISSION; }
156 virtual DMError SetScreenActiveMode(ScreenId screenId, uint32_t modeId) = 0;
157 virtual DMError SetVirtualPixelRatio(ScreenId screenId, float virtualPixelRatio) = 0;
158 virtual DMError SetVirtualPixelRatioSystem(ScreenId screenId, float virtualPixelRatio)
160 return DMError::DM_ERROR_DEVICE_NOT_SUPPORT;
162 virtual DMError SetResolution(ScreenId screenId, uint32_t width, uint32_t height, float virtualPixelRatio) = 0;
163 virtual DMError GetDensityInCurResolution(ScreenId screenId, float& virtualPixelRatio) = 0;
164 virtual DMError ResizeVirtualScreen(ScreenId screenId, uint32_t width, uint32_t height) { return DMError::DM_OK; }
165 virtual DMError AddSurfaceNodeToDisplay(DisplayId displayId,
167 virtual DMError RemoveSurfaceNodeFromDisplay(DisplayId displayId,
169 virtual DMError GetAvailableArea(DisplayId displayId, DMRect& area) { return DMError::DM_ERROR_DEVICE_NOT_SUPPORT; }
179 virtual DMError SetFoldDisplayModeFromJs(const FoldDisplayMode) { return DMError::DM_OK; }
185 virtual DMError SetFoldStatusLockedFromJs(bool locked) { return DMError::DM_OK; }
189 virtual DMError HasImmersiveWindow(ScreenId screenId, bool& immersive)
191 return DMError::DM_ERROR_DEVICE_NOT_SUPPORT;
195 virtual DMError MakeUniqueScreen(const std::vector<ScreenId>& screenIds) { return DMError::DM_OK; }
201 virtual DMError SetVirtualScreenFlag(ScreenId screenId, VirtualScreenFlag screenFlag)
203 return DMError::DM_ERROR_DEVICE_NOT_SUPPORT;
205 virtual DMError SetVirtualScreenRefreshRate(ScreenId screenId, uint32_t refreshInterval)
207 return DMError::DM_OK;
209 virtual DMError ProxyForFreeze(const std::set<int32_t>& pidList, bool isProxy)
211 return DMError::DM_OK;
213 virtual DMError ResetAllFreezeStatus()
215 return DMError::DM_OK;
225 virtual DMError SetVirtualScreenSecurityExemption(ScreenId screenId, uint32_t pid,
228 return DMError::DM_ERROR_DEVICE_NOT_SUPPORT;
230 virtual DMError SetVirtualScreenMaxRefreshRate(ScreenId id, uint32_t refreshRate,
233 return DMError::DM_OK;