Home
last modified time | relevance | path

Searched refs:lines (Results 1 – 25 of 110) sorted by relevance

12345

/system/netd/libnetdbpf/
DBpfNetworkStatsTest.cpp227 std::vector<stats_line> lines; in TEST_F() local
232 ASSERT_EQ(0, parseBpfNetworkStatsDetailInternal(&lines, ifaces, TAG_ALL, TEST_UID1, in TEST_F()
234 ASSERT_EQ((unsigned long)2, lines.size()); in TEST_F()
235 lines.clear(); in TEST_F()
236 ASSERT_EQ(0, parseBpfNetworkStatsDetailInternal(&lines, ifaces, TAG_ALL, TEST_UID2, in TEST_F()
238 ASSERT_EQ((unsigned long)1, lines.size()); in TEST_F()
239 expectStatsLineEqual(value1, IFACE_NAME3, TEST_UID2, TEST_COUNTERSET1, 0, lines.front()); in TEST_F()
299 std::vector<stats_line> lines; in TEST_F() local
301 ASSERT_EQ(0, parseBpfNetworkStatsDetailInternal(&lines, ifaces, TAG_ALL, UID_ALL, mFakeStatsMap, in TEST_F()
303 ASSERT_EQ((unsigned long)4, lines.size()); in TEST_F()
[all …]
DBpfNetworkStats.cpp133 int parseBpfNetworkStatsDetailInternal(std::vector<stats_line>* lines, in parseBpfNetworkStatsDetailInternal() argument
139 [lines, &limitIfaces, &limitTag, &limitUid, &unknownIfaceBytesTotal, &ifaceMap]( in parseBpfNetworkStatsDetailInternal()
163 lines->push_back(populateStatsEntry(key, statsEntry.value(), ifname)); in parseBpfNetworkStatsDetailInternal()
182 groupNetworkStats(lines); in parseBpfNetworkStatsDetailInternal()
186 int parseBpfNetworkStatsDetail(std::vector<stats_line>* lines, in parseBpfNetworkStatsDetail() argument
218 int ret = parseBpfNetworkStatsDetailInternal(lines, limitIfaces, limitTag, limitUid, statsMap, in parseBpfNetworkStatsDetail()
234 int parseBpfNetworkStatsDevInternal(std::vector<stats_line>* lines, in parseBpfNetworkStatsDevInternal() argument
238 const auto processDetailIfaceStats = [lines, &unknownIfaceBytesTotal, &ifaceMap, &statsMap]( in parseBpfNetworkStatsDevInternal()
250 lines->push_back(populateStatsEntry(fakeKey, value, ifname)); in parseBpfNetworkStatsDevInternal()
260 groupNetworkStats(lines); in parseBpfNetworkStatsDevInternal()
[all …]
/system/tools/mkbootimg/
Dunpack_bootimg.py81 lines = []
82 lines.append(f'boot magic: {self.boot_magic}')
85 lines.append(f'kernel_size: {self.kernel_size}')
86 lines.append(
88 lines.append(f'ramdisk size: {self.ramdisk_size}')
89 lines.append(
91 lines.append(f'second bootloader size: {self.second_size}')
92 lines.append(
95 lines.append(
97 lines.append(f'page size: {self.page_size}')
[all …]
/system/extras/simpleperf/
Dcmd_report_test.cpp57 lines.clear(); in ReportRaw()
61 lines.push_back(s); in ReportRaw()
64 ASSERT_GE(lines.size(), 2u); in ReportRaw()
80 std::vector<std::string> lines; member in ReportCommandTest
100 while (line_index < lines.size() && lines[line_index].find("Pid") == std::string::npos) { in TEST_F()
103 ASSERT_LT(line_index + 2, lines.size()); in TEST_F()
110 while (line_index < lines.size() && lines[line_index].find("Overhead") == std::string::npos) { in TEST_F()
113 ASSERT_LT(line_index + 1, lines.size()); in TEST_F()
114 ASSERT_NE(lines[line_index].find("Command"), std::string::npos); in TEST_F()
115 ASSERT_NE(lines[line_index].find("Pid"), std::string::npos); in TEST_F()
[all …]
Dcmd_kmem_test.cpp39 std::vector<std::string> lines; member
54 result->lines.clear(); in KmemReportRawFile()
58 result->lines.push_back(s); in KmemReportRawFile()
61 ASSERT_GE(result->lines.size(), 2u); in KmemReportRawFile()
/system/media/audio_utils/include/audio_utils/
DErrorLog.h98 std::string dumpToString(const char *prefix = "", size_t lines = 0, int64_t limitNs = 0) const
106 if (lines == 0) {
107 lines = SIZE_MAX;
111 if (mErrors == 0 || lines <= headerLines) {
115 lines = std::min(lines - headerLines, numberOfEntries);
118 for (offset = 0; offset < (ssize_t)lines; ++offset) {
151 status_t dump(int fd, const char *prefix = "", size_t lines = 0, int64_t limitNs = 0) const
154 const std::string s = dumpToString(prefix, lines, limitNs);
239 error_log_t *error_log, int fd, const char *prefix, size_t lines, int64_t limit_ns);
DSimpleLog.h157 std::string dumpToString(const char *prefix = "", size_t lines = 0, int64_t limitNs = 0) const
159 if (lines == 0) {
160 lines = mLog.size();
168 if (mLog.size() > lines) {
169 it += (mLog.size() - lines);
191 status_t dump(int fd, const char *prefix = "", size_t lines = 0, int64_t limitNs = 0) const
195 const std::string s = dumpToString(prefix, lines, limitNs);
DPowerLog.h78 std::string dumpToString(const char *prefix = "", size_t lines = 0, int64_t limitNs = 0,
92 status_t dump(int fd, const char *prefix = "", size_t lines = 0, int64_t limitNs = 0,
161 power_log_t *power_log, int fd, const char *prefix, size_t lines, int64_t limit_ns);
/system/tools/xsdc/src/com/android/xsdc/
DCodeWriter.java57 String[] lines = code.split("\n", -1); in print() local
58 for (int i = 0; i < lines.length; ++i) { in print()
60 String line = lines[i].replaceAll("^\\s+", ""); in print()
71 if (i + 1 < lines.length) { in print()
/system/timezone/input_tools/android/common/src/test/java/com/android/libcore/timezone/util/
DErrorsTest.java103 String[] lines = errors.asString().split("\n"); in scope() local
105 String line0 = lines[0]; in scope()
109 String line1 = lines[1]; in scope()
114 String line2 = lines[2]; in scope()
119 String line3 = lines[3]; in scope()
124 String line4 = lines[4]; in scope()
/system/tools/hidl/
DDocComment.cpp32 std::vector<std::string> lines = base::Split(base::Trim(comment), "\n"); in DocComment() local
36 for (size_t l = 0; l < lines.size(); l++) { in DocComment()
37 const std::string& line = lines[l]; in DocComment()
62 DocComment::DocComment(const std::vector<std::string>& lines, const Location& location, in DocComment() argument
64 : mLines(lines), mType(type), mLocation(location) {} in DocComment()
DDocComment.h47 DocComment(const std::vector<std::string>& lines, const Location& location,
54 const std::vector<std::string>& lines() const { return mLines; } in lines() function
/system/core/init/
Dcompare-bootcharts.py88 lines = b.split('\n')
89 if not lines[0]:
93 timestamp = int(lines[0]);
114 for line in lines[1:]:
/system/media/audio_utils/
DPowerLog.cpp111 const char *prefix, size_t lines, int64_t limitNs, bool logPlot) const in dumpToString() argument
117 if (lines == 0) lines = SIZE_MAX; in dumpToString()
128 for (offset = 0; offset < (ssize_t)numberOfEntries && count < lines; ++offset) { in dumpToString()
236 int fd, const char *prefix, size_t lines, int64_t limitNs, bool logPlot) const in dump() argument
242 const std::string s = dumpToString(prefix, lines, limitNs, logPlot); in dump()
274 power_log_t *power_log, int fd, const char *prefix, size_t lines, int64_t limit_ns) in power_log_dump() argument
279 return reinterpret_cast<PowerLog *>(power_log)->dump(fd, prefix, lines, limit_ns); in power_log_dump()
DErrorLog.cpp36 error_log_t *error_log, int fd, const char *prefix, size_t lines, int64_t limit_ns) in error_log_dump() argument
41 return reinterpret_cast<ErrorLog<int32_t> *>(error_log)->dump(fd, prefix, lines, limit_ns); in error_log_dump()
/system/unwinding/libunwindstack/tests/
DDwarfOpLogTest.cpp60 std::vector<std::string> lines; in TYPED_TEST_P() local
61 this->op_->GetLogInfo(0, opcode_buffer.size(), &lines); in TYPED_TEST_P()
65 ASSERT_EQ(expected, lines); in TYPED_TEST_P()
/system/netd/tests/
Dtest_utils.cpp41 std::vector<std::string> lines; in runCommand() local
45 return lines; in runCommand()
52 lines.push_back(std::string(line, linelen)); in runCommand()
58 return lines; in runCommand()
/system/netd/libnetdbpf/include/netdbpf/
DBpfNetworkStats.h66 int parseBpfNetworkStatsDetailInternal(std::vector<stats_line>* lines,
110 int parseBpfNetworkStatsDevInternal(std::vector<stats_line>* lines,
116 int parseBpfNetworkStatsDetail(std::vector<stats_line>* lines,
120 int parseBpfNetworkStatsDev(std::vector<stats_line>* lines);
121 void groupNetworkStats(std::vector<stats_line>* lines);
/system/hardware/interfaces/net/netd/testutils/
DVtsHalNetNetdTestUtils.cpp48 std::vector<std::string> lines; in runCommand() local
53 return lines; in runCommand()
60 lines.push_back(std::string(line, linelen)); in runCommand()
65 return lines; in runCommand()
/system/media/camera/docs/
Dplots.py19 lines, = plt.plot(x,y)
20 lines.set_color(linecolor)
21 lines.set_linewidth(4)
22 lines.set_marker('o')
23 lines.set_markeredgecolor(markercolor)
24 lines.set_markersize(6)
25 lines.set_markeredgewidth(2)
/system/tools/aidl/
Dcomments.cpp74 std::vector<std::string> lines; in TrimmedLines() local
97 lines.push_back(sanitized_line.substr(0, i)); in TrimmedLines()
100 while (!lines.empty() && Trim(lines.back()).empty()) { in TrimmedLines()
101 lines.pop_back(); in TrimmedLines()
103 return lines; in TrimmedLines()
Dcode_writer.cpp53 std::vector<std::string> lines; in Write() local
58 lines.push_back(formatted.substr(pos, (line_end - pos) + 1)); in Write()
61 lines.push_back(formatted.substr(pos)); in Write()
67 for (const auto& line : lines) { in Write()
/system/extras/memory_replay/
DFile.cpp102 size_t lines = 0; in GetUnwindInfo() local
110 lines++; in GetUnwindInfo()
114 lines++; in GetUnwindInfo()
116 *reinterpret_cast<size_t*>(mem) = lines; in GetUnwindInfo()
/system/sepolicy/tools/
Dsepolicy_cleanup_check.sh104lines=$(grep "^[^# }']" $file | grep -v $filename | grep -v "^userdebug_or_eng(\`$" | grep -v "^ty…
105 if [[ -n "$lines" ]]; then
107 echo "$lines"
/system/extras/simpleperf/scripts/
Dreport.py104 def parse_event_reports(lines): argument
108 while line_id < len(lines):
109 line = lines[line_id]
125 for line in lines[line_id:]:
273 lines = fh.readlines()
276 lines = [x.rstrip() for x in lines]
277 event_reports = parse_event_reports(lines)

12345