/system/tools/mkbootimg/ |
D | unpack_bootimg.py | 85 lines = [] 86 lines.append(f'boot magic: {self.boot_magic}') 89 lines.append(f'kernel_size: {self.kernel_size}') 90 lines.append( 92 lines.append(f'ramdisk size: {self.ramdisk_size}') 93 lines.append( 95 lines.append(f'second bootloader size: {self.second_size}') 96 lines.append( 99 lines.append( 101 lines.append(f'page size: {self.page_size}') [all …]
|
/system/extras/simpleperf/ |
D | cmd_report_test.cpp | 66 lines.clear(); in ReportRaw() 70 lines.push_back(s); in ReportRaw() 73 ASSERT_GE(lines.size(), 2u); in ReportRaw() 90 std::vector<std::string> lines; member in ReportCommandTest 113 while (line_index < lines.size() && lines[line_index].find("Pid") == std::string::npos) { in TEST_F() 116 ASSERT_LT(line_index + 2, lines.size()); in TEST_F() 124 while (line_index < lines.size() && lines[line_index].find("Overhead") == std::string::npos) { in TEST_F() 127 ASSERT_LT(line_index + 1, lines.size()); in TEST_F() 128 ASSERT_NE(lines[line_index].find("Command"), std::string::npos); in TEST_F() 129 ASSERT_NE(lines[line_index].find("Pid"), std::string::npos); in TEST_F() [all …]
|
D | event_table_generator.py | 178 lines = [] 180 lines.append(gen_event_type_entry_str(event.name, 'PERF_TYPE_RAW', '0x%x' % 182 return self.add_arm_guard(''.join(lines)) 190 lines = [] 193 lines.append('{"%s", {%s}},' % (cpu.name, event_list)) 194 text += self.add_arm_guard('\n'.join(lines)) 202 lines = [] 205 lines.append('{0x%xull, "%s"},' % (cpu_id, cpu.name)) 206 text += '\n'.join(lines)
|
D | cmd_kmem_test.cpp | 39 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/ |
D | ErrorLog.h | 100 std::string dumpToString(const char *prefix = "", size_t lines = 0, int64_t limitNs = 0) const 108 if (lines == 0) { 109 lines = SIZE_MAX; 113 if (mErrors == 0 || lines <= headerLines) { 117 lines = std::min(lines - headerLines, numberOfEntries); 120 for (offset = 0; offset < (ssize_t)lines; ++offset) { 153 status_t dump(int fd, const char *prefix = "", size_t lines = 0, int64_t limitNs = 0) const 156 const std::string s = dumpToString(prefix, lines, limitNs); 241 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 | 54 std::string dumpToString(const char* prefix = "", size_t lines = 0, int64_t limitNs = 0, 144 std::string dumpToString(const char *prefix = "", size_t lines = 0, int64_t limitNs = 0, 158 status_t dump(int fd, const char *prefix = "", size_t lines = 0, int64_t limitNs = 0, 221 power_log_t *power_log, int fd, const char *prefix, size_t lines, int64_t limit_ns);
|
/system/tools/aidl/ |
D | comments.cpp | 75 std::vector<std::string> lines; in TrimmedLines() local 98 lines.push_back(sanitized_line.substr(0, i)); in TrimmedLines() 101 while (!lines.empty() && Trim(lines.back()).empty()) { in TrimmedLines() 102 lines.pop_back(); in TrimmedLines() 104 return lines; in TrimmedLines() 209 auto lines = TrimmedLines(*it); in FormatCommentsForJava() local 212 for (const auto& line : lines) { in FormatCommentsForJava() 221 bool multiline = lines.size() > 1; in FormatCommentsForJava() 224 for (const auto& line : lines) { in FormatCommentsForJava()
|
D | code_writer.cpp | 45 std::vector<std::string> lines; in WriteString() local 50 lines.push_back(str.substr(pos, (line_end - pos) + 1)); in WriteString() 53 lines.push_back(str.substr(pos)); in WriteString() 59 for (const auto& line : lines) { in WriteString()
|
/system/logging/logd/integration_test/ |
D | logd_integration_test.py | 65 lines = iter(output.split("\n")) 77 line = next(lines) 106 lines = get_pid_logs(pid) 107 … self.assertFalse("\n" in lines, f"{service} ({pid}) shouldn't have logs, but found: {lines}") 112 lines = get_pid_logs(pid) 113 … self.assertTrue("\n" in lines, f"{service} ({pid}) should have logs, but found: {lines}")
|
/system/media/audio_utils/ |
D | PowerLog.cpp | 81 const char *prefix, size_t lines, int64_t limitNs, bool logPlot) const in dumpToString() argument 85 if (lines == 0) lines = SIZE_MAX; in dumpToString() 96 for (offset = 0; offset < (ssize_t)numberOfEntries && count < lines; ++offset) { in dumpToString() 250 const char *prefix, size_t lines, int64_t limitNs, bool logPlot) const in dumpToString() argument 257 if (lines > 0) { in dumpToString() 268 const size_t l = (1 << i) * lines / norm; in dumpToString() 276 sublines[logs - 1] = lines - alloc; in dumpToString() 291 int fd, const char *prefix, size_t lines, int64_t limitNs, bool logPlot) const in dump() argument 297 const std::string s = dumpToString(prefix, lines, limitNs, logPlot); in dump() 329 power_log_t *power_log, int fd, const char *prefix, size_t lines, int64_t limit_ns) in power_log_dump() argument [all …]
|
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/dmesgd/ |
D | dmesg_parser_test.cpp | 26 void ReadLines(const std::vector<std::string>& lines); 27 bool CheckReport(const std::vector<std::string>& lines); 33 void DmesgParserTest::ReadLines(const std::vector<std::string>& lines) { in ReadLines() argument 34 for (auto line : lines) parser.ProcessLine(line); in ReadLines() 37 bool DmesgParserTest::CheckReport(const std::vector<std::string>& lines) { in CheckReport() argument 42 for (auto line : lines) { in CheckReport()
|
/system/tools/xsdc/src/main/java/com/android/xsdc/ |
D | CodeWriter.java | 57 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/ |
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()
|
/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/unwinding/libunwindstack/tests/ |
D | DwarfOpLogTest.cpp | 62 std::vector<std::string> lines; in TYPED_TEST_P() local 63 this->op_->GetLogInfo(0, opcode_buffer.size(), &lines); in TYPED_TEST_P() 67 ASSERT_EQ(expected, lines); in TYPED_TEST_P()
|
/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/extras/memory_replay/ |
D | File.cpp | 103 size_t lines = 0; in GetUnwindInfo() local 111 lines++; in GetUnwindInfo() 115 lines++; in GetUnwindInfo() 117 *reinterpret_cast<size_t*>(mem) = lines; in GetUnwindInfo()
|
/system/netd/tests/ |
D | test_utils.cpp | 52 std::vector<std::string> lines; in runCommand() local 56 return lines; in runCommand() 68 lines.push_back(str); in runCommand() 74 return lines; in runCommand()
|
/system/extras/simpleperf/scripts/ |
D | report.py | 105 def parse_event_reports(lines): argument 109 while line_id < len(lines): 110 line = lines[line_id] 126 for line in lines[line_id:]: 274 lines = fh.readlines() 277 lines = [x.rstrip() for x in lines] 278 event_reports = parse_event_reports(lines)
|
/system/extras/perf_tools/bats/ |
D | lcan.py | 25 self.lines = [] 47 self.lines = otherLCItem.lines 50 self.lines.append(line) 59 self.lines.extend(otherItem.lines) 82 if (len(self.lines)>0): 83 …} {:.4f} - {}".format(newTimeString, self.moduleName, self.keyword, self.valueMsec, self.lines[0])) 88 if (len(self.lines)<min): 90 for line in self.lines: 193 self.lines.append(line) 223 for line in self.lines: [all …]
|
/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"
|