/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",
|
/base/global/i18n_lite/frameworks/i18n/src/ |
D | locale_info.cpp | 303 const char *start = tag; in ParseLanguageTag() local 315 auto tagLength = end - start; in ParseLanguageTag() 316 ConfirmTagType(start, tagLength, type, key, value); in ParseLanguageTag() 317 if (!ParseNormalSubTag(locale, start, tagLength, options, type)) { in ParseLanguageTag() 328 bool LocaleInfo::ParseNormalSubTag(LocaleInfo &locale, const char *start, size_t tagLength, uint16_… in ParseNormalSubTag() argument 331 if ((start == nullptr) || (tagLength == 0)) { in ParseNormalSubTag() 335 if (IsLanguage(start, tagLength)) { in ParseNormalSubTag() 336 locale.language = I18nNewCharString(start, tagLength); in ParseNormalSubTag() 343 if (IsScript(start, tagLength)) { in ParseNormalSubTag() 345 locale.script = I18nNewCharString(start, tagLength); in ParseNormalSubTag() [all …]
|
/base/startup/appspawn/standard/ |
D | appspawn_process.c | 386 char *start = strtok_r(argv[PARAM_INDEX], ":", &end); in GetAppSpawnClientFromArg() local 389 APPSPAWN_CHECK(start != NULL, return -1, "Failed to get client id"); in GetAppSpawnClientFromArg() 390 client->client.id = atoi(start); in GetAppSpawnClientFromArg() 391 start = strtok_r(NULL, ":", &end); in GetAppSpawnClientFromArg() 392 APPSPAWN_CHECK(start != NULL, return -1, "Failed to get client cloneFlags"); in GetAppSpawnClientFromArg() 393 client->client.cloneFlags = atoi(start); in GetAppSpawnClientFromArg() 394 start = strtok_r(NULL, ":", &end); in GetAppSpawnClientFromArg() 395 APPSPAWN_CHECK(start != NULL, return -1, "Failed to get uid"); in GetAppSpawnClientFromArg() 396 client->property.uid = atoi(start); in GetAppSpawnClientFromArg() 397 start = strtok_r(NULL, ":", &end); in GetAppSpawnClientFromArg() [all …]
|
/base/telephony/ril_adapter/utils/native/include/ |
D | telephony_log_wrapper.h | 46 const char *start = path; in GetRawFileName() local 48 while (*start++) { in GetRawFileName() 51 while (--start != path && *start != ch) { in GetRawFileName() 55 return (*start == ch) ? ++start : path; in GetRawFileName()
|
/base/update/updater/services/package/pkg_manager/ |
D | pkg_stream.cpp | 70 int32_t FileStream::Read(const PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) in Read() argument 81 if (fseeko64(stream_, start, SEEK_SET) != 0) { in Read() 85 if (start > GetFileLength()) { in Read() 97 int32_t FileStream::Write(const PkgBuffer &data, size_t size, size_t start) in Write() argument 107 if (fseeko64(stream_, start, SEEK_SET) != 0) { in Write() 194 int32_t MemoryMapStream::Read(const PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) in Read() argument 200 if (start > memSize_) { in Read() 209 MemoryMapStream::Seek(start, SEEK_SET); in Read() 210 size_t copyLen = GetFileLength() - start; in Read() 213 … PKG_LOGE("Memcpy failed size:%zu, start:%zu copyLen:%zu %zu", needRead, start, copyLen, readLen); in Read() [all …]
|
D | pkg_stream.h | 34 int32_t Read(const PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) override in Read() argument 37 UNUSED(start); in Read() 50 virtual int32_t Write(const PkgBuffer &data, size_t size, size_t start) = 0; 87 int32_t Read(const PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) override; 89 int32_t Write(const PkgBuffer &data, size_t size, size_t start) override; 115 int32_t Read(const PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) override; 117 int32_t Write(const PkgBuffer &data, size_t size, size_t start) override; 165 int32_t Read(const PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) override in Read() argument 168 UNUSED(start); in Read() 174 int32_t Write(const PkgBuffer &data, size_t size, size_t start) override in Write() argument [all …]
|
/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/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() 386 static int32_t DecodePath(struct CMUri *uri, const char *path, uint32_t start, uint32_t end) in DecodePath() argument 388 while (start < end) { in DecodePath() 389 uint32_t i = IndexOf(';', path, start, end); in DecodePath() 390 if (i <= start) { in DecodePath() 407 if (!strncmp(P_OBJECT, path + start, strlen(P_OBJECT))) { in DecodePath() 408 valueOff = start + strlen(P_OBJECT); in DecodePath() 409 valueLen = i - start - strlen(P_OBJECT); in DecodePath() 411 } else if (!strncmp(P_TYPE, path + start, strlen(P_TYPE))) { in DecodePath() [all …]
|
/base/telephony/core_service/utils/log/include/ |
D | telephony_log_wrapper.h | 78 const char *start = path; in GetRawFileName() local 80 while (*start++) { in GetRawFileName() 83 while (--start != path && *start != ch) { in GetRawFileName() 87 return (*start == ch) ? ++start : path; in GetRawFileName()
|
/base/hiviewdfx/faultloggerd/tools/process_dump/ |
D | dfx_symbols_cache.cpp | 33 return (s1.start < s2.start); in SymbolComparator() 50 if (unw_get_symbol_info_by_pc(as, pc, LOG_BUF_LEN, buf, &symbol.start, &symbol.end) != 0) { in GetNameAndOffsetByPc() 66 offset = pc - symbol.start; in GetNameAndOffsetByPc() 80 if (pc < symbol.start) { in GetNameAndOffsetByPc() 83 offset = pc - symbol.start; in GetNameAndOffsetByPc()
|
/base/security/selinux/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() 78 gettimeofday(&start, nullptr); in TestLoadList() 83 timersub(&end, &start, &diff); in TestLoadList() 92 struct timeval start, end, diff; in TestGetContext() local 93 gettimeofday(&start, nullptr); in TestGetContext() 98 timersub(&end, &start, &diff); in TestGetContext() 108 struct timeval start, end, diff; in TestReadPara() local 109 gettimeofday(&start, nullptr); in TestReadPara() [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/global/resource_management/frameworks/resmgr/test/unittest/common/ |
D | hap_resource_test.cpp | 68 auto start = CurrentTimeUsec(); in TestGetIdValuesByName() local 70 auto cost = CurrentTimeUsec() - start; in TestGetIdValuesByName() 103 auto start = CurrentTimeUsec(); variable 105 auto cost = CurrentTimeUsec() - start; 115 start = CurrentTimeUsec(); 117 cost = CurrentTimeUsec() - start; 157 auto start = CurrentTimeUsec(); variable 159 auto cost = CurrentTimeUsec() - start; 171 start = CurrentTimeUsec(); 173 cost = CurrentTimeUsec() - start; [all …]
|
/base/security/device_auth/deps_adapter/os_adapter/impl/src/ |
D | hc_time.c | 27 struct timespec start; in HcGetCurTime() local 28 int res = clock_gettime(CLOCK_MONOTONIC, &start); in HcGetCurTime() 33 return start.tv_sec; in HcGetCurTime()
|
/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/web/webview/test/unittest/common/ |
D | nweb_create_window.cpp | 70 uint32_t start = 0; in GetWebEngineArgs() local 74 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs() 76 start = pos; in GetWebEngineArgs() 81 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
|
/base/telephony/sms_mms/frameworks/native/mms/src/ |
D | mms_content_param.cpp | 87 void MmsContentParam::GetStart(std::string &start) in GetStart() argument 89 start = ""; in GetStart() 92 start = textMap_[fieldCode]; in GetStart() 96 void MmsContentParam::SetStart(std::string start) in SetStart() argument 98 if (start.empty()) { in SetStart() 102 textMap_.insert(std::make_pair(fieldCode, start)); in SetStart()
|
/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/inputmethod/imf/unitest/src/ |
D | input_method_ability_test.cpp | 150 void HandleSetSelection(int32_t start, int32_t end) override in HandleSetSelection() argument 440 int32_t start = 10; variable 442 imc_->OnSelectionChange(g_textTemp, start, end); 462 int32_t start = 11; variable 464 imc_->OnSelectionChange(g_textTemp, start, end); 484 int32_t start = 9; variable 486 imc_->OnSelectionChange(g_textTemp, start, end); 506 int32_t start = 8; variable 508 imc_->OnSelectionChange(g_textTemp, start, end); 526 int32_t start = 7; variable [all …]
|
/base/update/updater/test/fuzztest/dopartitions_fuzzer/ |
D | dopartitions_fuzzer.cpp | 32 static void InitEmmcPartition(struct Partition &part, const std::string &partName, size_t start, si… in InitEmmcPartition() argument 35 part.start = start; in InitEmmcPartition()
|
/base/web/webview/test/fuzztest/dispatchkeyevent_fuzzer/ |
D | dispatchkeyevent_fuzzer.cpp | 76 uint32_t start = 0; in GetWebEngineArgs() local 80 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs() 82 start = pos; in GetWebEngineArgs() 87 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
|
/base/web/webview/test/fuzztest/ohos_nweb/requestvsync_fuzzer/ |
D | requestvsync_fuzzer.cpp | 79 uint32_t start = 0; in GetWebEngineArgs() local 83 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs() 85 start = pos; in GetWebEngineArgs() 90 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
|
/base/web/webview/test/fuzztest/oninputaxisevent_fuzzer/ |
D | oninputaxisevent_fuzzer.cpp | 74 uint32_t start = 0; in GetWebEngineArgs() local 78 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs() 80 start = pos; in GetWebEngineArgs() 85 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
|
/base/web/webview/test/fuzztest/oninputkeyevent_fuzzer/ |
D | oninputkeyevent_fuzzer.cpp | 74 uint32_t start = 0; in GetWebEngineArgs() local 78 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs() 80 start = pos; in GetWebEngineArgs() 85 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
|