/base/sensors/sensor/interfaces/plugin/src/ |
D | sensor_js.cpp | 248 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 …]
|
D | sensor_napi_utils.cpp | 37 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/ |
D | napi_faultlogger.cpp | 167 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()
|
D | napi_util.h | 35 static bool IsMatchType(napi_env env, napi_value value, napi_valuetype type);
|
D | napi_util.cpp | 60 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/ |
D | vibrator_js.cpp | 68 …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()
|
D | vibrator_napi_utils.cpp | 45 bool IsMatchType(const napi_env &env, const napi_value &value, const napi_valuetype &type) in IsMatchType() function
|
/base/sensors/medical_sensor/interfaces/plugin/include/ |
D | medical_napi_utils.h | 39 bool IsMatchType(napi_value value, napi_valuetype type, napi_env env);
|
/base/sensors/medical_sensor/interfaces/plugin/test/unittest/ |
D | medical_js_test.cpp | 94 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/ |
D | vibrator_napi_utils.h | 55 bool IsMatchType(const napi_env &env, const napi_value &value, const napi_valuetype &type);
|
/base/sensors/sensor/interfaces/plugin/include/ |
D | sensor_napi_utils.h | 32 bool IsMatchType(const napi_env &env, const napi_value &value, const napi_valuetype &type);
|
/base/sensors/medical_sensor/interfaces/plugin/src/ |
D | medical_js.cpp | 218 if (!IsMatchType(args[0], napi_number, env)) { in SetOpt() 224 if (!IsMatchType(args[1], napi_number, env)) { in SetOpt()
|
D | medical_napi_utils.cpp | 27 bool IsMatchType(napi_value value, napi_valuetype type, napi_env env) in IsMatchType() function
|