Home
last modified time | relevance | path

Searched refs:StrToUint (Results 1 - 8 of 8) sorted by relevance

/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/
H A Dnet_diag_wrapper.cpp415 pingResult.dateSize_ = static_cast<uint16_t>(CommonUtils::StrToUint(match[dataSizePos].str())); in ExtractPingHeader()
416 pingResult.payloadSize_ = static_cast<uint16_t>(CommonUtils::StrToUint(match[payloadSizePos].str())); in ExtractPingHeader()
435 icmpRespInfo.bytes_ = static_cast<uint16_t>(CommonUtils::StrToUint(match[bytesPos].str())); in ExtractIcmpSeqInfo()
437 icmpRespInfo.icmpSeq_ = static_cast<uint16_t>(CommonUtils::StrToUint(match[icmpSeqPos].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()
453 pingResult.transCount_ = static_cast<uint16_t>(CommonUtils::StrToUint(match[transPos].str())); in ExtractPingStatistics()
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(matc in ExtractRouteTableInfo()
[all...]
/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()
/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);
/foundation/communication/netmanager_base/services/netconnmanager/src/
H A Dnet_http_proxy_tracker.cpp87 uint16_t port = (proxyPort.empty() || host.empty()) ? 0 : static_cast<uint16_t>(CommonUtils::StrToUint(proxyPort)); in ReadFromSettingsData()
/foundation/communication/netmanager_base/test/netmanagerutils/unittest/netmanager_base_common_test/
H A Dut_netmanager_base_common.cpp389 * @tc.desc: Test UtNetmanagerBaseCommon StrToUint.
395 auto result = CommonUtils::StrToUint(testStr); in HWTEST_F()
413 * @tc.desc: Test UtNetmanagerBaseCommon StrToUint.
/foundation/communication/netmanager_base/utils/common_utils/src/
H A Dnetmanager_base_common_utils.cpp415 uint32_t StrToUint(const std::string &value, uint32_t defaultErr) in StrToUint() function
/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()

Completed in 9 milliseconds