/ohos5.0/foundation/window/window_manager/window_scene/interfaces/kits/napi/scene_session_manager/ |
H A D | js_scene_session_manager.cpp | 1454 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 D | js_scene_session.cpp | 2315 … 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 D | js_root_scene_session.cpp | 93 … 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 D | js_screen_session_manager.cpp | 416 … 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 D | js_screen_session.cpp | 126 … 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 D | ws_common.h | 90 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 D | session_stage_stub.cpp | 277 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 D | session_stage_proxy.cpp | 483 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 D | mock_session_stage.h | 38 MOCK_METHOD2(NotifyTransferComponentDataSync, WSErrorCode(const AAFwk::WantParams& wantParams,
|
/ohos5.0/foundation/window/window_manager/window_scene/session/container/include/zidl/ |
H A D | session_stage_proxy.h | 44 WSErrorCode NotifyTransferComponentDataSync(const AAFwk::WantParams& wantParams,
|
H A D | session_stage_interface.h | 62 virtual WSErrorCode NotifyTransferComponentDataSync(const AAFwk::WantParams& wantParams,
|
/ohos5.0/foundation/window/window_manager/window_scene/session/host/src/ |
H A D | extension_session.cpp | 237 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 D | extension_session.h | 93 WSErrorCode TransferComponentDataSync(const AAFwk::WantParams& wantParams,
|
/ohos5.0/foundation/window/window_manager/window_scene/test/unittest/ |
H A D | extension_session_test.cpp | 209 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 D | window_extension_session_impl.h | 45 WSErrorCode NotifyTransferComponentDataSync(
|
H A D | window_session_impl.h | 216 WSErrorCode NotifyTransferComponentDataSync(const AAFwk::WantParams& wantParams,
|
/ohos5.0/foundation/window/window_manager/wm/src/ |
H A D | window_extension_session_impl.cpp | 298 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 D | window_session_impl.cpp | 3244 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 D | security_session_wrapper_impl.cpp | 712 Rosen::WSErrorCode transferCode = Rosen::WSErrorCode::WS_ERROR_TRANSFER_DATA_FAILED; in SendDataSync()
|
H A D | session_wrapper_impl.cpp | 861 Rosen::WSErrorCode transferCode = Rosen::WSErrorCode::WS_ERROR_TRANSFER_DATA_FAILED; in SendDataSync()
|
/ohos5.0/foundation/window/window_manager/wm/test/unittest/ |
H A D | window_extension_session_impl_test.cpp | 442 ASSERT_EQ(WSErrorCode::WS_ERROR_NOT_REGISTER_SYNC_CALLBACK, 465 ASSERT_EQ(WSErrorCode::WS_OK,
|
H A D | window_session_impl_two_test.cpp | 349 … ASSERT_EQ(WSErrorCode::WS_OK, window->NotifyTransferComponentDataSync(wantParams, reWantParams));
|