Home
last modified time | relevance | path

Searched refs:CHECK_RETURN (Results 1 - 18 of 18) sorted by relevance

/base/inputmethod/imf/frameworks/js/napi/inputmethodclient/
H A Djs_utils.cpp190 CHECK_RETURN((self != nullptr && argc <= ARGC_MAX), "napi_get_cb_info failed!", nullptr); in GetNativeSelf()
193 CHECK_RETURN((status == napi_ok && native != nullptr), "napi_unwrap failed!", nullptr); in GetNativeSelf()
201 CHECK_RETURN((status == napi_ok) && (type == napi_number), "invalid type", napi_generic_failure); in GetValue()
210 CHECK_RETURN((status == napi_ok) && (type == napi_number), "invalid type", napi_generic_failure); in GetValue()
218 CHECK_RETURN((status == napi_ok) && (type == napi_boolean), "invalid type", napi_generic_failure); in GetValue()
226 CHECK_RETURN((status == napi_ok) && (type == napi_number), "invalid double type", napi_generic_failure); in GetValue()
236 CHECK_RETURN((status == napi_ok) && (type == napi_string), "invalid type", napi_generic_failure); in GetValue()
281 CHECK_RETURN(status == napi_ok, "napi_get_element error", status); in GetValue()
285 CHECK_RETURN(status == napi_ok, "napi_get_property error", status); in GetValue()
289 CHECK_RETURN(statu in GetValue()
[all...]
H A Djs_get_input_method_controller.h35 CHECK_RETURN(self != nullptr, "self is nullptr!", napi_invalid_arg);
58 CHECK_RETURN(self != nullptr, "self is nullptr!", napi_invalid_arg);
78 CHECK_RETURN(self != nullptr, "self is nullptr!", napi_invalid_arg);
98 CHECK_RETURN(self != nullptr, "self is nullptr!", napi_invalid_arg);
120 CHECK_RETURN(self != nullptr, "self is nullptr!", napi_invalid_arg);
141 CHECK_RETURN(self != nullptr, "self is nullptr!", napi_invalid_arg);
H A Djs_input_method.cpp59 CHECK_RETURN(status == napi_ok, "get name failed!", status); in GetInputMethodProperty()
63 CHECK_RETURN(status == napi_ok, "get id failed!", status); in GetInputMethodProperty()
68 CHECK_RETURN(status == napi_ok, "get packageName failed!", status); in GetInputMethodProperty()
73 CHECK_RETURN(status == napi_ok, "get methodId failed!", status); in GetInputMethodProperty()
92 CHECK_RETURN(status == napi_ok, "get name failed!", status); in GetInputMethodSubProperty()
97 CHECK_RETURN(status == napi_ok, "get id failed!", status); in GetInputMethodSubProperty()
H A Djs_get_input_method_setting.h40 CHECK_RETURN(self != nullptr, "self is nullptr!", napi_invalid_arg);
62 CHECK_RETURN(self != nullptr, "self is nullptr!", napi_invalid_arg);
84 CHECK_RETURN(self != nullptr, "self is nullptr!", napi_invalid_arg);
H A Djs_input_method.h40 CHECK_RETURN(self != nullptr, "self is nullptr!", napi_invalid_arg);
H A Djs_utils.h87 #define CHECK_RETURN(condition, message, retVal) \ macro
H A Djs_get_input_method_controller.cpp503 CHECK_RETURN(status == napi_ok, "inputAttribute must be InputAttribute!", false); in GetValue()
505 CHECK_RETURN(ret, "inputAttribute of TextConfig must be valid!", ret); in GetValue()
/base/inputmethod/imf/frameworks/js/napi/inputmethodability/
H A Djs_text_input_client_engine.h69 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg);
91 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg);
113 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg);
135 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg);
157 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg);
179 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg);
201 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg);
237 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg);
259 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg);
279 CHECK_RETURN(sel
[all...]
H A Djs_keyboard_controller_engine.h30 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg);
50 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg);
69 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg);
H A Djs_panel.cpp44 CHECK_RETURN(status == napi_ok, "failed to get jsPanel constructor.", nullptr); in Init()
61 CHECK_RETURN(constructor != nullptr, "failed to define class!", nullptr); in Init()
75 CHECK_RETURN(panel != nullptr, "no memory for JsPanel!", nullptr); in JsNew()
128 CHECK_RETURN(status == napi_ok, "get valueType failed!", status); in SetUiContent()
143 CHECK_RETURN(ctxt->inputMethodPanel != nullptr, "inputMethodPanel is nullptr!", napi_generic_failure); in SetUiContent()
317 CHECK_RETURN(ret == ErrorCode::NO_ERROR, "failed to ChangePanelFlag!", nullptr); in ChangeFlag()
332 CHECK_RETURN(status == napi_ok, "failed to get isPrivacyMode!", nullptr); in SetPrivacyMode()
343 CHECK_RETURN(ret == ErrorCode::NO_ERROR, "failed to SetPrivacyMode!", nullptr); in SetPrivacyMode()
421 CHECK_RETURN(JsUtils::GetValue(env, argv[0], panelFlag) == napi_ok, in CheckParam()
489 CHECK_RETURN((statu in UnwrapPanel()
[all...]
H A Djs_input_method_engine_setting.cpp412 CHECK_RETURN(constructor != nullptr, "failed to get panel constructor!", napi_generic_failure); in CreatePanel()
415 CHECK_RETURN(status == napi_ok, "jsPanel new instance failed!", napi_generic_failure); in CreatePanel()
418 CHECK_RETURN((status == napi_ok) && (jsPanel != nullptr), "get jsPanel unwrap failed!", napi_generic_failure); in CreatePanel()
440 CHECK_RETURN(constructor != nullptr, "failed to get panel constructor.", napi_invalid_arg); in DestroyPanel()
442 CHECK_RETURN((status == napi_ok) && isPanel, "param verification failed, it's not expected panel instance!", in DestroyPanel()
446 CHECK_RETURN((status == napi_ok) && (jsPanel != nullptr), "failed to unwrap JsPanel!", status); in DestroyPanel()
448 CHECK_RETURN((ctxt->panel != nullptr), "panel is nullptr!", napi_invalid_arg); in DestroyPanel()
455 CHECK_RETURN((ctxt->panel != nullptr), "panel is nullptr!", napi_generic_failure); in DestroyPanel()
H A Djs_panel.h100 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg);
H A Djs_keyboard_delegate_setting.cpp333 CHECK_RETURN((result == napi_ok) && (keyEventObject != nullptr), "create object", false); in DealKeyEvent()
335 CHECK_RETURN((result == napi_ok) && (keyEventObject != nullptr), "create key event object", false); in DealKeyEvent()
398 CHECK_RETURN((result == napi_ok) && (keyEventObject != nullptr), "create object", false); in OnKeyEvent()
400 CHECK_RETURN((result == napi_ok) && (keyEventObject != nullptr), "create key event object", false); in OnKeyEvent()
H A Djs_input_method_engine_setting.h70 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg);
H A Djs_text_input_client_engine.cpp182 CHECK_RETURN(status == napi_ok, "failed to get start value!", status); in GetSelectRange()
243 CHECK_RETURN(status == napi_ok, in SendPrivateCommand()
455 CHECK_RETURN(status == napi_ok, "GetValue failed", JsUtil::Const::Null(env)); in GetForwardSync()
517 CHECK_RETURN(status == napi_ok, "GetValue failed", JsUtil::Const::Null(env)); in GetBackwardSync()
/base/time/time_service/framework/js/napi/common/include/
H A Dnapi_utils.h65 #define CHECK_RETURN(module, condition, message, retVal) \ macro
/base/time/time_service/framework/js/napi/common/src/
H A Dnapi_utils.cpp64 CHECK_RETURN(TIME_MODULE_JS_NAPI, (status == napi_ok) && (type == napi_string), "invalid type", napi_invalid_arg); in GetValue()
/base/inputmethod/imf/frameworks/js/napi/keyboardpanelmanager/
H A Djs_keyboard_panel_manager.cpp211 CHECK_RETURN(JsUtils::GetValue(env, argv[0], ctxt->privateCommand) == napi_ok, in SendPrivateCommand()

Completed in 14 milliseconds