Home
last modified time | relevance | path

Searched refs:ids (Results 1 – 24 of 24) sorted by relevance

/developtools/global_resource_tool/src/
Dsolid_xml_compiler.cpp64 vector<string> ids; in ParseXml() local
65 bool result = ParseNodeId(fileInfo, xmlDocGetRootElement(doc), ids); in ParseXml()
71 for (const auto &id : ids) { in ParseXml()
82 …olidXmlCompiler::ParseNodeId(const FileInfo &fileInfo, const xmlNodePtr &node, vector<string> &ids) in ParseNodeId() argument
89 return ParseNodeId(fileInfo, node->next, ids); in ParseNodeId()
103 if (find(ids.begin(), ids.end(), name) != ids.end()) { in ParseNodeId()
107 ids.push_back(name); in ParseNodeId()
110 if (!ParseNodeId(fileInfo, node->children, ids)) { in ParseNodeId()
114 if (!ParseNodeId(fileInfo, node->next, ids)) { in ParseNodeId()
Did_worker.cpp60 vector<ResourceId> ids; in GetHeaderId() local
62 ids.insert(ids.end(), item.second.begin(), item.second.end()); in GetHeaderId()
64 return ids; in GetHeaderId()
/developtools/hiperf/src/
Dperf_file_reader.cpp163 size_t attr_size = header_.attrSize - sizeof(attr.ids); in ReadAttrSection()
173 attr.ids = *(reinterpret_cast<perf_file_section *>(&buf[attr_size])); in ReadAttrSection()
179 std::vector<uint64_t> ids; in ReadAttrSection() local
180 if (!ReadIdsForAttr(vecAttr_[i], &ids)) { in ReadAttrSection()
183 vecAttrIds_.push_back(ids); in ReadAttrSection()
186 for (auto id : ids) { in ReadAttrSection()
194 bool PerfFileReader::ReadIdsForAttr(const perf_file_attr &attr, std::vector<uint64_t> *ids) in ReadIdsForAttr() argument
196 if (attr.ids.size > 0) { in ReadIdsForAttr()
197 size_t count = attr.ids.size / sizeof(uint64_t); in ReadIdsForAttr()
198 if (fseek(fp_, attr.ids.offset, SEEK_SET) != 0) { in ReadIdsForAttr()
[all …]
Dsubcommand_report.cpp354 VectorToString(fileAttr.ids).c_str()); in LoadEventDesc()
357 std::set<uint64_t> cpuOffids(fileAttr.ids.begin(), fileAttr.ids.end()); in LoadEventDesc()
365 for (uint64_t id : fileAttr.ids) { in LoadEventDesc()
373 config.ids_ = fileAttr.ids; in LoadEventDesc()
377 fileAttr.ids, in LoadEventDesc()
392 for (uint64_t id : fileAttr.ids) { in LoadAttrSection()
398 config.ids_ = fileAttr.ids; in LoadAttrSection()
402 fileAttr.ids, ReportConfigItem(reportJsonFile_->reportConfigItems_.size(), name)); in LoadAttrSection()
405 VectorToString(fileAttr.ids).c_str()); in LoadAttrSection()
Dperf_file_writer.cpp272 HLOGD(" attrIds ids %zu", attrId.ids.size()); in WriteAttrAndId()
273 if (!Write(attrId.ids.data(), attrId.ids.size() * sizeof(uint64_t))) { in WriteAttrAndId()
286 fileAttr.ids.offset = idSectionOffset; in WriteAttrAndId()
287 fileAttr.ids.size = attrId.ids.size() * sizeof(uint64_t); in WriteAttrAndId()
288 idSectionOffset += fileAttr.ids.size; in WriteAttrAndId()
Dperf_file_format.cpp426 eventDesc.ids.resize(nrIds, 0); in PerfFileSectionEventDesc()
427 if (!Read((char *)eventDesc.ids.data(), sizeof(uint64_t) * nrIds)) { in PerfFileSectionEventDesc()
452 if (!Write((uint32_t)eventDesc.ids.size())) { in GetBinary()
459 if (!Write((char *)eventDesc.ids.data(), in GetBinary()
460 sizeof(uint64_t) * eventDesc.ids.size())) { in GetBinary()
477 size += (sizeof(uint64_t) * eventDesc.ids.size()); in GetSize()
Dsubcommand_dump.cpp341 if (!attr.ids.empty()) { in DumpAttrPortion()
343 for (const auto &id : attr.ids) { in DumpAttrPortion()
468 VectorToString(desc.ids).c_str()); in PrintFeatureEventdesc()
Dperf_events.cpp1183 auto &id = attrId.ids.emplace_back(fdItem.GetPrefId()); in GetAttrWithId()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/utils/
DCertUtils.java120 ArrayList<KeyPurposeId> ids = new ArrayList<>(); in parseExtKeyUsage() local
122 ids.add(KeyPurposeId.id_kp_clientAuth); in parseExtKeyUsage()
125 ids.add(KeyPurposeId.id_kp_serverAuth); in parseExtKeyUsage()
128 ids.add(KeyPurposeId.id_kp_codeSigning); in parseExtKeyUsage()
131 ids.add(KeyPurposeId.id_kp_emailProtection); in parseExtKeyUsage()
134 ids.add(KeyPurposeId.id_kp_smartcardlogon); in parseExtKeyUsage()
137 ids.add(KeyPurposeId.id_kp_timeStamping); in parseExtKeyUsage()
140 ids.add(KeyPurposeId.id_kp_OCSPSigning); in parseExtKeyUsage()
142 return ids.toArray(new KeyPurposeId[]{}); in parseExtKeyUsage()
/developtools/profiler/host/ohosprofiler/src/main/java/ohos/devtools/views/applicationtrace/
DDataPanel.java128 private String createTabName(List<Integer> ids) { in createTabName() argument
129 if (ids.size() == 1 && ids.get(0) != null) { in createTabName()
133 name = AllData.threadNames.get(ids.get(0)); in createTabName()
137 name = PerfData.getThreadNames().get(ids.get(0)); in createTabName()
145 return ids.size() + " Threads"; in createTabName()
DAllData.java186 nameToId.forEach((name, ids) -> { in getFuncTreeByFuncBottomUp() argument
192 for (String id : ids) { in getFuncTreeByFuncBottomUp()
202 ids.forEach( in getFuncTreeByFuncBottomUp()
205 if (ids.stream().noneMatch(id -> in getFuncTreeByFuncBottomUp()
229 List<String> ids = new ArrayList<>(); in funcGroupByStackId() local
230 ids.add(entry.getValue().get(0).getBloodId()); in funcGroupByStackId()
231 nameToId.put(entry.getValue().get(0).getFuncName(), ids); in funcGroupByStackId()
DDataProcess.java97 nameToId.forEach((name, ids) -> {
104 for (String id : ids) {
114ids.forEach(id -> recursionNode(rootNode, treeNodeMap.get(id).getPrefParentStackId(), treeNodeMap,…
/developtools/profiler/host/ohosprofiler/src/main/java/ohos/devtools/views/trace/component/
DTabSlices.java71 public void loadTabData(final List<Integer> ids, long leftNs, long rightNs) { in loadTabData() argument
73 if (ids != null && !ids.isEmpty()) { in loadTabData()
75 for (int index = 0, size = ids.size(); index < size; index++) { in loadTabData()
76 buffer.append(ids.get(index)); in loadTabData()
DTabThreadStates.java75 public void loadTabData(final List<Integer> ids, long leftNs, long rightNs) { in loadTabData() argument
77 if (ids != null && !ids.isEmpty()) { in loadTabData()
79 for (int index = 0, size = ids.size(); index < size; index++) { in loadTabData()
80 buffer.append(ids.get(index)); in loadTabData()
/developtools/hiperf/test/unittest/common/native/
Dperf_file_format_test.cpp210 item.ids = {TESTNUMBER4 * nr, TESTNUMBER5 * nr}; in TestEventDescInit()
212 size += (sizeof(uint64_t) * item.ids.size()); in TestEventDescInit()
228 ASSERT_EQ(a[i].ids.size(), b[i].ids.size()); in CompareEventDesc()
229 for (size_t j = 0; j < a[i].ids.size(); j++) { in CompareEventDesc()
230 ASSERT_EQ(a[i].ids[j], b[i].ids[j]); in CompareEventDesc()
Dreport_json_file_test.cpp79 std::vector<uint64_t> ids = {1, 2, 3}; in PrepairReportJson() local
81 ids, ReportConfigItem(json->reportConfigItems_.size(), "eventName")); in PrepairReportJson()
482 std::vector<uint64_t> ids = {1, 2, 3}; variable
483 json.reportConfigItems_.emplace(ids, ReportConfigItem(1, "eventName"));
664 std::vector<uint64_t> ids = {4, 5}; variable
666 ids, ReportConfigItem(json->reportConfigItems_.size(), "eventName2"));
687 std::vector<uint64_t> ids = {4, 5}; variable
689 ids, ReportConfigItem(json->reportConfigItems_.size(), "eventName2"));
710 std::vector<uint64_t> ids = {4, 5}; variable
712 ids, ReportConfigItem(json->reportConfigItems_.size(), "eventName2"));
Dperf_file_writer_test.cpp66 item.ids = {TESTNUMBER4 * nr, TESTNUMBER5 * nr}; in TestEventDescInit()
81 attrId.ids.emplace_back(0);
117 attrId.ids.emplace_back(0);
/developtools/global_resource_tool/include/
Dsolid_xml_compiler.h33 … bool ParseNodeId(const FileInfo &fileInfo, const xmlNodePtr &node, std::vector<std::string> &ids);
/developtools/profiler/device/plugins/native_daemon/include/
Dperf_event_record.h84 std::vector<uint64_t> ids; member
/developtools/hiperf/include/
Dperf_file_reader.h75 bool ReadIdsForAttr(const perf_file_attr &attr, std::vector<uint64_t> *ids);
Dperf_file_format.h87 perf_file_section ids; member
Dperf_event_record.h96 std::vector<uint64_t> ids; member
/developtools/profiler/host/ohosprofiler/src/main/java/ohos/devtools/views/perftrace/
DPerfData.java271 nameToId.forEach((name, ids) -> { in getFuncTreeByFuncBottomUp() argument
279 for (String id : ids) { in getFuncTreeByFuncBottomUp()
290 ids.forEach(id -> recursionNode(rootNode, treeNodeMap.get(id).getPrefParentStackId(), in getFuncTreeByFuncBottomUp()
292 if (ids.stream().noneMatch(id -> in getFuncTreeByFuncBottomUp()
/developtools/profiler/host/smartperf/ide/src/base-ui/table/
Dlit-table.ts482 let ids = JSON.parse(this.getAttribute('tree') || `["id","pid"]`); variable
491 let treeData = toTreeData(this.ds, ids[0], ids[1]);//
619 rowElement.setAttribute('id', rowData[ids[0]]);
620 rowElement.setAttribute('pid', rowData[ids[1]]);