Home
last modified time | relevance | path

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

/base/sensors/sensor/vibration_convert/interfaces/js/src/
H A Dvibrator_convert_napi_utils.cpp160 CHKCP((napi_create_object(env, &object) == napi_ok), "napi_create_object failed"); in GetResultInfo()
162 CHKCP((napi_create_int32(env, audioAttribute.sampleRate, &sampleRate) == napi_ok), in GetResultInfo()
164 CHKCP((napi_set_named_property(env, object, "sampleRate", sampleRate) == napi_ok), in GetResultInfo()
167 CHKCP((napi_create_int32(env, audioAttribute.duration, &duration) == napi_ok), "napi_create_int32 duration failed"); in GetResultInfo()
168 CHKCP((napi_set_named_property(env, object, "duration", duration) == napi_ok), in GetResultInfo()
171 CHKCP((napi_create_int32(env, audioAttribute.dataCount, &dataCount) == napi_ok), in GetResultInfo()
173 CHKCP((napi_set_named_property(env, object, "dataCount", dataCount) == napi_ok), in GetResultInfo()
213 CHKCP((napi_create_object(env, &object) == napi_ok), "napi_create_object failed"); in GetAudioDataInfo()
215 CHKCP((napi_create_double(env, datas.min, &min) == napi_ok), "napi_create_double min failed"); in GetAudioDataInfo()
216 CHKCP((napi_set_named_propert in GetAudioDataInfo()
[all...]
H A Dvibrator_convert_js.cpp45 CHKCP((napi_get_global(env, &global) == napi_ok), "napi_get_global failed"); in CreateInstance()
51 CHKCP((status == napi_ok), "napi_define_class failed"); in CreateInstance()
52 CHKCP((napi_set_named_property(env, global, CONVERT_CLASS, jsClass) == napi_ok), "napi_set_named_property failed"); in CreateInstance()
54 CHKCP((napi_new_instance(env, jsClass, 0, nullptr, &jsInstance) == napi_ok), "napi_new_instance failed"); in CreateInstance()
55 CHKCP((napi_set_named_property(env, global, CONVERT, jsInstance) == napi_ok), in CreateInstance()
59 CHKCP((napi_unwrap(env, jsInstance, (void**)&vConvert) == napi_ok), "napi_unwrap failed"); in CreateInstance()
61 CHKCP((napi_create_reference(env, jsInstance, 1, &(vConvert->contextRef_)) == napi_ok), in CreateInstance()
78 CHKCP((napi_get_cb_info(env, info, nullptr, nullptr, &thisVar, &data) == napi_ok), "napi_get_cb_info failed"); in ConvertAudioJsConstructor()
100 CHKCP((napi_get_global(env, &global) == napi_ok), "napi_get_global failed"); in GetInstance()
103 CHKCP((napi_has_named_propert in GetInstance()
[all...]
/base/sensors/miscdevice/frameworks/js/napi/vibrator/src/
H A Dvibrator_pattern_js.cpp234 CHKCP(CreateInt32Property(env, pointObj, "time", point.time), "CreateInt32Property time fail"); in ConvertVibrateCurvePoint()
235 CHKCP(CreateInt32Property(env, pointObj, "intensity", point.intensity), "CreateInt32Property intensity fail"); in ConvertVibrateCurvePoint()
236 CHKCP(CreateInt32Property(env, pointObj, "frequency", point.frequency), "CreateInt32Property frequency fail"); in ConvertVibrateCurvePoint()
244 CHKCP((napi_create_object(env, &eventObj) == napi_ok), "napi_create_object fail"); in ConvertVibrateEvent()
245 CHKCP(CreateInt32Property(env, eventObj, "eventType", static_cast<int32_t>(event.tag)), in ConvertVibrateEvent()
247 CHKCP(CreateInt32Property(env, eventObj, "time", event.time), "CreateInt32Property time fail"); in ConvertVibrateEvent()
248 CHKCP(CreateInt32Property(env, eventObj, "duration", event.duration), "CreateInt32Property duration fail"); in ConvertVibrateEvent()
249 CHKCP(CreateInt32Property(env, eventObj, "intensity", event.intensity), "CreateInt32Property intensity fail"); in ConvertVibrateEvent()
250 CHKCP(CreateInt32Property(env, eventObj, "frequency", event.frequency), "CreateInt32Property frequency fail"); in ConvertVibrateEvent()
251 CHKCP(CreateInt32Propert in ConvertVibrateEvent()
[all...]
H A Dvibrator_js.cpp503 CHKCP(ClearVibratorPattern(info.vibratorPattern), "ClearVibratorPattern fail"); in VibrateEffect()
/base/sensors/sensor/frameworks/js/napi/src/
H A Dsensor_js.cpp1157 CHKCP(GetStringValue(env, napiInterval, interval), "get interval fail"); in Subscribe()
1162 CHKCP(IsMatchType(env, napiSuccess, napi_function), "get napiSuccess fail"); in Subscribe()
1163 CHKCP(RegisterNapiCallback(env, napiSuccess, asyncCallbackInfo->callback[0]), "register success callback fail"); in Subscribe()
1167 CHKCP(RegisterNapiCallback(env, napiFail, asyncCallbackInfo->callback[1]), "register fail callback fail"); in Subscribe()
1170 CHKCP(IsMatchType(env, napiFail, napi_function), "input error, interval is invalid"); in Subscribe()
1177 CHKCP(IsMatchType(env, napiFail, napi_function), "subscribe fail"); in Subscribe()
1249 CHKCP(IsMatchType(env, napiSuccess, napi_function), "get napiSuccess fail"); in GetBodyState()
1250 CHKCP(RegisterNapiCallback(env, napiSuccess, asyncCallbackInfo->callback[0]), in GetBodyState()
1421 CHKCP(CreateEnumSensorType(env, exports), "Create enum sensor type fail"); in Init()
1422 CHKCP(CreateEnumSensorI in Init()
[all...]
/base/sensors/miscdevice/utils/common/include/
H A Dsensors_errors.h273 #define CHKCP(cond, errDesc) \ macro
/base/sensors/sensor/utils/common/include/
H A Dsensor_errors.h281 #define CHKCP(cond, message) \ macro

Completed in 8 milliseconds