Home
last modified time | relevance | path

Searched refs:cJSON_GetNumberValue (Results 1 – 25 of 30) sorted by relevance

12

/ohos5.0/foundation/communication/netmanager_ext/services/netfirewallmanager/src/
H A Dnetfirewall_default_rule_parser.cpp40 … rule->ruleDirection = static_cast<NetFirewallRuleDirection>(cJSON_GetNumberValue(ruleDirection)); in ConvertFirewallRuleToConfig()
45 rule->ruleAction = static_cast<FirewallRuleAction>(cJSON_GetNumberValue(ruleAction)); in ConvertFirewallRuleToConfig()
50 rule->ruleType = static_cast<NetFirewallRuleType>(cJSON_GetNumberValue(ruleType)); in ConvertFirewallRuleToConfig()
60 rule->appUid = cJSON_GetNumberValue(appUid); in ConvertFirewallRuleToConfig()
66 rule->protocol = static_cast<NetworkProtocol>(cJSON_GetNumberValue(protocol)); in ConvertFirewallRuleToConfig()
72 rule->userId = cJSON_GetNumberValue(userId); in ConvertFirewallRuleToConfig()
152 rule.family = static_cast<uint8_t>(cJSON_GetNumberValue(family)); in ConvertIpParamToConfig()
156 rule.type = static_cast<uint8_t>(cJSON_GetNumberValue(type)); in ConvertIpParamToConfig()
172 rule.mask = static_cast<uint8_t>(cJSON_GetNumberValue(mask)); in ConvertIpParamToConfig()
203 rule.startPort = static_cast<uint16_t>(cJSON_GetNumberValue(startPort)); in ConvertPortParamToConfig()
[all …]
/ohos5.0/base/startup/appspawn/lite/
H A Dappspawn_message.c101 return cJSON_GetNumberValue(strItem); in ReadNumberItem()
134 if (!cJSON_IsNumber(capJ) || cJSON_GetNumberValue(capJ) < 0) { in GetCaps()
140 msgSt->caps[i] = (unsigned int)cJSON_GetNumberValue(capJ); in GetCaps()
/ohos5.0/base/telephony/core_service/services/sim/src/
H A Doperator_file_parser.cpp194 int64_t lValue = static_cast<int64_t>(cJSON_GetNumberValue(value)); in ParseOperatorConfigFromJson()
275 …} else if (valueType == cJSON_Number && static_cast<int64_t>(cJSON_GetNumberValue(arrayValue)) > I… in ParseArray()
281 … opc.longArrayValue[key].push_back(static_cast<int64_t>(cJSON_GetNumberValue(arrayValue))); in ParseArray()
290 … opc.intArrayValue[key].push_back(static_cast<int32_t>(cJSON_GetNumberValue(arrayValue))); in ParseArray()
/ohos5.0/base/customization/enterprise_device_management/services/edm_plugin/src/utils/
H A Darray_usb_device_type_serializer.cpp77 usbDeviceType.baseClass = cJSON_GetNumberValue(baseClass); in Deserialize()
78 usbDeviceType.subClass = cJSON_GetNumberValue(subClass); in Deserialize()
79 usbDeviceType.protocol = cJSON_GetNumberValue(protocol); in Deserialize()
H A Dpassword_policy_serializer.cpp45 policy.validityPeriod = cJSON_GetNumberValue(validityPeriod); in Deserialize()
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/utils/common/
H A Djson_helper.cpp116 return static_cast<int32_t>(cJSON_GetNumberValue(json_)); in GetInt()
134 return static_cast<int32_t>(cJSON_GetNumberValue(json_)); in GetUInt()
152 return static_cast<float>(cJSON_GetNumberValue(json_)); in GetFloat()
170 return cJSON_GetNumberValue(json_); in GetDouble()
/ohos5.0/base/startup/init/services/init/
H A Dinit_service_manager.c262 *uid = (uid_t)cJSON_GetNumberValue(json); in GetUid()
278 *gid = (gid_t)cJSON_GetNumberValue(json); in GetGid()
342 int value = (int)cJSON_GetNumberValue(filedJ); in GetServiceAttr()
704 int attrValue = (int)cJSON_GetNumberValue(attrItem); in GetCritical()
713 int value = (int)cJSON_GetNumberValue(crashCountItem); in GetCritical()
719 value = (int)cJSON_GetNumberValue(crashTimeItem); in GetCritical()
757 cpus = (int)cJSON_GetNumberValue(item); in GetCpuArgs()
779 int isSandbox = (int)cJSON_GetNumberValue(item); in GetServiceSandbox()
929 uint64_t value = (uint64_t)cJSON_GetNumberValue(arrItem); in GetServicePeriod()
H A Dinit_capability.c114 caps = (unsigned int)cJSON_GetNumberValue(capJson); in InitServiceCaps()
/ohos5.0/base/startup/appspawn/util/include/
H A Djson_utils.h59 return cJSON_GetNumberValue(cJSON_GetObjectItemCaseSensitive(json, key)); in GetIntValueFromJsonObj()
/ohos5.0/base/security/access_token/interfaces/innerkits/nativetoken/test/mock/include/
H A DcJSON.h55 double cJSON_GetNumberValue(const cJSON* const item);
/ohos5.0/foundation/communication/netmanager_ext/services/vpnmanager/src/
H A Dnetworkvpn_service.cpp264 tmp.type_ = static_cast<int32_t>(cJSON_GetNumberValue(type)); in ConvertNetAddrToConfig()
269 tmp.family_ = static_cast<int32_t>(cJSON_GetNumberValue(family)); in ConvertNetAddrToConfig()
274 tmp.prefixlen_ = static_cast<int32_t>(cJSON_GetNumberValue(prefixlen)); in ConvertNetAddrToConfig()
292 tmp.port_ = static_cast<int32_t>(cJSON_GetNumberValue(port)); in ConvertNetAddrToConfig()
322 tmp.rtnType_ = cJSON_GetNumberValue(rtnType); in ConvertRouteToConfig()
327 tmp.mtu_ = cJSON_GetNumberValue(mtu); in ConvertRouteToConfig()
384 vpnCfg->mtu_ = cJSON_GetNumberValue(mtu); in ParseJsonToConfig()
/ohos5.0/base/security/access_token/interfaces/innerkits/nativetoken/src/
H A Dnativetoken_json_oper.c51 if ((!cJSON_IsNumber(tokenIdJson)) || (cJSON_GetNumberValue(tokenIdJson) <= 0)) { in GetTokenIdFromJson()
73 int32_t apl = cJSON_GetNumberValue(aplJson); in GetAplFromJson()
/ohos5.0/base/security/device_auth/test/unittest/deviceauth/source/
H A Djson_utils_mock.c291 *value = (int)cJSON_GetNumberValue(jsonObjTmp); in GetIntFromJson()
317 double realValue = cJSON_GetNumberValue(jsonObjTmp); in GetUnsignedIntFromJson()
/ohos5.0/base/security/device_auth/common_lib/impl/src/
H A Djson_utils.c258 *value = (int)cJSON_GetNumberValue(jsonObjTmp); in GetIntFromJson()
284 double realValue = cJSON_GetNumberValue(jsonObjTmp); in GetUnsignedIntFromJson()
/ohos5.0/base/telephony/call_manager/services/spam_call/src/
H A Dspam_call_adapter.cpp114 out = static_cast<int32_t>(cJSON_GetNumberValue(cursor)); in JsonGetNumberValue()
/ohos5.0/foundation/distributeddatamgr/pasteboard/framework/framework/include/serializable/
H A Dserializable.h126 value = cJSON_GetNumberValue(subNode); in GetNumber()
/ohos5.0/foundation/distributeddatamgr/pasteboard/framework/framework/serializable/
H A Dserializable.cpp102 value.emplace_back(cJSON_GetNumberValue(cJSON_GetArrayItem(subNode, i))); in GetValue()
/ohos5.0/base/startup/init/test/unittest/lite/
H A Dcmd_func_test.cpp632 EXPECT_TRUE(cJSON_GetNumberValue(filedJ) >= 0.0 || cJSON_GetStringValue(filedJ)); in CheckService()
636 EXPECT_TRUE(cJSON_GetNumberValue(filedJ) >= 0.0 || cJSON_GetArraySize(filedJ) >= 0); in CheckService()
651 EXPECT_TRUE(cJSON_GetNumberValue(capJ) >= 0.0 || cJSON_GetStringValue(capJ)); in CheckService()
/ohos5.0/base/telephony/core_service/services/network_search/src/
H A Doperator_name_utils.cpp180 … nameCust.mccMnc.push_back(std::to_string(static_cast<int32_t>(cJSON_GetNumberValue(arrValue)))); in ParserOperatorNames()
/ohos5.0/base/security/access_token/interfaces/innerkits/nativetoken/test/mock/src/
H A DcJSON.c110 double cJSON_GetNumberValue(const cJSON* const item) in cJSON_GetNumberValue() function
/ohos5.0/foundation/distributeddatamgr/pasteboard/framework/framework/device/
H A Ddev_profile.cpp227 if (cJSON_GetNumberValue(cJSON_GetObjectItem(jsonObject, VERSION_ID)) == FIRST_VERSION) { in GetRemoteDeviceVersion()
/ohos5.0/base/startup/init/test/unittest/loopevent/
H A Dloopserver_unittest.cpp60 cmd = cJSON_GetNumberValue(cJSON_GetObjectItem(root, "cmd")); in DecodeMessage()
/ohos5.0/base/security/appverify/interfaces/innerkits/appverify/src/provision/
H A Dprovision_verify.cpp111 out = cJSON_GetNumberValue(jsonValue); in GetInt64IfExist()
/ohos5.0/base/startup/init/services/modules/trace/
H A Dinit_trace.c254 int tag = cJSON_GetNumberValue(cJSON_GetObjectItem(item, "tag")); in SetUserSpaceSettings()
/ohos5.0/base/startup/appspawn/test/moduletest/
H A Dappspawn_test_cmder.cpp161 uint32_t value = (uint32_t)cJSON_GetNumberValue(item); in GetUint32ArrayFromJson()

12