Home
last modified time | relevance | path

Searched refs:WmErrorCode (Results 1 - 25 of 48) sorted by relevance

12

/foundation/window/window_manager/utils/src/
H A Dwm_common.cpp19 const std::map<WMError, WmErrorCode> WM_JS_TO_ERROR_CODE_MAP {
20 {WMError::WM_OK, WmErrorCode::WM_OK },
21 {WMError::WM_DO_NOTHING, WmErrorCode::WM_ERROR_STATE_ABNORMALLY },
22 {WMError::WM_ERROR_DESTROYED_OBJECT, WmErrorCode::WM_ERROR_STATE_ABNORMALLY },
23 {WMError::WM_ERROR_DEVICE_NOT_SUPPORT, WmErrorCode::WM_ERROR_DEVICE_NOT_SUPPORT },
24 {WMError::WM_ERROR_INVALID_OPERATION, WmErrorCode::WM_ERROR_STATE_ABNORMALLY },
25 {WMError::WM_ERROR_INVALID_PARAM, WmErrorCode::WM_ERROR_INVALID_PARAM },
26 {WMError::WM_ERROR_INVALID_PERMISSION, WmErrorCode::WM_ERROR_NO_PERMISSION },
27 {WMError::WM_ERROR_NOT_SYSTEM_APP, WmErrorCode::WM_ERROR_NOT_SYSTEM_APP },
28 {WMError::WM_ERROR_INVALID_TYPE, WmErrorCode
[all...]
/foundation/window/window_manager/interfaces/kits/napi/window_runtime/window_napi/
H A Djs_window_register_manager.cpp73 WmErrorCode JsWindowRegisterManager::ProcessWindowChangeRegister(sptr<JsWindowListener> listener, in ProcessWindowChangeRegister()
78 return WmErrorCode::WM_ERROR_STATE_ABNORMALLY; in ProcessWindowChangeRegister()
81 WmErrorCode ret = WmErrorCode::WM_OK; in ProcessWindowChangeRegister()
90 WmErrorCode JsWindowRegisterManager::ProcessSystemAvoidAreaChangeRegister(sptr<JsWindowListener> listener, in ProcessSystemAvoidAreaChangeRegister()
95 return WmErrorCode::WM_ERROR_STATE_ABNORMALLY; in ProcessSystemAvoidAreaChangeRegister()
99 return WmErrorCode::WM_ERROR_STATE_ABNORMALLY; in ProcessSystemAvoidAreaChangeRegister()
103 WmErrorCode ret = WmErrorCode::WM_OK; in ProcessSystemAvoidAreaChangeRegister()
112 WmErrorCode JsWindowRegisterManage
[all...]
H A Djs_window_register_manager.h55 WmErrorCode RegisterListener(sptr<Window> window, std::string type,
57 WmErrorCode UnregisterListener(sptr<Window> window, std::string type,
61 WmErrorCode ProcessWindowChangeRegister(sptr<JsWindowListener> listener, sptr<Window> window, bool isRegister,
63 WmErrorCode ProcessSystemAvoidAreaChangeRegister(sptr<JsWindowListener> listener, sptr<Window> window,
65 WmErrorCode ProcessAvoidAreaChangeRegister(sptr<JsWindowListener> listener, sptr<Window> window, bool isRegister,
67 WmErrorCode ProcessLifeCycleEventRegister(sptr<JsWindowListener> listener, sptr<Window> window, bool isRegister,
69 WmErrorCode ProcessOccupiedAreaChangeRegister(sptr<JsWindowListener> listener, sptr<Window> window,
71 WmErrorCode ProcessSystemBarChangeRegister(sptr<JsWindowListener> listener, sptr<Window> window, bool isRegister,
73 WmErrorCode ProcessTouchOutsideRegister(sptr<JsWindowListener> listener, sptr<Window> window, bool isRegister,
75 WmErrorCode ProcessScreenshotRegiste
[all...]
H A Djs_window.cpp1005 napi_value NapiThrowError(napi_env env, WmErrorCode errCode) in NapiThrowError()
1072 task.Reject(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_STATE_ABNORMALLY)); in OnShowWindow()
1109 WmErrorCode errCode = Permission::IsSystemCallingOrStartByHdcd(true) ? in OnShowWithAnimation()
1110 WmErrorCode::WM_OK : WmErrorCode::WM_ERROR_NOT_SYSTEM_APP; in OnShowWithAnimation()
1111 if (errCode == WmErrorCode::WM_OK) { in OnShowWithAnimation()
1113 errCode = WmErrorCode::WM_ERROR_STATE_ABNORMALLY; in OnShowWithAnimation()
1119 errCode = WmErrorCode::WM_ERROR_INVALID_CALLING; in OnShowWithAnimation()
1126 if (errCode != WmErrorCode::WM_OK) { in OnShowWithAnimation()
1133 task.Reject(env, JsErrUtils::CreateJsError(env, WmErrorCode in OnShowWithAnimation()
[all...]
/foundation/window/window_manager/interfaces/kits/cj/window_runtime/
H A Dwindow_register_manager.h30 WmErrorCode RegisterListener(sptr<Window>, std::string type,
32 WmErrorCode UnregisterListener(sptr<Window>, std::string type,
36 WmErrorCode ProcessWindowChangeRegister(sptr<CjWindowListener> listener, sptr<Window> window, bool isRegister);
37 WmErrorCode ProcessSystemAvoidAreaChangeRegister(sptr<CjWindowListener> listener, sptr<Window> window,
39 WmErrorCode ProcessAvoidAreaChangeRegister(sptr<CjWindowListener> listener, sptr<Window> window, bool isRegister);
40 WmErrorCode ProcessLifeCycleEventRegister(sptr<CjWindowListener> listener, sptr<Window> window, bool isRegister);
41 WmErrorCode ProcessOccupiedAreaChangeRegister(sptr<CjWindowListener> listener,
43 WmErrorCode ProcessSystemBarChangeRegister(sptr<CjWindowListener> listener, sptr<Window> window, bool isRegister);
44 WmErrorCode ProcessTouchOutsideRegister(sptr<CjWindowListener> listener, sptr<Window> window, bool isRegister);
45 WmErrorCode ProcessScreenshotRegiste
[all...]
H A Dwindow_register_manager.cpp68 WmErrorCode CjWindowRegisterManager::ProcessSystemBarChangeRegister( in ProcessSystemBarChangeRegister()
71 return WmErrorCode::WM_OK; in ProcessSystemBarChangeRegister()
74 WmErrorCode CjWindowRegisterManager::ProcessGestureNavigationEnabledChangeRegister( in ProcessGestureNavigationEnabledChangeRegister()
77 return WmErrorCode::WM_OK; in ProcessGestureNavigationEnabledChangeRegister()
80 WmErrorCode CjWindowRegisterManager::ProcessWaterMarkFlagChangeRegister( in ProcessWaterMarkFlagChangeRegister()
83 return WmErrorCode::WM_OK; in ProcessWaterMarkFlagChangeRegister()
86 WmErrorCode CjWindowRegisterManager::ProcessWindowChangeRegister( in ProcessWindowChangeRegister()
89 return WmErrorCode::WM_OK; in ProcessWindowChangeRegister()
92 WmErrorCode CjWindowRegisterManager::ProcessSystemAvoidAreaChangeRegister( in ProcessSystemAvoidAreaChangeRegister()
95 return WmErrorCode in ProcessSystemAvoidAreaChangeRegister()
[all...]
H A Dwindow_stage_impl.cpp28 ret.code = static_cast<int32_t>(WmErrorCode::WM_ERROR_SYSTEM_ABNORMALLY); in CreateCjSubWindowArrayObject()
53 return static_cast<int32_t>(WmErrorCode::WM_ERROR_STATE_ABNORMALLY); in GetMainWindow()
58 return static_cast<int32_t>(WmErrorCode::WM_ERROR_STATE_ABNORMALLY); in GetMainWindow()
63 return static_cast<int32_t>(WmErrorCode::WM_ERROR_STATE_ABNORMALLY); in GetMainWindow()
66 return static_cast<int32_t>(WmErrorCode::WM_OK); in GetMainWindow()
74 return static_cast<int32_t>(WmErrorCode::WM_ERROR_STATE_ABNORMALLY); in CreateSubWindow()
79 return static_cast<int32_t>(WmErrorCode::WM_ERROR_STATE_ABNORMALLY); in CreateSubWindow()
86 return static_cast<int32_t>(WmErrorCode::WM_ERROR_STATE_ABNORMALLY); in CreateSubWindow()
91 return static_cast<int32_t>(WmErrorCode::WM_ERROR_STATE_ABNORMALLY); in CreateSubWindow()
95 return static_cast<int32_t>(WmErrorCode in CreateSubWindow()
[all...]
H A Dwindow_impl.cpp95 result.ret = static_cast<int32_t>(WmErrorCode::WM_OK); in CheckWindow()
99 result.ret = static_cast<int32_t>(WmErrorCode::WM_ERROR_STATE_ABNORMALLY); in CheckWindow()
112 WmErrorCode ret = WM_JS_TO_ERROR_CODE_MAP.at(result.nativeWindow->Hide(0, false, false)); in Hide()
120 WmErrorCode errCode = WmErrorCode::WM_OK; in HideWithAnimation()
125 errCode = WmErrorCode::WM_ERROR_INVALID_CALLING; in HideWithAnimation()
128 errCode = WmErrorCode::WM_ERROR_STATE_ABNORMALLY; in HideWithAnimation()
130 if (errCode != WmErrorCode::WM_OK) { in HideWithAnimation()
148 return static_cast<int32_t>(WmErrorCode::WM_ERROR_STATE_ABNORMALLY); in ShowWindow()
158 WmErrorCode errCod in ShowWithAnimation()
[all...]
H A Dwindow_manager_impl.cpp50 return static_cast<int32_t>(WmErrorCode::WM_ERROR_SYSTEM_ABNORMALLY); in CreateNewSystemWindow()
54 return static_cast<int32_t>(WmErrorCode::WM_ERROR_CONTEXT_ABNORMALLY); in CreateNewSystemWindow()
64 return static_cast<int32_t>(WmErrorCode::WM_ERROR_NO_PERMISSION); in CreateNewSystemWindow()
70 WmErrorCode wmErrorCode = WM_JS_TO_ERROR_CODE_MAP.at(wmError); in CreateNewSystemWindow()
71 if (window != nullptr && wmErrorCode == WmErrorCode::WM_OK) { in CreateNewSystemWindow()
95 return static_cast<int32_t>(WmErrorCode::WM_ERROR_INVALID_PARAM); in CreateWindow()
104 return static_cast<int32_t>(WmErrorCode::WM_ERROR_INVALID_PARAM); in CreateWindow()
109 WmErrorCode ret = WM_JS_TO_ERROR_CODE_MAP.at( in SetWindowLayoutMode()
118 return static_cast<int32_t>(WmErrorCode::WM_ERROR_INVALID_PARAM); in MinimizeAll()
120 WmErrorCode re in MinimizeAll()
[all...]
/foundation/window/window_manager/interfaces/kits/napi/extension_window/
H A Djs_extension_window_register_manager.cpp47 WmErrorCode JsExtensionWindowRegisterManager::ProcessWindowChangeRegister(sptr<JsExtensionWindowListener> listener, in ProcessWindowChangeRegister()
52 return WmErrorCode::WM_ERROR_STATE_ABNORMALLY; in ProcessWindowChangeRegister()
55 WmErrorCode ret = WmErrorCode::WM_OK; in ProcessWindowChangeRegister()
64 WmErrorCode JsExtensionWindowRegisterManager::ProcessAvoidAreaChangeRegister(sptr<JsExtensionWindowListener> listener, in ProcessAvoidAreaChangeRegister()
69 return WmErrorCode::WM_ERROR_STATE_ABNORMALLY; in ProcessAvoidAreaChangeRegister()
72 WmErrorCode ret = WmErrorCode::WM_OK; in ProcessAvoidAreaChangeRegister()
81 WmErrorCode JsExtensionWindowRegisterManager::ProcessLifeCycleEventRegister(sptr<JsExtensionWindowListener> listener, in ProcessLifeCycleEventRegister()
86 return WmErrorCode in ProcessLifeCycleEventRegister()
[all...]
H A Djs_extension_window_register_manager.h34 WmErrorCode RegisterListener(sptr<Window> window, std::string type,
36 WmErrorCode UnregisterListener(sptr<Window> window, std::string type,
48 WmErrorCode ProcessWindowChangeRegister(sptr<JsExtensionWindowListener> listener,
50 WmErrorCode ProcessAvoidAreaChangeRegister(sptr<JsExtensionWindowListener> listener,
52 WmErrorCode ProcessLifeCycleEventRegister(sptr<JsExtensionWindowListener> listener,
54 WmErrorCode ProcessRegister(CaseType caseType, const sptr<JsExtensionWindowListener>& listener,
H A Djs_extension_window.cpp332 CreateJsError(env, static_cast<int32_t>(WmErrorCode::WM_ERROR_DEVICE_NOT_SUPPORT))); in OnSetWindowKeepScreenOn()
350 CreateJsError(env, static_cast<int32_t>(WmErrorCode::WM_ERROR_DEVICE_NOT_SUPPORT))); in OnSetWindowBrightness()
363 return NapiThrowError(env, WmErrorCode::WM_ERROR_DEVICE_NOT_SUPPORT); in OnGetUIContext()
374 CreateJsError(env, static_cast<int32_t>(WmErrorCode::WM_ERROR_DEVICE_NOT_SUPPORT))); in OnSetPreferredOrientation()
387 return NapiThrowError(env, WmErrorCode::WM_ERROR_DEVICE_NOT_SUPPORT); in OnGetPreferredOrientation()
395 CreateJsError(env, static_cast<int32_t>(WmErrorCode::WM_ERROR_DEVICE_NOT_SUPPORT))); in OnSetSpecificSystemBarEnabled()
411 CreateJsError(env, static_cast<int32_t>(WmErrorCode::WM_ERROR_DEVICE_NOT_SUPPORT))); in OnResizeWindow()
430 CreateJsError(env, static_cast<int32_t>(WmErrorCode::WM_ERROR_DEVICE_NOT_SUPPORT))); in OnMoveWindowTo()
446 return NapiThrowError(env, WmErrorCode::WM_ERROR_STATE_ABNORMALLY); in OnGetWindowPropertiesSync()
454 return NapiThrowError(env, WmErrorCode in OnGetWindowPropertiesSync()
[all...]
/foundation/window/window_manager/previewer/mock/
H A Djs_window_register_manager.cpp41 WmErrorCode JsWindowRegisterManager::ProcessSystemAvoidAreaChangeRegister(sptr<JsWindowListener> listener, in ProcessSystemAvoidAreaChangeRegister()
46 return WmErrorCode::WM_ERROR_STATE_ABNORMALLY; in ProcessSystemAvoidAreaChangeRegister()
50 return WmErrorCode::WM_ERROR_STATE_ABNORMALLY; in ProcessSystemAvoidAreaChangeRegister()
54 WmErrorCode ret; in ProcessSystemAvoidAreaChangeRegister()
63 WmErrorCode JsWindowRegisterManager::ProcessAvoidAreaChangeRegister(sptr<JsWindowListener> listener, in ProcessAvoidAreaChangeRegister()
68 return WmErrorCode::WM_ERROR_STATE_ABNORMALLY; in ProcessAvoidAreaChangeRegister()
71 WmErrorCode ret; in ProcessAvoidAreaChangeRegister()
80 WmErrorCode JsWindowRegisterManager::RegisterListener(sptr<Window> window, std::string type, in RegisterListener()
85 return WmErrorCode::WM_OK; in RegisterListener()
90 return WmErrorCode in RegisterListener()
[all...]
H A Djs_window_register_manager.h42 WmErrorCode RegisterListener(sptr<Window> window, std::string type,
44 WmErrorCode UnregisterListener(sptr<Window> window, std::string type,
49 WmErrorCode ProcessSystemAvoidAreaChangeRegister(sptr<JsWindowListener> listener, sptr<Window> window,
51 WmErrorCode ProcessAvoidAreaChangeRegister(sptr<JsWindowListener> listener, sptr<Window> window, bool isRegister,
53 WmErrorCode ProcessRegisterCallback(ListenerFunctionType listenerFunctionType, CaseType caseType,
H A Djs_err_utils.h33 static inline napi_value CreateJsError(napi_env env, const WmErrorCode& errorCode, std::string msg = "") in CreateJsError()
79 static std::string GetErrorMsg(const WmErrorCode& errorCode) in GetErrorMsg()
/foundation/window/window_manager/interfaces/kits/napi/common/
H A Djs_err_utils.cpp112 static std::map<WmErrorCode, const char*> WM_ERROR_CODE_TO_ERROR_MSG_MAP {
113 {WmErrorCode::WM_OK, WM_ERROR_CODE_MSG_OK },
114 {WmErrorCode::WM_ERROR_NO_PERMISSION, WM_ERROR_CODE_MSG_NO_PERMISSION },
115 {WmErrorCode::WM_ERROR_NOT_SYSTEM_APP, WM_ERROR_CODE_MSG_NOT_SYSTEM_APP },
116 {WmErrorCode::WM_ERROR_INVALID_PARAM, WM_ERROR_CODE_MSG_INVALID_PARAM },
117 {WmErrorCode::WM_ERROR_DEVICE_NOT_SUPPORT, WM_ERROR_CODE_MSG_DEVICE_NOT_SUPPORT },
118 {WmErrorCode::WM_ERROR_REPEAT_OPERATION, WM_ERROR_CODE_MSG_REPEAT_OPERATION },
119 {WmErrorCode::WM_ERROR_STATE_ABNORMALLY, WM_ERROR_CODE_MSG_STATE_ABNORMALLY },
120 {WmErrorCode::WM_ERROR_SYSTEM_ABNORMALLY, WM_ERROR_CODE_MSG_SYSTEM_ABNORMALLY },
121 {WmErrorCode
[all...]
H A Djs_err_utils.h29 static napi_value CreateJsError(napi_env env, const WmErrorCode& errorCode, std::string msg = "");
65 static std::string GetErrorMsg(const WmErrorCode& errorCode);
/foundation/window/window_manager/interfaces/kits/napi/window_runtime/window_stage_napi/
H A Djs_window_stage.cpp188 task.Reject(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_STAGE_ABNORMALLY)); in OnGetMainWindow()
198 task.Reject(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_STATE_ABNORMALLY, in OnGetMainWindow()
218 napi_throw(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_STAGE_ABNORMALLY)); in OnGetMainWindowSync()
224 napi_throw(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_STATE_ABNORMALLY)); in OnGetMainWindowSync()
236 napi_throw(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_STATE_ABNORMALLY)); in OnEvent()
244 napi_throw(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_INVALID_PARAM)); in OnEvent()
252 napi_throw(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_INVALID_PARAM)); in OnEvent()
258 napi_throw(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_INVALID_PARAM)); in OnEvent()
265 napi_throw(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_STATE_ABNORMALLY)); in OnEvent()
269 if (ret != WmErrorCode in OnEvent()
[all...]
/foundation/window/window_manager/interfaces/kits/napi/window_runtime/window_manager_napi/
H A Djs_window_manager.cpp244 task.Reject(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_SYSTEM_ABNORMALLY, in CreateNewSystemWindowTask()
251 task.Reject(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_CONTEXT_ABNORMALLY, in CreateNewSystemWindowTask()
261 task.Reject(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_NO_PERMISSION, in CreateNewSystemWindowTask()
269 WmErrorCode wmErrorCode = WM_JS_TO_ERROR_CODE_MAP.at(wmError); in CreateNewSystemWindowTask()
270 if (window != nullptr && wmErrorCode == WmErrorCode::WM_OK) { in CreateNewSystemWindowTask()
307 WmErrorCode wmErrorCode = WM_JS_TO_ERROR_CODE_MAP.at(wmError); in CreateSystemWindowTask()
308 if (window != nullptr && wmErrorCode == WmErrorCode::WM_OK) { in CreateSystemWindowTask()
319 task.Reject(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_SYSTEM_ABNORMALLY, in CreateNewSubWindowTask()
328 task.Reject(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_STATE_ABNORMALLY, in CreateNewSubWindowTask()
340 task.Reject(env, JsErrUtils::CreateJsError(env, WmErrorCode in CreateNewSubWindowTask()
[all...]
/foundation/window/window_manager/interfaces/kits/napi/embeddable_window_stage/
H A Djs_embeddable_window_stage.cpp105 static_cast<int32_t>(WmErrorCode::WM_ERROR_DEVICE_NOT_SUPPORT))); in OnGetSubWindow()
126 static_cast<int32_t>(WmErrorCode::WM_ERROR_DEVICE_NOT_SUPPORT))); in OnCreateSubWindow()
147 static_cast<int32_t>(WmErrorCode::WM_ERROR_STATE_ABNORMALLY), in OnGetMainWindow()
166 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WmErrorCode::WM_ERROR_STATE_ABNORMALLY))); in OnGetMainWindowSync()
186 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WmErrorCode::WM_ERROR_INVALID_PARAM))); in OnEvent()
194 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WmErrorCode::WM_ERROR_INVALID_PARAM))); in OnEvent()
200 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WmErrorCode::WM_ERROR_INVALID_PARAM))); in OnEvent()
204 WmErrorCode ret = extwinRegisterManager_->RegisterListener(windowImpl, eventString, in OnEvent()
206 if (ret != WmErrorCode::WM_OK) { in OnEvent()
230 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WmErrorCode in OffEvent()
[all...]
/foundation/window/window_manager/previewer/include/
H A Dwm_common.h200 enum class WmErrorCode : int32_t { class
267 * @brief Used to map from WMError to WmErrorCode.
269 const std::map<WMError, WmErrorCode> WM_JS_TO_ERROR_CODE_MAP {
270 {WMError::WM_OK, WmErrorCode::WM_OK },
271 {WMError::WM_DO_NOTHING, WmErrorCode::WM_ERROR_STATE_ABNORMALLY },
272 {WMError::WM_ERROR_DESTROYED_OBJECT, WmErrorCode::WM_ERROR_STATE_ABNORMALLY },
273 {WMError::WM_ERROR_DEVICE_NOT_SUPPORT, WmErrorCode::WM_ERROR_DEVICE_NOT_SUPPORT },
274 {WMError::WM_ERROR_INVALID_OPERATION, WmErrorCode::WM_ERROR_STATE_ABNORMALLY },
275 {WMError::WM_ERROR_INVALID_PARAM, WmErrorCode::WM_ERROR_INVALID_PARAM },
276 {WMError::WM_ERROR_INVALID_PERMISSION, WmErrorCode
[all...]
/foundation/window/window_manager/interfaces/kits/napi/picture_in_picture_napi/
H A Djs_pip_controller.cpp109 task.Reject(env, CreateJsError(env, static_cast<int32_t>(WmErrorCode::WM_ERROR_PIP_STATE_ABNORMALLY), in OnStartPictureInPicture()
147 task.Reject(env, CreateJsError(env, static_cast<int32_t>(WmErrorCode::WM_ERROR_STATE_ABNORMALLY), in OnStopPictureInPicture()
335 WmErrorCode ret = RegisterListenerWithType(env, cbType, value); in OnRegisterCallback()
336 if (ret != WmErrorCode::WM_OK) { in OnRegisterCallback()
343 WmErrorCode JsPipController::RegisterListenerWithType(napi_env env, const std::string& type, napi_value value) in RegisterListenerWithType()
347 return WmErrorCode::WM_ERROR_INVALID_CALLING; in RegisterListenerWithType()
356 return WmErrorCode::WM_ERROR_STATE_ABNORMALLY; in RegisterListenerWithType()
375 return WmErrorCode::WM_OK; in RegisterListenerWithType()
486 WmErrorCode JsPipController::UnRegisterListenerWithType(napi_env env, const std::string& type, napi_value value) in UnRegisterListenerWithType()
490 return WmErrorCode in UnRegisterListenerWithType()
[all...]
H A Djs_pip_controller.h59 WmErrorCode RegisterListenerWithType(napi_env env, const std::string& type, napi_value value);
60 WmErrorCode UnRegisterListenerWithType(napi_env env, const std::string& type, napi_value value);
61 WmErrorCode UnRegisterListener(const std::string& type, const sptr<JsPiPWindowListener>& pipWindowListener);
/foundation/window/window_manager/extension/window_extension/src/
H A Djs_window_extension_context.cpp103 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WmErrorCode::WM_ERROR_NOT_SYSTEM_APP))); in OnStartAbility()
112 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WmErrorCode::WM_ERROR_INVALID_PARAM))); in OnStartAbility()
119 napi_throw(env, CreateJsError(env, static_cast<int32_t>(WmErrorCode::WM_ERROR_INVALID_PARAM))); in OnStartAbility()
130 static_cast<int32_t>(WmErrorCode::WM_ERROR_STATE_ABNORMALLY))); in OnStartAbility()
134 WmErrorCode ret = WM_JS_TO_ERROR_CODE_MAP.at(context->StartAbility(want, startOptions)); in OnStartAbility()
135 if (ret == WmErrorCode::WM_OK) { in OnStartAbility()
/foundation/window/window_manager/previewer/mock/window_manager_napi/
H A Djs_window_manager.cpp159 task.Reject(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_STATE_ABNORMALLY, in GetTopWindowTask()
168 task.Reject(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_STATE_ABNORMALLY, in GetTopWindowTask()
195 napi_throw(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_INVALID_PARAM)); in OnGetLastWindow()
203 napi_throw(env, JsErrUtils::CreateJsError(env, WmErrorCode::WM_ERROR_INVALID_PARAM)); in OnGetLastWindow()
228 napi_set_named_property(env, exportObj, "WmErrorCode", WindowErrorCodeInit(env)); in JsWindowManagerInit()

Completed in 27 milliseconds

12