/base/update/updateservice/services/firmware/utils/src/ |
D | firmware_combine_version_utils.cpp | 40 std::string::size_type start = baseVersion.find(" "); in HandleBaseVersion() local 41 if (start == std::string::npos) { in HandleBaseVersion() 47 base = baseVersion.substr(start); in HandleBaseVersion() 49 base = baseVersion.substr(start, end - start); in HandleBaseVersion() 56 std::string::size_type start = baseVersion.find_last_of("("); in HandleBaseVersionLog() local 58 if ((start == std::string::npos) || (end == std::string::npos)) { in HandleBaseVersionLog() 61 start++; in HandleBaseVersionLog() 62 std::string::size_type mid = start; in HandleBaseVersionLog() 75 log = baseVersion.substr(start, mid - start); in HandleBaseVersionLog() 79 base = baseVersion.substr(start, mid - start); in HandleBaseVersionLog() [all …]
|
/base/security/device_auth/deps_adapter/os_adapter/impl/src/ |
D | hc_time.c | 30 struct timespec start; in HcGetCurTime() local 31 int res = clock_gettime(CLOCK_MONOTONIC, &start); in HcGetCurTime() 36 return start.tv_sec; in HcGetCurTime() 41 struct timespec start; in HcGetCurTimeInMillis() local 42 int res = clock_gettime(CLOCK_MONOTONIC, &start); in HcGetCurTimeInMillis() 47 return start.tv_sec * SECOND_TO_MILLISECOND + start.tv_nsec / MILLISECOND_TO_NANOSECOND; in HcGetCurTimeInMillis()
|
/base/global/i18n_lite/frameworks/i18n/src/ |
D | locale_info.cpp | 290 const char *start = tag; in ParseLanguageTag() local 302 auto tagLength = end - start; in ParseLanguageTag() 303 ConfirmTagType(start, tagLength, type, key, value); in ParseLanguageTag() 304 if (!ParseNormalSubTag(locale, start, tagLength, options, type)) { in ParseLanguageTag() 315 bool LocaleInfo::ParseNormalSubTag(LocaleInfo &locale, const char *start, size_t tagLength, uint16_… in ParseNormalSubTag() argument 318 if ((start == nullptr) || (tagLength == 0)) { in ParseNormalSubTag() 322 if (IsLanguage(start, tagLength)) { in ParseNormalSubTag() 323 locale.language = I18nNewCharString(start, tagLength); in ParseNormalSubTag() 330 if (IsScript(start, tagLength)) { in ParseNormalSubTag() 332 locale.script = I18nNewCharString(start, tagLength); in ParseNormalSubTag() [all …]
|
/base/startup/init/test/moduletest/ |
D | test_utils.cpp | 73 size_t start = 0; in Trim() local 76 while (start < str.size()) { in Trim() 77 if (!isspace(str[start])) { in Trim() 80 start++; in Trim() 83 while (start < end) { in Trim() 90 if (end < start) { in Trim() 94 return str.substr(start, end - start + 1); in Trim() 101 size_t start = 0; in Split() local 103 pos = str.find_first_of(pattern, start); in Split() 104 result.push_back(str.substr(start, pos - start)); in Split() [all …]
|
D | init_test.cfg | 3 "name" : "param:test.randrom.read.start=1", 4 "condition" : "test.randrom.read.start=1", 13 "start group-test-stage2" 20 "start group-test-stage3" 26 "start-mode" : "normal", 32 "start-mode" : "condition", 38 "start-mode" : "condition", 44 "start-mode" : "condition",
|
D | chipset.init.test.cfg | 3 "name" : "param:test.randrom.read.start=1", 4 "condition" : "test.randrom.read.start=1", 18 "start group-test-stage1" 22 "name" : "param:test.randrom.read.start=rm", 23 "condition" : "test.randrom.read.start=rm", 40 "start-mode" : "normal", 44 "on-start" : "test_verdor_init_job"
|
/base/update/updater/services/package/pkg_manager/ |
D | pkg_stream.cpp | 75 int32_t FileStream::Read(PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) in Read() argument 89 if (fseeko64(stream_, start, SEEK_SET) != 0) { in Read() 94 if (start > GetFileLength()) { in Read() 112 int32_t FileStream::Write(const PkgBuffer &data, size_t size, size_t start) in Write() argument 122 if (fseeko64(stream_, start, SEEK_SET) != 0) { in Write() 209 int32_t MemoryMapStream::Read(PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) in Read() argument 215 if (start > memSize_) { in Read() 223 size_t copyLen = GetFileLength() - start; in Read() 226 data.buffer = memMap_ + start; in Read() 228 if (memcpy_s(data.buffer, needRead, memMap_ + start, readLen) != EOK) { in Read() [all …]
|
D | pkg_stream.h | 33 int32_t Read(PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) override in Read() argument 36 UNUSED(start); in Read() 49 int32_t Write(const PkgBuffer &data, size_t size, size_t start) override in Write() argument 53 UNUSED(start); in Write() 96 int32_t Read(PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) override; 98 int32_t Write(const PkgBuffer &data, size_t size, size_t start) override; 124 int32_t Read(PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) override; 126 int32_t Write(const PkgBuffer &data, size_t size, size_t start) override; 174 int32_t Read(PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) override in Read() argument 177 UNUSED(start); in Read() [all …]
|
/base/telephony/cellular_call/services/common/src/ |
D | standardize_utils.cpp | 86 std::string::size_type start = 0; in Split() local 88 while ((pos = str.find(flag, start)) != str.npos) { in Split() 89 vec.push_back(str.substr(start, pos - start)); in Split() 90 start = pos + flag.size(); in Split() 92 if (start != str.size()) { in Split() 93 vec.push_back(str.substr(start, str.size() - start)); in Split()
|
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/ |
D | cert_manager_uri.c | 337 static inline uint32_t IndexOf(char sep, const char *data, uint32_t start, uint32_t end) in IndexOf() argument 339 for (uint32_t i = start; i < end; i++) { in IndexOf() 390 static int32_t DecodePath(struct CMUri *uri, const char *path, uint32_t start, uint32_t end) in DecodePath() argument 392 while (start < end) { in DecodePath() 393 uint32_t i = IndexOf(';', path, start, end); in DecodePath() 394 if (i <= start) { in DecodePath() 411 if (!strncmp(P_OBJECT, path + start, strlen(P_OBJECT))) { in DecodePath() 412 valueOff = start + strlen(P_OBJECT); in DecodePath() 413 valueLen = i - start - strlen(P_OBJECT); in DecodePath() 415 } else if (!strncmp(P_TYPE, path + start, strlen(P_TYPE))) { in DecodePath() [all …]
|
/base/global/resource_management/frameworks/resmgr/src/utils/ |
D | psue_manager.cpp | 225 size_t start = 0; in BidirectionConvert() local 227 while (start < src.length()) { in BidirectionConvert() 228 while (start < src.length() && isspace(src[start])) { in BidirectionConvert() 229 start++; in BidirectionConvert() 231 if (start > end) { in BidirectionConvert() 232 result += src.substr(end, start - end); in BidirectionConvert() 234 end = start; in BidirectionConvert() 238 if (start < src.length()) { in BidirectionConvert() 240 result += src.substr(start, end - start); in BidirectionConvert() 243 start = end; in BidirectionConvert()
|
/base/hiviewdfx/hiview/base/utility/ |
D | string_util.cpp | 132 KeyValuePair GetKeyValueByString(size_t &start, const std::string &inputString) in GetKeyValueByString() argument 137 while (start < length) { in GetKeyValueByString() 138 if (inputString[start] == INDICATE_VALUE_CHAR) { in GetKeyValueByString() 139 start++; in GetKeyValueByString() 142 key.append(1, inputString[start]); in GetKeyValueByString() 143 start++; in GetKeyValueByString() 146 while (start < length) { in GetKeyValueByString() 147 if (inputString[start] == KEY_VALUE_END_CHAR) { in GetKeyValueByString() 150 if (start + 1 < length && inputString[start + 1] == KEY_VALUE_END_CHAR) { in GetKeyValueByString() 151 value.append(1, inputString[start]); in GetKeyValueByString() [all …]
|
/base/telephony/ril_adapter/utils/native/include/ |
D | telephony_log_wrapper.h | 53 const char *start = path; 55 while (*start++) { 58 while (--start != path && *start != ch) { 62 return (*start == ch) ? ++start : path;
|
/base/telephony/core_service/utils/log/include/ |
D | telephony_log_wrapper.h | 57 const char *start = path; 59 while (*start++) { 62 while (--start != path && *start != ch) { 66 return (*start == ch) ? ++start : path;
|
/base/security/selinux_adapter/interfaces/tools/param_check/ |
D | test.cpp | 51 struct timeval start, end, diff; in TestLoadList() local 52 gettimeofday(&start, nullptr); in TestLoadList() 61 timersub(&end, &start, &diff); in TestLoadList() 79 gettimeofday(&start, nullptr); in TestLoadList() 84 timersub(&end, &start, &diff); in TestLoadList() 93 struct timeval start, end, diff; in TestGetContext() local 94 gettimeofday(&start, nullptr); in TestGetContext() 101 timersub(&end, &start, &diff); in TestGetContext() 111 struct timeval start, end, diff; in TestReadPara() local 112 gettimeofday(&start, nullptr); in TestReadPara() [all …]
|
/base/global/i18n/frameworks/intl/src/ |
D | regex_rule.cpp | 100 if (possibleNumber->start() - 1 >= 0) { in IsValidPreSuf() 156 icu::UnicodeString before = message.tempSubString(0, possibleNumber->start()); in IsValidStart() 329 matcher.SetBegin(possibleNumber->start() + 1); in HandleOperator() 331 matcher.SetBegin(possibleNumber->start()); in HandleOperator() 360 matchedNumberInfo.SetBegin(matcher->start(status) + possibleNumber->start()); in HandleBlank() 362 matchedNumberInfo.SetBegin(possibleNumber->start()); in HandleBlank() 364 matchedNumberInfo.SetEnd(matcher->end(status) + possibleNumber->start()); in HandleBlank() 383 int start = matcher->start(status); in HandleSlant() local 386 if (tempList.size() == 2 && start == 1) { in HandleSlant() 387 start = 0; in HandleSlant() [all …]
|
/base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
D | hap_resource_test.cpp | 69 auto start = CurrentTimeUsec(); in TestGetIdValuesByName() local 71 auto cost = CurrentTimeUsec() - start; in TestGetIdValuesByName() 104 auto start = CurrentTimeUsec(); variable 107 auto cost = CurrentTimeUsec() - start; 116 start = CurrentTimeUsec(); 118 cost = CurrentTimeUsec() - start; 147 auto start = CurrentTimeUsec(); in GetIdValuesByNameFuncTest002() local 149 auto cost = CurrentTimeUsec() - start; in GetIdValuesByNameFuncTest002() 181 auto start = CurrentTimeUsec(); variable 183 auto cost = CurrentTimeUsec() - start; [all …]
|
/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/ |
D | hap_resource_test.cpp | 73 auto start = CurrentTimeUsec(); variable 75 auto cost = CurrentTimeUsec() - start; 85 start = CurrentTimeUsec(); 87 cost = CurrentTimeUsec() - start; 111 start = CurrentTimeUsec(); 113 cost = CurrentTimeUsec() - start; 152 auto start = CurrentTimeUsec(); variable 154 auto cost = CurrentTimeUsec() - start; 166 start = CurrentTimeUsec(); 168 cost = CurrentTimeUsec() - start; [all …]
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/crash_exception/ |
D | crash_exception.cpp | 127 checkMap[i].start = file.find(checkMap[i].key); in CheckCrashLogValid() 128 if ((checkMap[i].start == std::string::npos) || in CheckCrashLogValid() 129 (checkMap[i].start + checkMap[i].key.length() + sizeof(char) >= file.length())) { in CheckCrashLogValid() 135 size_t end = (i == (keySize - 1) ? file.length() : checkMap[i + 1].start); in CheckCrashLogValid() 136 if (end - checkMap[i].start > MAX_FATAL_MSG_SIZE) { in CheckCrashLogValid() 137 end = checkMap[i].start + MAX_FATAL_MSG_SIZE; in CheckCrashLogValid() 139 std::string tmp = file.substr(checkMap[i].start, end - checkMap[i].start); in CheckCrashLogValid()
|
/base/web/webview/test/unittest/common/ |
D | nweb_create_window.cpp | 61 uint32_t start = 0; in GetWebEngineArgs() local 65 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs() 67 start = pos; in GetWebEngineArgs() 72 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
|
/base/update/updater/services/package/pkg_package/ |
D | packages_info.cpp | 36 size_t start = 0; in SplitString() local 39 if (start != index) { in SplitString() 40 string tmpStr = str.substr(start, index - start); in SplitString() 46 start = index + 1; in SplitString() 47 index = str.find_first_of(pattern, start); in SplitString() 50 if (!str.substr(start).empty()) { in SplitString() 51 string tmpStr = str.substr(start); in SplitString()
|
/base/global/i18n_lite/interfaces/kits/i18n/include/ |
D | locale_info.h | 196 …static void ConfirmTagType(const char *start, size_t length, uint8_t &type, const char* &key, cons… 198 …static bool ParseNormalSubTag(LocaleInfo &locale, const char *start, size_t tagLength, uint16_t &o… 200 static bool IsLanguage(const char *start, uint8_t length); 201 static bool IsScript(const char *start, uint8_t length); 202 static bool IsRegion(const char *start, uint8_t length);
|
/base/telephony/sms_mms/frameworks/native/mms/src/ |
D | mms_content_param.cpp | 102 void MmsContentParam::GetStart(std::string &start) in GetStart() argument 104 start = ""; in GetStart() 107 start = textMap_[fieldCode]; in GetStart() 111 void MmsContentParam::SetStart(std::string start) in SetStart() argument 113 if (start.empty()) { in SetStart() 117 textMap_.insert(std::make_pair(fieldCode, start)); in SetStart()
|
/base/update/updater/test/fuzztest/dopartitions_fuzzer/ |
D | dopartitions_fuzzer.cpp | 29 static void InitEmmcPartition(struct Partition &part, const std::string &partName, size_t start, si… in InitEmmcPartition() argument 32 part.start = start; in InitEmmcPartition()
|
/base/hiviewdfx/hisysevent/interfaces/js/kits/napi/src/ |
D | napi_hisysevent_adapter.cpp | 49 std::string::size_type start = 0; in Split() local 52 if (end == start) { in Split() 53 start++; in Split() 54 end = origin.find(delimiter, start); in Split() 57 ret.emplace_back(origin.substr(start, end - start)); in Split() 58 start = end + 1; in Split() 59 end = origin.find(delimiter, start); in Split() 61 if (start != origin.length()) { in Split() 62 ret.emplace_back(origin.substr(start)); in Split()
|