Home
last modified time | relevance | path

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

123

/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/global_resource_tool/src/
Dresource_table.cpp77 int32_t pos = 0; in LoadResTable() local
79 if (!ReadFileHeader(in, indexHeader, pos, length)) { in LoadResTable()
85 if (!ReadLimitKeys(in, limitKeys, indexHeader.limitKeyConfigSize, pos, length)) { in LoadResTable()
91 if (!ReadIdTables(in, datas, indexHeader.limitKeyConfigSize, pos, length)) { in LoadResTable()
98 if (!ReadDataRecordPrepare(in, record, pos, length) || in LoadResTable()
110 uint32_t pos = 0; in SaveToResouorceIndex() local
115 pos += sizeof(IndexHeader); in SaveToResouorceIndex()
119 if (!Prepare(configs, limitKeyConfigs, idSets, pos)) { in SaveToResouorceIndex()
129 if (!SaveRecordItem(configs, out, idSets, pos)) { in SaveToResouorceIndex()
133 indexHeader.fileSize = pos; in SaveToResouorceIndex()
[all …]
Dfile_entry.cpp184 string::size_type pos = filePath_.find_first_of(SEPARATE.front(), offset); in GetSegments() local
185 while (pos != string::npos) { in GetSegments()
186 segments.push_back(filePath_.substr(offset, pos - offset)); in GetSegments()
187 offset = pos + 1; in GetSegments()
188 pos = filePath_.find_first_of(SEPARATE.front(), offset); in GetSegments()
222 string::size_type pos = path.find_first_of(SEPARATE.front(), offset); in CreateDirsInner() local
223 if (pos == string::npos) { in CreateDirsInner()
231 string subPath = path.substr(0, pos + 1); in CreateDirsInner()
241 return CreateDirsInner(path, pos + 1); in CreateDirsInner()
255 string::size_type pos = filePath_.find_last_of(SEPARATE.front()); in CreateDirsInner() local
[all …]
Dresource_util.cpp146 string::size_type pos = name.find_last_of("."); in GetIdName() local
147 if (pos != string::npos) { in GetIdName()
148 return name.substr(0, pos); in GetIdName()
180 size_t pos = 0; in DecomposeStrings() local
182 while (pos < length) { in DecomposeStrings()
183 if (pos + HEAD_LENGTH >= length) { in DecomposeStrings()
187 uint16_t size = (content[pos] & 0xff) | ((content[pos + 1] & 0xff) << 8); in DecomposeStrings()
188 pos += HEAD_LENGTH; in DecomposeStrings()
190 if (pos + size >= length) { in DecomposeStrings()
194 string buffer = content.substr(pos, size); in DecomposeStrings()
[all …]
/developtools/ace-js2bundle/ace-loader/plugin/templater/
Dindex.js151 const pos = { variable
160 componentValidator.validateStyle(attrValue, compileResult, pos, relativePath)
163 componentValidator.validateClass(attrValue, compileResult, pos, relativePath)
166 componentValidator.validateId(attrValue, compileResult, pos, relativePath)
169 checkAttrFor(node, attributes, pos);
170 componentValidator.validateFor(attrValue, compileResult, pos, relativePath)
173 componentValidator.validateIf(attrValue, compileResult, false, pos, relativePath)
177 compileResult, pos, relativePath)
180 componentValidator.validateAttrElse(preNode, compileResult, pos, relativePath)
183 componentValidator.validateAppend(attrValue, compileResult, pos, relativePath)
[all …]
/developtools/profiler/host/smartperf/trace_streamer/src/trace_data/
Dtrace_data_db.cpp266 int pos = retSnprintf; in SearchDatabase() local
269 return pos; in SearchDatabase()
271 retSnprintf = std::snprintf(res + pos, outLen - pos, "%s", "{\"columns\":["); in SearchDatabase()
275 pos += retSnprintf; in SearchDatabase()
277 …retSnprintf = std::snprintf(res + pos, outLen - pos, "%s%s%s", "\"", sqlite3_column_name(stmt, i),… in SearchDatabase()
281 pos += retSnprintf; in SearchDatabase()
283 pos--; // rmove the last ',' in SearchDatabase()
284 retSnprintf = std::snprintf(res + pos, outLen - pos, "%s", "],\"values\":["); in SearchDatabase()
288 pos += retSnprintf; in SearchDatabase()
296 if (pos + row.size() + strlen(",]}\r\n") >= size_t(outLen)) { in SearchDatabase()
[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/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/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()
Dftrace_fs_ops.cpp179 auto pos = value.find('['); in GetTraceClock() local
180 CHECK_TRUE(pos != std::string::npos, "", "find [ in %s failed!", path.c_str()); in GetTraceClock()
181 pos++; in GetTraceClock()
183 auto rpos = value.find(']', pos); in GetTraceClock()
185 return value.substr(pos, rpos - pos); in GetTraceClock()
Dtrace_ops.cpp81 auto pos = line.find('-'); in ListCategories() local
82 if (pos == std::string::npos) { in ListCategories()
86 auto category = line.substr(0, pos - 1); in ListCategories()
/developtools/global_resource_tool/include/
Dresource_table.h66 std::map<std::string, IdSet> &idSets, uint32_t &pos) const;
68 std::map<std::string, IdSet> &idSets, uint32_t &pos) const;
72 …bool ReadFileHeader(std::ifstream &in, IndexHeader &indexHeader, int32_t &pos, int32_t length) con…
74 uint32_t count, int32_t &pos, int32_t length) const;
76 uint32_t count, int32_t &pos, int32_t length) const;
77 …bool ReadDataRecordPrepare(std::ifstream &in, RecordItem &record, int32_t &pos, int32_t length) co…
/developtools/packing_tool/adapter/ohos/
DCollectBinInfo.java124 long pos = fileDataPos; in readBinFileData() local
125 while (pos < fileSize) { in readBinFileData()
136 binStream.seek(pos + INT_LENGTH + nameLen + INT_LENGTH + relativePathLen); in readBinFileData()
143pos = pos + INT_LENGTH + nameLen + INT_LENGTH + relativePathLen + LONG_LENGTH + dataLen; in readBinFileData()
/developtools/profiler/device/plugins/api/src/
Dplugin_watcher.cpp77 size_t pos = fileName.rfind(".so"); in ScanPlugins() local
78 if (pos != std::string::npos && (pos == fileName.length() - strlen(".so"))) { in ScanPlugins()
122 size_t pos = fileName.rfind(".so"); in MonitorIsSet() local
123 if ((pos == std::string::npos) || (pos != fileName.length() - strlen(".so"))) { in MonitorIsSet()
/developtools/profiler/device/plugins/native_daemon/src/
Dutilities.cpp32 size_t pos = 0; in StringReplace() local
35 while ((pos = source.find(from)) != std::string::npos) { in StringReplace()
37 result.append(source.substr(0, pos) + to); in StringReplace()
38 source.erase(0, pos + from.length()); in StringReplace()
48 size_t pos(0); in SubStringCount() local
52 while ((pos = source.find(sub, pos)) != std::string::npos) { in SubStringCount()
53 pos += sub.size(); in SubStringCount()
61 size_t pos = 0; in StringSplit() local
66 while ((pos = source.find(split)) != std::string::npos) { in StringSplit()
68 std::string token = source.substr(0, pos); in StringSplit()
[all …]
/developtools/profiler/device/base/include/
Dlogging.h124 std::string::size_type pos = 0u; in StringReplace() local
125 while ((pos = str.find(oldStr, pos)) != std::string::npos) { in StringReplace()
126 str.replace(pos, oldStr.length(), newStr); in StringReplace()
127 pos += newStr.length(); in StringReplace()
/developtools/hiperf/src/
Dutilities.cpp87 size_t pos = 0; in StringReplace() local
90 while ((pos = source.find(from)) != std::string::npos) { in StringReplace()
92 result.append(source.substr(0, pos) + to); in StringReplace()
93 source.erase(0, pos + from.length()); in StringReplace()
103 size_t pos(0); in SubStringCount() local
107 while ((pos = source.find(sub, pos)) != std::string::npos) { in SubStringCount()
108 pos += sub.size(); in SubStringCount()
120 size_t pos = 0; in StringSplit() local
121 while ((pos = source.find(split)) != std::string::npos) { in StringSplit()
123 std::string token = source.substr(0, pos); in StringSplit()
[all …]
/developtools/ace-ets2bundle/compiler/src/
Dresult_process.ts47 if (item.pos) {
49 … const posOfNode: ts.LineAndCharacter = sourceFile.getLineAndCharacterOfPosition(item.pos);
Dprocess_ui_syntax.ts139 pos: node.getStart()
213 pos: node.getStart()
303 pos: node.getStart()
339 function validateResourceData(resourceData: string[], resources: object, pos: number): boolean {
344 pos: pos
350 pos: pos
356 pos: pos
362 pos: pos
474 pos: componentCollection.entryComponentPos
Dprocess_component_member.ts338 pos: argument.getStart()
412 pos: node.getStart()
785 pos: name.getStart()
794 pos: decoratorsIdentifier.getStart()
803 pos: propertyName.getStart()
812 pos: propertyName.getStart()
820 pos: propertyName.getStart()
830 pos: propertyName.getStart()
840 pos: propertyName.getStart()
849 pos: propertyName.getStart()
[all …]
Dpre_process.ts130 pos: member.pos
215 const contentBeforePos: string = oriContent.substring(0, member.pos);
221 let newPos: number = member.pos;
223 if (member.pos >= key) {
229 slotMap.set(member.pos, visualContent.length);
/developtools/profiler/device/plugins/native_daemon/include/
Dhashlistpp.h741 auto HashList<Key, Val>::insert(const Iterator pos, const Key& key, const Val& val) -> HashList<Key…
747 if (InsertNewNode(pos, pnode)) {
756 if (MoveNode(pos, pnode)) {
763 auto HashList<Key, Val>::insert(const Iterator pos, const Key& key, Val&& val) -> HashList<Key, Val…
769 if (InsertNewNode(pos, pnode)) {
778 if (MoveNode(pos, pnode)) {
787 auto pos = end(); variable
788 ++pos;
789 return pos;
799 template <typename Key, typename Val> auto HashList<Key, Val>::erase(const Iterator pos)
[all …]
Dhashlist.h193 Iterator insert(const Iterator pos, const Key &key, const Val &value);
194 Iterator insert(const Iterator pos, const Key &key, Val &&value);
196 Iterator erase(const Iterator pos);
202 bool InsertNewNode(const Iterator& pos, LinkNode<Key, Val> *&pnode);
203 bool MoveNode(const Iterator& pos, LinkNode<Key, Val> *&pnode);

123