Home
last modified time | relevance | path

Searched refs:CHKCF (Results 1 – 4 of 4) sorted by relevance

/base/sensors/miscdevice/interfaces/plugin/vibrator/src/
Dvibrator_napi_utils.cpp72 CHKCF(napi_typeof(env, value, &valuetype) == napi_ok, "napi_typeof failed"); in GetInt32Value()
73 CHKCF((valuetype == napi_number), "Wrong argument type. Number expected"); in GetInt32Value()
74 CHKCF(napi_get_value_int32(env, value, &result) == napi_ok, "napi_get_value_int32 failed"); in GetInt32Value()
82 CHKCF(napi_typeof(env, value, &valuetype) == napi_ok, "napi_typeof failed"); in GetInt64Value()
83 CHKCF((valuetype == napi_number), "Wrong argument type. Number expected"); in GetInt64Value()
84 CHKCF(napi_get_value_int64(env, value, &result) == napi_ok, "napi_get_value_int64 failed"); in GetInt64Value()
97 CHKCF((valuetype == napi_string), "Wrong argument type. String or function expected"); in GetStringValue()
124CHKCF((napi_get_named_property(env, value, type.c_str(), &item) == napi_ok), "napi get property fa… in GetPropertyItem()
138CHKCF((napi_get_named_property(env, value, type.c_str(), &item) == napi_ok), "napi get property fa… in GetPropertyString()
154CHKCF((napi_get_named_property(env, value, type.c_str(), &item) == napi_ok), "napi get property fa… in GetPropertyInt32()
[all …]
Dvibrator_js.cpp115CHKCF(napi_get_named_property(env, args[0], "success", &value) == napi_ok, "napi get sucess proper… in GetCallbackInfo()
116 CHKCF(napi_create_reference(env, value, 1, &asyncCallbackInfo->callback[0]) == napi_ok, in GetCallbackInfo()
121 CHKCF(napi_create_reference(env, value, 1, &asyncCallbackInfo->callback[1]) == napi_ok, in GetCallbackInfo()
127 CHKCF(napi_create_reference(env, value, 1, &asyncCallbackInfo->callback[2]) == napi_ok, in GetCallbackInfo()
167 CHKCF((argc >= 2), "Wrong argument number"); in ParseParameter()
168 CHKCF(GetPropertyString(env, args[0], "type", info.type), "Get vibrate type fail"); in ParseParameter()
170 CHKCF(GetPropertyInt32(env, args[0], "duration", info.duration), "Get vibrate type fail"); in ParseParameter()
172 CHKCF(GetPropertyInt32(env, args[0], "count", info.count), "Get vibrate count fail"); in ParseParameter()
173CHKCF(GetPropertyString(env, args[0], "effectId", info.effectId), "Get vibrate effectId fail"); in ParseParameter()
176 CHKCF(GetPropertyItem(env, args[0], "hapticFd", hapticFd), "Get vibrate hapticFd fail"); in ParseParameter()
[all …]
/base/sensors/miscdevice/utils/include/
Dsensors_errors.h270 #define CHKCF(cond, errDesc) \ macro
/base/sensors/sensor/utils/common/include/
Dsensors_errors.h263 #define CHKCF(cond, message) \ macro