Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 25 of 123) sorted by relevance

12345

/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/utils/
DByteArrayUtils.java47 int pos = index; in insertIntToByteArray() local
48 desByte[pos] = (byte) ((num >> TRIPLE_BIT_SIZE) & 0xff); in insertIntToByteArray()
49 pos++; in insertIntToByteArray()
50 desByte[pos] = (byte) ((num >> DOUBLE_BIT_SIZE) & 0xff); in insertIntToByteArray()
51 pos++; in insertIntToByteArray()
52 desByte[pos] = (byte) ((num >> BIT_SIZE) & 0xff); in insertIntToByteArray()
53 pos++; in insertIntToByteArray()
54 desByte[pos] = (byte) (num & 0xff); in insertIntToByteArray()
55 pos++; in insertIntToByteArray()
56 return pos; in insertIntToByteArray()
[all …]
DEscapeCharacter.java64 int pos = 0; in unescape() local
66 pos = src.indexOf('%', lastPos); in unescape()
67 if (pos == lastPos) { in unescape()
68 if (src.charAt(pos + 1) == 'u') { in unescape()
69 char ch = (char) Integer.parseInt(src.substring(pos + ESCAPE_STRING2_LEN, in unescape()
70 pos + ESCAPE_STRING2_LEN + INTERCEPT2_LEN), RADIX_NUM); in unescape()
72 lastPos = pos + ESCAPE_STRING2_LEN + INTERCEPT2_LEN; in unescape()
74 char ch = (char) Integer.parseInt(src.substring(pos + ESCAPE_STRING1_LEN, in unescape()
75 pos + ESCAPE_STRING1_LEN + INTERCEPT1_LEN), RADIX_NUM); in unescape()
77 lastPos = pos + ESCAPE_STRING1_LEN + INTERCEPT1_LEN; in unescape()
[all …]
/developtools/profiler/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/detail/chart/utils/
DJList.ets22 pos:number; // 列表中当前的位置
27 this.pos = 0; // 列表中当前的位置
73 this.pos = 0;
80 this.pos = this.listSize - 1;
87 if (this.pos > 0) {
88 --this.pos;
96 if (this.pos <= (this.listSize - 1)) {
97 ++this.pos;
105 return this.pos;
113 this.pos = position;
[all …]
DJArrayList.ets26 pos:number; // 列表中当前的位置
31 this.pos = 0; // 列表中当前的位置
93 this.pos = 0;
100 this.pos = this.listSize - 1;
107 if (this.pos > 0) {
108 --this.pos;
116 if (this.pos <= (this.listSize - 1)) {
117 ++this.pos;
125 return this.pos;
133 this.pos = position;
[all …]
/developtools/ace_js2bundle/ace-loader/plugin/templater/
Dindex.js152 const pos = { variable
161 componentValidator.validateStyle(attrValue, compileResult, pos, relativePath)
164 componentValidator.validateClass(attrValue, compileResult, pos, relativePath)
167 componentValidator.validateId(attrValue, compileResult, pos, relativePath)
170 checkAttrFor(node, attributes, pos);
171 componentValidator.validateFor(attrValue, compileResult, pos, relativePath)
174 componentValidator.validateIf(attrValue, compileResult, false, pos, relativePath)
178 compileResult, pos, relativePath)
181 componentValidator.validateAttrElse(preNode, compileResult, pos, relativePath)
184 componentValidator.validateAppend(attrValue, compileResult, pos, relativePath)
[all …]
/developtools/global_resource_tool/src/
Dresource_table.cpp117 int32_t pos = 0; in LoadResTable() local
119 if (!ReadFileHeader(in, indexHeader, pos, length)) { in LoadResTable()
125 if (!ReadLimitKeys(in, limitKeys, indexHeader.limitKeyConfigSize, pos, length)) { in LoadResTable()
131 if (!ReadIdTables(in, datas, indexHeader.limitKeyConfigSize, pos, length)) { in LoadResTable()
138 if (!ReadDataRecordPrepare(in, record, pos, length) || in LoadResTable()
185 uint32_t pos = 0; in SaveToResouorceIndex() local
190 pos += sizeof(IndexHeader); in SaveToResouorceIndex()
194 if (!Prepare(configs, limitKeyConfigs, idSets, pos)) { in SaveToResouorceIndex()
205 if (!SaveRecordItem(configs, outStreamData, idSets, pos)) { in SaveToResouorceIndex()
210 indexHeader.fileSize = pos; in SaveToResouorceIndex()
[all …]
Dfile_entry.cpp265 string::size_type pos = filePath_.find_first_of(SEPARATE.front(), offset); in GetSegments() local
266 while (pos != string::npos) { in GetSegments()
267 segments.push_back(filePath_.substr(offset, pos - offset)); in GetSegments()
268 offset = pos + 1; in GetSegments()
269 pos = filePath_.find_first_of(SEPARATE.front(), offset); in GetSegments()
322 string::size_type pos = path.find_first_of(SEPARATE.front(), offset); in CreateDirsInner() local
323 if (pos == string::npos) { in CreateDirsInner()
331 string subPath = path.substr(0, pos + 1); in CreateDirsInner()
341 return CreateDirsInner(path, pos + 1); in CreateDirsInner()
355 string::size_type pos = filePath_.find_last_of(SEPARATE.front()); in CreateDirsInner() local
[all …]
Dresource_util.cpp144 string::size_type pos = name.find_last_of("."); in GetIdName() local
145 if (pos != string::npos) { in GetIdName()
146 return name.substr(0, pos); in GetIdName()
178 size_t pos = 0; in DecomposeStrings() local
180 while (pos < length) { in DecomposeStrings()
181 if (pos + HEAD_LENGTH >= length) { in DecomposeStrings()
185 uint16_t size = (content[pos] & 0xff) | ((content[pos + 1] & 0xff) << 8); in DecomposeStrings()
186 pos += HEAD_LENGTH; in DecomposeStrings()
188 if (pos + size >= length) { in DecomposeStrings()
192 string buffer = content.substr(pos, size); in DecomposeStrings()
[all …]
/developtools/profiler/hiebpf/include/
Dhiebpf_macros.h136 #define list_for_each(pos, head) \ argument
137 for (pos = (head)->next; pos != (head); pos = pos->next)
154 #define hlist_for_each(pos, head) \ argument
155 for (pos = (head)->first; pos ; pos = pos->next)
Dfstrace_progs.h140 int BPF_KPROBE(ksys_pread64_entry, unsigned int fd, char __user* buf, size_t count, loff_t pos) in BPF_KPROBE() argument
158 args->pos = pos; in BPF_KPROBE()
180 … BPF_KPROBE(ksys_pwrite64_entry, unsigned int fd, const char __user* buf, size_t count, loff_t pos) in BPF_KPROBE() argument
198 args->pos = pos; in BPF_KPROBE()
302 unsigned long vlen, loff_t pos, rwf_t flags) in BPF_KPROBE() argument
320 args->pos = pos; in BPF_KPROBE()
349 unsigned long vlen, loff_t pos, rwf_t flags) in pwritev_entry() argument
366 args->pos = pos; in pwritev_entry()
391 loff_t pos = pos_from_hilo(pos_h, pos_l); in BPF_KPROBE() local
392 return pwritev_entry(fd, vec, vlen, pos, 0); in BPF_KPROBE()
[all …]
Dcommandline_flags.h276 char* pos = nullptr; in ParseInt8Flag() local
277 long int tmpVal = strtol(valStr.c_str(), &pos, 10); in ParseInt8Flag()
291 char* pos = nullptr; in ParseInt16Flag() local
292 long int tmpVal = strtol(valStr.c_str(), &pos, 10); in ParseInt16Flag()
306 char* pos = nullptr; in ParseInt32Flag() local
307 long int tmpVal = strtol(valStr.c_str(), &pos, 10); in ParseInt32Flag()
321 char* pos = nullptr; in ParseInt64Flag() local
322 long int tmpVal = strtol(valStr.c_str(), &pos, 10); in ParseInt64Flag()
336 char* pos = nullptr; in ParseUint8Flag() local
337 unsigned long long int tmpVal = strtoull(valStr.c_str(), &pos, 10); in ParseUint8Flag()
[all …]
Dfstrace_types.h45 loff_t pos; member
52 loff_t pos; member
73 loff_t pos; member
81 loff_t pos; member
/developtools/profiler/host/smartperf/trace_streamer/src/trace_data/
Dtrace_data_db.cpp218 size_t pos = std::string::npos; in SearchData() local
219 if ((pos = line.find(" ")) != std::string::npos) { in SearchData()
220 option = line.substr(0, pos); in SearchData()
221 auto left = line.substr(pos + 1); in SearchData()
222 while ((pos = left.find(",")) != std::string::npos) { in SearchData()
223 values.push_back(left.substr(0, pos + 1)); in SearchData()
224 left = left.substr(pos + 1); in SearchData()
387 int32_t pos = retSnprintf; in SearchDatabase() local
390 return pos; in SearchDatabase()
392 retSnprintf = snprintf_s(res + pos, outLen - pos, 1, "%s", "{\"columns\":["); in SearchDatabase()
[all …]
/developtools/smartperf_host/trace_streamer/src/trace_data/
Dtrace_data_db.cpp218 size_t pos = std::string::npos; in SearchData() local
219 if ((pos = line.find(" ")) != std::string::npos) { in SearchData()
220 option = line.substr(0, pos); in SearchData()
221 auto left = line.substr(pos + 1); in SearchData()
222 while ((pos = left.find(",")) != std::string::npos) { in SearchData()
223 values.push_back(left.substr(0, pos + 1)); in SearchData()
224 left = left.substr(pos + 1); in SearchData()
387 int32_t pos = retSnprintf; in SearchDatabase() local
390 return pos; in SearchDatabase()
392 retSnprintf = snprintf_s(res + pos, outLen - pos, 1, "%s", "{\"columns\":["); in SearchDatabase()
[all …]
/developtools/smartperf_host/trace_streamer/sdk/demo_sdk/trace_data/
Dtrace_data_db.cpp334 int32_t pos = retSnprintf; in SearchDatabase() local
337 return pos; in SearchDatabase()
339 retSnprintf = snprintf_s(res + pos, outLen - pos, 1, "%s", "{\"columns\":["); in SearchDatabase()
343 pos += retSnprintf; in SearchDatabase()
345 …retSnprintf = snprintf_s(res + pos, outLen - pos, 1, "%s%s%s", "\"", sqlite3_column_name(stmt, i),… in SearchDatabase()
349 pos += retSnprintf; in SearchDatabase()
351 pos--; // rmove the last ',' in SearchDatabase()
352 retSnprintf = snprintf_s(res + pos, outLen - pos, 1, "],\"values\":["); in SearchDatabase()
356 pos += retSnprintf; in SearchDatabase()
364 if (pos + row.size() + strlen(",]}\r\n") >= size_t(outLen)) { in SearchDatabase()
[all …]
/developtools/smartperf_host/trace_streamer/sdk/dubai_sdk/trace_data/
Dtrace_data_db.cpp334 int32_t pos = retSnprintf; in SearchDatabase() local
337 return pos; in SearchDatabase()
339 retSnprintf = snprintf_s(res + pos, outLen - pos, 1, "%s", "{\"columns\":["); in SearchDatabase()
343 pos += retSnprintf; in SearchDatabase()
345 …retSnprintf = snprintf_s(res + pos, outLen - pos, 1, "%s%s%s", "\"", sqlite3_column_name(stmt, i),… in SearchDatabase()
349 pos += retSnprintf; in SearchDatabase()
351 pos--; // rmove the last ',' in SearchDatabase()
352 retSnprintf = snprintf_s(res + pos, outLen - pos, 1, "],\"values\":["); in SearchDatabase()
356 pos += retSnprintf; in SearchDatabase()
364 if (pos + row.size() + strlen(",]}\r\n") >= size_t(outLen)) { in SearchDatabase()
[all …]
/developtools/hiperf/src/
Dsubcommand.cpp120 auto pos = selectTids.begin(); in ExcludeTidsFromSelectTids() local
121 while (pos != selectTids.end()) { in ExcludeTidsFromSelectTids()
122 if (excludeTid == *pos) { in ExcludeTidsFromSelectTids()
123 pos = selectTids.erase(pos); in ExcludeTidsFromSelectTids()
127 ++pos; in ExcludeTidsFromSelectTids()
140 auto pos = selectTids.begin(); in ExcludeThreadsFromSelectTids() local
141 while (pos != selectTids.end()) { in ExcludeThreadsFromSelectTids()
142 std::string threadName = virtualRuntime_.ReadThreadName(*pos, true); in ExcludeThreadsFromSelectTids()
144 pos = selectTids.erase(pos); in ExcludeThreadsFromSelectTids()
148 ++pos; in ExcludeThreadsFromSelectTids()
/developtools/profiler/device/plugins/native_daemon/test/unittest/common/native/
Delf_parser_test.cpp424 auto pos = line.find(effectFlag); in GetNextShdrLine() local
425 if ((pos != std::string::npos) and isdigit(line.at(pos - 1))) { in GetNextShdrLine()
451 auto pos = line.find(effectFlag); in GetNextSymLine() local
452 if ((pos != std::string::npos) and isdigit(line.at(pos - 1))) { in GetNextSymLine()
642 auto pos = line.find("["); in GetSecIndex() local
643 if (pos == std::string::npos) { in GetSecIndex()
648 std::string str = line.substr(pos, len); in GetSecIndex()
671 auto pos = line.find("]"); in GetName() local
672 if (pos == std::string::npos) { in GetName()
676 ++pos; in GetName()
[all …]
/developtools/hiperf/test/unittest/common/native/
Delf_parser_test.cpp425 auto pos = line.find(effectFlag); in GetNextShdrLine() local
426 if ((pos != std::string::npos) and isdigit(line.at(pos - 1))) { in GetNextShdrLine()
452 auto pos = line.find(effectFlag); in GetNextSymLine() local
453 if ((pos != std::string::npos) and isdigit(line.at(pos - 1))) { in GetNextSymLine()
643 auto pos = line.find("["); in GetSecIndex() local
644 if (pos == std::string::npos) { in GetSecIndex()
649 std::string str = line.substr(pos, len); in GetSecIndex()
672 auto pos = line.find("]"); in GetName() local
673 if (pos == std::string::npos) { in GetName()
677 ++pos; in GetName()
[all …]
/developtools/profiler/hiebpf/src/
Dutilities.cpp43 size_t pos = 0; in StringSplit() local
44 while ((pos = source.find(split)) != std::string::npos) { in StringSplit()
46 std::string token = source.substr(0, pos); in StringSplit()
50 source.erase(0, pos + split.length()); in StringSplit()
/developtools/profiler/device/plugins/ftrace_plugin/src/
Dprintk_formats_parser.cpp61 auto pos = line.find(seperator); in Parse() local
62 if (pos != std::string::npos) { in Parse()
63 std::string addrStr = StringUtils::Strip(line.substr(0, pos)); in Parse()
66 symbol = StringUtils::Strip(line.substr(pos + 1)); in Parse()
Dstring_utils.cpp74 size_t pos = 0; in Split() local
76 pos = str.find(sep, start); in Split()
77 if (pos != std::string::npos) { in Split()
78 result.push_back(str.substr(start, pos - start)); in Split()
79 start = pos + sep.size(); // next start index in Split()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/codesigning/datastructure/
DNativeLibInfoSegment.java158 for (SignedFilePos pos : this.signedFilePosList) { in generateList()
159 pos.increaseFileNameOffset(fileNameOffsetBase); in generateList()
160 pos.increaseSignInfoOffset(signInfoOffsetBase + this.zeroPadding.length); in generateList()
234 for (SignedFilePos pos : inSignedFilePosList) { in fromByteArray()
235 byte[] fileNameBuffer = new byte[pos.getFileNameSize()]; in fromByteArray()
236 fileNameListSize += pos.getFileNameSize(); in fromByteArray()
246 for (SignedFilePos pos : inSignedFilePosList) { in fromByteArray()
247 if (pos.getSignInfoOffset() % ALIGNMENT_FOR_SIGNINFO != 0) { in fromByteArray()
250 byte[] signInfoBuffer = new byte[pos.getSignInfoSize()]; in fromByteArray()
/developtools/profiler/hiebpf/data/
Dfstrace_target_funcs.txt4 ksys_pread64(pread64, unsigned int, fd, char __user*, buf, size_t, count, loff_t, pos)
5 ksys_pwrite64(pwrite64, unsigned int, fd, const char __user*, buf, size_t, count, loff_t, pos)
11 unsigned long, vlen, loff_t, pos, rwf_t, flags)"
13 unsigned long, vlen, loff_t, pos, rwf_t, flags)"
/developtools/global_resource_tool/include/
Dresource_table.h69 std::map<std::string, IdSet> &idSets, uint32_t &pos) const;
71 std::map<std::string, IdSet> &idSets, uint32_t &pos) const;
76 …bool ReadFileHeader(std::ifstream &in, IndexHeader &indexHeader, int32_t &pos, int32_t length) con…
78 uint32_t count, int32_t &pos, int32_t length) const;
80 uint32_t count, int32_t &pos, int32_t length) const;
81 …bool ReadDataRecordPrepare(std::ifstream &in, RecordItem &record, int32_t &pos, int32_t length) co…

12345