/base/usb/usb_manager/interfaces/kits/js/napi/src/ |
D | usb_info.cpp | 63 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 …]
|
D | napi_util.cpp | 94 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/ |
D | napi_util.cpp | 215 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/ |
D | napi_util.h | 31 …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/ |
D | wifi_manager_addon.cpp | 279 !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/ |
D | network_manager_addon.cpp | 394 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/ |
D | napi_edm_common.h | 76 bool JsObjectToInt(napi_env env, napi_value object, const char *filedStr, bool isNecessaryProp, int…
|
/base/location/interfaces/inner_api/include/ |
D | napi_util.h | 63 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/ |
D | bundle_manager_addon.cpp | 261 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/ |
D | napi_edm_common.cpp | 201 bool JsObjectToInt(napi_env env, napi_value object, const char *filedStr, bool isNecessaryProp, int… in JsObjectToInt() function
|
/base/location/frameworks/js/napi/source/ |
D | location_napi_adapter.cpp | 783 …CHK_ERROR_CODE("timeInterval", JsObjectToInt(env, object, "timeInterval", asyncContext->timeInterv… in CreateReverseGeocodeAsyncContext()
|