/base/inputmethod/imf/frameworks/js/napi/inputmethodability/ |
D | js_panel.cpp | 38 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() 126 …CHECK_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 …]
|
D | js_text_input_client_engine.h | 56 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 …]
|
D | js_keyboard_controller_engine.h | 30 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()
|
D | js_input_method_engine_setting.cpp | 378 … CHECK_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() 384 …CHECK_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() 410 … CHECK_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() 421 … CHECK_RETURN((ctxt->panel != nullptr), "inputMethodPanel is nullptr!", napi_generic_failure); in DestroyPanel()
|
D | js_panel.h | 71 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
|
D | js_input_method_engine_setting.h | 64 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
|
D | js_keyboard_delegate_setting.cpp | 316 … CHECK_RETURN((result == napi_ok) && (keyEventObject != nullptr), "create object", false); in OnKeyEvent() 318 …CHECK_RETURN((result == napi_ok) && (keyEventObject != nullptr), "create key event object", false); in OnKeyEvent()
|
D | js_text_input_client_engine.cpp | 195 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/ |
D | js_utils.cpp | 173 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() 184 … CHECK_RETURN((status == napi_ok) && (type == napi_number), "invalid type", napi_generic_failure); in GetValue() 193 … CHECK_RETURN((status == napi_ok) && (type == napi_number), "invalid type", napi_generic_failure); in GetValue() 201 … CHECK_RETURN((status == napi_ok) && (type == napi_boolean), "invalid type", napi_generic_failure); in GetValue() 209 …CHECK_RETURN((status == napi_ok) && (type == napi_number), "invalid double type", napi_generic_fai… in GetValue() 219 … CHECK_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 …]
|
D | js_get_input_method_controller.h | 34 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()
|
D | js_get_input_method_setting.h | 39 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()
|
D | js_input_method.cpp | 55 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()
|
D | js_input_method.h | 38 CHECK_RETURN(self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
|
D | js_utils.h | 83 #define CHECK_RETURN(condition, message, retVal) \ macro
|
D | js_get_input_method_controller.cpp | 487 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/ |
D | napi_utils.h | 64 #define CHECK_RETURN(module, condition, message, retVal) \ macro
|
/base/time/time_service/framework/js/napi/common/src/ |
D | napi_utils.cpp | 60 …CHECK_RETURN(TIME_MODULE_JS_NAPI, (status == napi_ok) && (type == napi_string), "invalid type", na… in GetValue()
|