Home
last modified time | relevance | path

Searched refs:j (Results 1 – 25 of 131) sorted by relevance

123456

/base/usb/usb_manager/test/native/js_unittest/
DUsbDevicePipeJsunitEx.test.js62 function findInitPoint(testParam, j) { argument
64 for (var k = 0; k < testParam.config.interfaces[j].endpoints.length; k++) {
65 var endpoint = testParam.config.interfaces[j].endpoints[k];
79 testParam.interface = testParam.config.interfaces[j]
85 function getFlag(testParam, j) { argument
86 if (testParam.config.interfaces[j].clazz != 10 ||
87 testParam.config.interfaces[j].subclass != 0 ||
88 testParam.config.interfaces[j].protocol != 2) {
92 if (testParam.config.interfaces[j].endpoints.length == 0) {
100 for (var j = 0; j < testParam.config.interfaces.length; j++) {
[all …]
DUsbDevicePipeJsunit.test.js62 function findInitPoint(testParam, j) { argument
64 for (var k = 0; k < testParam.config.interfaces[j].endpoints.length; k++) {
65 var endpoint = testParam.config.interfaces[j].endpoints[k];
78 testParam.interface = testParam.config.interfaces[j]
84 function getFlag(testParam, j) { argument
85 if (testParam.config.interfaces[j].endpoints.length == 0) {
89 if (testParam.config.interfaces[j].clazz != 10 ||
90 testParam.config.interfaces[j].subclass != 0 ||
91 testParam.config.interfaces[j].protocol != 2) {
98 for (var j = 0; j < testParam.config.interfaces.length; j++) {
[all …]
/base/security/access_token/services/accesstokenmanager/main/cpp/src/token/
Dnative_token_receptor.cpp45 const nlohmann::json& j, std::vector<PermissionStateFull>& permStateList) in NativeReqPermsGet() argument
48 if (j.find(JSON_PERMS) == j.end() || (!j.at(JSON_PERMS).is_array())) { in NativeReqPermsGet()
51 permReqList = j.at(JSON_PERMS).get<std::vector<std::string>>(); in NativeReqPermsGet()
72 static bool GetStringFromJson(const nlohmann::json& j, const std::string& tag, std::string& out) in GetStringFromJson() argument
74 if (j.find(tag) != j.end() && j.at(tag).is_string()) { in GetStringFromJson()
75 out = j.at(tag).get<std::string>(); in GetStringFromJson()
81 static bool GetIntFromJson(const nlohmann::json& j, const std::string& tag, int& out) in GetIntFromJson() argument
83 if (j.find(tag) != j.end() && j.at(tag).is_number()) { in GetIntFromJson()
84 out = j.at(tag).get<int>(); in GetIntFromJson()
90 static bool GetUnsignIntFromJson(const nlohmann::json& j, const std::string& tag, unsigned int& out) in GetUnsignIntFromJson() argument
[all …]
/base/security/device_security_level/baselib/utils/src/
Dutils_hexstring.c66 for (int32_t j = 0; j < BYTE_TO_HEX_OPER_LENGTH; j++) { /* iterate through array */ in HexStringToByte() local
67 if ((nibble[j] <= 'F') && (nibble[j] >= 'A')) { in HexStringToByte()
68 nibble[j] = nibble[j] - 'A' + 10; /* decimal conversion, add 10 */ in HexStringToByte()
69 } else if ((nibble[j] <= 'f') && (nibble[j] >= 'a')) { in HexStringToByte()
70 nibble[j] = nibble[j] - 'a' + 10; /* decimal conversion, add 10 */ in HexStringToByte()
71 } else if ((nibble[j] >= '0') && (nibble[j] <= '9')) { in HexStringToByte()
72 nibble[j] = nibble[j] - '0'; in HexStringToByte()
Dutils_base64.c76 uint32_t j = 0; in Base64Encode() local
86 to[j++] = g_base64EncodeTable[(byte >> 18) & 0x3F]; /* get the 1st block by shift 18 */ in Base64Encode()
87 to[j++] = g_base64EncodeTable[(byte >> 12) & 0x3F]; /* get the 2nd block by shift 12 */ in Base64Encode()
88 to[j++] = g_base64EncodeTable[(byte >> 6) & 0x3F]; /* get the 3rd block by shift 6 */ in Base64Encode()
89 to[j++] = g_base64EncodeTable[(byte >> 0) & 0x3F]; in Base64Encode()
130 uint32_t j = 0; in Base64Decode() local
147 if (j < toLen) { in Base64Decode()
148 to[j++] = (byte >> 16) & 0xFF; // 16, the 3rd 8-bit in Base64Decode()
150 if (j < toLen) { in Base64Decode()
151 to[j++] = (byte >> 8) & 0xFF; // 8, the 2nd 8-bit in Base64Decode()
[all …]
/base/security/device_auth/frameworks/deviceauth_lite/source/json/
Dcommonutil.c53 for (int32_t j = 0; j < BYTE_TO_HEX_OPER_LENGTH; j++) { /* iterate through array */ in hex_string_to_byte() local
54 if ((nibble[j] <= 'F') && (nibble[j] >= 'A')) { in hex_string_to_byte()
55 nibble[j] = nibble[j] - 'A' + 10; /* decimal conversion */ in hex_string_to_byte()
56 } else if ((nibble[j] <= 'f') && (nibble[j] >= 'a')) { in hex_string_to_byte()
57 nibble[j] = nibble[j] - 'a' + 10; /* decimal conversion */ in hex_string_to_byte()
58 } else if ((nibble[j] >= '0') && (nibble[j] <= '9')) { in hex_string_to_byte()
59 nibble[j] = nibble[j] - '0'; in hex_string_to_byte()
/base/security/device_auth/common_lib/impl/src/
Dstring_util.c135 int j = 0; in Base64StringToByte() local
138 j++; in Base64StringToByte()
141 if (len - j > (*byteLen)) { in Base64StringToByte()
144 *byteLen = len - j; in Base64StringToByte()
151 for (uint32_t i = 0, j = 0; i < strLen - 2; j += 3, i += 4) { in Base64StringToByte() local
152 if (IsInvalidBase64Character(base64Str[i + 3]) && i + 3 < strLen - j) { in Base64StringToByte()
156 …byte[j] = (g_base64DecodeTable[(int)base64Str[i]] << 2) | (g_base64DecodeTable[(int)base64Str[i + … in Base64StringToByte()
158 byte[j + 1] = (g_base64DecodeTable[(int)base64Str[i + 1]] << 4) | in Base64StringToByte()
161 …byte[j + 2] = (g_base64DecodeTable[(int)base64Str[i + 2]] << 6) | (g_base64DecodeTable[(int)base64… in Base64StringToByte()
181 uint32_t j; in ByteToBase64String() local
[all …]
/base/account/os_account/services/accountmgr/src/osaccount/
Dos_account_photo_operator.cpp110 size_t j = 0; in DeCode() local
111 for (j = i; j < SIZET_FOUR; j++) in DeCode()
112 char_array_4[j] = 0; in DeCode()
114 for (j = 0; j < SIZET_FOUR; j++) in DeCode()
115 char_array_4[j] = baseChars_.find(char_array_4[j]); in DeCode()
123 for (j = 0; (j < i - 1); j++) in DeCode()
124 byteStr += char_array_3[j]; in DeCode()
/base/security/code_signature/utils/src/
Dcert_utils.cpp67 for (uint32_t j = 0; j < pos; j++) { in FreeCertChain() local
68 if ((*certChain)->certs[j].data != nullptr) { in FreeCertChain()
69 free((*certChain)->certs[j].data); in FreeCertChain()
70 (*certChain)->certs[j].data = nullptr; in FreeCertChain()
/base/hiviewdfx/hisysevent/frameworks/native/c_wrapper/source/
Dhisysevent_c_wrapper.cpp30 for (size_t j = 0; j < MAX_LENGTH_OF_PARAM_NAME && wrapper.paramName[j] != '\0'; j++) { in ConvertParamWrapper() local
31 dest[i].name[j] = wrapper.paramName[j]; in ConvertParamWrapper()
83 for (size_t j = 0; (j < MAX_LENGTH_OF_EVENT_DOMAIN) && (wrapper.domain[j] != '\0'); j++) { in ConvertQueryRuleWrapper() local
84 dest[i].domain[j] = wrapper.domain[j]; in ConvertQueryRuleWrapper()
/base/startup/init/services/init/lite/
Dinit_jobs.c40 for (int j = 0; j < g_jobs[i].cmdLines->cmdNum; j++) { in DumpAllJobs() local
41 CmdLine *cmd = &g_jobs[i].cmdLines->cmds[j]; in DumpAllJobs()
140 for (int j = 0; j < cmdLines->cmdNum; ++j) { in DoJob() local
141 DoCmdByIndex(cmdLines->cmds[j].cmdIndex, cmdLines->cmds[j].cmdContent, NULL); in DoJob()
/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/
Ddlp_permission_set_parser.cpp36 void from_json(const nlohmann::json& j, PermissionDlpMode& p) in from_json() argument
38 if (j.find("name") == j.end() || (!j.at("name").is_string())) { in from_json()
41 p.permissionName = j.at("name").get<std::string>(); in from_json()
46 if (j.find("dlpGrantRange") == j.end() || (!j.at("dlpGrantRange").is_string())) { in from_json()
49 std::string dlpModeStr = j.at("dlpGrantRange").get<std::string>(); in from_json()
/base/telephony/sms_mms/test/fuzztest/smspdubuffer_fuzzer/
Dsmspdubuffer_fuzzer.cpp58 for (uint8_t j = 0; j < TEST_BITS; j++) { in ReadBuffer() local
59 buffer->ReadBits(v3, j); in ReadBuffer()
99 for (uint8_t j = 0; j < TEST_BITS; j++) { in WriteBuffer() local
100 buffer->WriteBits(v3, j); in WriteBuffer()
/base/hiviewdfx/hidumper/frameworks/native/src/executor/
Dfd_output.cpp75 for (size_t j = 0; j < line.size(); j++) { in OutMethod() local
76 std::string str = line[j]; in OutMethod()
77 if ((i < dumpDatas_->size()) && (j == (line.size() - 1))) { in OutMethod()
/base/security/certificate_manager/frameworks/cert_manager_standard/main/common/src/
Dcm_x509.c147 for (uint32_t j = 0; j < sizeList; ++j) { in GetX509SubjectNameLongFormat() local
149 … int32_t length = GetX509SubjectName(x509cert, subjectNameList[j], subjectName, NAME_MAX_SIZE); in GetX509SubjectNameLongFormat()
154 subjectNameList[j], subjectName, (char)(((j + 1) == sizeList) ? '\0' : ',')) < 0) { in GetX509SubjectNameLongFormat()
157 offset += strlen(subjectNameList[j]) + strlen(subjectName) + NAME_DELIMITER_SIZE; in GetX509SubjectNameLongFormat()
171 for (uint32_t j = 0; j < sizeList; ++j) { in GetX509IssueNameLongFormat() local
173 int32_t length = GetX509IssueName(x509cert, issueNameList[j], issueName, NAME_MAX_SIZE); in GetX509IssueNameLongFormat()
178 issueNameList[j], issueName, (char)(((j + 1) == sizeList) ? '\0' : ',')) < 0) { in GetX509IssueNameLongFormat()
181 offset += strlen(issueNameList[j]) + strlen(issueName) + NAME_DELIMITER_SIZE; in GetX509IssueNameLongFormat()
/base/startup/init/services/init/
Dinit_capability.c80 for (int j = 0; j < mapSize; j++) { in GetCapByString() local
81 if ((strcmp(capStr, capStrCapNum[j].capStr) == 0) || in GetCapByString()
83 (strcmp(capStr + capLen, capStrCapNum[j].capStr) == 0))) { in GetCapByString()
84 return capStrCapNum[j].CapNum; in GetCapByString()
Dinit_config.c30 for (size_t j = 0; j < ARRAY_LENGTH(vendorDir); j++) { in GetConfigContextType() local
31 if (strncmp(vendorDir[j], cfgName, strlen(vendorDir[j])) == 0) { in GetConfigContextType()
/base/security/certificate_manager/test/unittest/src/
Dcm_get_certlist_test.cpp134 for (uint32_t j = 0; j < length; ++j) { variable
135 bFind = FindCertAbstract(&(g_listexpectResult[j].certAbstract), lstCert);
137 EXPECT_EQ(bFind, g_listexpectResult[j].bExpectResult) << DumpCertList(lstCert);
/base/hiviewdfx/hiview/base/event_store/utility/crc/
Dcrc_generator.cpp35 for (uint32_t j = 0; j < BIT_RANGE; ++j) { in Initialize() local
/base/startup/init/test/benchmark/
Dparameter_benchmark.cpp55 for (int j = 0; j < nameLens[i]; j++) { in LocalParameterTestState() local
56 if (j == 0 || names[i][j - 1] == '.' || j == nameLens[i] - 1) { in LocalParameterTestState()
66 names[i][j] = paramNameChars[TestRandom() % paramNameLen]; in LocalParameterTestState()
73 for (int j = 0; j < valueLens[i]; j++) { in LocalParameterTestState() local
74 values[i][j] = paramNameChars[TestRandom() % (sizeof(paramNameChars) - 1)]; in LocalParameterTestState()
/base/hiviewdfx/hilog/services/hilogtool/
Dlog_display.cpp177 uint16_t j = 0; in HilogShowDomainStatsInfo() local
183 for (j = 0; j < ldStats.domainNum; j++) { in HilogShowDomainStatsInfo()
184 DomainStatsRsp &dStats = vd[j]; in HilogShowDomainStatsInfo()
247 uint16_t j = 0; in HilogShowProcStatsInfo() local
251 for (j = 0; j < pStats.typeNum; j++) { in HilogShowProcStatsInfo()
252 LogTypeStatsRsp &lStats = pStats.lStats[j]; in HilogShowProcStatsInfo()
265 for (j = 0; j < pStats.tagNum; j++) { in HilogShowProcStatsInfo()
266 TagStatsRsp &tStats = vt[j]; in HilogShowProcStatsInfo()
/base/startup/hvb/libhvb/src/crypto/
Dhvb_hash_sha256.c167 uint32_t j; in sha256_data_blk_update() local
170 for (j = 0; j < 8; j++) { in sha256_data_blk_update()
171 regs[j] = iv[j]; in sha256_data_blk_update()
176 for (j = 0; j < 8; j++) { in sha256_data_blk_update()
177 iv[j] += regs[j]; in sha256_data_blk_update()
/base/hiviewdfx/faultloggerd/common/cutil/
Ddfx_cutil.c139 size_t i = 0, j = 0; in TrimAndDupStr() local
142 dst[j++] = src[i]; in TrimAndDupStr()
145 for (; j <= i; j++) { in TrimAndDupStr()
146 dst[j] = '\0'; in TrimAndDupStr()
/base/update/updater/test/unittest/utils/json/
Dutils_json_visitor_test.cpp255 J j {}; variable
257 EXPECT_EQ(Visit<SETVAL>(node["J"], j), true);
258 ASSERT_EQ(j.d1.size(), 2u);
259 EXPECT_EQ(j.d1[0], std::vector<std::string>({"foo", "bar", "baz"}));
260 EXPECT_EQ(j.d1[1], std::vector<std::string>({"foo1", "bar1", "baz1"}));
262 j = {};
263 EXPECT_EQ(Visit<SETVAL>({}, node["J"], j), true);
264 ASSERT_EQ(j.d1.size(), 2u);
265 EXPECT_EQ(j.d1[0], std::vector<std::string>({"foo", "bar", "baz"}));
266 EXPECT_EQ(j.d1[1], std::vector<std::string>({"foo1", "bar1", "baz1"}));
[all …]
/base/security/certificate_framework/test/unittest/cf_adapter_test/src/
Dcf_adapter_cert_test.cpp435 for (uint32_t j = 0; j < sizeof(g_cert) / sizeof(g_cert[0]); j++) { variable
437 int32_t ret = CfOpensslCreateCert(&g_cert[j], &certObj008);
439 "index:" << j << " ,recode:" << ret;
444 "index:" << j << " ,recode:" << ret;
446 …EXPECT_EQ(extBlob008.size, g_certExtension[j].size) << "The size is wrong, test faield, index = " …
447 ret = memcmp(extBlob008.data, g_certExtension[j].data, extBlob008.size);
448 EXPECT_EQ(ret, 0) << "The data of extension is wrong, test faield, index = " << j;
651 for (uint32_t j = 0; j < sizeof(g_cert) / sizeof(g_cert[0]); j++) { variable
653 int32_t ret = CfOpensslCreateCert(&g_cert[j], &certObj017);
655 "index:" << j << " ,recode:" << ret;
[all …]

123456