/base/telephony/sms_mms/test/fuzztest/smspdubuffer_fuzzer/ |
D | smspdubuffer_fuzzer.cpp | 36 for (uint16_t i = 0; i < desLen; i++) { in ReadBuffer() local 37 buffer->SetIndex(i); in ReadBuffer() 40 for (uint16_t i = 0; i < desLen; i++) { in ReadBuffer() local 41 buffer->MoveBack(i); in ReadBuffer() 43 for (uint16_t i = 0; i < desLen; i++) { in ReadBuffer() local 44 buffer->MoveForward(i); in ReadBuffer() 50 for (uint16_t i = 0; i < desLen; i++) { in ReadBuffer() local 57 for (uint16_t i = 0; i < desLen; i++) { in ReadBuffer() local 73 for (uint16_t i = 0; i < size; i++) { in WriteBuffer() local 74 buffer->SetIndex(i); in WriteBuffer() [all …]
|
/base/powermgr/battery_statistics/test/unittest/src/servicetest/utils/ |
D | string_filter.cpp | 41 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/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/ |
D | stringfilter.cpp | 41 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/ |
D | account_multi_task_manager.c | 26 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/ |
D | string_util.c | 58 for (uint32_t i = 0; i < byteLen; i++) { in ByteToHexString() local 59 …hexStr[i * BYTE_TO_HEX_OPER_LENGTH] = HexToChar((byte[i] & 0xF0) >> 4); /* 4: shift right for fill… in ByteToHexString() 60 hexStr[i * BYTE_TO_HEX_OPER_LENGTH + 1] = HexToChar(byte[i] & 0x0F); /* get low four bits */ in ByteToHexString() 91 for (uint32_t i = 0; i < realHexLen / BYTE_TO_HEX_OPER_LENGTH; i++) { in HexStringToByte() local 92 uint8_t high = CharToHex(hexStr[i * BYTE_TO_HEX_OPER_LENGTH]); in HexStringToByte() 93 uint8_t low = CharToHex(hexStr[i * BYTE_TO_HEX_OPER_LENGTH + 1]); in HexStringToByte() 97 byte[i] = high << 4; /* 4: Set the high nibble */ in HexStringToByte() 98 byte[i] |= low; /* Set the low nibble */ in HexStringToByte() 136 for (int i = 0; i < 2; i++) { // at most two end fillings '=' in Base64StringToByte() local 137 if (base64Str[strLen - 1 - i] == '=') { in Base64StringToByte() [all …]
|
/base/location/services/location_locator/locator/source/ |
D | work_record.cpp | 35 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/ |
D | hks_ability.c | 27 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/ |
D | hvb_rsa.c | 64 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/security/certificate_framework/frameworks/ability/src/ |
D | cf_ability.c | 25 for (uint32_t i = 0; i < CF_ABILITY_MAX_SIZE; ++i) { in RegisterAbility() local 26 if (g_abilityList[i].id == id) { in RegisterAbility() 28 } else if (g_abilityList[i].id != 0) { in RegisterAbility() 32 g_abilityList[i].id = id; in RegisterAbility() 33 g_abilityList[i].func = func; in RegisterAbility() 42 for (uint32_t i = 0; i < CF_ABILITY_MAX_SIZE; ++i) { in GetAbility() local 43 if (g_abilityList[i].id == id) { in GetAbility() 44 return g_abilityList[i].func; in GetAbility()
|
/base/startup/init/test/exec_test/ |
D | fd_holder_test.c | 32 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/ |
D | protector_thermal_zone_info.cpp | 81 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/ |
D | string_utils.cpp | 57 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/ |
D | adapter_test.cpp | 96 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/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/encode/ |
D | raw_data_builder_json_parser.cpp | 75 for (int i = 0; i < CHAR_RANGE; ++i) { in InitNoneStatus() local 76 statusTabs_[STATUS_NONE][i] = STATUS_NONE; in InitNoneStatus() 83 for (int i = 0; i < CHAR_RANGE; ++i) { in InitRunStatus() local 84 statusTabs_[STATUS_RUN][i] = STATUS_RUN; in InitRunStatus() 93 for (int i = 0; i < CHAR_RANGE; ++i) { in InitKeyParseStatus() local 94 statusTabs_[STATUS_KEY_PARSE][i] = STATUS_KEY_PARSE; in InitKeyParseStatus() 101 for (int i = 0; i < CHAR_RANGE; ++i) { in InitValueParseStatus() local 102 if ((i >= NUM_MIN_CHAR && i <= NUM_MAX_CHAR) || (i == MINUS_CHAR)) { in InitValueParseStatus() 103 statusTabs_[STATUS_VALUE_PARSE][i] = STATUS_INT_PARSE; in InitValueParseStatus() 106 statusTabs_[STATUS_VALUE_PARSE][i] = STATUS_VALUE_PARSE; in InitValueParseStatus() [all …]
|
/base/hiviewdfx/hiview/base/event_raw/encoded/ |
D | raw_data_builder_json_parser.cpp | 75 for (int i = 0; i < CHAR_RANGE; ++i) { in InitNoneStatus() local 76 statusTabs_[STATUS_NONE][i] = STATUS_NONE; in InitNoneStatus() 83 for (int i = 0; i < CHAR_RANGE; ++i) { in InitRunStatus() local 84 statusTabs_[STATUS_RUN][i] = STATUS_RUN; in InitRunStatus() 93 for (int i = 0; i < CHAR_RANGE; ++i) { in InitKeyParseStatus() local 94 statusTabs_[STATUS_KEY_PARSE][i] = STATUS_KEY_PARSE; in InitKeyParseStatus() 101 for (int i = 0; i < CHAR_RANGE; ++i) { in InitValueParseStatus() local 102 if ((i >= NUM_MIN_CHAR && i <= NUM_MAX_CHAR) || (i == MINUS_CHAR)) { in InitValueParseStatus() 103 statusTabs_[STATUS_VALUE_PARSE][i] = STATUS_INT_PARSE; in InitValueParseStatus() 106 statusTabs_[STATUS_VALUE_PARSE][i] = STATUS_VALUE_PARSE; in InitValueParseStatus() [all …]
|
/base/powermgr/thermal_manager/services/native/src/thermal_policy/ |
D | thermal_config_sensor_cluster.cpp | 43 for (uint32_t i = 0; i < sensorInfo->second.size(); ++i) { in CheckStandard() local 44 uint32_t expectedLev = i + 1; in CheckStandard() 45 if (sensorInfo->second.at(i).level != expectedLev) { in CheckStandard() 107 for (uint32_t i = level; i < levItems.size(); i++) { in AscJudgment() local 108 if (curTemp < levItems.at(i).threshold) { in AscJudgment() 111 level = levItems.at(i).level; in AscJudgment() 114 for (uint32_t i = level; i >= 1; i--) { in AscJudgment() local 115 if (curTemp >= levItems.at(i - 1).thresholdClr) { in AscJudgment() 118 level = levItems.at(i - 1).level - 1; in AscJudgment() 124 for (uint32_t i = level; i >= 1; i--) { in AscJudgment() local [all …]
|
/base/startup/init/services/init/lite/ |
D | init_jobs.c | 34 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/ |
D | actsCESSubscribeInfoTest.cpp | 83 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/ |
D | log_filter.h | 48 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/telephony/sms_mms/test/fuzztest/cdmasmsdecode_fuzzer/ |
D | cdmasmsdecode_fuzzer.cpp | 45 for (uint8_t i = 0; i < size; i++) { in TeleserviceIdDecode() local 46 ss1 << data[i]; in TeleserviceIdDecode() 67 for (uint8_t i = 0; i < size; i++) { in ServiceCategoryDecode() local 68 ss1 << data[i]; in ServiceCategoryDecode() 89 for (uint8_t i = 0; i < size; i++) { in BearerReplyDecode() local 90 ss1 << data[i]; in BearerReplyDecode() 111 for (uint8_t i = 0; i < size; i++) { in CauseCodesDecode() local 112 ss1 << data[i]; in CauseCodesDecode() 133 for (uint8_t i = 0; i < size; i++) { in AddressParameterDecode() local 134 ss1 << data[i]; in AddressParameterDecode() [all …]
|
/base/update/updater/services/diffpatch/diff/ |
D | blocks_diff.cpp | 302 int64_t i = 0; in ComputeLength() local 305 …while (((lastScan_ + i) < currentOffset_) && ((lastPos_ + i) < static_cast<int64_t>(oldInfo.length… in ComputeLength() 306 if (oldInfo.buffer[lastPos_ + i] == newInfo.buffer[lastScan_ + i]) { in ComputeLength() 309 i++; in ComputeLength() 310 if ((s * MULTIPLE_TWO - i) > (tmp * MULTIPLE_TWO - lengthFront)) { in ComputeLength() 312 lengthFront = i; in ComputeLength() 318 for (i = 1; (currentOffset_ >= lastScan_ + i) && (matchPos_ >= i); i++) { in ComputeLength() 319 if (oldInfo.buffer[matchPos_ - i] == newInfo.buffer[currentOffset_ - i]) { in ComputeLength() 322 if ((s * MULTIPLE_TWO - i) > (tmp * MULTIPLE_TWO - lengthBack)) { in ComputeLength() 324 lengthBack = i; in ComputeLength() [all …]
|
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/ |
D | cert_manager_query.c | 50 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/security/dlp_permission_service/frameworks/common/src/ |
D | hex_string.cpp | 39 for (uint32_t i = 0; i < byteLen; i++) { in ByteToHexString() local 40 …hexStr[i * BYTE_TO_HEX_OPER_LENGTH] = HexToChar((byte[i] & 0xF0) >> 4); // 4: shift right for fil… in ByteToHexString() 41 … hexStr[i * BYTE_TO_HEX_OPER_LENGTH + 1] = HexToChar(byte[i] & 0x0F); // get low four bits in ByteToHexString() 72 for (uint32_t i = 0; i < realHexLen / BYTE_TO_HEX_OPER_LENGTH; i++) { in HexStringToByte() local 73 uint8_t high = CharToHex(hexStr[i * BYTE_TO_HEX_OPER_LENGTH]); in HexStringToByte() 74 uint8_t low = CharToHex(hexStr[i * BYTE_TO_HEX_OPER_LENGTH + 1]); in HexStringToByte() 78 byte[i] = high << 4; // 4: Set the high nibble in HexStringToByte() 79 byte[i] |= low; // Set the low nibble in HexStringToByte()
|
/base/startup/init/services/param/liteos/ |
D | param_service.c | 43 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/hiview/base/ |
D | dispatch_config.cpp | 72 for (int i = 0; i < jsonSize; ++i) { in HiviewRuleParser() local 73 if (!jsonTypeArray[i].isString()) { in HiviewRuleParser() 76 std::string key = jsonTypeArray[i].asString(); in HiviewRuleParser() 94 for (int i = 0; i < jsonSize; i++) { in HiviewRuleParser() local 95 if (!jsonTagArray[i].isString()) { in HiviewRuleParser() 98 dispatchRule_->tagList.insert(jsonTagArray[i].asString()); in HiviewRuleParser() 113 for (int i = 0; i < jsonSize; i++) { in HiviewRuleParser() local 114 if (!jsonEventArray[i].isString()) { in HiviewRuleParser() 117 dispatchRule_->eventList.insert(jsonEventArray[i].asString()); in HiviewRuleParser() 132 for (int i = 0; i < jsonSize; i++) { in HiviewRuleParser() local [all …]
|