Home
last modified time | relevance | path

Searched refs:DMError (Results 1 – 25 of 114) sorted by relevance

12345

/ohos5.0/foundation/window/window_manager/dmserver/include/
H A Ddisplay_manager_interface.h50 …virtual DMError SetVirtualMirrorScreenCanvasRotation(ScreenId screenId, bool rotate) { return DMEr… in SetVirtualMirrorScreenCanvasRotation()
139 … virtual DMError DisableMirror(bool disableOrNot) { return DMError::DM_ERROR_INVALID_PERMISSION; } in DisableMirror()
149 …virtual DMError ResizeVirtualScreen(ScreenId screenId, uint32_t width, uint32_t height) { return D… in ResizeVirtualScreen()
164 virtual DMError SetFoldDisplayModeFromJs(const FoldDisplayMode) { return DMError::DM_OK; } in SetFoldDisplayModeFromJs()
170 virtual DMError SetFoldStatusLockedFromJs(bool locked) { return DMError::DM_OK; } in SetFoldStatusLockedFromJs()
174 …virtual DMError HasImmersiveWindow(bool& immersive) { return DMError::DM_ERROR_DEVICE_NOT_SUPPORT;… in HasImmersiveWindow()
177 …virtual DMError MakeUniqueScreen(const std::vector<ScreenId>& screenIds) { return DMError::DM_OK; } in MakeUniqueScreen()
189 return DMError::DM_OK; in SetVirtualScreenRefreshRate()
193 return DMError::DM_OK; in ProxyForFreeze()
195 virtual DMError ResetAllFreezeStatus() in ResetAllFreezeStatus()
[all …]
H A Ddisplay_manager_proxy.h41 DMError DestroyVirtualScreen(ScreenId screenId) override;
43 DMError SetOrientation(ScreenId screenId, Orientation orientation) override;
46 DMError IsScreenRotationLocked(bool& isLocked) override;
47 DMError SetScreenRotationLocked(bool isLocked) override;
48 DMError SetScreenRotationLockedFromJs(bool isLocked) override;
56 DMError SetScreenColorTransform(ScreenId screenId) override;
62 DMError SetScreenHDRFormat(ScreenId screenId, int32_t modeIdx) override;
86 DMError StopMirror(const std::vector<ScreenId>& mirrorScreenIds) override;
93 DMError SetScreenActiveMode(ScreenId screenId, uint32_t modeId) override;
97 DMError AddSurfaceNodeToDisplay(DisplayId displayId,
[all …]
H A Ddisplay_manager_service.h51 DMError DestroyVirtualScreen(ScreenId screenId) override;
53 DMError IsScreenRotationLocked(bool& isLocked) override;
54 DMError SetScreenRotationLocked(bool isLocked) override;
55 DMError SetScreenRotationLockedFromJs(bool isLocked) override;
67 DMError HasPrivateWindow(DisplayId id, bool& hasPrivateWindow) override;
74 DMError SetScreenColorTransform(ScreenId screenId) override;
90 DMError AddSurfaceNodeToDisplay(DisplayId displayId,
112 DMError SetScreenActiveMode(ScreenId screenId, uint32_t modeId) override;
115 float virtualPixelRatio) override { return DMError::DM_OK; } in SetResolution()
116 DMError GetDensityInCurResolution(ScreenId screenId, in GetDensityInCurResolution()
[all …]
/ohos5.0/foundation/window/window_manager/window_scene/session_manager/include/zidl/
H A Dscreen_session_manager_interface.h45 virtual DMError DestroyVirtualScreen(ScreenId screenId) override { return DMError::DM_OK; } in DestroyVirtualScreen()
48 return DMError::DM_OK; in SetVirtualScreenSurface()
52 return DMError::DM_OK; in SetVirtualMirrorScreenCanvasRotation()
63 virtual DMError SetScreenRotationLocked(bool isLocked) override { return DMError::DM_OK; } in SetScreenRotationLocked()
65 virtual DMError IsScreenRotationLocked(bool& isLocked) override { return DMError::DM_OK; } in IsScreenRotationLocked()
71 return DMError::DM_OK; in GetScreenSupportedColorGamuts()
75 return DMError::DM_OK; in GetScreenColorGamut()
116 return DMError::DM_OK; in SetVirtualPixelRatioSystem()
137 DMError SetFoldStatusLockedFromJs(bool locked) override { return DMError::DM_OK; } in SetFoldStatusLockedFromJs()
171 return DMError::DM_OK; in SetVirtualScreenRefreshRate()
[all …]
H A Dscreen_session_manager_proxy.h43 virtual DMError SetScreenColorTransform(ScreenId screenId) override;
49 DMError SetScreenHDRFormat(ScreenId screenId, int32_t modeIdx) override;
74 virtual DMError DestroyVirtualScreen(ScreenId screenId) override;
87 DMError DisableMirror(bool disableOrNot) override;
109 virtual DMError GetScreenSupportedColorGamuts(ScreenId screenId,
113 virtual DMError SetScreenRotationLocked(bool isLocked) override;
114 virtual DMError SetScreenRotationLockedFromJs(bool isLocked) override;
115 virtual DMError IsScreenRotationLocked(bool& isLocked) override;
117 virtual DMError HasImmersiveWindow(bool& immersive) override;
133 DMError SetFoldStatusLockedFromJs(bool locked) override;
[all …]
/ohos5.0/foundation/window/window_manager/dmserver/src/
H A Ddisplay_manager_proxy.cpp329 DMError ret = static_cast<DMError>(reply.ReadInt32()); in GetScreenSupportedColorGamuts()
368 DMError ret = static_cast<DMError>(reply.ReadInt32()); in GetScreenColorGamut()
427 DMError ret = static_cast<DMError>(reply.ReadInt32()); in GetScreenGamutMap()
513 DMError ret = static_cast<DMError>(reply.ReadInt32()); in GetPixelFormat()
572 DMError ret = static_cast<DMError>(reply.ReadInt32()); in GetSupportedHDRFormats()
611 DMError ret = static_cast<DMError>(reply.ReadInt32()); in GetScreenHDRFormat()
671 DMError ret = static_cast<DMError>(reply.ReadInt32()); in GetSupportedColorSpaces()
710 DMError ret = static_cast<DMError>(reply.ReadInt32()); in GetScreenColorSpace()
1227 DMError ret = static_cast<DMError>(reply.ReadInt32()); in HasPrivateWindow()
1317 DMError ret = static_cast<DMError>(reply.ReadInt32()); in MakeMirror()
[all …]
H A Ddisplay_manager_service.cpp169 return DMError::DM_OK; in HasPrivateWindow()
555 if (ret != DMError::DM_OK) { in MakeMirror()
564 return DMError::DM_OK; in MakeMirror()
577 return DMError::DM_OK; in StopMirror()
581 if (ret != DMError::DM_OK) { in StopMirror()
586 return DMError::DM_OK; in StopMirror()
680 return DMError::DM_OK; in GetAllScreenInfos()
736 return DMError::DM_OK; in MakeExpand()
748 return DMError::DM_OK; in StopExpand()
757 return DMError::DM_OK; in StopExpand()
[all …]
/ohos5.0/foundation/window/window_manager/dm/src/
H A Ddisplay_manager_adapter.cpp76 INIT_PROXY_CHECK_RETURN(DMError::DM_ERROR_INIT_DMS_PROXY_LOCKED); in GetScreenSupportedColorGamuts()
83 INIT_PROXY_CHECK_RETURN(DMError::DM_ERROR_INIT_DMS_PROXY_LOCKED); in GetScreenColorGamut()
189 DMError ret = GetSupportedHDRFormats(screenId, hdrFormatsVec); in GetSupportedHDRFormats()
233 return DMError::DM_ERROR_NULLPTR; in SetVirtualScreenSurface()
482 DMError ScreenManagerAdapter::DisableMirror(bool disableOrNot) in DisableMirror()
558 return DMError::DM_ERROR_INVALID_PARAM; in AddSurfaceNodeToDisplay()
569 return DMError::DM_ERROR_INVALID_PARAM; in RemoveSurfaceNodeFromDisplay()
740 return DMError::DM_ERROR_INVALID_PARAM; in GetAvailableArea()
762 return DMError::DM_ERROR_INVALID_PARAM; in SetVirtualScreenFlag()
765 return DMError::DM_ERROR_INVALID_PARAM; in SetVirtualScreenFlag()
[all …]
H A Dscreen_manager.cpp50 DMError RegisterDisplayManagerAgent();
51 DMError UnregisterDisplayManagerAgent();
291 if (regSucc == DMError::DM_OK) { in RegisterScreenListener()
331 if (regSucc == DMError::DM_OK) { in RegisterScreenGroupListener()
371 if (regSucc == DMError::DM_OK) { in RegisterVirtualScreenGroupListener()
409 DMError regSucc = DMError::DM_OK; in RegisterDisplayManagerAgent()
414 if (regSucc != DMError::DM_OK) { in RegisterDisplayManagerAgent()
424 DMError unRegSucc = DMError::DM_OK; in UnregisterDisplayManagerAgent()
496 return DMError::DM_OK; in StopExpand()
505 return DMError::DM_OK; in StopMirror()
[all …]
H A Ddisplay_manager.cpp447 DMError res = DMError::DM_OK; in ClearFoldStatusCallback()
494 DMError res = DMError::DM_OK; in ClearDisplayModeCallback()
511 DMError res = DMError::DM_OK; in Clear()
1071 DMError ret = DMError::DM_OK; in RegisterDisplayListener()
1150 DMError ret = DMError::DM_OK; in RegisterPrivateWindowListener()
1176 DMError ret = DMError::DM_OK; in UnregisterPrivateWindowListener()
1189 DMError ret = DMError::DM_OK; in RegisterPrivateWindowListChangeListener()
1215 DMError ret = DMError::DM_OK; in UnregisterPrivateWindowListChangeListener()
1243 DMError ret = DMError::DM_OK; in UnregisterDisplayListener()
1265 DMError ret = DMError::DM_OK; in RegisterDisplayPowerEventListener()
[all …]
H A Dscreen.cpp139 DMError Screen::SetScreenColorGamut(int32_t colorGamutIdx) in SetScreenColorGamut()
149 DMError Screen::SetScreenGamutMap(ScreenGamutMap gamutMap) in SetScreenGamutMap()
154 DMError Screen::SetScreenColorTransform() in SetScreenColorTransform()
179 DMError Screen::SetScreenHDRFormat(int32_t modeIdx) in SetScreenHDRFormat()
216 DMError Screen::SetScreenActiveMode(uint32_t modeId) in SetScreenActiveMode()
220 return DMError::DM_ERROR_INVALID_PARAM; in SetScreenActiveMode()
240 DMError Screen::SetDensityDpi(uint32_t dpi) const in SetDensityDpi()
245 return DMError::DM_ERROR_INVALID_PARAM; in SetDensityDpi()
252 DMError Screen::SetDensityDpiSystem(uint32_t dpi) const in SetDensityDpiSystem()
257 return DMError::DM_ERROR_INVALID_PARAM; in SetDensityDpiSystem()
[all …]
/ohos5.0/foundation/window/window_manager/dm/test/unittest/
H A Ddisplay_manager_adapter_test.cpp88 ASSERT_EQ(err, DMError::DM_OK);
120 ASSERT_EQ(err, DMError::DM_OK);
164 ASSERT_EQ(err, DMError::DM_OK);
166 ASSERT_EQ(err, DMError::DM_OK);
271 ASSERT_EQ(DMError::DM_OK, ret);
273 ASSERT_NE(DMError::DM_OK, ret);
289 ASSERT_EQ(ret, DMError::DM_OK);
620 ASSERT_EQ(err, DMError::DM_OK);
698 ASSERT_EQ(err, DMError::DM_OK);
728 ASSERT_EQ(err, DMError::DM_OK);
[all …]
H A Dscreen_manager_test.cpp126 ASSERT_EQ(DMError::DM_OK, ret);
153 ASSERT_EQ(DMError::DM_OK, ret);
350 ASSERT_EQ(DMError::DM_OK, result);
363 ASSERT_EQ(DMError::DM_OK, result);
377 DMError ret;
379 ASSERT_EQ(DMError::DM_OK, ret);
472 ASSERT_EQ(DMError::DM_OK, err);
488 ASSERT_EQ(DMError::DM_OK, err);
491 ASSERT_EQ(DMError::DM_OK, err);
546 ASSERT_EQ(DMError::DM_OK, ret);
[all …]
H A Dscreen_test.cpp108 ASSERT_EQ(DMError::DM_OK, res);
137 ASSERT_EQ(DMError::DM_OK, res);
151 ASSERT_EQ(DMError::DM_OK, res);
165 ASSERT_EQ(DMError::DM_OK, res);
179 ASSERT_EQ(DMError::DM_OK, res);
193 ASSERT_EQ(DMError::DM_OK, res);
206 ASSERT_EQ(DMError::DM_OK, res);
268 ASSERT_EQ(DMError::DM_OK, res);
282 ASSERT_EQ(DMError::DM_OK, res);
296 ASSERT_EQ(DMError::DM_OK, res);
[all …]
/ohos5.0/foundation/window/window_manager/dm/include/
H A Ddisplay_manager_adapter.h65 virtual DMError HasImmersiveWindow(bool& immersive);
80 virtual DMError RemoveSurfaceNodeFromDisplay(DisplayId displayId,
88 virtual DMError SetFoldDisplayModeFromJs(const FoldDisplayMode);
91 virtual DMError SetFoldStatusLockedFromJs(bool locked);
94 virtual DMError ResetAllFreezeStatus();
115 virtual DMError DestroyVirtualScreen(ScreenId screenId);
129 virtual DMError DisableMirror(bool disableOrNot);
138 virtual DMError SetScreenRotationLocked(bool isLocked);
139 virtual DMError SetScreenRotationLockedFromJs(bool isLocked);
140 virtual DMError IsScreenRotationLocked(bool& isLocked);
[all …]
/ohos5.0/foundation/window/window_manager/window_scene/session_manager/src/zidl/
H A Dscreen_session_manager_proxy.cpp215 DMError ret = static_cast<DMError>(reply.ReadInt32()); in GetScreenColorGamut()
274 DMError ret = static_cast<DMError>(reply.ReadInt32()); in GetScreenGamutMap()
360 DMError ret = static_cast<DMError>(reply.ReadInt32()); in GetPixelFormat()
419 DMError ret = static_cast<DMError>(reply.ReadInt32()); in GetSupportedHDRFormats()
458 DMError ret = static_cast<DMError>(reply.ReadInt32()); in GetScreenHDRFormat()
518 DMError ret = static_cast<DMError>(reply.ReadInt32()); in GetSupportedColorSpaces()
557 DMError ret = static_cast<DMError>(reply.ReadInt32()); in GetScreenColorSpace()
1211 DMError ret = static_cast<DMError>(reply.ReadInt32()); in MakeMirror()
1304 DMError ret = static_cast<DMError>(reply.ReadInt32()); in MakeExpand()
1624 DMError ret = static_cast<DMError>(reply.ReadInt32()); in GetAllScreenInfos()
[all …]
/ohos5.0/foundation/window/window_manager/dm_lite/src/
H A Dscreen_manager_lite.cpp38 DMError RegisterDisplayManagerAgent();
39 DMError UnregisterDisplayManagerAgent();
158 DMError regSucc = DMError::DM_OK; in RegisterDisplayManagerAgent()
163 if (regSucc != DMError::DM_OK) { in RegisterDisplayManagerAgent()
173 DMError unRegSucc = DMError::DM_OK; in UnregisterDisplayManagerAgent()
189 if (regSucc == DMError::DM_OK) { in RegisterScreenListener()
199 return DMError::DM_ERROR_NULLPTR; in RegisterScreenListener()
227 DMError regSucc = DMError::DM_OK; in RegisterScreenModeChangeManagerAgent()
232 if (regSucc != DMError::DM_OK) { in RegisterScreenModeChangeManagerAgent()
242 DMError unRegSucc = DMError::DM_OK; in UnregisterScreenModeChangeManagerAgent()
[all …]
/ohos5.0/foundation/window/window_manager/test/common/mock/
H A Dmock_display_manager_adapter.h45 MOCK_METHOD2(GetAvailableArea, DMError(DisplayId displayId, DMRect& area));
46 MOCK_METHOD1(HasImmersiveWindow, DMError(bool& immersive));
59 MOCK_METHOD1(DestroyVirtualScreen, DMError(ScreenId screenId));
62 MOCK_METHOD1(GetAllScreenInfos, DMError(std::vector<sptr<ScreenInfo>>& screenInfos));
67 MOCK_METHOD2(SetScreenActiveMode, DMError(ScreenId screenId, uint32_t modeId));
77 MOCK_METHOD1(SetScreenColorTransform, DMError(ScreenId screenId));
80 MOCK_METHOD1(SetScreenRotationLocked, DMError(bool isLocked));
81 MOCK_METHOD1(IsScreenRotationLocked, DMError(bool& isLocked));
87 MOCK_METHOD2(GetSupportedColorSpaces, DMError(ScreenId screenId,
89 MOCK_METHOD2(SetOrientation, DMError(ScreenId screenId, Orientation orientation));
[all …]
/ohos5.0/foundation/window/window_manager/interfaces/innerkits/dm/
H A Dscreen_manager.h94 DMError GetAllScreens(std::vector<sptr<Screen>>& screens);
121 DMError MakeUniqueScreen(const std::vector<ScreenId>& screenIds);
129 DMError StopExpand(const std::vector<ScreenId>& expandScreenIds);
137 DMError StopMirror(const std::vector<ScreenId>& mirrorScreenIds);
145 DMError DisableMirror(bool disableOrNot);
169 DMError DestroyVirtualScreen(ScreenId screenId);
241 DMError SetScreenRotationLocked(bool isLocked);
249 DMError SetScreenRotationLockedFromJs(bool isLocked);
257 DMError IsScreenRotationLocked(bool& isLocked);
265 DMError RegisterScreenListener(sptr<IScreenListener> listener);
[all …]
H A Dscreen.h143 DMError SetScreenActiveMode(uint32_t modeId);
151 DMError SetOrientation(Orientation orientation) const;
159 DMError SetDensityDpi(uint32_t dpi) const;
167 DMError SetDensityDpiSystem(uint32_t dpi) const;
199 DMError SetScreenColorGamut(int32_t colorGamutIdx);
207 DMError GetScreenGamutMap(ScreenGamutMap& gamutMap) const;
215 DMError SetScreenGamutMap(ScreenGamutMap gamutMap);
222 DMError SetScreenColorTransform();
253 DMError SetPixelFormat(GraphicPixelFormat pixelFormat);
268 DMError GetScreenHDRFormat(ScreenHDRFormat& hdrFormat) const;
[all …]
H A Ddisplay_manager.h225 DMError HasPrivateWindow(DisplayId displayId, bool& hasPrivateWindow);
370 DMError RegisterDisplayListener(sptr<IDisplayListener> listener);
378 DMError UnregisterDisplayListener(sptr<IDisplayListener> listener);
402 DMError RegisterScreenshotListener(sptr<IScreenshotListener> listener);
450 DMError RegisterFoldStatusListener(sptr<IFoldStatusListener> listener);
466 DMError RegisterFoldAngleListener(sptr<IFoldAngleListener> listener);
474 DMError UnregisterFoldAngleListener(sptr<IFoldAngleListener> listener);
599 DMError SetFoldDisplayModeFromJs(const FoldDisplayMode mode);
625 DMError SetFoldStatusLockedFromJs(bool locked);
651 DMError ProxyForFreeze(std::set<int32_t> pidList, bool isProxy);
[all …]
/ohos5.0/foundation/window/window_manager/test/systemtest/dms/
H A Dscreen_gamut_test.cpp66 DMError ret;
69 ASSERT_EQ(ret, DMError::DM_OK);
81 DMError ret;
84 ASSERT_EQ(ret, DMError::DM_OK);
96 DMError ret;
136 DMError ret;
161 DMError ret;
190 DMError ret;
205 DMError ret;
241 DMError ret;
[all …]
/ohos5.0/foundation/window/window_manager/dmserver/test/unittest/
H A Ddisplay_manager_service_test.cpp243 DMError result = dms_->DestroyVirtualScreen(10086);
244 EXPECT_EQ(result, DMError::DM_ERROR_INVALID_CALLING);
403 EXPECT_EQ(result, DMError::DM_ERROR_NULLPTR);
471 DMError ret = dms_->IsScreenRotationLocked(isLocked);
472 ASSERT_EQ(ret, DMError::DM_OK);
484 ASSERT_EQ(ret, DMError::DM_OK);
496 ASSERT_EQ(ret, DMError::DM_OK);
529 ASSERT_EQ(ret, DMError::DM_ERROR_INVALID_PARAM);
544 DMError ret = dms_->StopMirror(mirrorScreenIds);
545 ASSERT_EQ(ret, DMError::DM_OK);
[all …]
H A Ddisplay_manager_proxy_test.cpp172 ASSERT_EQ(DMError::DM_OK, result2);
195 ASSERT_EQ(DMError::DM_OK, result2);
198 ASSERT_EQ(DMError::DM_OK, result3);
267 ASSERT_EQ(DMError::DM_OK, result2);
290 ASSERT_EQ(DMError::DM_OK, result2);
316 EXPECT_EQ(DMError::DM_OK, result2);
341 EXPECT_EQ(DMError::DM_OK, result2);
369 EXPECT_EQ(DMError::DM_OK, result2);
396 EXPECT_EQ(DMError::DM_OK, result2);
492 EXPECT_EQ(DMError::DM_OK, result2);
[all …]
/ohos5.0/foundation/window/window_manager/window_scene/test/dms_unittest/
H A Dmulti_screen_manager_test.cpp97 EXPECT_EQ(ret, DMError::DM_OK);
118 EXPECT_EQ(ret, DMError::DM_OK);
130 EXPECT_EQ(ret, DMError::DM_ERROR_NULLPTR);
145 EXPECT_EQ(ret, DMError::DM_OK);
162 EXPECT_EQ(ret, DMError::DM_OK);
174 EXPECT_EQ(ret, DMError::DM_OK);
192 EXPECT_EQ(ret, DMError::DM_OK);
205 EXPECT_EQ(ret, DMError::DM_ERROR_NULLPTR);
230 EXPECT_EQ(ret, DMError::DM_OK);
242 EXPECT_EQ(ret, DMError::DM_OK);
[all …]

12345