Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 25 of 125) 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.java65 int pos = 0; in unescape() local
67 pos = src.indexOf('%', lastPos); in unescape()
68 if (pos == lastPos) { in unescape()
69 if (src.charAt(pos + 1) == 'u') { in unescape()
70 char ch = (char) Integer.parseInt(src.substring(pos + ESCAPE_STRING2_LEN, in unescape()
71 pos + ESCAPE_STRING2_LEN + INTERCEPT2_LEN), RADIX_NUM); in unescape()
73 lastPos = pos + ESCAPE_STRING2_LEN + INTERCEPT2_LEN; in unescape()
75 char ch = (char) Integer.parseInt(src.substring(pos + ESCAPE_STRING1_LEN, in unescape()
76 pos + ESCAPE_STRING1_LEN + INTERCEPT1_LEN), RADIX_NUM); in unescape()
78 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.ets21 public pos: number; // 列表中当前的位置
26 this.pos = 0; // 列表中当前的位置
72 this.pos = 0;
79 this.pos = this.listSize - 1;
86 if (this.pos > 0) {
87 --this.pos;
95 if (this.pos <= this.listSize - 1) {
96 ++this.pos;
104 return this.pos;
112 this.pos = position;
[all …]
DJArrayList.ets25 public pos: number; // 列表中当前的位置
30 this.pos = 0; // 列表中当前的位置
92 this.pos = 0;
99 this.pos = this.listSize - 1;
106 if (this.pos > 0) {
107 --this.pos;
115 if (this.pos <= this.listSize - 1) {
116 ++this.pos;
124 return this.pos;
132 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.cpp118 uint64_t pos = 0; in LoadResTable() local
120 if (!ReadFileHeader(in, indexHeader, pos, static_cast<uint64_t>(length))) { in LoadResTable()
126 …if (!ReadLimitKeys(in, limitKeys, indexHeader.limitKeyConfigSize, pos, static_cast<uint64_t>(lengt… in LoadResTable()
132 …if (!ReadIdTables(in, datas, indexHeader.limitKeyConfigSize, pos, static_cast<uint64_t>(length))) { in LoadResTable()
139 if (!ReadDataRecordPrepare(in, record, pos, static_cast<uint64_t>(length)) || in LoadResTable()
199 uint32_t pos = 0; in SaveToResouorceIndex() local
204 pos += sizeof(IndexHeader); in SaveToResouorceIndex()
208 if (!Prepare(configs, limitKeyConfigs, idSets, pos)) { in SaveToResouorceIndex()
219 if (!SaveRecordItem(configs, outStreamData, idSets, pos)) { in SaveToResouorceIndex()
224 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.cpp143 string::size_type pos = name.find_last_of("."); in GetIdName() local
144 if (pos != string::npos) { in GetIdName()
145 return name.substr(0, pos); in GetIdName()
177 size_t pos = 0; in DecomposeStrings() local
179 while (pos < length) { in DecomposeStrings()
180 if (pos + HEAD_LENGTH >= length) { in DecomposeStrings()
184 …uint16_t size = (content[pos] & 0xff) | ((content[pos + 1] & 0xff) << 8); // Move 8 bits to the le… in DecomposeStrings()
185 pos += HEAD_LENGTH; in DecomposeStrings()
187 if (pos + size >= length) { in DecomposeStrings()
191 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 …]
Dfstrace_types.h45 loff_t pos; member
52 loff_t pos; member
73 loff_t pos; member
81 loff_t pos; member
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 …]
/developtools/smartperf_host/trace_streamer/sdk/demo_sdk/trace_data/
Ddemo_trace_data_db.cpp310 int32_t &pos, in AddColumnsToJsonArray() argument
313 int32_t retSnprintf = snprintf_s(resValue + pos, outLen - pos, 1, "%s", "{\"columns\":["); in AddColumnsToJsonArray()
317 pos += retSnprintf; in AddColumnsToJsonArray()
320 …snprintf_s(resValue + pos, outLen - pos, 1, "%s%s%s", "\"", sqlite3_column_name(stmtSql, i), "\","… in AddColumnsToJsonArray()
324 pos += retSnprintf; in AddColumnsToJsonArray()
326 pos--; // remove the last ',' in AddColumnsToJsonArray()
327 retSnprintf = snprintf_s(resValue + pos, outLen - pos, 1, "],\"values\":["); in AddColumnsToJsonArray()
331 pos += retSnprintf; in AddColumnsToJsonArray()
337 int32_t &pos, in AddRowsToJsonArray() argument
347 if (pos + row.size() + strlen(",]}\r\n") >= size_t(outLen)) { in AddRowsToJsonArray()
[all …]
/developtools/hiperf/src/
Dsubcommand.cpp113 auto pos = selectTids.begin(); in ExcludeTidsFromSelectTids() local
114 while (pos != selectTids.end()) { in ExcludeTidsFromSelectTids()
115 if (excludeTid == *pos) { in ExcludeTidsFromSelectTids()
116 pos = selectTids.erase(pos); in ExcludeTidsFromSelectTids()
120 ++pos; in ExcludeTidsFromSelectTids()
133 auto pos = selectTids.begin(); in ExcludeThreadsFromSelectTids() local
134 while (pos != selectTids.end()) { in ExcludeThreadsFromSelectTids()
135 std::string threadName = virtualRuntime_.ReadThreadName(*pos, true); in ExcludeThreadsFromSelectTids()
137 pos = selectTids.erase(pos); in ExcludeThreadsFromSelectTids()
141 ++pos; in ExcludeThreadsFromSelectTids()
/developtools/smartperf_host/trace_streamer/src/trace_data/
Dtrace_data_db.cpp337 size_t pos = std::string::npos; in ParseCommandLine() local
338 if ((pos = line.find(" ")) != std::string::npos) { in ParseCommandLine()
339 option = line.substr(0, pos); in ParseCommandLine()
340 auto left = line.substr(pos + 1); in ParseCommandLine()
341 while ((pos = left.find(",")) != std::string::npos) { in ParseCommandLine()
342 values.push_back(left.substr(0, pos + 1)); in ParseCommandLine()
343 left = left.substr(pos + 1); in ParseCommandLine()
545 int32_t pos = retSnprintf; in SearchDatabase() local
548 return pos; in SearchDatabase()
550 auto returnvalue = HandleColumnNames(stmt, res, outLen, pos, colCount); in SearchDatabase()
[all …]
/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()
Dfile_utils.cpp87 size_t pos = path.rfind("/"); in WriteFile() local
88 if (pos != std::string::npos) { in WriteFile()
89 std::string dirName = path.substr(0, pos+1); in WriteFile()
90 size_t index = path.length() > (pos + 1) ? path.length() - pos - 1 : 0; in WriteFile()
91 std::string fileName = path.substr(pos+1, index); in WriteFile()
/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/smartperf_host/trace_streamer/src/parser/rawtrace_parser/
Dprintk_formats_processor.cpp51 auto pos = curLine.find(':'); in HandlePrintkSyms() local
52 if (pos == std::string::npos) { in HandlePrintkSyms()
55 std::string addrInfo = base::Strip(curLine.substr(0, pos)); in HandlePrintkSyms()
57 curSymbol = base::Strip(curLine.substr(pos + 1)); in HandlePrintkSyms()
/developtools/profiler/device/plugins/native_hook/src/
Dhook_socket_client.cpp41 size_t pos; member
66 if (strncpy_s(opt->buf + opt->pos, MEMCHECK_DETAILINFO_MAXSIZE - opt->pos, in NmdWriteStat()
71 opt->pos += nmdTimeLen; in NmdWriteStat()
74 if (len + opt->pos + 1 > MEMCHECK_DETAILINFO_MAXSIZE) { in NmdWriteStat()
77 if (strncpy_s(opt->buf + opt->pos, MEMCHECK_DETAILINFO_MAXSIZE - opt->pos, buf, len) != EOK) { in NmdWriteStat()
81 opt->pos += len; in NmdWriteStat()
/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.h70 std::map<std::string, IdSet> &idSets, uint32_t &pos) const;
72 std::map<std::string, IdSet> &idSets, uint32_t &pos) const;
77 …bool ReadFileHeader(std::ifstream &in, IndexHeader &indexHeader, uint64_t &pos, uint64_t length) c…
79 uint32_t count, uint64_t &pos, uint64_t length) const;
81 uint32_t count, uint64_t &pos, uint64_t length) const;
82 …bool ReadDataRecordPrepare(std::ifstream &in, RecordItem &record, uint64_t &pos, uint64_t length) …
/developtools/profiler/host/smartperf/client/client_command/
Dparse_radar.cpp113 size_t pos = str.find(target); in ExtractString() local
114 if (pos != std::string::npos) { in ExtractString()
115 pos += target.length(); in ExtractString()
116 size_t commaPos = str.find(",", pos); in ExtractString()
118 std::string result = str.substr(pos, commaPos - pos); in ExtractString()

12345