Home
last modified time | relevance | path

Searched refs:JsObjectToInt (Results 1 – 11 of 11) sorted by relevance

/base/usb/usb_manager/interfaces/kits/js/napi/src/
Dusb_info.cpp63 NapiUtil::JsObjectToInt(env, obj, "busNum", busNum); in ParseUsbDevicePipe()
66 NapiUtil::JsObjectToInt(env, obj, "devAddress", devAddr); in ParseUsbDevicePipe()
182 NapiUtil::JsObjectToInt(env, endpointObj, "address", address); in ParseEndpointObj()
184 NapiUtil::JsObjectToInt(env, endpointObj, "attributes", attributes); in ParseEndpointObj()
186 NapiUtil::JsObjectToInt(env, endpointObj, "interval", interval); in ParseEndpointObj()
188 NapiUtil::JsObjectToInt(env, endpointObj, "maxPacketSize", maxPacketSize); in ParseEndpointObj()
190 NapiUtil::JsObjectToInt(env, endpointObj, "interfaceId", interfaceId); in ParseEndpointObj()
233 NapiUtil::JsObjectToInt(env, jsObj, "request", request); in ParsePipeControlParam()
235 NapiUtil::JsObjectToInt(env, jsObj, "target", target); in ParsePipeControlParam()
239 NapiUtil::JsObjectToInt(env, jsObj, "value", value); in ParsePipeControlParam()
[all …]
Dnapi_util.cpp94 void NapiUtil::JsObjectToInt(const napi_env &env, const napi_value &object, std::string fieldStr, i… in JsObjectToInt() function in OHOS::USB::NapiUtil
/base/location/frameworks/native/source/
Dnapi_util.cpp215 JsObjectToInt(env, object, "reportingPeriodSec", request->reportingPeriodSec); in JsObjToCachedLocationRequest()
224 if (JsObjectToInt(env, object, "scenario", value) == SUCCESS) { in JsObjToGeoFenceRequest()
246 if (JsObjectToInt(env, object, "priority", value) == SUCCESS) { in JsObjToLocationRequest()
249 if (JsObjectToInt(env, object, "scenario", value) == SUCCESS) { in JsObjToLocationRequest()
252 if (JsObjectToInt(env, object, "timeInterval", value) == SUCCESS) { in JsObjToLocationRequest()
268 if (JsObjectToInt(env, object, "type", valueInt) == SUCCESS) { in JsObjToLocatingRequiredDataConfig()
274 if (JsObjectToInt(env, object, "scanInterval", valueInt) == SUCCESS) { in JsObjToLocatingRequiredDataConfig()
277 if (JsObjectToInt(env, object, "scanTimeout", valueInt) == SUCCESS) { in JsObjToLocatingRequiredDataConfig()
287 if (JsObjectToInt(env, object, "priority", value) == SUCCESS) { in JsObjToCurrentLocationRequest()
290 if (JsObjectToInt(env, object, "scenario", value) == SUCCESS) { in JsObjToCurrentLocationRequest()
[all …]
/base/usb/usb_manager/interfaces/kits/js/napi/include/
Dnapi_util.h31 …static void JsObjectToInt(const napi_env &env, const napi_value &object, std::string fieldStr, int…
/base/customization/enterprise_device_management/interfaces/kits/wifi_manager/src/
Dwifi_manager_addon.cpp279 !JsObjectToInt(env, object, "securityType", true, type) || in JsObjToDeviceConfig()
280 !JsObjectToInt(env, object, "netId", false, config.networkId) || in JsObjToDeviceConfig()
281 !JsObjectToInt(env, object, "ipType", false, ipType) || in JsObjToDeviceConfig()
349 !JsObjectToInt(env, staticIp, "prefixLength", true, in ConfigStaticIp()
374 !JsObjectToInt(env, napiEap, "eapMethod", true, eapMethod)) { in ProcessEapConfig()
397 !JsObjectToInt(env, object, "phase2Method", true, phase2)) { in ProcessEapPeapConfig()
/base/customization/enterprise_device_management/interfaces/kits/network_manager/src/
Dnetwork_manager_addon.cpp394 if (!JsObjectToInt(env, object, "method", true, method) || in JsObjToAddFirewallObject()
400 if (!JsObjectToInt(env, object, "direction", true, direction) || in JsObjToAddFirewallObject()
406 if (!JsObjectToInt(env, object, "action", true, action) || in JsObjToAddFirewallObject()
412 JsObjectToInt(env, object, "protocol", false, protocol); in JsObjToAddFirewallObject()
476 if (!JsObjectToInt(env, object, "direction", true, direction) || in JsObjToRemoveFirewallObject()
482 JsObjectToInt(env, object, "action", false, action); in JsObjToRemoveFirewallObject()
485 JsObjectToInt(env, object, "protocol", false, protocol); in JsObjToRemoveFirewallObject()
597 if (!JsObjectToInt(env, argv, PORT_PROP_NAME, false, port)) { in ParseHttpProxyParam()
/base/customization/enterprise_device_management/interfaces/kits/common/include/
Dnapi_edm_common.h76 bool JsObjectToInt(napi_env env, napi_value object, const char *filedStr, bool isNecessaryProp, int…
/base/location/interfaces/inner_api/include/
Dnapi_util.h63 int JsObjectToInt(const napi_env& env, const napi_value& object, const char* fieldStr, int& fieldRe…
/base/customization/enterprise_device_management/interfaces/kits/bundle_manager/src/
Dbundle_manager_addon.cpp261 if (!JsObjectToInt(env, object, "userId", false, installParam.userId) || in jsObjectToInstallParam()
262 !JsObjectToInt(env, object, "installFlag", false, installFlag)) { in jsObjectToInstallParam()
/base/customization/enterprise_device_management/interfaces/kits/common/src/
Dnapi_edm_common.cpp201 bool JsObjectToInt(napi_env env, napi_value object, const char *filedStr, bool isNecessaryProp, int… in JsObjectToInt() function
/base/location/frameworks/js/napi/source/
Dlocation_napi_adapter.cpp783 …CHK_ERROR_CODE("timeInterval", JsObjectToInt(env, object, "timeInterval", asyncContext->timeInterv… in CreateReverseGeocodeAsyncContext()