Home
last modified time | relevance | path

Searched refs:CHKCF (Results 1 - 7 of 7) sorted by relevance

/base/sensors/miscdevice/frameworks/js/napi/vibrator/src/
H A Dvibrator_napi_utils.cpp57 CHKCF((napi_set_named_property(env, eventObj, name, propValue) == napi_ok), "napi_set_named_property fail"); in CreateInt32Property()
64 CHKCF((napi_is_array(env, value, &result) == napi_ok), "napi_is_array fail"); in IsMatchArrayType()
94 CHKCF(napi_typeof(env, value, &valuetype) == napi_ok, "napi_typeof failed"); in GetInt32Value()
95 CHKCF((valuetype == napi_number), "Wrong argument type. Number expected"); in GetInt32Value()
96 CHKCF(napi_get_value_int32(env, value, &result) == napi_ok, "napi_get_value_int32 failed"); in GetInt32Value()
104 CHKCF(napi_typeof(env, value, &valuetype) == napi_ok, "napi_typeof failed"); in GetDoubleValue()
105 CHKCF((valuetype == napi_number), "Wrong argument type. Number expected"); in GetDoubleValue()
106 CHKCF(napi_get_value_double(env, value, &result) == napi_ok, "napi_get_value_double failed"); in GetDoubleValue()
114 CHKCF(napi_typeof(env, value, &valuetype) == napi_ok, "napi_typeof failed"); in GetInt64Value()
115 CHKCF((valuetyp in GetInt64Value()
[all...]
H A Dvibrator_pattern_js.cpp82 CHKCF((napi_get_named_property(env, value, "points", &points) == napi_ok), "napi get points fail"); in ParsePoints()
83 CHKCF(IsMatchArrayType(env, points), "The points parameter type is incorrect. Napi array expected"); in ParsePoints()
85 CHKCF((napi_get_array_length(env, points, &length) == napi_ok), "napi_get_array_length fail"); in ParsePoints()
88 CHKCF((napi_get_element(env, points, i, &element) == napi_ok), "napi_get_element fail"); in ParsePoints()
91 CHKCF((napi_get_named_property(env, element, "time", &timeValue) == napi_ok), "napi get time fail"); in ParsePoints()
92 CHKCF(IsMatchType(env, timeValue, napi_number), in ParsePoints()
94 CHKCF(GetInt32Value(env, timeValue, point.time), "Get int number fail"); in ParsePoints()
99 CHKCF((napi_get_named_property(env, element, "intensity", &intensityValue) == napi_ok), in ParsePoints()
101 CHKCF(IsMatchType(env, intensityValue, napi_number), in ParsePoints()
104 CHKCF(GetDoubleValu in ParsePoints()
[all...]
H A Dvibrator_js.cpp147 CHKCF(napi_get_named_property(env, args[0], "success", &value) == napi_ok, "napi get sucess property fail"); in GetCallbackInfo()
148 CHKCF(napi_create_reference(env, value, 1, &asyncCallbackInfo->callback[0]) == napi_ok, in GetCallbackInfo()
153 CHKCF(napi_create_reference(env, value, 1, &asyncCallbackInfo->callback[1]) == napi_ok, in GetCallbackInfo()
159 CHKCF(napi_create_reference(env, value, 1, &asyncCallbackInfo->callback[2]) == napi_ok, in GetCallbackInfo()
220 CHKCF((napi_get_element(env, pointsArray, index, &pointsElement) == napi_ok), "napi_get_element pointsArray fail"); in ParseVibratorCurvePoint()
221 CHKCF(IsMatchType(env, pointsElement, napi_object), "Wrong argument type, napi_object or function expected"); in ParseVibratorCurvePoint()
222 CHKCF(GetPropertyInt32(env, pointsElement, "time", point.time), "Get points time fail"); in ParseVibratorCurvePoint()
223 CHKCF(GetPropertyInt32(env, pointsElement, "intensity", point.intensity), "Get points intensity fail"); in ParseVibratorCurvePoint()
224 CHKCF(GetPropertyInt32(env, pointsElement, "frequency", point.frequency), "Get points frequency fail"); in ParseVibratorCurvePoint()
257 CHKCF((napi_get_elemen in ParseVibrateEvent()
[all...]
/base/sensors/sensor/vibration_convert/interfaces/js/src/
H A Dvibrator_convert_napi_utils.cpp82 CHKCF(napi_typeof(env, value, &valuetype) == napi_ok, "napi_typeof failed"); in GetInt32Value()
83 CHKCF((valuetype == napi_number), "Wrong argument type. Number expected"); in GetInt32Value()
84 CHKCF(napi_get_value_int32(env, value, &result) == napi_ok, "napi_get_value_int32 failed"); in GetInt32Value()
92 CHKCF(napi_typeof(env, value, &valuetype) == napi_ok, "napi_typeof failed"); in GetInt64Value()
93 CHKCF((valuetype == napi_number), "Wrong argument type. Number expected"); in GetInt64Value()
94 CHKCF(napi_get_value_int64(env, value, &result) == napi_ok, "napi_get_value_int64 failed"); in GetInt64Value()
108 CHKCF((napi_get_named_property(env, value, type.c_str(), &item) == napi_ok), "napi_get_named_property failed"); in GetPropertyInt32()
126 CHKCF((napi_get_named_property(env, value, type.c_str(), &item) == napi_ok), "napi get property failed"); in GetPropertyInt64()
183 CHKCF(length == RESULT_LENGTH, "length check failed"); in GetAudioAttributeResult()
185 CHKCF(ConvertErrorToResul in GetAudioAttributeResult()
[all...]
H A Dvibrator_convert_js.cpp126 CHKCF(GetPropertyInt32(env, value, "fd", fileDescriptor.fd), "Get vibrate fd failed"); in ParseParameter()
136 CHKCF(GetPropertyInt32(env, value, "transientDetection", audioSetting.transientDetection), in ParseAudioSettings()
138 CHKCF(GetPropertyInt32(env, value, "intensityTreshold", audioSetting.intensityTreshold), in ParseAudioSettings()
140 CHKCF(GetPropertyInt32(env, value, "frequencyTreshold", audioSetting.frequencyTreshold), in ParseAudioSettings()
142 CHKCF(GetPropertyInt32(env, value, "frequencyMaxValue", audioSetting.frequencyMaxValue), in ParseAudioSettings()
144 CHKCF(GetPropertyInt32(env, value, "frequencyMinValue", audioSetting.frequencyMinValue), in ParseAudioSettings()
/base/sensors/miscdevice/utils/common/include/
H A Dsensors_errors.h281 #define CHKCF(cond, errDesc) \ macro
/base/sensors/sensor/utils/common/include/
H A Dsensor_errors.h273 #define CHKCF(cond, message) \ macro

Completed in 5 milliseconds