Home
last modified time | relevance | path

Searched refs:WSErrorCode (Results 1 – 22 of 22) sorted by relevance

/ohos5.0/foundation/window/window_manager/window_scene/interfaces/kits/napi/scene_session_manager/
H A Djs_scene_session_manager.cpp1454 auto errCode = std::make_shared<WSErrorCode>(WSErrorCode::WS_OK); in OnGetBatchAbilityInfos()
1551 WSErrorCode ret = in OnInitUserInfo()
1620 WSErrorCode errCode = WSErrorCode::WS_OK; in OnRequestSceneSession()
1673 WSErrorCode errCode = WSErrorCode::WS_OK; in OnUpdateSceneSessionWant()
1753 WSErrorCode errCode = WSErrorCode::WS_OK; in OnRequestSceneSessionBackground()
1820 WSErrorCode errCode = WSErrorCode::WS_OK; in OnRequestSceneSessionDestruction()
2001 WSErrorCode errCode = WSErrorCode::WS_OK; in OnRequestSceneSessionByCall()
2048 WSErrorCode errCode = WSErrorCode::WS_OK; in OnStartAbilityBySpecified()
2089 WSErrorCode errCode = WSErrorCode::WS_OK; in OnStartUIAbilityBySCB()
2135 WSErrorCode errCode = WSErrorCode::WS_OK; in OnChangeUIAbilityVisibilityBySCB()
[all …]
H A Djs_scene_session.cpp2315 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnSetPrivacyMode()
2322 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnSetPrivacyMode()
2344 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnSetSystemSceneOcclusionAlpha()
2351 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnSetSystemSceneOcclusionAlpha()
2372 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnSetSystemSceneForceUIFirst()
2379 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnSetSystemSceneForceUIFirst()
2400 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnMarkSystemSceneUIFirst()
2407 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnMarkSystemSceneUIFirst()
2414 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnMarkSystemSceneUIFirst()
4016 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnSetSystemActive()
[all …]
H A Djs_root_scene_session.cpp93 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnRegisterCallback()
100 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnRegisterCallback()
107 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnRegisterCallback()
117 … env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), "Root scene session is null!")); in OnRegisterCallback()
145 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnLoadContent()
154 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnLoadContent()
161 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_STATE_ABNORMALLY))); in OnLoadContent()
169 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_STATE_ABNORMALLY))); in OnLoadContent()
186 …task.Reject(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_STATE_ABNORMALLY))); in OnLoadContent()
/ohos5.0/foundation/window/window_manager/window_scene/interfaces/kits/napi/screen_session_manager/
H A Djs_screen_session_manager.cpp416 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnUpdateScreenRotationProperty()
423 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnUpdateScreenRotationProperty()
469 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnNotifyScreenLockEvent()
476 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnNotifyScreenLockEvent()
501 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnGetPhyScreenProperty()
508 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnGetPhyScreenProperty()
524 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnUpdateAvailableArea()
531 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnUpdateAvailableArea()
558 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnSetScreenOffDelayTime()
566 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnSetScreenOffDelayTime()
[all …]
H A Djs_screen_session.cpp126 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnLoadContent()
135 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM), in OnLoadContent()
142 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_STATE_ABNORMALLY))); in OnLoadContent()
150 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_STATE_ABNORMALLY))); in OnLoadContent()
303 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM))); in OnRegisterCallback()
310 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM))); in OnRegisterCallback()
317 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_INVALID_PARAM))); in OnRegisterCallback()
323 … napi_throw(env, CreateJsError(env, static_cast<int32_t>(WSErrorCode::WS_ERROR_REPEAT_OPERATION))); in OnRegisterCallback()
/ohos5.0/foundation/window/window_manager/window_scene/interfaces/include/
H A Dws_common.h90 enum class WSErrorCode : int32_t { enum
107 const std::map<WSError, WSErrorCode> WS_JS_TO_ERROR_CODE_MAP {
108 { WSError::WS_OK, WSErrorCode::WS_OK },
109 { WSError::WS_DO_NOTHING, WSErrorCode::WS_ERROR_STATE_ABNORMALLY },
110 { WSError::WS_ERROR_INVALID_SESSION, WSErrorCode::WS_ERROR_STATE_ABNORMALLY },
111 { WSError::WS_ERROR_INVALID_PARAM, WSErrorCode::WS_ERROR_STATE_ABNORMALLY },
112 { WSError::WS_ERROR_IPC_FAILED, WSErrorCode::WS_ERROR_SYSTEM_ABNORMALLY },
113 { WSError::WS_ERROR_NULLPTR, WSErrorCode::WS_ERROR_STATE_ABNORMALLY },
114 { WSError::WS_ERROR_EDM_CONTROLLED, WSErrorCode::WS_ERROR_EDM_CONTROLLED },
115 { WSError::WS_ERROR_INVALID_WINDOW, WSErrorCode::WS_ERROR_STATE_ABNORMALLY },
/ohos5.0/foundation/window/window_manager/window_scene/session/container/src/zidl/
H A Dsession_stage_stub.cpp277 return static_cast<int>(WSErrorCode::WS_ERROR_TRANSFER_DATA_FAILED); in HandleNotifyTransferComponentDataSync()
280 WSErrorCode errCode = NotifyTransferComponentDataSync(*wantParams, reWantParams); in HandleNotifyTransferComponentDataSync()
281 if (errCode != WSErrorCode::WS_OK) { in HandleNotifyTransferComponentDataSync()
286 return static_cast<int>(WSErrorCode::WS_ERROR_TRANSFER_DATA_FAILED); in HandleNotifyTransferComponentDataSync()
288 return static_cast<int>(WSErrorCode::WS_OK); in HandleNotifyTransferComponentDataSync()
H A Dsession_stage_proxy.cpp483 WSErrorCode SessionStageProxy::NotifyTransferComponentDataSync(const AAFwk::WantParams& wantParams, in NotifyTransferComponentDataSync()
491 return WSErrorCode::WS_ERROR_TRANSFER_DATA_FAILED; in NotifyTransferComponentDataSync()
496 return WSErrorCode::WS_ERROR_TRANSFER_DATA_FAILED; in NotifyTransferComponentDataSync()
502 return WSErrorCode::WS_ERROR_TRANSFER_DATA_FAILED; in NotifyTransferComponentDataSync()
510 return static_cast<WSErrorCode>(sendCode); in NotifyTransferComponentDataSync()
516 return WSErrorCode::WS_ERROR_TRANSFER_DATA_FAILED; in NotifyTransferComponentDataSync()
520 return WSErrorCode::WS_OK; in NotifyTransferComponentDataSync()
/ohos5.0/foundation/window/window_manager/window_scene/test/mock/
H A Dmock_session_stage.h38 MOCK_METHOD2(NotifyTransferComponentDataSync, WSErrorCode(const AAFwk::WantParams& wantParams,
/ohos5.0/foundation/window/window_manager/window_scene/session/container/include/zidl/
H A Dsession_stage_proxy.h44 WSErrorCode NotifyTransferComponentDataSync(const AAFwk::WantParams& wantParams,
H A Dsession_stage_interface.h62 virtual WSErrorCode NotifyTransferComponentDataSync(const AAFwk::WantParams& wantParams,
/ohos5.0/foundation/window/window_manager/window_scene/session/host/src/
H A Dextension_session.cpp237 WSErrorCode ExtensionSession::TransferComponentDataSync(const AAFwk::WantParams& wantParams, in TransferComponentDataSync()
241 return WSErrorCode::WS_ERROR_TRANSFER_DATA_FAILED; in TransferComponentDataSync()
/ohos5.0/foundation/window/window_manager/window_scene/session/host/include/
H A Dextension_session.h93 WSErrorCode TransferComponentDataSync(const AAFwk::WantParams& wantParams,
/ohos5.0/foundation/window/window_manager/window_scene/test/unittest/
H A Dextension_session_test.cpp209 ASSERT_EQ(res, WSErrorCode::WS_ERROR_TRANSFER_DATA_FAILED);
212 …*mockSessionStage_, NotifyTransferComponentDataSync).Times(1).WillOnce(Return(WSErrorCode::WS_OK));
214 ASSERT_EQ(res, WSErrorCode::WS_OK);
/ohos5.0/foundation/window/window_manager/wm/include/
H A Dwindow_extension_session_impl.h45 WSErrorCode NotifyTransferComponentDataSync(
H A Dwindow_session_impl.h216 WSErrorCode NotifyTransferComponentDataSync(const AAFwk::WantParams& wantParams,
/ohos5.0/foundation/window/window_manager/wm/src/
H A Dwindow_extension_session_impl.cpp298 WSErrorCode WindowExtensionSessionImpl::NotifyTransferComponentDataSync( in NotifyTransferComponentDataSync()
304 return WSErrorCode::WS_OK; in NotifyTransferComponentDataSync()
306 return WSErrorCode::WS_ERROR_NOT_REGISTER_SYNC_CALLBACK; in NotifyTransferComponentDataSync()
H A Dwindow_session_impl.cpp3244 WSErrorCode WindowSessionImpl::NotifyTransferComponentDataSync(const AAFwk::WantParams& wantParams, in NotifyTransferComponentDataSync()
3247 return WSErrorCode::WS_OK; in NotifyTransferComponentDataSync()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/ui_extension/
H A Dsecurity_session_wrapper_impl.cpp712 Rosen::WSErrorCode transferCode = Rosen::WSErrorCode::WS_ERROR_TRANSFER_DATA_FAILED; in SendDataSync()
H A Dsession_wrapper_impl.cpp861 Rosen::WSErrorCode transferCode = Rosen::WSErrorCode::WS_ERROR_TRANSFER_DATA_FAILED; in SendDataSync()
/ohos5.0/foundation/window/window_manager/wm/test/unittest/
H A Dwindow_extension_session_impl_test.cpp442 ASSERT_EQ(WSErrorCode::WS_ERROR_NOT_REGISTER_SYNC_CALLBACK,
465 ASSERT_EQ(WSErrorCode::WS_OK,
H A Dwindow_session_impl_two_test.cpp349 … ASSERT_EQ(WSErrorCode::WS_OK, window->NotifyTransferComponentDataSync(wantParams, reWantParams));