Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 25 of 115) 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.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); 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 …]
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/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.cpp331 size_t pos = std::string::npos; in ParseCommandLine() local
332 if ((pos = line.find(" ")) != std::string::npos) { in ParseCommandLine()
333 option = line.substr(0, pos); in ParseCommandLine()
334 auto left = line.substr(pos + 1); in ParseCommandLine()
335 while ((pos = left.find(",")) != std::string::npos) { in ParseCommandLine()
336 values.push_back(left.substr(0, pos + 1)); in ParseCommandLine()
337 left = left.substr(pos + 1); in ParseCommandLine()
542 int32_t pos = retSnprintf; in SearchDatabase() local
545 return pos; in SearchDatabase()
547 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()
/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.cpp52 auto pos = curLine.find(':'); in HandlePrintkSyms() local
53 if (pos == std::string::npos) { in HandlePrintkSyms()
56 std::string addrInfo = base::Strip(curLine.substr(0, pos)); in HandlePrintkSyms()
58 curSymbol = base::Strip(curLine.substr(pos + 1)); in HandlePrintkSyms()
/developtools/profiler/host/smartperf/client/client_command/
Dparse_start_frame_trace.cpp45 int pos = screenStr.find("x"); in CalculateTime() local
46 std::string width = screenStr.substr(twelve, pos - twelve); in CalculateTime()
47 std::string height = screenStr.substr(pos + 1, four); in CalculateTime()
130 std::string::size_type pos; in Split() local
135 pos = str.find(pattern, i); in Split()
136 if (pos < size) { in Split()
137 std::string s = str.substr(i, pos - i); in Split()
139 i = pos + pattern.size() - 1; in Split()
Dparse_radar.cpp98 size_t pos = str.find(target); in extract_string() local
99 if (pos != std::string::npos) { in extract_string()
100 pos += target.length(); in extract_string()
101 size_t comma_pos = str.find(",", pos); in extract_string()
103 std::string result = str.substr(pos,comma_pos - pos); in extract_string()
Dparse_start_trace_noh.cpp88 std::string::size_type pos; in Split() local
93 pos = str.find(pattern, i); in Split()
94 if (pos < size) { in Split()
95 std::string s = str.substr(i, pos - i); in Split()
97 i = pos + pattern.size() - 1; 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