Home
last modified time | relevance | path

Searched refs:CHECK_RETURN (Results 1 – 17 of 17) sorted by relevance

/base/inputmethod/imf/frameworks/js/napi/inputmethodability/
Djs_panel.cpp38 CHECK_RETURN(status == napi_ok, "Failed to get jsPanel constructor.", nullptr); in Init()
53 CHECK_RETURN(constructor != nullptr, "napi_define_class failed!", nullptr); in Init()
62 CHECK_RETURN(panel != nullptr, "no memory for JsPanel", nullptr); in JsNew()
105 CHECK_RETURN(status == napi_ok, "get path failed!", status); in SetUiContent()
110 CHECK_RETURN(status == napi_ok, "get valueType failed!", status); in SetUiContent()
126CHECK_RETURN(ctxt->inputMethodPanel != nullptr, "inputMethodPanel is nullptr!", napi_generic_failu… in SetUiContent()
129 CHECK_RETURN(code == ErrorCode::NO_ERROR, "SetUiContent failed!", napi_generic_failure); in SetUiContent()
146 CHECK_RETURN(status == napi_ok, "get width failed!", status); in Resize()
149 CHECK_RETURN(status == napi_ok, "get height failed!", status); in Resize()
176 CHECK_RETURN(status == napi_ok, "get x failed!", status); in MoveTo()
[all …]
Djs_text_input_client_engine.h56 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
79 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
102 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
125 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
148 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
171 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
194 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
216 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
239 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
254 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
[all …]
Djs_keyboard_controller_engine.h30 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
50 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
Djs_input_method_engine_setting.cpp378CHECK_RETURN(constructor != nullptr, "get jsPanel constructor failed!", napi_generic_failure); in CreatePanel()
381 CHECK_RETURN(status == napi_ok, "get jsPanel instance failed!", napi_generic_failure); in CreatePanel()
384CHECK_RETURN((status == napi_ok) && (jsPanel != nullptr), "get jsPanel failed", napi_generic_failu… in CreatePanel()
405 CHECK_RETURN(constructor != nullptr, "Failed to get panel constructor.", napi_invalid_arg); in DestroyPanel()
407 CHECK_RETURN((status == napi_ok) && isPanel, "It's not expected panel instance!", status); in DestroyPanel()
410CHECK_RETURN((status == napi_ok) && (jsPanel != nullptr), "Can not unwrap to JsPanel!", status); in DestroyPanel()
412 CHECK_RETURN((ctxt->panel != nullptr), "not get valid inputMathodPanel!", napi_invalid_arg); in DestroyPanel()
421CHECK_RETURN((ctxt->panel != nullptr), "inputMethodPanel is nullptr!", napi_generic_failure); in DestroyPanel()
Djs_panel.h71 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
Djs_input_method_engine_setting.h64 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
Djs_keyboard_delegate_setting.cpp316CHECK_RETURN((result == napi_ok) && (keyEventObject != nullptr), "create object", false); in OnKeyEvent()
318CHECK_RETURN((result == napi_ok) && (keyEventObject != nullptr), "create key event object", false); in OnKeyEvent()
Djs_text_input_client_engine.cpp195 CHECK_RETURN(status == napi_ok, "failed to get start value", status); in GetSelectRange()
449 CHECK_RETURN(status == napi_ok, "GetValue failed", JsUtil::Const::Null(env)); in GetForwardSync()
515 CHECK_RETURN(status == napi_ok, "GetValue failed", JsUtil::Const::Null(env)); in GetBackwardSync()
/base/inputmethod/imf/frameworks/js/napi/inputmethodclient/
Djs_utils.cpp173 CHECK_RETURN((self != nullptr && argc <= ARGC_MAX), "napi_get_cb_info failed!", nullptr); in GetNativeSelf()
176 CHECK_RETURN((status == napi_ok && native != nullptr), "napi_unwrap failed!", nullptr); in GetNativeSelf()
184CHECK_RETURN((status == napi_ok) && (type == napi_number), "invalid type", napi_generic_failure); in GetValue()
193CHECK_RETURN((status == napi_ok) && (type == napi_number), "invalid type", napi_generic_failure); in GetValue()
201CHECK_RETURN((status == napi_ok) && (type == napi_boolean), "invalid type", napi_generic_failure); in GetValue()
209CHECK_RETURN((status == napi_ok) && (type == napi_number), "invalid double type", napi_generic_fai… in GetValue()
219CHECK_RETURN((status == napi_ok) && (type == napi_string), "invalid type", napi_generic_failure); in GetValue()
259 CHECK_RETURN((status == napi_ok), "no property type ", status); in GetValue()
262 CHECK_RETURN((status == napi_ok), "no value of type ", status); in GetValue()
269 CHECK_RETURN((status == napi_ok), "no property flag ", status); in GetValue()
[all …]
Djs_get_input_method_controller.h34 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
57 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
77 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
97 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
119 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
140 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
Djs_get_input_method_setting.h39 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
61 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
83 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
Djs_input_method.cpp55 CHECK_RETURN(status == napi_ok, "get ctxt->packageName failed!", status); in GetInputMethodProperty()
59 CHECK_RETURN(status == napi_ok, "get ctxt->methodId failed!", status); in GetInputMethodProperty()
64 CHECK_RETURN(status == napi_ok, "get ctxt->packageName failed!", status); in GetInputMethodProperty()
69 CHECK_RETURN(status == napi_ok, "get ctxt->methodId failed!", status); in GetInputMethodProperty()
88 CHECK_RETURN(status == napi_ok, "get ctxt->name failed!", status); in GetInputMethodSubProperty()
93 CHECK_RETURN(status == napi_ok, "get ctxt->id failed!", status); in GetInputMethodSubProperty()
Djs_input_method.h38 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
Djs_utils.h83 #define CHECK_RETURN(condition, message, retVal) \ macro
Djs_get_input_method_controller.cpp487 CHECK_RETURN(status == napi_ok, "get inputAttribute", false); in GetValue()
489 CHECK_RETURN(ret, "get inputAttribute of TextConfig", ret); in GetValue()
/base/time/time_service/framework/js/napi/common/include/
Dnapi_utils.h64 #define CHECK_RETURN(module, condition, message, retVal) \ macro
/base/time/time_service/framework/js/napi/common/src/
Dnapi_utils.cpp60CHECK_RETURN(TIME_MODULE_JS_NAPI, (status == napi_ok) && (type == napi_string), "invalid type", na… in GetValue()