Home
last modified time | relevance | path

Searched refs:IsMatchType (Results 1 – 13 of 13) sorted by relevance

/base/sensors/sensor/interfaces/plugin/src/
Dsensor_js.cpp248 if ((!IsMatchType(env, args[0], napi_number)) || (!IsMatchType(env, args[1], napi_function))) { in Once()
320 if ((!IsMatchType(env, args[0], napi_number)) || (!IsMatchType(env, args[1], napi_function))) { in On()
331 if (!IsMatchType(env, args[2], napi_object)) { in On()
336 if ((value == nullptr) || (!IsMatchType(env, value, napi_number))) { in On()
419 … if ((!IsMatchType(env, args[0], napi_number)) || (!GetNativeInt32(env, args[0], sensorTypeId))) { in Off()
427 if (!IsMatchType(env, args[1], napi_function)) { in Off()
454 if ((!IsMatchType(env, args[0], napi_object)) || (!IsMatchType(env, args[1], napi_number))) { in GetGeomagneticField()
515 if (!IsMatchType(env, args[2], napi_function) || in GetGeomagneticField()
545 if ((!IsMatchArrayType(env, args[0])) || (!IsMatchType(env, args[1], napi_object))) { in TransformCoordinateSystem()
604 if (!IsMatchType(env, args[2], napi_function)) { in TransformCoordinateSystem()
[all …]
Dsensor_napi_utils.cpp37 bool IsMatchType(const napi_env &env, const napi_value &value, const napi_valuetype &type) in IsMatchType() function
61 …CHKNCF(env, IsMatchType(env, element, napi_number), "Wrong argument type. Number or function expec… in GetFloatArray()
132 …CHKNCF(env, IsMatchType(env, value, napi_string), "Wrong argument type. String or function expecte… in GetStringValue()
144 CHKNCF(env, IsMatchType(env, value, napi_function), "Wrong argument type, should be function"); in RegisterNapiCallback()
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/js/napi/
Dnapi_faultlogger.cpp167 if (!NapiUtil::IsMatchType(env, parameters[ONE_PARAMETER - 1], napi_number)) { in QuerySelfFaultLog()
182 if (!NapiUtil::IsMatchType(env, parameters[TWO_PARAMETER - 1], napi_function)) { in QuerySelfFaultLog()
211 if (!NapiUtil::IsMatchType(env, parameters[ONE_PARAMETER - 1], napi_number)) { in AddFaultLog()
215 if (!NapiUtil::IsMatchType(env, parameters[TWO_PARAMETER - 1], napi_number)) { in AddFaultLog()
219 if (!NapiUtil::IsMatchType(env, parameters[THREE_PARAMETER - 1], napi_string)) { in AddFaultLog()
223 if (!NapiUtil::IsMatchType(env, parameters[FOUR_PARAMETER - 1], napi_string)) { in AddFaultLog()
258 if (!NapiUtil::IsMatchType(env, parameters[ONE_PARAMETER - 1], napi_number)) { in Query()
278 if (!NapiUtil::IsMatchType(env, parameters[TWO_PARAMETER - 1], napi_function)) { in Query()
Dnapi_util.h35 static bool IsMatchType(napi_env env, napi_value value, napi_valuetype type);
Dnapi_util.cpp60 bool NapiUtil::IsMatchType(napi_env env, napi_value value, napi_valuetype type) in IsMatchType() function in OHOS::HiviewDFX::NapiUtil
/base/sensors/miscdevice/interfaces/plugin/vibrator/src/
Dvibrator_js.cpp68 …NAPI_ASSERT(env, IsMatchType(env, args[1], napi_function), "Wrong argument type. function expected… in VibrateTime()
92 …NAPI_ASSERT(env, IsMatchType(env, args[1], napi_function), "Wrong argument type. function expected… in VibrateEffectId()
216 if (!IsMatchType(env, args[2], napi_function)) { in VibrateEffect()
247 if (IsMatchType(env, args[0], napi_number)) { in Vibrate()
250 if (IsMatchType(env, args[0], napi_string)) { in Vibrate()
253 if (IsMatchType(env, args[0], napi_object) && argc == 1) { in Vibrate()
282 if (!IsMatchType(env, args[1], napi_function)) { in Stop()
Dvibrator_napi_utils.cpp45 bool IsMatchType(const napi_env &env, const napi_value &value, const napi_valuetype &type) in IsMatchType() function
/base/sensors/medical_sensor/interfaces/plugin/include/
Dmedical_napi_utils.h39 bool IsMatchType(napi_value value, napi_valuetype type, napi_env env);
/base/sensors/medical_sensor/interfaces/plugin/test/unittest/
Dmedical_js_test.cpp94 bool ret = IsMatchType(napiValue, napi_number, env);
114 bool ret = IsMatchType(napiValue, napi_string, env);
135 bool ret = IsMatchType(symbolVal, napi_symbol, env);
158 bool ret = IsMatchType(getTimeFunc, napi_function, env);
176 bool ret = IsMatchType(result, napi_boolean, env);
/base/sensors/miscdevice/interfaces/plugin/vibrator/include/
Dvibrator_napi_utils.h55 bool IsMatchType(const napi_env &env, const napi_value &value, const napi_valuetype &type);
/base/sensors/sensor/interfaces/plugin/include/
Dsensor_napi_utils.h32 bool IsMatchType(const napi_env &env, const napi_value &value, const napi_valuetype &type);
/base/sensors/medical_sensor/interfaces/plugin/src/
Dmedical_js.cpp218 if (!IsMatchType(args[0], napi_number, env)) { in SetOpt()
224 if (!IsMatchType(args[1], napi_number, env)) { in SetOpt()
Dmedical_napi_utils.cpp27 bool IsMatchType(napi_value value, napi_valuetype type, napi_env env) in IsMatchType() function