Home
last modified time | relevance | path

Searched refs:prefixLen (Results 1 - 10 of 10) sorted by relevance

/base/global/i18n/frameworks/intl/test/unittest/mock/src/
H A Dphone_number_format_mock.cpp41 size_t prefixLen = phoneNumberPrefix.size(); in getCityName() local
42 if (!phonenumber.compare(0, prefixLen, "861373193") && !language.compare(0, len, "zh")) { in getCityName()
45 if (!phonenumber.compare(0, prefixLen, "861373163") && !language.compare(0, len, "zh")) { in getCityName()
/base/telephony/cellular_data/services/src/utils/
H A Dcellular_data_utils.cpp40 ipInfo.prefixLen = (ipSubData.size() > MIN_IPV4_ITEM) ? IPV6_BIT : IPV4_BIT; in ParseIpAddr()
43 ipInfo.prefixLen = IPV6_BIT; in ParseIpAddr()
46 ipInfo.prefixLen = std::stoi(ipData[1].c_str()); in ParseIpAddr()
60 ipInfo.prefixLen = IPV4_BIT; in ParseNormalIpAddr()
63 ipInfo.prefixLen = IPV6_BIT; in ParseNormalIpAddr()
118 int32_t prefixLen = 0; in GetPrefixLen() local
128 prefixLen++; in GetPrefixLen()
131 if ((prefixLen % MASK_BYTE_BIT) != 0) { in GetPrefixLen()
135 return prefixLen; in GetPrefixLen()
/base/startup/init/services/param/trigger/
H A Dtrigger_checker.c120 static int PrefixAdd(char *prefix, uint32_t *prefixIndex, uint32_t prefixLen, char op) in PrefixAdd() argument
122 if ((*prefixIndex + 1 + 1 + 1) >= prefixLen) { in PrefixAdd()
131 static int HandleOperationOr(LogicCalculator *calculator, char *prefix, uint32_t *prefixIndex, uint32_t prefixLen) in HandleOperationOr() argument
143 int ret = PrefixAdd(prefix, prefixIndex, prefixLen, e); in HandleOperationOr()
272 int ConvertInfixToPrefix(const char *condition, char *prefix, uint32_t prefixLen) in ConvertInfixToPrefix() argument
287 ret = PrefixAdd(prefix, &prefixIndex, prefixLen, e); in ConvertInfixToPrefix()
295 ret = HandleOperationOr(&calculator, prefix, &prefixIndex, prefixLen); in ConvertInfixToPrefix()
311 PARAM_CHECK(prefixIndex < prefixLen, in ConvertInfixToPrefix()
317 ret = PrefixAdd(prefix, &prefixIndex, prefixLen, e); in ConvertInfixToPrefix()
320 return -1, "Invalid prefix %u %u", prefixIndex, prefixLen); in ConvertInfixToPrefix()
[all...]
/base/hiviewdfx/hilog_lite/frameworks/featured/
H A Dhiview_log.c553 int prefixLen = 0; in HiLogSecOutputS() local
657 prefixLen = 0; in HiLogSecOutputS()
929 prefixLen = 0; /* no padding ,this variable to calculate amount of padding */ in HiLogSecOutputS()
999 prefixLen = 0; in HiLogSecOutputS()
1001 prefixLen = 2; /* securec prefix len is 2 */ in HiLogSecOutputS()
1004 prefixLen = 2; /* securec prefix len is 2 */ in HiLogSecOutputS()
1139 prefixLen = 0; in HiLogSecOutputS()
1142 prefixLen = 2; in HiLogSecOutputS()
1144 prefixLen = 0; in HiLogSecOutputS()
1255 prefixLen in HiLogSecOutputS()
[all...]
/base/startup/init/services/param/include/
H A Dtrigger_checker.h66 int ConvertInfixToPrefix(const char *condition, char *prefix, uint32_t prefixLen);
/base/security/device_auth/services/mk_agree/src/
H A Dkey_manager.c73 uint32_t prefixLen = HcStrlen(prefix); in ConvertHashToAliasWithPrefix() local
74 if (memcpy_s(keyAlias->val, keyAlias->length, prefix, prefixLen) != EOK) { in ConvertHashToAliasWithPrefix()
79 // The remaining key alias len is less than keyAliasHexLen len after substract prefixLen, in ConvertHashToAliasWithPrefix()
81 if (memcpy_s(keyAlias->val + prefixLen, keyAlias->length - prefixLen, keyAliasHex, in ConvertHashToAliasWithPrefix()
82 keyAlias->length - prefixLen) != EOK) { in ConvertHashToAliasWithPrefix()
/base/telephony/cellular_data/services/src/state_machine/
H A Dcellular_data_state_machine.cpp393 netAddr.prefixlen_ = ipInfo.prefixLen; in ResolveIp()
408 dnsAddr.prefixlen_ = dnsInfo.prefixLen; in ResolveDns()
424 route.gateway_.prefixlen_ = routeInfo.prefixLen; in ResolveRoute()
/base/telephony/cellular_data/services/include/common/
H A Dcellular_data_constant.h47 uint8_t prefixLen = 0; member
/base/telephony/ril_adapter/services/vendor/src/
H A Dat_data.c304 int32_t prefixLen = IPV4_MASK_LEN_MIN; in NetMaskFormat() local
308 prefixLen++; in NetMaskFormat()
312 GenerateCommand(outBuf, MAX_CMD_LENGTH, "/%d", prefixLen); in NetMaskFormat()
/base/telephony/cellular_data/test/
H A Dcellular_state_machine_test.cpp1651 routeInfo.prefixLen = 24; in HWTEST_F()
1673 routeInfo1.prefixLen = 24; in HWTEST_F()
1678 routeInfo2.prefixLen = 64; in HWTEST_F()

Completed in 12 milliseconds