/system/netd/libnetdbpf/ |
D | BpfNetworkStatsTest.cpp | 236 std::vector<stats_line> lines; in TEST_F() local 241 ASSERT_EQ(0, parseBpfNetworkStatsDetailInternal(&lines, ifaces, TAG_ALL, TEST_UID1, in TEST_F() 243 ASSERT_EQ((unsigned long)2, lines.size()); in TEST_F() 244 lines.clear(); in TEST_F() 245 ASSERT_EQ(0, parseBpfNetworkStatsDetailInternal(&lines, ifaces, TAG_ALL, TEST_UID2, in TEST_F() 247 ASSERT_EQ((unsigned long)1, lines.size()); in TEST_F() 248 expectStatsLineEqual(value1, IFACE_NAME3, TEST_UID2, TEST_COUNTERSET1, 0, lines.front()); in TEST_F() 312 std::vector<stats_line> lines; in TEST_F() local 314 ASSERT_EQ(0, parseBpfNetworkStatsDetailInternal(&lines, ifaces, TAG_ALL, UID_ALL, mFakeStatsMap, in TEST_F() 316 ASSERT_EQ((unsigned long)4, lines.size()); in TEST_F() [all …]
|
D | BpfNetworkStats.cpp | 133 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/extras/simpleperf/ |
D | cmd_report_test.cpp | 57 lines.clear(); in ReportRaw() 61 lines.push_back(s); in ReportRaw() 64 ASSERT_GE(lines.size(), 2u); in ReportRaw() 69 std::vector<std::string> lines; member in ReportCommandTest 89 while (line_index < lines.size() && in TEST_F() 90 lines[line_index].find("Pid") == std::string::npos) { in TEST_F() 93 ASSERT_LT(line_index + 2, lines.size()); in TEST_F() 100 while (line_index < lines.size() && in TEST_F() 101 lines[line_index].find("Overhead") == std::string::npos) { in TEST_F() 104 ASSERT_LT(line_index + 1, lines.size()); in TEST_F() [all …]
|
D | cmd_kmem_test.cpp | 39 std::vector<std::string> lines; member 55 result->lines.clear(); in KmemReportRawFile() 59 result->lines.push_back(s); in KmemReportRawFile() 62 ASSERT_GE(result->lines.size(), 2u); in KmemReportRawFile()
|
/system/extras/simpleperf/scripts/ |
D | debug_unwind_reporter.py | 300 def parse_sample_record(lines, i): argument 302 if i == len(lines) or not lines[i].startswith('record sample:'): 306 while i < len(lines) and (not lines[i] or lines[i].startswith(' ')): 308 return i, lines[start_line:i] 310 def parse_callchain_record(lines, i, chain_type, process_maps): argument 311 if i == len(lines) or not lines[i].startswith('record callchain:'): 323 while i < len(lines) and not lines[i].startswith('record'): 324 line = lines[i].strip() 389 lines = stdoutdata.split('\n') 391 while i < len(lines): [all …]
|
D | report.py | 103 def parse_event_reports(lines): argument 107 while line_id < len(lines): 108 line = lines[line_id] 124 for line in lines[line_id:]: 272 lines = fh.readlines() 275 lines = [x.rstrip() for x in lines] 276 event_reports = parse_event_reports(lines)
|
/system/media/audio_utils/include/audio_utils/ |
D | ErrorLog.h | 98 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);
|
D | SimpleLog.h | 157 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);
|
D | PowerLog.h | 77 const char *prefix = "", size_t lines = 0, int64_t limitNs = 0) const; 88 status_t dump(int fd, const char *prefix = "", size_t lines = 0, int64_t limitNs = 0) const; 154 power_log_t *power_log, int fd, const char *prefix, size_t lines, int64_t limit_ns);
|
/system/tools/xsdc/src/com/android/xsdc/ |
D | CodeWriter.java | 51 String[] lines = code.split("\n", -1); in print() local 52 for (int i = 0; i < lines.length; ++i) { in print() 54 String line = lines[i].replaceAll("^\\s+", ""); in print() 65 if (i + 1 < lines.length) { in print()
|
/system/timezone/input_tools/android/common/src/test/java/com/android/libcore/timezone/util/ |
D | ErrorsTest.java | 103 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/ |
D | DocComment.cpp | 32 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()
|
D | DocComment.h | 47 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/ |
D | compare-bootcharts.py | 88 lines = b.split('\n') 89 if not lines[0]: 93 timestamp = int(lines[0]); 114 for line in lines[1:]:
|
/system/media/audio_utils/ |
D | PowerLog.cpp | 110 std::string PowerLog::dumpToString(const char *prefix, size_t lines, int64_t limitNs) const in dumpToString() argument 116 if (lines == 0) lines = SIZE_MAX; in dumpToString() 127 for (offset = 0; offset < (ssize_t)numberOfEntries && count < lines; ++offset) { in dumpToString() 232 status_t PowerLog::dump(int fd, const char *prefix, size_t lines, int64_t limitNs) const in dump() argument 238 const std::string s = dumpToString(prefix, lines, limitNs); in dump() 270 power_log_t *power_log, int fd, const char *prefix, size_t lines, int64_t limit_ns) in power_log_dump() argument 275 return reinterpret_cast<PowerLog *>(power_log)->dump(fd, prefix, lines, limit_ns); in power_log_dump()
|
D | ErrorLog.cpp | 36 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/core/libunwindstack/tests/ |
D | DwarfOpLogTest.cpp | 60 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/ |
D | test_utils.cpp | 41 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/ |
D | BpfNetworkStats.h | 66 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/ |
D | VtsHalNetNetdTestUtils.cpp | 48 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/ |
D | plots.py | 19 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/ |
D | code_writer.cpp | 51 std::vector<std::string> lines; in Write() local 56 lines.push_back(formatted.substr(pos, (line_end - pos) + 1)); in Write() 59 lines.push_back(formatted.substr(pos)); in Write() 65 for (const auto& line : lines) { in Write()
|
/system/extras/memory_replay/ |
D | File.cpp | 102 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/ |
D | sepolicy_cleanup_check.sh | 104 …lines=$(grep "^[^# }']" $file | grep -v $filename | grep -v "^userdebug_or_eng(\`$" | grep -v "^ty… 105 if [[ -n "$lines" ]]; then 107 echo "$lines"
|
/system/core/cli-test/ |
D | cli-test.cpp | 127 auto lines = android::base::Split(content, "\n"); in CollectTests() local 129 while (g_line < lines.size()) { in CollectTests() 130 auto line = lines[g_line++]; in CollectTests() 152 while (g_line < lines.size() && !lines[g_line].empty() && lines[g_line][0] == '\t') { in CollectTests() 153 text += lines[g_line++].substr(1) + "\n"; in CollectTests()
|