Home
last modified time | relevance | path

Searched refs:start (Results 1 – 25 of 345) sorted by relevance

12345678910>>...14

/base/update/updateservice/services/firmware/utils/src/
Dfirmware_combine_version_utils.cpp40 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/startup/init/test/moduletest/
Dtest_utils.cpp73 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 …]
Dinit_test.cfg3 "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",
Dchipset.init.test.cfg3 "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/global/i18n_lite/frameworks/i18n/src/
Dlocale_info.cpp303 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/update/updater/services/package/pkg_manager/
Dpkg_stream.cpp75 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 …]
Dpkg_stream.h33 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/core_service/utils/log/include/
Dtelephony_log_wrapper.h50 const char *start = path; in GetRawFileName() local
52 while (*start++) { in GetRawFileName()
55 while (--start != path && *start != ch) { in GetRawFileName()
59 return (*start == ch) ? ++start : path; in GetRawFileName()
/base/telephony/ril_adapter/utils/native/include/
Dtelephony_log_wrapper.h46 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/hiviewdfx/faultloggerd/frameworks/unwinder/
Ddfx_symbols.cpp69 if (unw_get_symbol_info_by_pc(as, pc, LOG_BUF_LEN, buf, &symbol.start, &symbol.end) != 0) { in GetNameAndOffsetByPc()
75 offset = pc - symbol.start; in GetNameAndOffsetByPc()
79 return a.start < b.start; in GetNameAndOffsetByPc()
94 if (!elf->GetFuncNameAndOffset(pc, &funcName, &symbol.start, &symbol.end)) { in GetNameAndOffsetByPc()
100 offset = pc - symbol.start; in GetNameAndOffsetByPc()
104 return a.start < b.start; in GetNameAndOffsetByPc()
116 if (pc < symbol.start) { in GetNameAndOffsetByPc()
119 offset = pc - symbol.start; in GetNameAndOffsetByPc()
/base/hiviewdfx/hiview/base/utility/
Dstring_util.cpp132 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/
Dcert_manager_uri.c337 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/
Dpsue_manager.cpp225 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/web/webview/test/unittest/common/
Dnweb_create_window.cpp60 uint32_t start = 0; in GetWebEngineArgs() local
64 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
66 start = pos; in GetWebEngineArgs()
71 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
/base/security/selinux_adapter/interfaces/tools/param_check/
Dtest.cpp51 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/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
Dhap_resource_test.cpp73 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/
Dhap_resource_test.cpp68 auto start = CurrentTimeUsec(); in TestGetIdValuesByName() local
70 auto cost = CurrentTimeUsec() - start; in TestGetIdValuesByName()
103 auto start = CurrentTimeUsec(); variable
105 auto cost = CurrentTimeUsec() - start;
114 start = CurrentTimeUsec();
116 cost = CurrentTimeUsec() - start;
146 auto start = CurrentTimeUsec(); in GetIdValuesByNameFuncTest002() local
148 auto cost = CurrentTimeUsec() - start; in GetIdValuesByNameFuncTest002()
180 auto start = CurrentTimeUsec(); variable
182 auto cost = CurrentTimeUsec() - start;
[all …]
/base/security/device_auth/deps_adapter/os_adapter/impl/src/
Dhc_time.c27 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/
Dlocale_info.h196 …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/fuzztest/putbackgroundcolor_fuzzer/
Dputbackgroundcolor_fuzzer.cpp62 uint32_t start = 0; in GetWebEngineArgs() local
66 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
68 start = pos; in GetWebEngineArgs()
73 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
/base/web/webview/test/fuzztest/cannavigatebackorforward_fuzzer/
Dcannavigatebackorforward_fuzzer.cpp62 uint32_t start = 0; in GetWebEngineArgs() local
66 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
68 start = pos; in GetWebEngineArgs()
73 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
/base/telephony/sms_mms/frameworks/native/mms/src/
Dmms_content_param.cpp87 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/web/webview/test/fuzztest/zoom_fuzzer/
Dzoom_fuzzer.cpp62 uint32_t start = 0; in GetWebEngineArgs() local
66 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
68 start = pos; in GetWebEngineArgs()
73 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
/base/update/updater/services/package/pkg_package/
Dpackages_info.cpp36 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/web/webview/test/fuzztest/registerarkjsfunction_fuzzer/
Dregisterarkjsfunction_fuzzer.cpp62 uint32_t start = 0; in GetWebEngineArgs() local
66 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()
68 start = pos; in GetWebEngineArgs()
73 webEngineArgList.emplace_back(webEngineArgValue.substr(start, pos - start)); in GetWebEngineArgs()

12345678910>>...14