Home
last modified time | relevance | path

Searched refs:DMError (Results 1 - 25 of 111) sorted by relevance

12345

/foundation/window/window_manager/dmserver/include/
H A Ddisplay_manager_interface.h42 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; } in SetVirtualMirrorScreenCanvasRotation()
51 virtual DMError SetVirtualMirrorScreenScaleMode(ScreenId screenId, ScreenScaleMode scaleMode) in SetVirtualMirrorScreenScaleMode()
53 return DMError::DM_ERROR_DEVICE_NOT_SUPPORT; in SetVirtualMirrorScreenScaleMode()
55 virtual DMError SetOrientation(ScreenId screenId, Orientation orientation) = 0;
63 virtual DMError SetScreenRotationLocked(bool isLocked) = 0;
64 virtual DMError SetScreenRotationLockedFromJ
[all...]
H A Ddisplay_manager_proxy.h37 DMError HasPrivateWindow(DisplayId displayId, bool& hasPrivateWindow) override;
41 DMError DestroyVirtualScreen(ScreenId screenId) override;
42 DMError SetVirtualScreenSurface(ScreenId screenId, sptr<IBufferProducer> surface) 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;
51 DMError GetScreenSupportedColorGamuts(ScreenId screenId, std::vector<ScreenColorGamut>& colorGamuts) override;
52 DMError GetScreenColorGamut(ScreenId screenId, ScreenColorGamut& colorGamut) override;
53 DMError SetScreenColorGamu
[all...]
H A Ddisplay_manager_service.h51 DMError DestroyVirtualScreen(ScreenId screenId) override;
52 DMError SetVirtualScreenSurface(ScreenId screenId, sptr<IBufferProducer> surface) override;
53 DMError IsScreenRotationLocked(bool& isLocked) override;
54 DMError SetScreenRotationLocked(bool isLocked) override;
55 DMError SetScreenRotationLockedFromJs(bool isLocked) override;
61 DMError SetOrientation(ScreenId screenId, Orientation orientation) override;
62 DMError SetOrientationFromWindow(ScreenId screenId, Orientation orientation, bool withAnimation);
66 DMError HasPrivateWindow(DisplayId id, bool& hasPrivateWindow) override;
68 DMError GetScreenSupportedColorGamuts(ScreenId screenId, std::vector<ScreenColorGamut>& colorGamuts) override;
69 DMError GetScreenColorGamu
[all...]
/foundation/window/window_manager/window_scene/screen_session_manager/include/zidl/
H A Dscreen_session_manager_interface.h39 virtual DMError HasPrivateWindow(DisplayId displayId, bool& hasPrivateWindow) override { return DMError::DM_OK; }
45 virtual DMError DestroyVirtualScreen(ScreenId screenId) override { return DMError::DM_OK; }
46 virtual DMError SetVirtualScreenSurface(ScreenId screenId, sptr<IBufferProducer> surface) override
48 return DMError::DM_OK;
50 virtual DMError SetVirtualMirrorScreenCanvasRotation(ScreenId screenId, bool autoRotate) override
52 return DMError::DM_OK;
54 virtual DMError SetOrientation(ScreenId screenId, Orientation orientation) override { return DMError
[all...]
H A Dscreen_session_manager_proxy.h33 virtual DMError SetScreenActiveMode(ScreenId screenId, uint32_t modeId) override;
34 virtual DMError SetVirtualPixelRatio(ScreenId screenId, float virtualPixelRatio) override;
35 virtual DMError SetVirtualPixelRatioSystem(ScreenId screenId, float virtualPixelRatio) override;
36 virtual DMError SetResolution(ScreenId screenId, uint32_t width, uint32_t height, float virtualPixelRatio) override;
37 virtual DMError GetDensityInCurResolution(ScreenId screenId, float& virtualPixelRatio) override;
39 virtual DMError GetScreenColorGamut(ScreenId screenId, ScreenColorGamut& colorGamut) override;
40 virtual DMError SetScreenColorGamut(ScreenId screenId, int32_t colorGamutIdx) override;
41 virtual DMError GetScreenGamutMap(ScreenId screenId, ScreenGamutMap& gamutMap) override;
42 virtual DMError SetScreenGamutMap(ScreenId screenId, ScreenGamutMap gamutMap) override;
43 virtual DMError SetScreenColorTransfor
[all...]
/foundation/window/window_manager/dm/test/unittest/
H A Ddisplay_manager_adapter_test.cpp84 DMError err = SingletonContainer::Get<ScreenManagerAdapter>().GetScreenSupportedColorGamuts(0, colorGamuts); in HWTEST_F()
86 ASSERT_EQ(err, DMError::DM_ERROR_RENDER_SERVICE_FAILED); in HWTEST_F()
88 ASSERT_EQ(err, DMError::DM_OK); in HWTEST_F()
100 DMError err = SingletonContainer::Get<ScreenManagerAdapter>().SetScreenColorGamut(0, -1); in HWTEST_F()
102 ASSERT_EQ(err, DMError::DM_ERROR_RENDER_SERVICE_FAILED); in HWTEST_F()
104 ASSERT_EQ(err, DMError::DM_ERROR_INVALID_PARAM); in HWTEST_F()
116 DMError err = SingletonContainer::Get<ScreenManagerAdapter>().GetScreenColorGamut(0, colorGamut); in HWTEST_F()
118 ASSERT_EQ(err, DMError::DM_ERROR_RENDER_SERVICE_FAILED); in HWTEST_F()
120 ASSERT_EQ(err, DMError::DM_OK); in HWTEST_F()
132 DMError er in HWTEST_F()
[all...]
H A Dscreen_test.cpp95 EXPECT_CALL(m->Mock(), SetScreenActiveMode(_, _)).Times(1).WillOnce(Return(DMError::DM_OK)); in HWTEST_F()
96 DMError res = screen_->SetScreenActiveMode(supportedModes.size() - 1); in HWTEST_F()
97 ASSERT_EQ(DMError::DM_OK, res); in HWTEST_F()
110 EXPECT_CALL(m->Mock(), SetScreenActiveMode(_, _)).Times(1).WillOnce(Return(DMError::DM_ERROR_NULLPTR)); in HWTEST_F()
111 DMError res = screen_->SetScreenActiveMode(supportedModes.size() - 1); in HWTEST_F()
112 ASSERT_TRUE(DMError::DM_OK != res); in HWTEST_F()
123 EXPECT_CALL(m->Mock(), GetScreenSupportedColorGamuts(_, _)).Times(1).WillOnce(Return(DMError::DM_OK)); in HWTEST_F()
126 ASSERT_EQ(DMError::DM_OK, res); in HWTEST_F()
137 EXPECT_CALL(m->Mock(), GetScreenColorGamut(_, _)).Times(1).WillOnce(Return(DMError::DM_OK)); in HWTEST_F()
140 ASSERT_EQ(DMError in HWTEST_F()
[all...]
H A Dscreen_manager_test.cpp101 EXPECT_CALL(m->Mock(), DestroyVirtualScreen(_)).Times(1).WillOnce(Return(DMError::DM_ERROR_INVALID_PARAM)); in HWTEST_F()
103 DMError ret = ScreenManager::GetInstance().DestroyVirtualScreen(id); in HWTEST_F()
105 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, ret); in HWTEST_F()
122 EXPECT_CALL(m->Mock(), DestroyVirtualScreen(_)).Times(1).WillOnce(Return(DMError::DM_OK)); in HWTEST_F()
124 DMError ret = ScreenManager::GetInstance().DestroyVirtualScreen(id); in HWTEST_F()
126 ASSERT_EQ(DMError::DM_OK, ret); in HWTEST_F()
144 EXPECT_CALL(m->Mock(), DestroyVirtualScreen(_)).Times(1).WillOnce(Return(DMError::DM_OK)); in HWTEST_F()
145 EXPECT_CALL(m->Mock(), MakeExpand(_, _, _)).Times(1).WillOnce(Return(DMError::DM_OK)); in HWTEST_F()
151 DMError ret = ScreenManager::GetInstance().DestroyVirtualScreen(vScreenId); in HWTEST_F()
153 ASSERT_EQ(DMError in HWTEST_F()
[all...]
/foundation/window/window_manager/dm/src/
H A Ddisplay_manager_adapter.cpp72 DMError ScreenManagerAdapter::GetScreenSupportedColorGamuts(ScreenId screenId, in GetScreenSupportedColorGamuts()
75 INIT_PROXY_CHECK_RETURN(DMError::DM_ERROR_INIT_DMS_PROXY_LOCKED); in GetScreenSupportedColorGamuts()
80 DMError ScreenManagerAdapter::GetScreenColorGamut(ScreenId screenId, ScreenColorGamut& colorGamut) in GetScreenColorGamut()
82 INIT_PROXY_CHECK_RETURN(DMError::DM_ERROR_INIT_DMS_PROXY_LOCKED); in GetScreenColorGamut()
87 DMError ScreenManagerAdapter::SetScreenColorGamut(ScreenId screenId, int32_t colorGamutIdx) in SetScreenColorGamut()
89 INIT_PROXY_CHECK_RETURN(DMError::DM_ERROR_INIT_DMS_PROXY_LOCKED); in SetScreenColorGamut()
94 DMError ScreenManagerAdapter::GetScreenGamutMap(ScreenId screenId, ScreenGamutMap& gamutMap) in GetScreenGamutMap()
96 INIT_PROXY_CHECK_RETURN(DMError::DM_ERROR_INIT_DMS_PROXY_LOCKED); in GetScreenGamutMap()
101 DMError ScreenManagerAdapter::SetScreenGamutMap(ScreenId screenId, ScreenGamutMap gamutMap) in SetScreenGamutMap()
103 INIT_PROXY_CHECK_RETURN(DMError in SetScreenGamutMap()
[all...]
H A Ddisplay_manager.cpp54 DMError HasPrivateWindow(DisplayId displayId, bool& hasPrivateWindow);
61 DMError SetFoldDisplayModeFromJs(const FoldDisplayMode);
64 DMError SetFoldStatusLockedFromJs(bool locked);
66 DMError RegisterDisplayListener(sptr<IDisplayListener> listener);
67 DMError UnregisterDisplayListener(sptr<IDisplayListener> listener);
69 DMError RegisterDisplayPowerEventListener(sptr<IDisplayPowerEventListener> listener);
70 DMError UnregisterDisplayPowerEventListener(sptr<IDisplayPowerEventListener> listener);
71 DMError RegisterScreenshotListener(sptr<IScreenshotListener> listener);
72 DMError UnregisterScreenshotListener(sptr<IScreenshotListener> listener);
73 DMError RegisterPrivateWindowListene
[all...]
H A Dscreen_manager.cpp42 DMError GetAllScreens(std::vector<sptr<Screen>>& screens);
43 DMError RegisterScreenListener(sptr<IScreenListener> listener);
44 DMError UnregisterScreenListener(sptr<IScreenListener> listener);
45 DMError RegisterScreenGroupListener(sptr<IScreenGroupListener> listener);
46 DMError UnregisterScreenGroupListener(sptr<IScreenGroupListener> listener);
47 DMError RegisterVirtualScreenGroupListener(sptr<IVirtualScreenGroupListener> listener);
48 DMError UnregisterVirtualScreenGroupListener(sptr<IVirtualScreenGroupListener> listener);
49 DMError RegisterDisplayManagerAgent();
50 DMError UnregisterDisplayManagerAgent();
263 DMError ScreenManage
[all...]
H A Dscreen.cpp123 DMError Screen::SetOrientation(Orientation orientation) const in SetOrientation()
129 DMError Screen::GetScreenSupportedColorGamuts(std::vector<ScreenColorGamut>& colorGamuts) const in GetScreenSupportedColorGamuts()
134 DMError Screen::GetScreenColorGamut(ScreenColorGamut& colorGamut) const in GetScreenColorGamut()
139 DMError Screen::SetScreenColorGamut(int32_t colorGamutIdx) in SetScreenColorGamut()
144 DMError Screen::GetScreenGamutMap(ScreenGamutMap& gamutMap) const in GetScreenGamutMap()
149 DMError Screen::SetScreenGamutMap(ScreenGamutMap gamutMap) in SetScreenGamutMap()
154 DMError Screen::SetScreenColorTransform() in SetScreenColorTransform()
159 DMError Screen::GetPixelFormat(GraphicPixelFormat& pixelFormat) const in GetPixelFormat()
164 DMError Screen::SetPixelFormat(GraphicPixelFormat pixelFormat) in SetPixelFormat()
169 DMError Scree
[all...]
/foundation/window/window_manager/dmserver/src/
H A Ddisplay_manager_proxy.cpp170 DMError DisplayManagerProxy::DestroyVirtualScreen(ScreenId screenId) in DestroyVirtualScreen()
175 return DMError::DM_ERROR_REMOTE_CREATE_FAILED; in DestroyVirtualScreen()
183 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED; in DestroyVirtualScreen()
187 return DMError::DM_ERROR_IPC_FAILED; in DestroyVirtualScreen()
192 return DMError::DM_ERROR_IPC_FAILED; in DestroyVirtualScreen()
194 return static_cast<DMError>(reply.ReadInt32()); in DestroyVirtualScreen()
197 DMError DisplayManagerProxy::SetVirtualScreenSurface(ScreenId screenId, sptr<IBufferProducer> surface) in SetVirtualScreenSurface()
202 return DMError::DM_ERROR_REMOTE_CREATE_FAILED; in SetVirtualScreenSurface()
210 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED; in SetVirtualScreenSurface()
223 return DMError in SetVirtualScreenSurface()
[all...]
H A Ddisplay_manager_service.cpp154 DMError DisplayManagerService::HasPrivateWindow(DisplayId displayId, bool& hasPrivateWindow) in HasPrivateWindow()
158 return DMError::DM_ERROR_NOT_SYSTEM_APP; in HasPrivateWindow()
164 return DMError::DM_ERROR_INVALID_PARAM; in HasPrivateWindow()
168 return DMError::DM_OK; in HasPrivateWindow()
170 return DMError::DM_ERROR_NULLPTR; in HasPrivateWindow()
241 DMError DisplayManagerService::DestroyVirtualScreen(ScreenId screenId) in DestroyVirtualScreen()
245 return DMError::DM_ERROR_NOT_SYSTEM_APP; in DestroyVirtualScreen()
248 return DMError::DM_ERROR_INVALID_CALLING; in DestroyVirtualScreen()
252 CHECK_SCREEN_AND_RETURN(screenId, DMError::DM_ERROR_INVALID_PARAM); in DestroyVirtualScreen()
258 DMError DisplayManagerServic
[all...]
/foundation/window/window_manager/interfaces/innerkits/dm/
H A Dscreen_manager.h94 DMError GetAllScreens(std::vector<sptr<Screen>>& screens);
103 DMError MakeExpand(const std::vector<ExpandOption>& options, ScreenId& screenGroupId);
113 DMError MakeMirror(ScreenId mainScreenId, std::vector<ScreenId> mirrorScreenId, ScreenId& screenGroupId);
123 DMError SetMultiScreenMode(ScreenId mainScreenId, ScreenId secondaryScreenId,
133 DMError SetMultiScreenRelativePosition(MultiScreenPositionOptions mainScreenOptions,
142 DMError MakeUniqueScreen(const std::vector<ScreenId>& screenIds);
150 DMError StopExpand(const std::vector<ScreenId>& expandScreenIds);
158 DMError StopMirror(const std::vector<ScreenId>& mirrorScreenIds);
166 DMError DisableMirror(bool disableOrNot);
174 DMError RemoveVirtualScreenFromGrou
[all...]
H A Dscreen.h149 DMError SetScreenActiveMode(uint32_t modeId);
157 DMError SetOrientation(Orientation orientation) const;
165 DMError SetDensityDpi(uint32_t dpi) const;
173 DMError SetDensityDpiSystem(uint32_t dpi) const;
189 DMError GetScreenSupportedColorGamuts(std::vector<ScreenColorGamut>& colorGamuts) const;
197 DMError GetScreenColorGamut(ScreenColorGamut& colorGamut) const;
205 DMError SetScreenColorGamut(int32_t colorGamutIdx);
213 DMError GetScreenGamutMap(ScreenGamutMap& gamutMap) const;
221 DMError SetScreenGamutMap(ScreenGamutMap gamutMap);
228 DMError SetScreenColorTransfor
[all...]
H A Ddisplay_manager.h215 DMError HasPrivateWindow(DisplayId displayId, bool& hasPrivateWindow);
366 DMError RegisterDisplayListener(sptr<IDisplayListener> listener);
374 DMError UnregisterDisplayListener(sptr<IDisplayListener> listener);
382 DMError RegisterDisplayPowerEventListener(sptr<IDisplayPowerEventListener> listener);
390 DMError UnregisterDisplayPowerEventListener(sptr<IDisplayPowerEventListener> listener);
398 DMError RegisterScreenshotListener(sptr<IScreenshotListener> listener);
406 DMError UnregisterScreenshotListener(sptr<IScreenshotListener> listener);
414 DMError RegisterPrivateWindowListener(sptr<IPrivateWindowListener> listener);
422 DMError UnregisterPrivateWindowListener(sptr<IPrivateWindowListener> listener);
430 DMError RegisterPrivateWindowListChangeListene
[all...]
/foundation/window/window_manager/test/common/mock/
H A Dmock_display_manager_adapter.h27 MOCK_METHOD2(RegisterDisplayManagerAgent, DMError(const sptr<IDisplayManagerAgent>& displayManagerAgent,
29 MOCK_METHOD2(UnregisterDisplayManagerAgent, DMError(const sptr<IDisplayManagerAgent>& displayManagerAgent,
44 MOCK_METHOD2(GetAvailableArea, DMError(ScreenId screenId, DMRect& area));
45 MOCK_METHOD2(GetSupportedHDRFormats, DMError(ScreenId screenId, std::vector<uint32_t>& hdrFormats));
46 MOCK_METHOD2(GetSupportedColorSpaces, DMError(ScreenId screenId, std::vector<uint32_t>& colorSpaces));
47 MOCK_METHOD2(HasImmersiveWindow, DMError(ScreenId screenId, bool& immersive));
53 MOCK_METHOD2(RegisterDisplayManagerAgent, DMError(const sptr<IDisplayManagerAgent>& displayManagerAgent,
55 MOCK_METHOD2(UnregisterDisplayManagerAgent, DMError(const sptr<IDisplayManagerAgent>& displayManagerAgent,
60 MOCK_METHOD1(DestroyVirtualScreen, DMError(ScreenId screenId));
61 MOCK_METHOD2(SetVirtualScreenSurface, DMError(ScreenI
[all...]
/foundation/window/window_manager/test/systemtest/dms/
H A Dscreen_gamut_test.cpp66 DMError ret; in HWTEST_F()
69 ASSERT_EQ(ret, DMError::DM_OK); in HWTEST_F()
81 DMError ret; in HWTEST_F()
84 ASSERT_EQ(ret, DMError::DM_OK); in HWTEST_F()
96 DMError ret; in HWTEST_F()
103 ASSERT_EQ(ret, DMError::DM_OK); in HWTEST_F()
106 ASSERT_EQ(ret, DMError::DM_OK); in HWTEST_F()
110 ASSERT_EQ(ret, DMError::DM_OK); in HWTEST_F()
113 ASSERT_EQ(ret, DMError::DM_OK); in HWTEST_F()
125 ASSERT_EQ(ret, DMError in HWTEST_F()
[all...]
/foundation/window/window_manager/window_scene/test/dms_unittest/
H A Dmulti_screen_manager_test.cpp97 EXPECT_EQ(ret, DMError::DM_OK); in HWTEST_F()
102 * @tc.desc: ret != DMError::DM_OK
118 EXPECT_EQ(ret, DMError::DM_OK); in HWTEST_F()
171 DMError ret = MultiScreenManager::GetInstance().PhysicalScreenMirrorSwitch(screenIds); in HWTEST_F()
172 EXPECT_EQ(ret, DMError::DM_ERROR_NULLPTR); in HWTEST_F()
186 DMError ret = MultiScreenManager::GetInstance().PhysicalScreenMirrorSwitch(screenIds); in HWTEST_F()
187 EXPECT_EQ(ret, DMError::DM_OK); in HWTEST_F()
203 DMError ret = MultiScreenManager::GetInstance().PhysicalScreenMirrorSwitch(screenIds); in HWTEST_F()
204 EXPECT_EQ(ret, DMError::DM_OK); in HWTEST_F()
218 DMError re in HWTEST_F()
[all...]
/foundation/window/window_manager/dm/include/
H A Ddisplay_manager_adapter.h35 virtual DMError RegisterDisplayManagerAgent(const sptr<IDisplayManagerAgent>& displayManagerAgent,
37 virtual DMError UnregisterDisplayManagerAgent(const sptr<IDisplayManagerAgent>& displayManagerAgent,
64 virtual DMError HasImmersiveWindow(ScreenId screenId, bool& immersive);
65 virtual DMError HasPrivateWindow(DisplayId displayId, bool& hasPrivateWindow);
78 virtual DMError GetAvailableArea(DisplayId displayId, DMRect& area);
80 virtual DMError AddSurfaceNodeToDisplay(DisplayId displayId, std::shared_ptr<class RSSurfaceNode>& surfaceNode);
81 virtual DMError RemoveSurfaceNodeFromDisplay(DisplayId displayId,
89 virtual DMError SetFoldDisplayModeFromJs(const FoldDisplayMode);
92 virtual DMError SetFoldStatusLockedFromJs(bool locked);
96 virtual DMError ProxyForFreez
[all...]
/foundation/window/window_manager/window_scene/screen_session_manager/src/zidl/
H A Dscreen_session_manager_proxy.cpp53 DMError ScreenSessionManagerProxy::SetScreenActiveMode(ScreenId screenId, uint32_t modeId) in SetScreenActiveMode()
58 return DMError::DM_ERROR_IPC_FAILED; in SetScreenActiveMode()
66 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED; in SetScreenActiveMode()
70 return DMError::DM_ERROR_IPC_FAILED; in SetScreenActiveMode()
75 return DMError::DM_ERROR_IPC_FAILED; in SetScreenActiveMode()
77 return static_cast<DMError>(reply.ReadInt32()); in SetScreenActiveMode()
80 DMError ScreenSessionManagerProxy::SetVirtualPixelRatio(ScreenId screenId, float virtualPixelRatio) in SetVirtualPixelRatio()
85 return DMError::DM_ERROR_IPC_FAILED; in SetVirtualPixelRatio()
93 return DMError::DM_ERROR_WRITE_INTERFACE_TOKEN_FAILED; in SetVirtualPixelRatio()
97 return DMError in SetVirtualPixelRatio()
[all...]
/foundation/window/window_manager/dm_lite/src/
H A Dscreen_manager_lite.cpp36 DMError RegisterScreenListener(sptr<IScreenListener> listener);
37 DMError UnregisterScreenListener(sptr<IScreenListener> listener);
38 DMError RegisterDisplayManagerAgent();
39 DMError UnregisterDisplayManagerAgent();
130 DMError ScreenManagerLite::Impl::RegisterDisplayManagerAgent() in RegisterDisplayManagerAgent()
132 DMError regSucc = DMError::DM_OK; in RegisterDisplayManagerAgent()
137 if (regSucc != DMError::DM_OK) { in RegisterDisplayManagerAgent()
145 DMError ScreenManagerLite::Impl::UnregisterDisplayManagerAgent() in UnregisterDisplayManagerAgent()
147 DMError unRegSuc in UnregisterDisplayManagerAgent()
[all...]
H A Ddisplay_manager_lite.cpp44 DMError RegisterDisplayListener(sptr<IDisplayListener> listener);
45 DMError UnregisterDisplayListener(sptr<IDisplayListener> listener);
46 DMError RegisterFoldStatusListener(sptr<IFoldStatusListener> listener);
47 DMError UnregisterFoldStatusListener(sptr<IFoldStatusListener> listener);
48 DMError RegisterDisplayModeListener(sptr<IDisplayModeListener> listener);
49 DMError UnregisterDisplayModeListener(sptr<IDisplayModeListener> listener);
209 DMError res = DMError::DM_OK; in Clear()
215 if (res != DMError::DM_OK) { in Clear()
236 DMError DisplayManagerLit
[all...]
/foundation/window/window_manager/dmserver/test/unittest/
H A Ddisplay_manager_service_test.cpp104 ASSERT_EQ(static_cast<int>(DMError::DM_ERROR_INVALID_PARAM), dms_->Dump(-1, args)); in HWTEST_F()
173 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, dms_->HasPrivateWindow(0, hasPrivateWindow)); in HWTEST_F()
176 ASSERT_EQ(DMError::DM_ERROR_NULLPTR, dms_->HasPrivateWindow(1, hasPrivateWindow)); in HWTEST_F()
237 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, dms_->SetVirtualScreenSurface(-1, nullptr)); in HWTEST_F()
238 ASSERT_EQ(DMError::DM_ERROR_RENDER_SERVICE_FAILED, dms_->SetVirtualScreenSurface(0, nullptr)); in HWTEST_F()
243 DMError result = dms_->DestroyVirtualScreen(10086); in HWTEST_F()
244 EXPECT_EQ(result, DMError::DM_ERROR_INVALID_CALLING); in HWTEST_F()
255 ASSERT_TRUE(DMError::DM_OK != dms_->SetOrientation(0, orientation)); in HWTEST_F()
257 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, dms_->SetOrientation(0, orientation)); in HWTEST_F()
260 ASSERT_TRUE(DMError in HWTEST_F()
[all...]

Completed in 20 milliseconds

12345