Searched refs:CHKCF (Results 1 – 4 of 4) sorted by relevance
/base/sensors/miscdevice/interfaces/plugin/vibrator/src/ |
D | vibrator_napi_utils.cpp | 72 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() 124 …CHKCF((napi_get_named_property(env, value, type.c_str(), &item) == napi_ok), "napi get property fa… in GetPropertyItem() 138 …CHKCF((napi_get_named_property(env, value, type.c_str(), &item) == napi_ok), "napi get property fa… in GetPropertyString() 154 …CHKCF((napi_get_named_property(env, value, type.c_str(), &item) == napi_ok), "napi get property fa… in GetPropertyInt32() [all …]
|
D | vibrator_js.cpp | 115 …CHKCF(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() 173 … CHKCF(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/ |
D | sensors_errors.h | 270 #define CHKCF(cond, errDesc) \ macro
|
/base/sensors/sensor/utils/common/include/ |
D | sensors_errors.h | 263 #define CHKCF(cond, message) \ macro
|