Home
last modified time | relevance | path

Searched refs:StrToUint (Results 1 – 15 of 15) sorted by relevance

/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/
H A Dnet_diag_wrapper.cpp435 icmpRespInfo.bytes_ = static_cast<uint16_t>(CommonUtils::StrToUint(match[bytesPos].str())); in ExtractIcmpSeqInfo()
438 icmpRespInfo.ttl_ = static_cast<uint16_t>(CommonUtils::StrToUint(match[ttlPos].str())); in ExtractIcmpSeqInfo()
439 icmpRespInfo.costTime_ = CommonUtils::StrToUint(match[timePos].str()); in ExtractIcmpSeqInfo()
454 pingResult.recvCount_ = static_cast<uint16_t>(CommonUtils::StrToUint(match[recvPos].str())); in ExtractPingStatistics()
479 routeTable.metric_ = static_cast<uint16_t>(CommonUtils::StrToUint(match[metricPos].str())); in ExtractRouteTableInfo()
480 routeTable.ref_ = static_cast<uint16_t>(CommonUtils::StrToUint(match[refPos].str())); in ExtractRouteTableInfo()
481 routeTable.use_ = static_cast<uint16_t>(CommonUtils::StrToUint(match[usePos].str())); in ExtractRouteTableInfo()
513 socketInfo.inode_ = static_cast<uint16_t>(CommonUtils::StrToUint(match[iNodePos].str())); in ExtractNetProtoSocketsInfo()
536 socketInfo.refCnt_ = static_cast<uint16_t>(CommonUtils::StrToUint(match[refCntPos].str())); in ExtractUnixSocketsInfo()
540 socketInfo.inode_ = static_cast<uint16_t>(CommonUtils::StrToUint(match[iNodePos].str())); in ExtractUnixSocketsInfo()
[all …]
/ohos5.0/base/powermgr/thermal_manager/application/protector/src/policy/
H A Dthermal_kernel_config_file.cpp160 StringOperation::StrToUint(reinterpret_cast<char*>(xmlLevel), tziItem.level); in ParseSubNode()
169 StringOperation::StrToUint(reinterpret_cast<char*>(xmlValue), action.value); in ParseSubNode()
/ohos5.0/base/powermgr/thermal_manager/utils/native/include/
H A Dstring_operation.h30 static bool StrToUint(const std::string& str, uint32_t& value);
/ohos5.0/base/powermgr/thermal_manager/services/native/src/thermal_policy/
H A Dthermal_config_base_info.cpp44 StringOperation::StrToUint(countIter->second, historyTempCount_); in SetHistoryTempCount()
H A Dthermal_srv_config_parser.cpp455 StringOperation::StrToUint(reinterpret_cast<char*>(xmlLevel), levelItem.level); in ParseLevelThreshold()
586 StringOperation::StrToUint(reinterpret_cast<char*>(xmlLevel), policyConfig.level); in ParsePolicyNode()
/ohos5.0/foundation/communication/netmanager_base/services/netpolicymanager/src/core/
H A Dnet_policy_file.cpp191 uint32_t chainType = CommonUtils::StrToUint(firewallRulesItemStr); in ParseFirewallRule()
198 uint32_t deniedListNumber = CommonUtils::StrToUint(netDeniedListItemStr); in ParseFirewallRule()
206 uint32_t allowedListNumber = CommonUtils::StrToUint(netAllowedListItemStr); in ParseFirewallRule()
362 auto uidTemp = CommonUtils::StrToUint(netPolicy_.uidPolicies[i].uid.c_str()); in ArbitrationWritePolicyToFile()
H A Dnet_policy_rule.cpp32 auto uid = CommonUtils::StrToUint(i.uid.c_str()); in Init()
33 auto policy = CommonUtils::StrToUint(i.policy.c_str()); in Init()
/ohos5.0/base/powermgr/thermal_manager/test/unittest/src/
H A Dthermal_utils_test.cpp77 StringOperation::StrToUint("", val);
H A Dthermal_config_file_parser.cpp270 StringOperation::StrToUint(reinterpret_cast<char*>(xmlLevel), level); in ParsePolicyNode()
450 StringOperation::StrToUint(reinterpret_cast<char*>(xmlLevel), levelItem.level); in ParseSensorSubnodeInfo()
/ohos5.0/base/powermgr/thermal_manager/utils/native/src/
H A Dstring_operation.cpp82 bool StringOperation::StrToUint(const std::string& str, uint32_t& value) in StrToUint() function in OHOS::PowerMgr::StringOperation
/ohos5.0/foundation/communication/netmanager_base/utils/common_utils/include/
H A Dnetmanager_base_common_utils.h66 uint32_t StrToUint(const std::string &value, uint32_t defaultErr = 0);
/ohos5.0/foundation/communication/netmanager_base/services/netconnmanager/src/
H A Dnet_http_proxy_tracker.cpp87 …(proxyPort.empty() || host.empty()) ? 0 : static_cast<uint16_t>(CommonUtils::StrToUint(proxyPort)); in ReadFromSettingsData()
/ohos5.0/foundation/communication/netmanager_base/test/netmanagerutils/unittest/netmanager_base_common_test/
H A Dut_netmanager_base_common.cpp395 auto result = CommonUtils::StrToUint(testStr);
/ohos5.0/foundation/communication/netmanager_base/utils/common_utils/src/
H A Dnetmanager_base_common_utils.cpp413 uint32_t StrToUint(const std::string &value, uint32_t defaultErr) in StrToUint() function
/ohos5.0/foundation/communication/netmanager_ext/services/ethernetmanager/src/
H A Dethernet_configuration.cpp573 …uint32_t port = CommonUtils::StrToUint(fileContent.substr(pos, fileContent.find(WRAP, pos) - pos)); in ParserFileHttpProxy()