Home
last modified time | relevance | path

Searched refs:CHKRF (Results 1 - 11 of 11) sorted by relevance

/foundation/multimodalinput/input/frameworks/napi/input_device/src/
H A Djs_util.cpp132 CHKRF(napi_create_string_utf8(cb->env, item.sourceTypeName.c_str(), in GetDeviceAxisInfo()
138 CHKRF(napi_create_array(cb->env, &axisRanges), CREATE_ARRAY); in GetDeviceAxisInfo()
140 CHKRF(napi_set_named_property(cb->env, object, "axisRanges", axisRanges), SET_NAMED_PROPERTY); in GetDeviceAxisInfo()
152 CHKRF(napi_create_object(cb->env, &axisRange), CREATE_OBJECT); in GetDeviceAxisInfo()
153 CHKRF(napi_set_named_property(cb->env, axisRange, "source", sourceType), SET_NAMED_PROPERTY); in GetDeviceAxisInfo()
155 CHKRF(napi_create_string_utf8(cb->env, iter->second.c_str(), in GetDeviceAxisInfo()
157 CHKRF(napi_set_named_property(cb->env, axisRange, "axis", axisType), SET_NAMED_PROPERTY); in GetDeviceAxisInfo()
159 CHKRF(napi_create_int32(cb->env, item.GetMinimum(), &min), CREATE_INT32); in GetDeviceAxisInfo()
160 CHKRF(napi_set_named_property(cb->env, axisRange, "min", min), SET_NAMED_PROPERTY); in GetDeviceAxisInfo()
162 CHKRF(napi_create_int3 in GetDeviceAxisInfo()
[all...]
/foundation/multimodalinput/input/frameworks/napi/short_key/src/
H A Djs_short_key_manager.cpp36 CHKRF(napi_typeof(env, value, &valueType), TYPEOF); in TypeOf()
74 CHKRF(napi_create_int32(env, asyncContext->errorCode, &errCode), CREATE_INT32); in GetResult()
75 CHKRF(napi_create_string_utf8(env, codeMsg.msg.c_str(), in GetResult()
77 CHKRF(napi_create_error(env, nullptr, errMsg, &businessError), CREATE_ERROR); in GetResult()
78 CHKRF(napi_set_named_property(env, businessError, ERR_CODE.c_str(), errCode), SET_NAMED_PROPERTY); in GetResult()
81 CHKRF(napi_get_undefined(env, &results[0]), GET_UNDEFINED); in GetResult()
89 CHKRF(napi_get_boolean(env, temp, &results[1]), GET_BOOLEAN); in GetResult()
93 CHKRF(napi_create_int32(env, temp, &results[1]), CREATE_INT32); in GetResult()
95 CHKRF(napi_get_undefined(env, &results[1]), GET_UNDEFINED); in GetResult()
/foundation/multimodalinput/input/frameworks/napi/input_event_client/src/
H A Djs_register_util.cpp33 CHKRF(napi_get_named_property(env, object, name.c_str(), &napiValue), GET_NAMED_PROPERTY); in GetNamedPropertyBool()
40 CHKRF(napi_typeof(env, napiValue, &tmpType), TYPEOF); in GetNamedPropertyBool()
46 CHKRF(napi_get_value_bool(env, napiValue, &ret), GET_VALUE_BOOL); in GetNamedPropertyBool()
/foundation/multimodalinput/input/util/napi/src/
H A Dutil_napi.cpp29 CHKRF(napi_typeof(env, value, &valueType), "napi_typeof"); in TypeOf()
H A Dutil_napi_value.cpp155 CHKRF(napi_get_named_property(env, object, name.c_str(), &napiValue), "napi_get_named_property"); in GetNamePropertyBool()
/foundation/multimodalinput/input/util/napi/include/
H A Dutil_napi.h41 #define CHKRF(state, desc) \ macro
/foundation/multimodalinput/input/frameworks/napi/input_consumer/src/
H A Djs_register_module.cpp65 CHKRF(napi_typeof(env, value, &valueType), TYPEOF); in TypeOf()
446 CHKRF(napi_get_cb_info(env, info, &argc, argv, nullptr, nullptr), GET_CB_INFO); in GetEventType()
464 CHKRF(napi_typeof(env, argv[INPUT_PARAMETER_MIDDLE], &valueType), TYPEOF); in GetEventType()
470 CHKRF(napi_create_reference(env, argv[INPUT_PARAMETER_MIDDLE], 1, &event->callback), REFERENCE_REF); in GetEventType()
477 CHKRF(napi_get_value_string_utf8(env, argv[0], eventType, EVENT_NAME_LEN - 1, &typeLen), GET_VALUE_STRING_UTF8); in GetEventType()
H A Djs_register_util.cpp36 CHKRF(napi_typeof(env, value, &valueType), TYPEOF); in TypeOf()
71 CHKRF(napi_typeof(env, napiValue, &tmpType), TYPEOF); in GetNamedPropertyBool()
77 CHKRF(napi_get_value_bool(env, napiValue, &ret), GET_VALUE_BOOL); in GetNamedPropertyBool()
/foundation/multimodalinput/input/frameworks/napi/infrared_emitter/src/
H A Djs_register_module.cpp106 CHKRF(napi_get_cb_info(env, info, &argc, argv, nullptr, nullptr), GET_CB_INFO); in ParseTransmitInfraredJSParam()
116 CHKRF(napi_get_value_int64(env, argv[0], &infraredFrequency), "get number64 value error"); in ParseTransmitInfraredJSParam()
/foundation/multimodalinput/input/frameworks/napi/pointer/src/
H A Djs_pointer_manager.cpp37 CHKRF(napi_typeof(env, value, &valueType), TYPEOF); in TypeOf()
78 CHKRF(napi_create_int32(env, asyncContext->errorCode, &errCode), CREATE_INT32); in GetResult()
79 CHKRF(napi_create_string_utf8(env, codeMsg.msg.c_str(), in GetResult()
81 CHKRF(napi_create_error(env, nullptr, errMsg, &businessError), CREATE_ERROR); in GetResult()
82 CHKRF(napi_set_named_property(env, businessError, ERR_CODE.c_str(), errCode), SET_NAMED_PROPERTY); in GetResult()
85 CHKRF(napi_get_undefined(env, &results[0]), GET_UNDEFINED); in GetResult()
93 CHKRF(napi_get_boolean(env, temp, &results[1]), GET_BOOLEAN); in GetResult()
97 CHKRF(napi_create_int32(env, temp, &results[1]), CREATE_INT32); in GetResult()
99 CHKRF(napi_get_undefined(env, &results[1]), GET_UNDEFINED); in GetResult()
/foundation/multimodalinput/input/frameworks/napi/input_monitor/src/
H A Djs_input_monitor.cpp1854 CHKRF(napi_get_named_property(env, napiPointer, "screenX", &xProperty), GET_NAMED_PROPERTY); in IsLocaledWithinRect()
1857 CHKRF(napi_get_value_int32(env, xProperty, &xInt), GET_VALUE_INT32); in IsLocaledWithinRect()
1860 CHKRF(napi_get_named_property(env, napiPointer, "screenY", &yProperty), GET_NAMED_PROPERTY); in IsLocaledWithinRect()
1863 CHKRF(napi_get_value_int32(env, yProperty, &yInt), GET_VALUE_INT32); in IsLocaledWithinRect()

Completed in 10 milliseconds