Home
last modified time | relevance | path

Searched refs:i (Results 1 – 25 of 1040) sorted by relevance

12345678910>>...42

/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/
Dstringfilter.cpp41 for (int i = 0; i < CHAR_RANGE; ++i) { in StringFilter() local
43 ss << static_cast<char>(i); in StringFilter()
44 ss >> charTab_[i]; in StringFilter()
52 int i = 0; in StringFilter() local
54 for (i = 0; i < CHAR_RANGE; ++i) { in StringFilter()
55 statTab_[STATE_BEGIN][i] = STATE_STOP; in StringFilter()
57 for (i = 'a'; i <= 'z'; ++i) { in StringFilter()
58 statTab_[STATE_BEGIN][i] = STATE_RUN; in StringFilter()
60 for (i = 'A'; i <= 'Z'; ++i) { in StringFilter()
61 statTab_[STATE_BEGIN][i] = STATE_RUN; in StringFilter()
[all …]
/base/security/device_auth/services/authenticators/src/account_related/
Daccount_multi_task_manager.c26 for (uint32_t i = 0; i < ACCOUNT_MULTI_TASK_MAX_SIZE; ++i) { in IsManagerHasTaskId() local
27 if (g_taskManager.taskArray[i] != NULL && taskId == g_taskManager.taskArray[i]->taskId) { in IsManagerHasTaskId()
69 for (uint32_t i = 0; i < ACCOUNT_MULTI_TASK_MAX_SIZE; ++i) { in AddTaskToManager() local
70 if (g_taskManager.taskArray[i] == NULL) { in AddTaskToManager()
71 g_taskManager.taskArray[i] = task; in AddTaskToManager()
82 for (uint32_t i = 0; i < ACCOUNT_MULTI_TASK_MAX_SIZE; ++i) { in GetTaskFromManager() local
83 … if ((g_taskManager.taskArray[i] != NULL) && (g_taskManager.taskArray[i]->taskId == taskId)) { in GetTaskFromManager()
84 return g_taskManager.taskArray[i]; in GetTaskFromManager()
93 for (uint32_t i = 0; i < ACCOUNT_MULTI_TASK_MAX_SIZE; ++i) { in DeleteTaskFromManager() local
94 … if ((g_taskManager.taskArray[i] != NULL) && (g_taskManager.taskArray[i]->taskId == taskId)) { in DeleteTaskFromManager()
[all …]
/base/security/device_auth/common_lib/impl/src/
Dstring_util.c59 for (uint32_t i = 0; i < byteLen; i++) { in ByteToHexString() local
60 …hexStr[i * BYTE_TO_HEX_OPER_LENGTH] = HexToChar((byte[i] & 0xF0) >> 4); /* 4: shift right for fill… in ByteToHexString()
61 hexStr[i * BYTE_TO_HEX_OPER_LENGTH + 1] = HexToChar(byte[i] & 0x0F); /* get low four bits */ in ByteToHexString()
92 for (uint32_t i = 0; i < realHexLen / BYTE_TO_HEX_OPER_LENGTH; i++) { in HexStringToByte() local
93 uint8_t high = CharToHex(hexStr[i * BYTE_TO_HEX_OPER_LENGTH]); in HexStringToByte()
94 uint8_t low = CharToHex(hexStr[i * BYTE_TO_HEX_OPER_LENGTH + 1]); in HexStringToByte()
98 byte[i] = high << 4; /* 4: Set the high nibble */ in HexStringToByte()
99 byte[i] |= low; /* Set the low nibble */ in HexStringToByte()
163 for (int i = 0; i < 2; i++) { // at most two end fillings '=' in Base64StringToByte() local
164 if (base64Str[strLen - 1 - i] == '=') { in Base64StringToByte()
[all …]
/base/location/services/location_locator/locator/source/
Dwork_record.cpp35 for (int i = 0; i < num; i++) { in ReadFromParcel() local
57 for (int i = 0; i < num_; i++) { in Marshalling() local
58 parcel.WriteInt32(uids_[i]); in Marshalling()
59 parcel.WriteInt32(pids_[i]); in Marshalling()
60 parcel.WriteString(names_[i]); in Marshalling()
61 parcel.WriteInt32(timeInterval_[i]); in Marshalling()
62 parcel.WriteString(uuid_[i]); in Marshalling()
75 for (int i = 0; i < num_; i++) { in MarshallingWorkRecord() local
76 parcel.WriteInt32(uids_[i]); in MarshallingWorkRecord()
80 for (int i = 0; i < num_; i++) { in MarshallingWorkRecord() local
[all …]
/base/security/huks/frameworks/huks_standard/main/common/src/
Dhks_ability.c27 for (int i = 0; i < HKS_ABILITY_MAX_SIZE; i++) { in RegisterAbility() local
28 if (g_abilityList[i].id == id) { in RegisterAbility()
30 } else if (g_abilityList[i].id != 0) { in RegisterAbility()
33 g_abilityList[i].id = id; in RegisterAbility()
34 g_abilityList[i].func = func; in RegisterAbility()
35 HKS_LOG_I("register ability i = %" LOG_PUBLIC "d, id = 0x%" LOG_PUBLIC "x", i, id); in RegisterAbility()
44 for (int i = 0; i < HKS_ABILITY_MAX_SIZE; i++) { in GetAbility() local
45 if (g_abilityList[i].id == id) { in GetAbility()
46 return g_abilityList[i].func; in GetAbility()
/base/startup/hvb/libhvb/src/crypto/
Dhvb_rsa.c64 int i; in lin_compare() local
70 for (i = p_a->valid_word_len - 1; i >= 0; --i) { in lin_compare()
71 if (p_a->p_uint[i] != p_b->p_uint[i]) { in lin_compare()
72 if (p_a->p_uint[i] > p_b->p_uint[i]) { in lin_compare()
137 uint32_t i; in lin_update_valid_len() local
144 for (i = 0; i < p_a->valid_word_len; ++i) { in lin_update_valid_len()
150 p_a->valid_word_len -= i; in lin_update_valid_len()
207 uint32_t i; in lin_sub() local
212 for (i = 0; i < p_b->valid_word_len; ++i) { in lin_sub()
213 t = p_a->p_uint[i] < c; in lin_sub()
[all …]
/base/global/i18n/frameworks/zone/test/unittest/
Dzone_util_test.cpp58 for (int i = 0; i < count; ++i) { variable
59 string out = util.GetDefaultZone(countries[i].c_str());
60 EXPECT_EQ(out, expects[i]);
76 for (int i = 0; i < count; ++i) { variable
77 string out = util.GetDefaultZone(countries[i].c_str(), offsets[i]);
78 EXPECT_EQ(out, expects[i]);
96 for (decltype(expects.size()) i = 0; i < expects.size(); ++i) { variable
97 EXPECT_EQ(expects[i], out[i]);
116 for (decltype(expects.size()) i = 0; i < expects.size(); ++i) { variable
117 EXPECT_EQ(expects[i], out[i]);
[all …]
/base/startup/init/test/exec_test/
Dfd_holder_test.c32 int i; in SaveFds() local
33 for (i = 0; i < argc; i++) { in SaveFds()
34 BEGET_LOGI("Opening %s \n", argv[i]); in SaveFds()
35 …fds[i] = open(argv[i], O_APPEND | O_RDWR | O_CREAT | O_TRUNC | O_CLOEXEC, S_IRUSR|S_IWUSR|S_IRGRP|… in SaveFds()
36 if (fds[i] < 0) { in SaveFds()
37 BEGET_LOGI("Failed to open file %s\n", argv[i]); in SaveFds()
40 (void)write(fds[i], "hello", BUFFER_LENGTH); in SaveFds()
42 int fdCount = i; in SaveFds()
64 for (size_t i = 0; i < outfdCount; i++) { in main() local
65 int fd = fds[i]; in main()
/base/powermgr/thermal_manager/application/protector/src/policy/
Dprotector_thermal_zone_info.cpp81 for (uint32_t i = level; i < tzItemList_.size(); i++) { in HandleAscNextUpTemp() local
82 if (curTemp >= tzItemList_.at(i).threshold) { in HandleAscNextUpTemp()
83 level = tzItemList_.at(i).level; in HandleAscNextUpTemp()
93 for (uint32_t i = level; i >= 1; i--) { in HandleAscCurDownTemp() local
94 if (curTemp < tzItemList_.at(i - 1).thresholdClr) { in HandleAscCurDownTemp()
95 level = tzItemList_.at(i - 1).level - 1; in HandleAscCurDownTemp()
107 for (uint32_t i = level; i >= 1; i--) { in HandleAscMaxSizeTemp() local
108 if (curTemp < tzItemList_.at(i - 1).thresholdClr) { in HandleAscMaxSizeTemp()
109 level = tzItemList_.at(i - 1).level - 1; in HandleAscMaxSizeTemp()
122 for (uint32_t i = level; i < tzItemList_.size(); i++) { in HandleAscMinSizeTemp() local
[all …]
/base/telephony/sms_mms/utils/
Dstring_utils.cpp57 for (std::string::size_type i = 0; i < data.size(); ++i) { in StringToHex() local
58 unsigned char temp = static_cast<unsigned char>(data[i]) >> HEX_OFFSET; in StringToHex()
59 ss << HEX_TABLE[temp] << HEX_TABLE[static_cast<unsigned char>(data[i]) & 0xf]; in StringToHex()
67 for (int i = 0; i < byteLength; ++i) { in StringToHex() local
68 unsigned char temp = static_cast<unsigned char>(data[i]) >> HEX_OFFSET; in StringToHex()
69 ss << HEX_TABLE[temp] << HEX_TABLE[static_cast<unsigned char>(data[i]) & 0xf]; in StringToHex()
77 for (std::size_t i = 0; i < data.size(); ++i) { in StringToHex() local
78 unsigned char temp = static_cast<unsigned char>(data[i]) >> HEX_OFFSET; in StringToHex()
79 ss << HEX_TABLE[temp] << HEX_TABLE[static_cast<unsigned char>(data[i]) & 0xf]; in StringToHex()
92 for (size_t i = 0; i < str.length() - 1; i += STEP_2BIT) { in HexToString() local
[all …]
/base/hiviewdfx/hilog/test/moduletest/common/
Dadapter_test.cpp96 for (size_t i = 0; i < charLevels.size(); ++i) { variable
97 SetGlobalLevel(ShortStr2LogLevel(charLevels[i]));
99 EXPECT_EQ(GetGlobalLevel(), expected[i]);
103 for (size_t i = 0; i < charLevels.size(); ++i) { variable
104 SetDomainLevel(domain, ShortStr2LogLevel(charLevels[i]));
106 EXPECT_EQ(GetDomainLevel(domain), expected[i]);
110 for (size_t i = 0; i < charLevels.size(); ++i) { variable
111 SetTagLevel(tag, ShortStr2LogLevel(charLevels[i]));
113 EXPECT_EQ(GetTagLevel(tag), expected[i]);
123 for (size_t i = 0; i < logType.size(); ++i) { variable
[all …]
/base/startup/init/services/init/lite/
Dinit_jobs.c34 for (int i = 0; i < g_jobCnt; i++) { in DumpAllJobs() local
35 INIT_LOGV("\tjob name: %s", g_jobs[i].name); in DumpAllJobs()
36 if (g_jobs[i].cmdLines == NULL) { in DumpAllJobs()
40 for (int j = 0; j < g_jobs[i].cmdLines->cmdNum; j++) { in DumpAllJobs()
41 CmdLine *cmd = &g_jobs[i].cmdLines->cmds[j]; in DumpAllJobs()
118 for (int i = 0; i < jobArrSize; ++i) { in ParseAllJobs() local
119 cJSON *jobItem = cJSON_GetArrayItem(jobArr, i); in ParseAllJobs()
120 ParseJob(jobItem, &(tmp[i])); in ParseAllJobs()
134 for (int i = 0; i < g_jobCnt; ++i) { in DoJob() local
135 if (strncmp(jobName, g_jobs[i].name, strlen(g_jobs[i].name)) == 0) { in DoJob()
[all …]
/base/notification/common_event_service/test/systemtest/common/acts/actsCESSubscribeInfoTest/
DactsCESSubscribeInfoTest.cpp83 for (int i = 1; i <= stLevel_.CESLevel; i++) { variable
88 GTEST_LOG_(INFO) << "CES_SubscribeInfo_Priority_0100 failed ,frequency: " << i;
112 for (int i = 1; i <= stLevel_.CESLevel; i++) { variable
117 GTEST_LOG_(INFO) << "CES_SubscribeInfo_Priority_0200 failed ,frequency: " << i;
141 for (int i = 1; i <= stLevel_.CESLevel; i++) { variable
146 GTEST_LOG_(INFO) << "CES_SubscribeInfo_Priority_0300 failed ,frequency: " << i;
170 for (int i = 1; i <= stLevel_.CESLevel; i++) { variable
175 GTEST_LOG_(INFO) << "CES_SubscribeInfo_Priority_0400 failed ,frequency: " << i;
199 for (int i = 1; i <= stLevel_.CESLevel; i++) { variable
204 GTEST_LOG_(INFO) << "CES_SubscribeInfo_Priority_0500 failed ,frequency: " << i;
[all …]
/base/hiviewdfx/hilog/services/hilogd/include/
Dlog_filter.h48 for (int i = 0; i < domainCount; i++) { in Print() local
49 std::cout << " domain[" << i << "]: " << domains[i] << std::endl; in Print()
53 for (int i = 0; i < tagCount; i++) { in Print() local
54 std::cout << " tag[" << i << "]: " << tags[i] << std::endl; in Print()
58 for (int i = 0; i < static_cast<int>(pidCount); i++) { in Print() local
59 std::cout << " pid[" << i << "]" << pids[i] << std::endl; in Print()
/base/update/updater/services/diffpatch/diff/
Dblocks_diff.cpp286 int64_t i = 0; in ComputeLength() local
289 …while (((lastScan_ + i) < currentOffset_) && ((lastPos_ + i) < static_cast<int64_t>(oldInfo.length… in ComputeLength()
290 if (oldInfo.buffer[lastPos_ + i] == newInfo.buffer[lastScan_ + i]) { in ComputeLength()
293 i++; in ComputeLength()
294 if ((s * MULTIPLE_TWO - i) > (tmp * MULTIPLE_TWO - lengthFront)) { in ComputeLength()
296 lengthFront = i; in ComputeLength()
302 for (i = 1; (currentOffset_ >= lastScan_ + i) && (matchPos_ >= i); i++) { in ComputeLength()
303 if (oldInfo.buffer[matchPos_ - i] == newInfo.buffer[currentOffset_ - i]) { in ComputeLength()
306 if ((s * MULTIPLE_TWO - i) > (tmp * MULTIPLE_TWO - lengthBack)) { in ComputeLength()
308 lengthBack = i; in ComputeLength()
[all …]
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
Dcert_manager_query.c50 for (uint32_t i = 0; i < pathCount; i++) { in CmFreePathList() local
51 pList[i].size = 0; in CmFreePathList()
52 CM_FREE_PTR(pList[i].data); in CmFreePathList()
66 uint32_t i = 0; in ConstrutPathList() local
69 if (i >= dirCount) { in ConstrutPathList()
81 ret = MallocCertPath(&cPathList[i], pathBuf); /* uniformly free memory by caller */ in ConstrutPathList()
86 if (sprintf_s((char *)cPathList[i].data, cPathList[i].size, "%s", pathBuf) < 0) { in ConstrutPathList()
90 i++; in ConstrutPathList()
94 if (i != dirCount) { /* real dir count less than dirCount */ in ConstrutPathList()
194 for (uint32_t i = 0; i < certCount; i++) { in CmFreeCertFiles() local
[all …]
/base/startup/init/services/param/liteos/
Dparam_service.c43 int i = 0; in StringTrim() local
44 while (*tmp != '\0' && i < size) { in StringTrim()
45 buffer[i++] = *tmp; in StringTrim()
48 if (i >= size) { in StringTrim()
51 while (i > 0) { in StringTrim()
52 if (buffer[i] == '"') { in StringTrim()
53 buffer[i] = '\0'; in StringTrim()
56 i--; in StringTrim()
78 for (size_t i = 0; i < ARRAY_LENGTH(g_paramDefCfgNodes); i++) { in InitParamService() local
79 …ARAM_LOGV("InitParamService name %s = %s", g_paramDefCfgNodes[i].name, g_paramDefCfgNodes[i].value… in InitParamService()
[all …]
/base/hiviewdfx/hidumper/frameworks/native/src/common/
Ddumper_opts.cpp167 for (size_t i = 0; i < abilitieNames_.size(); i++) { in CheckOptions() local
168 if (!DumpUtils::StrToId(abilitieNames_[i])) { in CheckOptions()
169 errStr = abilitieNames_[i]; in CheckOptions()
175 for (size_t i = 0; i < systemArgs_.size(); i++) { in CheckOptions() local
176 if (std::find(systemList.begin(), systemList.end(), systemArgs_[i]) == systemList.end()) { in CheckOptions()
177 errStr = systemArgs_[i]; in CheckOptions()
203 for (size_t i = 0; i < logArgs_.size(); i++) { in Dump() local
204 …DUMPER_HILOGD(MODULE_COMMON, "debug| logArgs[%{public}zu]_=%{public}s", i, logArgs_[i].c_str()); in Dump()
212 for (size_t i = 0; i < systemArgs_.size(); i++) { in Dump() local
213 …R_HILOGD(MODULE_COMMON, "debug| systemArgs[%{public}zu]=%{public}s", i, systemArgs_[i].c_str()); in Dump()
[all …]
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/js/test/unittest/
DExampleJsunit.test.js186 for (let i = 0; i < loopTimes; i++) {
187 console.info("--------FaultlogJsTest_005 3 + " + i + "----------");
188 faultlogger.addFaultLog(i - 200,
189 faultlogger.FaultType.CPP_CRASH, module, "faultloggertestsummary05 " + i);
198 for (let i = 0; i < loopTimes; i++) {
199 … console.info("faultloggertestsummary05 " + i + " fullLog.length " + ret[i].fullLog.length);
200 console.info(ret[i].fullLog);
201 … if (ret[i].fullLog.indexOf("faultloggertestsummary05 " + (loopTimes - 1 - i)) != -1) {
202 console.info("FaultlogJsTest_005 " + ret[i].fullLog.length);
233 for (let i = 0; i < loopTimes; i++) {
[all …]
/base/notification/common_event_service/test/systemtest/common/acts/actsCESCESpublishInfoTest/
DactsCESCESpublishInfoTest.cpp87 for (int i = 1; i <= stLevel_.CESLevel; i++) { variable
93 GTEST_LOG_(INFO) << "CES_PublishInfo_Sticky_0100 failed, frequency: " << i;
120 for (int i = 1; i <= stLevel_.CESLevel; i++) { variable
126 GTEST_LOG_(INFO) << "CES_PublishInfo_Sticky_0200 failed, frequency: " << i;
152 for (int i = 1; i <= stLevel_.CESLevel; i++) { variable
158 GTEST_LOG_(INFO) << "CES_PublishInfo_Sticky_0300 failed, frequency: " << i;
184 for (int i = 1; i <= stLevel_.CESLevel; i++) { variable
190 GTEST_LOG_(INFO) << "CES_PublishInfo_Sticky_0400 failed, frequency: " << i;
215 for (int i = 1; i <= stLevel_.CESLevel; i++) { variable
220 GTEST_LOG_(INFO) << "CES_PublishInfo_Sticky_0500 failed, frequency: " << i;
[all …]
/base/hiviewdfx/hidumper/client/native/
Ddump_client_main.cpp41 for (int i = 0; i < argc; i++) { in Main() local
42 if (argv[i] == nullptr) { in Main()
43 LOG_ERR("argument(%d) is null.\n", i); in Main()
46 size_t len = strlen(argv[i]); in Main()
48 LOG_ERR("argument(%d) is empty.\n", i); in Main()
52 LOG_ERR("too long argument(%d), limit size %d.\n", i, SINGLE_ARG_MAXLEN); in Main()
57 for (int i = 0; i < argc; i++) { in Main() local
58 args.push_back(Str8ToStr16(std::string(argv[i]))); in Main()
/base/security/device_security_level/oem_property/ohos/impl/
Dhks_adapter.c113 for (uint32_t i = 0; i < (*certChain)->certsCount; i++) { in ConstructHksCertChain() local
114 (*certChain)->certs[i].size = 0; in ConstructHksCertChain()
115 (*certChain)->certs[i].data = NULL; in ConstructHksCertChain()
117 for (uint32_t i = 0; i < (*certChain)->certsCount; i++) { in ConstructHksCertChain() local
118 (*certChain)->certs[i].size = certChainParam->certDataSize; in ConstructHksCertChain()
119 (*certChain)->certs[i].data = (uint8_t *)MALLOC((*certChain)->certs[i].size); in ConstructHksCertChain()
120 if ((*certChain)->certs[i].data == NULL) { in ConstructHksCertChain()
125 …(void)memset_s((*certChain)->certs[i].data, certChainParam->certDataSize, 0, certChainParam->certD… in ConstructHksCertChain()
135 for (uint32_t i = 0; i < certChain->certsCount; i++) { in DestroyHksCertChain() local
136 if (certChain->certs[i].data != NULL) { in DestroyHksCertChain()
[all …]
/base/security/device_security_level/baselib/utils/src/
Dutils_hexstring.c43 for (uint32_t i = 0; i < hexLen; i++) { in ByteToHexString() local
44 …str[i * BYTE_TO_HEX_OPER_LENGTH] = HexToChar((hex[i] & 0xF0) >> 4); /* shift 4 right for filling */ in ByteToHexString()
45 str[i * BYTE_TO_HEX_OPER_LENGTH + 1] = HexToChar(hex[i] & 0x0F); /* get low four bits */ in ByteToHexString()
63 for (uint32_t i = 0; i < outLen; i++) { in HexStringToByte() local
64 nibble[0] = str[i * BYTE_TO_HEX_OPER_LENGTH]; /* hex conversion */ in HexStringToByte()
65 nibble[1] = str[i * BYTE_TO_HEX_OPER_LENGTH + 1]; /* hex conversion */ in HexStringToByte()
77 hex[i] = nibble[0] << 4; /* Set the high nibble, shift 4 */ in HexStringToByte()
78 hex[i] |= nibble[1]; /* Set the low nibble */ in HexStringToByte()
Dutils_base64.c77 for (uint32_t i = 0; i < fromLen;) { in Base64Encode() local
78 uint32_t a = (i < fromLen) ? (uint8_t)from[i] : 0; in Base64Encode()
79 i++; in Base64Encode()
80 uint32_t b = (i < fromLen) ? (uint8_t)from[i] : 0; in Base64Encode()
81 i++; in Base64Encode()
82 uint32_t c = (i < fromLen) ? (uint8_t)from[i] : 0; in Base64Encode()
83 i++; in Base64Encode()
131 for (uint32_t i = 0; i < fromLen;) { in Base64Decode() local
132 uint32_t a = g_base64DecodeTable[from[i++]]; in Base64Decode()
133 uint32_t b = g_base64DecodeTable[from[i++]]; in Base64Decode()
[all …]
/base/security/huks/test/unittest/huks_lite_test/common/
Dhks_test_api_performance.c32 for (uint32_t i = 0; i < performTimes; ++i) { in HksGenerateKeyRun() local
49 for (uint32_t i = 0; i < performTimes; ++i) { in HksEncryptRun() local
71 for (uint32_t i = 0; i < performTimes; ++i) { in HksDecryptRun() local
92 for (uint32_t i = 0; i < performTimes; ++i) { in HksMacRun() local
113 for (uint32_t i = 0; i < performTimes; ++i) { in HksDeriveKeyRun() local
134 for (uint32_t i = 0; i < performTimes; ++i) { in HksKeyExistRun() local
150 for (uint32_t i = 0; i < performTimes; ++i) { in HksGenerateRandomRun() local
171 for (uint32_t i = 0; i < performTimes; ++i) { in HksAgreeKeyRun() local
192 for (uint32_t i = 0; i < performTimes; ++i) { in HksHashRun() local
214 for (uint32_t i = 0; i < performTimes; ++i) { in HksBnExpModRun() local

12345678910>>...42