Home
last modified time | relevance | path

Searched refs:DM_ERROR_INVALID_PARAM (Results 1 - 25 of 35) sorted by relevance

12

/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()
237 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, dms_->SetVirtualScreenSurface(-1, nullptr)); in HWTEST_F()
257 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, dms_->SetOrientation(0, orientation)); in HWTEST_F()
274 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, dms_->GetScreenSupportedColorGamuts(SCREEN_ID_INVALID, colorGamuts)); in HWTEST_F()
275 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, dms_->GetScreenSupportedColorGamuts(0, colorGamuts)); in HWTEST_F()
278 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, dms_->GetScreenColorGamut(SCREEN_ID_INVALID, colorGamut)); in HWTEST_F()
279 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, dms_->GetScreenColorGamut(0, colorGamut)); in HWTEST_F()
282 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, dms_->SetScreenColorGamut(SCREEN_ID_INVALID, colorGamut)); in HWTEST_F()
283 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, dms in HWTEST_F()
[all...]
/foundation/window/window_manager/interfaces/kits/napi/screen_runtime/napi/
H A Djs_screen_manager.cpp327 return NapiThrowError(env, DmErrorCode::DM_ERROR_INVALID_PARAM, "Invalid args count, 2 args is needed."); in OnRegisterScreenManagerCallback()
333 return NapiThrowError(env, DmErrorCode::DM_ERROR_INVALID_PARAM, errMsg); in OnRegisterScreenManagerCallback()
339 return NapiThrowError(env, DmErrorCode::DM_ERROR_INVALID_PARAM, errMsg); in OnRegisterScreenManagerCallback()
344 return NapiThrowError(env, DmErrorCode::DM_ERROR_INVALID_PARAM, errMsg); in OnRegisterScreenManagerCallback()
363 return NapiThrowError(env, DmErrorCode::DM_ERROR_INVALID_PARAM, "Invalid args count, need one arg at least!"); in OnUnregisterScreenManagerCallback()
369 return NapiThrowError(env, DmErrorCode::DM_ERROR_INVALID_PARAM, errMsg); in OnUnregisterScreenManagerCallback()
404 return NapiThrowError(env, DmErrorCode::DM_ERROR_INVALID_PARAM, "Invalid args count, need 2 args at least!"); in OnMakeMirror()
409 return NapiThrowError(env, DmErrorCode::DM_ERROR_INVALID_PARAM, "Failed to convert parameter to int"); in OnMakeMirror()
413 return NapiThrowError(env, DmErrorCode::DM_ERROR_INVALID_PARAM, "Failed to get mirrorScreen, is nullptr"); in OnMakeMirror()
423 return NapiThrowError(env, DmErrorCode::DM_ERROR_INVALID_PARAM, "Faile in OnMakeMirror()
[all...]
H A Djs_screen.cpp111 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM), errMsg)); in OnSetOrientation()
117 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM), errMsg)); in OnSetOrientation()
177 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM), errMsg)); in OnSetScreenActiveMode()
233 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM), errMsg)); in OnSetDensityDpi()
/foundation/window/window_manager/interfaces/kits/napi/display_runtime/
H A Djs_display_manager.cpp161 errCode = DMError::DM_ERROR_INVALID_PARAM; in OnGetDefaultDisplay()
213 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM), errMsg)); in OnGetDisplayByIdSync()
220 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM), errMsg)); in OnGetDisplayByIdSync()
226 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM), errMsg)); in OnGetDisplayByIdSync()
249 errCode = DMError::DM_ERROR_INVALID_PARAM; in OnGetAllDisplay()
333 errCode = DMError::DM_ERROR_INVALID_PARAM; in OnGetAllDisplayPhysicalResolution()
413 return DMError::DM_ERROR_INVALID_PARAM; in RegisterDisplayListenerWithType()
431 return DMError::DM_ERROR_INVALID_PARAM; in RegisterDisplayListenerWithType()
492 ret = DMError::DM_ERROR_INVALID_PARAM; in UnregisterAllDisplayListenerWithType()
535 ret = DMError::DM_ERROR_INVALID_PARAM; in UnRegisterDisplayListenerWithType()
[all...]
H A Djs_display.cpp243 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM), errMsg)); in OnRegisterDisplayManagerCallback()
249 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM), errMsg)); in OnRegisterDisplayManagerCallback()
257 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM), errMsg)); in OnRegisterDisplayManagerCallback()
263 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM), errMsg)); in OnRegisterDisplayManagerCallback()
271 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM), errMsg)); in OnRegisterDisplayManagerCallback()
291 return DMError::DM_ERROR_INVALID_PARAM; in RegisterDisplayListenerWithType()
297 return DMError::DM_ERROR_INVALID_PARAM; in RegisterDisplayListenerWithType()
317 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM), errMsg)); in OnUnregisterDisplayManagerCallback()
324 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM), errMsg)); in OnUnregisterDisplayManagerCallback()
342 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM), errMs in OnUnregisterDisplayManagerCallback()
[all...]
/foundation/window/window_manager/previewer/include/
H A Ddm_common.h125 DM_ERROR_INVALID_PARAM = 130, member in OHOS::Rosen::DMError
146 DM_ERROR_INVALID_PARAM = 401, member in OHOS::Rosen::DmErrorCode
163 {DMError::DM_ERROR_INVALID_PARAM, DmErrorCode::DM_ERROR_INVALID_PARAM }, member in OHOS::Rosen::DMError
/foundation/window/window_manager/dm/src/
H A Dscreen.cpp220 return DMError::DM_ERROR_INVALID_PARAM; in SetScreenActiveMode()
245 return DMError::DM_ERROR_INVALID_PARAM; in SetDensityDpi()
257 return DMError::DM_ERROR_INVALID_PARAM; in SetDensityDpiSystem()
267 return DMError::DM_ERROR_INVALID_PARAM; in SetResolution()
H A Dscreen_manager.cpp438 return DMError::DM_ERROR_INVALID_PARAM; in MakeExpand()
442 return DMError::DM_ERROR_INVALID_PARAM; in MakeExpand()
465 return DMError::DM_ERROR_INVALID_PARAM; in MakeUniqueScreen()
469 return DMError::DM_ERROR_INVALID_PARAM; in MakeUniqueScreen()
480 return DMError::DM_ERROR_INVALID_PARAM; in MakeMirror()
540 return DMError::DM_ERROR_INVALID_PARAM; in RemoveVirtualScreenFromGroup()
544 return DMError::DM_ERROR_INVALID_PARAM; in RemoveVirtualScreenFromGroup()
H A Ddisplay_manager_adapter.cpp583 return DMError::DM_ERROR_INVALID_PARAM; in AddSurfaceNodeToDisplay()
594 return DMError::DM_ERROR_INVALID_PARAM; in RemoveSurfaceNodeFromDisplay()
765 return DMError::DM_ERROR_INVALID_PARAM; in GetAvailableArea()
788 return DMError::DM_ERROR_INVALID_PARAM; in SetVirtualScreenFlag()
791 return DMError::DM_ERROR_INVALID_PARAM; in SetVirtualScreenFlag()
/foundation/window/window_manager/dmserver/src/
H A Ddisplay_manager_service.cpp164 return DMError::DM_ERROR_INVALID_PARAM; in HasPrivateWindow()
252 CHECK_SCREEN_AND_RETURN(screenId, DMError::DM_ERROR_INVALID_PARAM); in DestroyVirtualScreen()
261 CHECK_SCREEN_AND_RETURN(screenId, DMError::DM_ERROR_INVALID_PARAM); in SetVirtualScreenSurface()
279 return DMError::DM_ERROR_INVALID_PARAM; in SetOrientation()
317 CHECK_SCREEN_AND_RETURN(screenId, DMError::DM_ERROR_INVALID_PARAM); in GetScreenSupportedColorGamuts()
324 CHECK_SCREEN_AND_RETURN(screenId, DMError::DM_ERROR_INVALID_PARAM); in GetScreenColorGamut()
331 CHECK_SCREEN_AND_RETURN(screenId, DMError::DM_ERROR_INVALID_PARAM); in SetScreenColorGamut()
338 CHECK_SCREEN_AND_RETURN(screenId, DMError::DM_ERROR_INVALID_PARAM); in GetScreenGamutMap()
346 CHECK_SCREEN_AND_RETURN(screenId, DMError::DM_ERROR_INVALID_PARAM); in SetScreenGamutMap()
353 CHECK_SCREEN_AND_RETURN(screenId, DMError::DM_ERROR_INVALID_PARAM); in SetScreenColorTransform()
[all...]
H A Ddisplay_dumper.cpp76 return DMError::DM_ERROR_INVALID_PARAM; in Dump()
124 case DMError::DM_ERROR_INVALID_PARAM: in ShowIllegalArgsInfo()
139 return DMError::DM_ERROR_INVALID_PARAM; in DumpInfo()
153 return DMError::DM_ERROR_INVALID_PARAM; in DumpInfo()
H A Dabstract_screen.cpp143 return DMError::DM_ERROR_INVALID_PARAM; in RemoveSurfaceNode()
308 return DMError::DM_ERROR_INVALID_PARAM; in SetScreenColorGamut()
337 return DMError::DM_ERROR_INVALID_PARAM; in SetScreenGamutMap()
H A Dabstract_screen_controller.cpp705 return DMError::DM_ERROR_INVALID_PARAM; in DestroyVirtualScreen()
957 return DMError::DM_ERROR_INVALID_PARAM; in GetScreenSupportedColorGamuts()
966 return DMError::DM_ERROR_INVALID_PARAM; in GetScreenColorGamut()
975 return DMError::DM_ERROR_INVALID_PARAM; in SetScreenColorGamut()
984 return DMError::DM_ERROR_INVALID_PARAM; in GetScreenGamutMap()
993 return DMError::DM_ERROR_INVALID_PARAM; in SetScreenGamutMap()
1002 return DMError::DM_ERROR_INVALID_PARAM; in SetScreenColorTransform()
/foundation/window/window_manager/dm/test/unittest/
H A Dscreen_manager_test.cpp101 EXPECT_CALL(m->Mock(), DestroyVirtualScreen(_)).Times(1).WillOnce(Return(DMError::DM_ERROR_INVALID_PARAM)); in HWTEST_F()
105 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, ret); in HWTEST_F()
185 EXPECT_EQ(error, DMError::DM_ERROR_INVALID_PARAM); in HWTEST_F()
225 EXPECT_CALL(m->Mock(), SetVirtualScreenSurface(_, _)).Times(1).WillOnce(Return(DMError::DM_ERROR_INVALID_PARAM)); in HWTEST_F()
226 EXPECT_CALL(m->Mock(), DestroyVirtualScreen(_)).Times(1).WillOnce(Return(DMError::DM_ERROR_INVALID_PARAM)); in HWTEST_F()
231 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, surfaceRes); in HWTEST_F()
232 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, destroyRes); in HWTEST_F()
341 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, result); in HWTEST_F()
345 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, result); in HWTEST_F()
544 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, re in HWTEST_F()
[all...]
H A Ddisplay_manager_adapter_test.cpp104 ASSERT_EQ(err, DMError::DM_ERROR_INVALID_PARAM); in HWTEST_F()
604 ASSERT_EQ(err, DMError::DM_ERROR_INVALID_PARAM); in HWTEST_F()
682 ASSERT_EQ(err, DMError::DM_ERROR_INVALID_PARAM); in HWTEST_F()
787 ASSERT_EQ(err, DMError::DM_ERROR_INVALID_PARAM); in HWTEST_F()
H A Dscreen_test.cpp393 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, res); in HWTEST_F()
409 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, res); in HWTEST_F()
423 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, res); in HWTEST_F()
/foundation/window/window_manager/interfaces/innerkits/dm/
H A Ddm_common.h149 DM_ERROR_INVALID_PARAM = 130, member in OHOS::Rosen::DMError
170 DM_ERROR_INVALID_PARAM = 401, member in OHOS::Rosen::DmErrorCode
187 {DMError::DM_ERROR_INVALID_PARAM, DmErrorCode::DM_ERROR_INVALID_PARAM }, member in OHOS::Rosen::DMError
/foundation/window/window_manager/interfaces/kits/napi/screenshot/
H A Dnative_screenshot_module.cpp183 param->wret = DmErrorCode::DM_ERROR_INVALID_PARAM; in AsyncGetScreenshot()
245 if (param->wret == DmErrorCode::DM_ERROR_INVALID_PARAM) { in Resolve()
247 napi_create_int32(env, (int32_t)DmErrorCode::DM_ERROR_INVALID_PARAM, &code); in Resolve()
248 napi_set_named_property(env, error, "DM_ERROR_INVALID_PARAM", code); in Resolve()
361 (int32_t)DMError::DM_ERROR_INVALID_PARAM, "DM_ERROR_INVALID_PARAM"); in ScreenshotModuleInit()
382 (int32_t)DmErrorCode::DM_ERROR_INVALID_PARAM, "DM_ERROR_INVALID_PARAM"); in ScreenshotModuleInit()
/foundation/window/window_manager/window_scene/screen_session_manager/src/
H A Dscreen_session_manager.cpp365 return DMError::DM_ERROR_INVALID_PARAM; in RegisterDisplayManagerAgent()
1213 return DMError::DM_ERROR_INVALID_PARAM; in SetResolution()
1249 return DMError::DM_ERROR_INVALID_PARAM; in GetScreenColorGamut()
1254 return DMError::DM_ERROR_INVALID_PARAM; in GetScreenColorGamut()
1270 return DMError::DM_ERROR_INVALID_PARAM; in SetScreenColorGamut()
1275 return DMError::DM_ERROR_INVALID_PARAM; in SetScreenColorGamut()
1285 return DMError::DM_ERROR_INVALID_PARAM; in GetScreenGamutMap()
1290 return DMError::DM_ERROR_INVALID_PARAM; in GetScreenGamutMap()
1306 return DMError::DM_ERROR_INVALID_PARAM; in SetScreenGamutMap()
1311 return DMError::DM_ERROR_INVALID_PARAM; in SetScreenGamutMap()
[all...]
/foundation/window/window_manager/window_scene/screen_session_manager/src/zidl/
H A Dscreen_session_manager_lite_proxy.cpp51 return DMError::DM_ERROR_INVALID_PARAM; in RegisterDisplayManagerAgent()
92 return DMError::DM_ERROR_INVALID_PARAM; in UnregisterDisplayManagerAgent()
/foundation/window/window_manager/window_scene/interfaces/kits/napi/screen_session_manager/
H A Djs_screen_session.cpp186 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM))); in OnSetScreenRotationLocked()
193 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM))); in OnSetScreenRotationLocked()
199 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM))); in OnSetScreenRotationLocked()
243 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM))); in OnSetTouchEnabled()
250 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM))); in OnSetTouchEnabled()
256 napi_throw(env, CreateJsError(env, static_cast<int32_t>(DmErrorCode::DM_ERROR_INVALID_PARAM))); in OnSetTouchEnabled()
/foundation/window/window_manager/window_scene/test/dms_unittest/
H A Dscreen_session_manager_test.cpp955 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, ssm_->SetOrientation(id, invalidOrientation)); in HWTEST_F()
1003 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, ssm_->MakeMirror(mainScreenId, mirrorScreenIds, screenGroupId)); in HWTEST_F()
1008 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, result1); in HWTEST_F()
1362 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, ssm_->SetResolution(screenId, 100, 100, 0.5)); in HWTEST_F()
1374 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, ssm_->GetScreenColorGamut(1, colorGamut)); in HWTEST_F()
1766 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, in HWTEST_F()
1826 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, ssm_->SetScreenColorGamut(SCREEN_ID_INVALID, 2)); in HWTEST_F()
1848 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, ssm_->SetScreenColorTransform(SCREEN_ID_INVALID)); in HWTEST_F()
1861 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, ssm_->SetScreenRotationLocked(false)); in HWTEST_F()
1904 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, ssm in HWTEST_F()
[all...]
/foundation/window/window_manager/interfaces/kits/napi/common/
H A Djs_err_utils.cpp159 {DMError::DM_ERROR_INVALID_PARAM, DM_ERROR_MSG_INVALID_PARAM }, member in OHOS::Rosen::DMError
186 {DmErrorCode::DM_ERROR_INVALID_PARAM, DM_ERROR_CODE_MSG_INVALID_PARAM }, member in OHOS::Rosen::DmErrorCode
/foundation/window/window_manager/test/systemtest/dms/
H A Dscreen_manager_test.cpp1165 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, res); in HWTEST_F()
1228 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, res); in HWTEST_F()
1230 ASSERT_NE(DMError::DM_ERROR_INVALID_PARAM, res); in HWTEST_F()
1262 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, res); in HWTEST_F()
1264 ASSERT_NE(DMError::DM_ERROR_INVALID_PARAM, res); in HWTEST_F()
1275 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, res); in HWTEST_F()
1277 ASSERT_NE(DMError::DM_ERROR_INVALID_PARAM, res); in HWTEST_F()
1314 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, res); in HWTEST_F()
1388 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, res); in HWTEST_F()
1425 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, re in HWTEST_F()
[all...]
H A Ddisplay_change_test.cpp341 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, defaultScreen_->SetDensityDpi(densityDpi)); in HWTEST_F()
352 ASSERT_EQ(DMError::DM_ERROR_INVALID_PARAM, defaultScreen_->SetDensityDpi(densityDpi)); in HWTEST_F()

Completed in 43 milliseconds

12