Home
last modified time | relevance | path

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

12345678910>>...34

/base/compileruntime/js_util_module/container/vector/
Djs_vector.ts70 for (let i = 0; i < obj.length; i++) {
71 keys.push(i.toString());
119 for (let i = this.elementNum; i > index; i--) {
120 this[i] = this[i - 1];
126 for (let i = 0; i < this.elementNum; i++) {
127 if (this[i] === element) {
137 for (let i = 0; i < this.elementNum; i++) {
138 if (element === this[i]) {
139 return i;
162 for (let i = index; i < this.elementNum - 1; i++) {
[all …]
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/
Dstringfilter.cpp35 for (int i = 0; i < CHAR_RANGE; ++i) { in StringFilter() local
37 ss << static_cast<char>(i); in StringFilter()
38 ss >> charTab_[i]; in StringFilter()
47 for (int i = 0; i < CHAR_RANGE; ++i) { in StringFilter() local
48 statTab_[STATE_BEGIN][i] = STATE_STOP; in StringFilter()
50 for (int i = 'a'; i <= 'z'; ++i) { in StringFilter() local
51 statTab_[STATE_BEGIN][i] = STATE_RUN; in StringFilter()
53 for (int i = 'A'; i <= 'Z'; ++i) { in StringFilter() local
54 statTab_[STATE_BEGIN][i] = STATE_RUN; in StringFilter()
57 for (int i = 0; i < CHAR_RANGE; ++i) { in StringFilter() local
[all …]
/base/compileruntime/js_util_module/container/arraylist/
Djs_arraylist.ts70 for (let i = 0; i < obj.length; i++) {
71 keys.push(i.toString());
119 for (let i = this.elementNum; i > index; i--) {
120 this[i] = this[i - 1];
126 for (let i = 0; i < this.elementNum; i++) {
127 if (this[i] === element) {
134 for (let i = 0; i < this.elementNum; i++) {
135 if (element === this[i]) {
136 return i;
146 for (let i = index; i < this.elementNum - 1; i++) {
[all …]
/base/location/location_locator/locator/source/
Dwork_record.cpp35 for (int i = 0; i < num; i++) { in ReadFromParcel() local
56 for (int i = 0; i < num_; i++) { in Marshalling() local
57 parcel.WriteInt32(uids_[i]); in Marshalling()
58 parcel.WriteInt32(pids_[i]); in Marshalling()
59 parcel.WriteString(names_[i]); in Marshalling()
71 for (int i = 0; i < num_; i++) { in MarshallingWorkRecord() local
72 parcel.WriteInt32(uids_[i]); in MarshallingWorkRecord()
76 for (int i = 0; i < num_; i++) { in MarshallingWorkRecord() local
77 parcel.WriteString16(Str8ToStr16(names_[i])); in MarshallingWorkRecord()
86 for (int i = 0; i < num_; i++) { in ToString() local
[all …]
/base/security/deviceauth/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/update/updateservice/engine/src/
Dupdate_helper.cpp67 for (size_t i = 0; i < sizeof(info.result) / sizeof(info.result[0]); i++) { in WriteVersionInfo() local
68 data.WriteUint64(static_cast<uint64_t>(info.result[i].size)); in WriteVersionInfo()
69 data.WriteInt32(static_cast<int32_t>(info.result[i].packageType)); in WriteVersionInfo()
71 data.WriteString16(Str8ToStr16(info.result[i].versionName)); in WriteVersionInfo()
72 data.WriteString16(Str8ToStr16(info.result[i].versionCode)); in WriteVersionInfo()
73 data.WriteString16(Str8ToStr16(info.result[i].verifyInfo)); in WriteVersionInfo()
74 data.WriteString16(Str8ToStr16(info.result[i].descriptPackageId)); in WriteVersionInfo()
77 for (size_t i = 0; i < sizeof(info.descriptInfo) / sizeof(info.descriptInfo[0]); i++) { in WriteVersionInfo() local
78 data.WriteString16(Str8ToStr16(info.descriptInfo[i].descriptPackageId)); in WriteVersionInfo()
79 data.WriteString16(Str8ToStr16(info.descriptInfo[i].content)); in WriteVersionInfo()
[all …]
/base/startup/init_lite/services/param/manager/
Dparam_utils.c50 for (int i = currLen - 1; i >= 0; i--) { in TrimString() local
51 if (string[i] == ' ' || string[i] == '\0') { in TrimString()
52 string[i] = '\0'; in TrimString()
62 size_t i = 0; in GetSubStringInfo() local
64 for (; i < strlen(buff); i++) { in GetSubStringInfo()
65 if (!isspace(buff[i])) { in GetSubStringInfo()
70 if (buff[i] == '#') { in GetSubStringInfo()
77 for (; i < buffLen; i++) { in GetSubStringInfo()
78 if (buff[i] == '\n' || buff[i] == '\r' || buff[i] == '\0') { in GetSubStringInfo()
81 if (buff[i] == delimiter && valueCurr != 0) { in GetSubStringInfo()
[all …]
/base/security/huks/frameworks/huks_standard/main/common/src/
Dhks_ability.c24 for (int i = 0; i < HKS_ABILITY_MAX_SIZE; i++) { in RegisterAbility() local
25 if (g_abilityList[i].id == id) { in RegisterAbility()
27 } else if (g_abilityList[i].id != 0) { in RegisterAbility()
30 g_abilityList[i].id = id; in RegisterAbility()
31 g_abilityList[i].func = func; in RegisterAbility()
32 HKS_LOG_I("register ability i = %d, id = 0x%x", i, id); in RegisterAbility()
41 for (int i = 0; i < HKS_ABILITY_MAX_SIZE; i++) { in GetAbility() local
42 if (g_abilityList[i].id == id) { in GetAbility()
43 return g_abilityList[i].func; in GetAbility()
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/js/test/unittest/
DExampleJsunit.test.js103 for (let i = 0; i < loopTimes; i++) {
104 console.info("--------FaultlogJsTest_002 3 + " + i + "----------");
105 …faultlogger.addFaultLog(i, faultlogger.FaultType.CPP_CRASH, module, "faultloggertestsummary02 " +
114 for (let i = 0; i < loopTimes; i++) {
115 … console.info("faultloggertestsummary02 " + i + " fullLog.length " + ret[i].fullLog.length);
116 console.info(ret[i].fullLog);
117 … if (ret[i].fullLog.indexOf("faultloggertestsummary02 " + (loopTimes - 1 - i)) != -1) {
118 console.info("FaultlogJsTest_002 " + ret[i].fullLog.length);
149 for (let i = 0; i < loopTimes; i++) {
150 console.info("--------FaultlogJsTest_003 + " + i + "----------");
[all …]
/base/global/i18n_standard/frameworks/zone/test/unittest/
Dzone_util_test.cpp56 for (int i = 0; i < count; ++i) { variable
57 string out = util.GetDefaultZone(countries[i].c_str());
58 EXPECT_EQ(out, expects[i]);
74 for (int i = 0; i < count; ++i) { variable
75 string out = util.GetDefaultZone(countries[i].c_str(), offsets[i]);
76 EXPECT_EQ(out, expects[i]);
94 for (decltype(expects.size()) i = 0; i < expects.size(); ++i) { variable
95 EXPECT_EQ(expects[i], out[i]);
114 for (decltype(expects.size()) i = 0; i < expects.size(); ++i) { variable
115 EXPECT_EQ(expects[i], out[i]);
[all …]
/base/miscservices/inputmethod/services/src/
Dperuser_setting.cpp107 for (int i = 0; i < (int)property->mTypes.size(); i++) { in OnPackageAdded() local
108 types.push_back(property->mTypes[i]->getHashCode()); in OnPackageAdded()
217 for (int i = 0; i < (int)inputMethodProperties.size(); i++) { in OnAdvanceToNext() local
218 imeId = inputMethodProperties[i]->mImeId; in OnAdvanceToNext()
226 firstEnabledProperty = inputMethodProperties[i]; in OnAdvanceToNext()
290 for (int i = 0; i < size; i++) { in Dump() local
291 dprintf(fd, " [%d] ImeId = %s\n", i, Utils::to_utf8(imeList[i]).c_str()); in Dump()
292 std::vector<int> hashCodeList = inputMethodSetting.GetEnabledKeyboardTypes(imeList[i]); in Dump()
321 for (int i = 0; i < (int)inputMethodProperties.size(); i++) { in GetCurrentInputMethod() local
322 if (currentImeId == inputMethodProperties[i]->mImeId) { in GetCurrentInputMethod()
[all …]
/base/powermgr/thermal_manager/application/protector/src/policy/
Dprotector_thermal_zone_info.cpp80 for (uint32_t i = level; i < tzItemList_.size(); i++) { in HandleAscNextUpTemp() local
81 if (curTemp >= tzItemList_.at(i).threshold) { in HandleAscNextUpTemp()
82 level = tzItemList_.at(i).level; in HandleAscNextUpTemp()
92 for (uint32_t i = level; i >= 1; i--) { in HandleAscCurDownTemp() local
93 if (curTemp < tzItemList_.at(i - 1).thresholdClr) { in HandleAscCurDownTemp()
94 level = tzItemList_.at(i - 1).level - 1; in HandleAscCurDownTemp()
106 for (uint32_t i = level; i >= 1; i--) { in HandleAscMaxSizeTemp() local
107 if (curTemp < tzItemList_.at(i - 1).thresholdClr) { in HandleAscMaxSizeTemp()
108 level = tzItemList_.at(i - 1).level - 1; in HandleAscMaxSizeTemp()
121 for (uint32_t i = level; i < tzItemList_.size(); i++) { in HandleAscMinSizeTemp() local
[all …]
/base/update/updater/services/diffpatch/diff/
Dblocks_diff.cpp237 int64_t i = 0; in ComputeLength() local
240 …for (; ((lastScan_ + i) < currentOffset_) && ((lastPos_ + i) < static_cast<int64_t>(oldInfo.length… in ComputeLength()
241 if (oldInfo.buffer[lastPos_ + i] == newInfo.buffer[lastScan_ + i]) { in ComputeLength()
244 i++; in ComputeLength()
245 if ((s * MULTIPLE_TWO - i) > (tmp * MULTIPLE_TWO - lengthFront)) { in ComputeLength()
247 lengthFront = i; in ComputeLength()
253 for (i = 1; (currentOffset_ >= lastScan_ + i) && (matchPos_ >= i); i++) { in ComputeLength()
254 if (oldInfo.buffer[matchPos_ - i] == newInfo.buffer[currentOffset_ - i]) { in ComputeLength()
257 if ((s * MULTIPLE_TWO - i) > (tmp * MULTIPLE_TWO - lengthBack)) { in ComputeLength()
259 lengthBack = i; in ComputeLength()
[all …]
/base/telephony/sms_mms/utils/
Dstring_utils.cpp45 for (std::string::size_type i = 0; i < data.size(); ++i) { in StringToHex() local
46 unsigned char temp = static_cast<unsigned char>(data[i]) >> HEX_OFFSET; in StringToHex()
47 ss << HEX_TABLE[temp] << HEX_TABLE[static_cast<unsigned char>(data[i]) & 0xf]; in StringToHex()
56 for (int i = 0; i < byteLength; ++i) { in StringToHex() local
57 unsigned char temp = static_cast<unsigned char>(data[i]) >> HEX_OFFSET; in StringToHex()
58 ss << HEX_TABLE[temp] << HEX_TABLE[static_cast<unsigned char>(data[i]) & 0xf]; in StringToHex()
67 for (std::size_t i = 0; i < data.size(); ++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()
82 for (size_t i = 0; i < str.length() - 1; i += STEP_2BIT) { in HexToString() local
[all …]
/base/notification/ces_standard/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/startup/init_lite/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/customization/config_policy/frameworks/config_policy/src/
Dconfig_policy_utils.c26 for (size_t i = 0; i < MAX_CFG_POLICY_DIRS_CNT; i++) { in FreeCfgFiles() local
27 if (res->paths[i] != NULL) { in FreeCfgFiles()
28 free(res->paths[i]); in FreeCfgFiles()
29 res->paths[i] = NULL; in FreeCfgFiles()
65 for (size_t i = MAX_CFG_POLICY_DIRS_CNT; i > 0; i--) { in GetOneCfgFile() local
66 if (dirs->paths[i - 1] == NULL) { in GetOneCfgFile()
69 … if (snprintf_s(buf, bufLength, bufLength - 1, "%s/%s", dirs->paths[i - 1], pathSuffix) == -1) { in GetOneCfgFile()
99 for (size_t i = 0; i < MAX_CFG_POLICY_DIRS_CNT; i++) { in GetCfgFiles() local
100 if (dirs->paths[i] == NULL) { in GetCfgFiles()
103 … if (snprintf_s(buf, MAX_PATH_LEN, MAX_PATH_LEN - 1, "%s/%s", dirs->paths[i], pathSuffix) == -1) { in GetCfgFiles()
[all …]
/base/notification/ces_standard/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/frameworks/native/src/common/
Ddumper_opts.cpp161 for (size_t i = 0; i < abilitieNames_.size(); i++) { in CheckOptions() local
162 if (!DumpUtils::StrToId(abilitieNames_[i])) { in CheckOptions()
163 errStr = abilitieNames_[i]; in CheckOptions()
169 for (size_t i = 0; i < systemArgs_.size(); i++) { in CheckOptions() local
170 if (std::find(systemList.begin(), systemList.end(), systemArgs_[i]) == systemList.end()) { in CheckOptions()
171 errStr = systemArgs_[i]; in CheckOptions()
197 for (size_t i = 0; i < logArgs_.size(); i++) { in Dump() local
198 …DUMPER_HILOGD(MODULE_COMMON, "debug| logArgs[%{public}zu]_=%{public}s", i, logArgs_[i].c_str()); in Dump()
206 for (size_t i = 0; i < systemArgs_.size(); i++) { in Dump() local
207 …R_HILOGD(MODULE_COMMON, "debug| systemArgs[%{public}zu]=%{public}s", i, systemArgs_[i].c_str()); in Dump()
[all …]
/base/hiviewdfx/hilog/test/moduletest/common/
Dhilog_base_ndk_test.cpp111 for (uint32_t i = 0; i < logLen; ++i) { in RandomStringGenerator() local
121 for (uint32_t i = 0; i < logCount; ++i) { in HiLogWriteTest() local
122 loggingMethod(logMsg + std::to_string(i)); in HiLogWriteTest()
147 for(uint32_t i = 0; i < METHODS_NUMBER; ++i) { variable
148 std::cout << "Starting " << METHOD_NAMES[i] << " test\n";
149 HiLogWriteTest(LOG_C_METHODS[i], SOME_LOGS, SHORT_LOG, i == DEBUG_METHOD);
155 for(uint32_t i = 0; i < METHODS_NUMBER; ++i) { variable
156 std::cout << "Starting " << METHOD_NAMES[i] << " test\n";
157 HiLogWriteTest(LOG_C_METHODS[i], MORE_LOGS, SHORT_LOG, i == DEBUG_METHOD);
163 for(uint32_t i = 0; i < METHODS_NUMBER; ++i) { variable
[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.c75 for (uint32_t i = 0; i < fromLen;) { in Base64Encode() local
76 uint32_t a = (i < fromLen) ? (uint8_t)from[i] : 0; in Base64Encode()
77 i++; in Base64Encode()
78 uint32_t b = (i < fromLen) ? (uint8_t)from[i] : 0; in Base64Encode()
79 i++; in Base64Encode()
80 uint32_t c = (i < fromLen) ? (uint8_t)from[i] : 0; in Base64Encode()
81 i++; in Base64Encode()
129 for (uint32_t i = 0; i < fromLen;) { in Base64Decode() local
130 uint32_t a = g_base64DecodeTable[from[i++]]; in Base64Decode()
131 uint32_t b = g_base64DecodeTable[from[i++]]; in Base64Decode()
[all …]
/base/powermgr/thermal_manager/services/native/src/thermal_policy/
Dthermal_config_sensor_cluster.cpp111 for (uint32_t i = level; i < vlev.size(); i++) { in AscJudgment() local
112 if (curTemp >= vlev.at(i).threshold) { in AscJudgment()
113 level = vlev.at(i).level; in AscJudgment()
119 for (uint32_t i = level; i >= 1; i--) { in AscJudgment() local
120 if (curTemp < vlev.at(i - 1).thresholdClr) { in AscJudgment()
121 level = vlev.at(i - 1).level - 1; in AscJudgment()
132 for (uint32_t i = level; i >= 1; i--) { in AscJudgment() local
133 if (curTemp < vlev.at(i - 1).thresholdClr) { in AscJudgment()
134 level = vlev.at(i - 1).level - 1; in AscJudgment()
145 for (uint32_t i = level; i < vlev.size(); i++) { in AscJudgment() local
[all …]
/base/global/resmgr_lite/frameworks/resmgr_lite/src/
Dhap_manager.cpp65 for (uint32_t i = 0; i < plurRulesCache_.size(); i++) { in GetPluralRulesAndSelect() local
66 auto pair = plurRulesCache_[i]; in GetPluralRulesAndSelect()
129 size_t i = 0; in FindQualifierValueByName() local
133 for (i = 0; i < len; i++) { in FindQualifierValueByName()
134 HapResource::ValueUnderQualifierDir *path = paths[i]; in FindQualifierValueByName()
140 bestIndex = i; in FindQualifierValueByName()
146 bestIndex = i; in FindQualifierValueByName()
161 size_t i = 0; in FindQualifierValueById() local
165 for (i = 0; i < len; i++) { in FindQualifierValueById()
166 HapResource::ValueUnderQualifierDir *path = paths[i]; in FindQualifierValueById()
[all …]
Dglobal_utils.c115 for (int32_t i = 0; i < count; i++) { in ConvertUint8ArrayToUint32() local
116 value += (array[i] << offset); in ConvertUint8ArrayToUint32()
130 for (int32_t i = strlen(locale) - 1; i >= 0; i--) { in GetValueFromLocale() local
132 value += (((uint8_t)tolower(locale[i])) << offset); in GetValueFromLocale()
144 for (uint32_t i = 0; i < configNum; i++) { in FindOffsetByLanguage() local
145 for (uint32_t j = 0; j < keys[i].keysCount; j++) { in FindOffsetByLanguage()
146 if (keys[i].keyParams[j].type == LANGUAGES && keys[i].keyParams[j].value == value) { in FindOffsetByLanguage()
147 return keys[i].offset; in FindOffsetByLanguage()
184 for (uint32_t i = 0; i < configNum; i++) { in FindOffsetByLangWithScriptOrRegion() local
186 for (uint32_t j = 0; j < keys[i].keysCount; j++) { in FindOffsetByLangWithScriptOrRegion()
[all …]

12345678910>>...34