/development/scripts/ |
D | disassemble_tombstone.py | 38 for line in line_generator: 39 yield line 40 abi_header = abi_line.search(line) 60 for line in line_generator: 61 yield line 62 if register_list_re.search(line): 66 code_match = codeblock_re.search(line) 75 for line in line_generator: 76 yield line 77 if line.startswith('backtrace:'): [all …]
|
D | add3prf.py | 91 for line in inf: 92 match = YMD_MATCHER.match(line) 101 match = YMD_LINE_MATCHER.match(line) 130 for line in input_file: 131 if APACHE_MATCHER.match(line): 133 if MIT_MATCHER.match(line): 135 if BSD_MATCHER.match(line): 237 def found_line(file_name, line): argument 240 return line in input_file 261 def toml2json(line): argument [all …]
|
D | stack_core.py | 173 lines = [self.CleanLine(line) for line in lines] 178 for line in lines: 179 self.ProcessLine(line) 185 def MatchTraceLine(self, line): argument 186 if self.trace_line.match(line): 187 match = self.trace_line.match(line) 194 if self.sanitizer_trace_line.match(line): 195 match = self.sanitizer_trace_line.match(line) 266 for line in cmd.stdout: 267 if self.zipinfo_central_directory_line.search(line): [all …]
|
D | compare-installed-size.py | 45 for line in input_stream: 47 line = line.strip() 50 size, name = line.split()
|
D | disassemble_test.py | 8 …for line in disassemble_tombstone.Disassemble(iter(disassemble_test_input.tests[test].splitlines(T… 9 print line,
|
/development/vndk/tools/header-checker/src/utils/ |
D | config_file.cpp | 42 std::string line; in ParseFile() local 43 while (std::getline(stream_, line)) { in ParseFile() 44 ParseLine(++line_no, line); in ParseFile() 50 void ConfigParser::ParseLine(size_t line_no, std::string_view line) { in ParseLine() argument 51 if (line.empty() || line[0] == ';' || line[0] == '#') { in ParseLine() 57 if (line[0] == '[') { in ParseLine() 58 std::string::size_type pos = line.rfind(']'); in ParseLine() 63 std::string_view section_name = line.substr(1, pos - 1); in ParseLine() 69 std::string::size_type pos = line.find('='); in ParseLine() 76 std::string_view key = Trim(line.substr(0, pos)); in ParseLine() [all …]
|
/development/vndk/tools/header-checker/src/repr/symbol/ |
D | version_script_parser.cpp | 54 const std::string &line) { in ParseSymbolTags() argument 60 std::string_view line_view(line); in ParseSymbolTags() 164 bool VersionScriptParser::ParseSymbolLine(const std::string &line, in ParseSymbolLine() argument 167 std::string::size_type pos = line.find(";"); in ParseSymbolLine() 169 ReportError("No semicolon at the end of the symbol line: " + line); in ParseSymbolLine() 173 std::string symbol(utils::Trim(line.substr(0, pos))); in ParseSymbolLine() 175 ParsedTags tags = ParseSymbolTags(line); in ParseSymbolLine() 214 std::string line; in ParseVersionBlock() local 215 if (!ReadLine(line)) { in ParseVersionBlock() 219 if (line.find("}") != std::string::npos) { in ParseVersionBlock() [all …]
|
/development/tools/bugreport/src/com/android/bugreport/logcat/ |
D | Logcat.java | 37 for (LogLine line: lines) { in filter() 38 if (tags.contains(line.tag) && (levels == null || levels.indexOf(line.level) >= 0)) { in filter() 39 result.add(line); in filter() 50 for (LogLine line: lines) { in filter() 51 if (tag.equals(line.tag) && (levels == null || levels.indexOf(line.level) >= 0)) { in filter() 52 result.add(line); in filter()
|
/development/testrunner/ |
D | am_instrument_parser.py | 48 for line in result.splitlines(): 49 result_block_string += line + '\n' 51 if "INSTRUMENTATION_STATUS_CODE:" in line: 60 if "INSTRUMENTATION_CODE:" in line: 90 for line in result.split('\n'): 91 line = line.strip(string.whitespace) 92 if re_result.match(line): 94 key = re_result.search(line).group(1).strip(string.whitespace) 97 val = re_result.search(line).group(2).strip(string.whitespace) 104 elif re_code.match(line): [all …]
|
D | android_mk.py | 45 def _ProcessMKLine(self, line): argument 53 m = self._RE_INCLUDE.match(line) 57 parts = line.split(self._VAR_DELIMITER) 61 if line.find('libgtest_main') != -1: 154 for line in mk: 155 self._ProcessMKLine(line)
|
/development/tools/logblame/ |
D | ps.py | 57 for line in lines: 58 if not self._processes.has_key(line[1]): 59 uid = self.FindUid(ParseUid(line[0])) 60 self._processes[line[1]] = Process(uid, line[1], line[2], line[3]) 71 for line in lines: 72 if not self._uids.has_key(line[0]): 73 self._uids[line[1]] = Uid(*line) 115 for line in text.splitlines(): 116 m = HEADER_RE.match(line) 119 m = PROCESS_RE.match(line)
|
D | logs.py | 96 for line in f: 100 if len(line) > 0 and line[-1] == '\n': 101 line = line[0:-1] 103 m = BUFFER_BEGIN.match(line) 112 m = BUFFER_SWITCH.match(line) 121 m = HEADER.match(line) 139 m = HEADER_TYPE2.match(line) 158 if not len(line): 167 logLine.text += line 170 logLine.text += line [all …]
|
/development/vndk/tools/elfcheck/elfcheck/ |
D | rewriter.py | 30 def _report_error(line, fmt, *args): argument 33 print(fmt.format(line, *args), file=sys.stderr) 69 def append(self, line): argument 71 self._lines.append((self._KEEP, line)) 76 for line in lines: 77 self.append(line) 80 def replace(self, locs, line): argument 84 self._lines[next(locs)] = (self._KEEP, line) 92 for action, line in self._lines: 94 print(line, file=out_file) [all …]
|
D | readobj.py | 39 for line in stdout.decode('utf-8').splitlines(): 40 match = _ELF_CLASS.match(line) 51 for line in stdout.decode('utf-8').splitlines(): 52 match = _DT_NEEDED.match(line) 56 match = _DT_SONAME.match(line)
|
/development/tools/axl/ |
D | chewperf.py | 17 line = rawLines[x].split() 19 if line[-1] == "SIGNAL_STRENGTH": 34 for line in rawLines: 35 if "Pulled" in line: 36 chewed = [int(line.split()[5]), int(line.split()[7])] 39 out.append("%s %d" % (line, (tm - last))) 42 out.append(line)
|
/development/tools/bugreport/src/com/android/bugreport/inspector/ |
D | Inspector.java | 584 final LogLine line = lines.get(i); in inventLogcatTimes() local 585 if (line.time == null) { in inventLogcatTimes() 586 line.time = time; in inventLogcatTimes() 588 time = line.time; in inventLogcatTimes() 595 final LogLine line = lines.get(i); in inventLogcatTimes() local 596 if (line.time != null) { in inventLogcatTimes() 597 time = line.time; in inventLogcatTimes() 602 final LogLine line = lines.get(i); in inventLogcatTimes() local 603 line.time = time; in inventLogcatTimes() 717 public boolean match(LogLine line) { in match() argument [all …]
|
/development/tools/bugreport/src/com/android/bugreport/monkey/ |
D | MonkeyLogParser.java | 55 final Line line = lines.next(); in parse() local 56 final String text = line.text; in parse() 86 final Line line = lines.next(); in extractAnrLines() local 90 anrStart.reset(line.text); in extractAnrLines() 93 list.add(new Line(lineno, line.text)); in extractAnrLines() 97 monkeyEnd.reset(line.text); in extractAnrLines() 101 list.add(new Line(lineno, line.text)); in extractAnrLines()
|
/development/tools/idegen/src/com/android/idegen/ |
D | MakeFileParser.java | 94 public boolean processLine(String line) throws IOException { 95 String trimmed = line.trim(); in line.trim() 119 private void processKeyValuePairs(String line) { 120 if (line.contains("=")) { 122 if (line.contains(":")) { 123 arr = line.split(":="); 125 arr = line.split("\\+="); 128 logger.info("Malformed line " + line); 146 private void appendPartialLine(String line) { 152 if (line.endsWith("\\")) { [all …]
|
/development/vndk/tools/sourcedr/blueprint/tests/ |
D | test_lexer.py | 50 self.assertEqual(exc.line, 1) 56 self.assertEqual(exc.line, 3) 75 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 0) 76 self.assertEqual(line, 1) 79 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 1) 80 self.assertEqual(line, 1) 83 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 2) 84 self.assertEqual(line, 1) 88 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 3) 89 self.assertEqual(line, 2) [all …]
|
/development/samples/IntentPlayground/src/com/example/android/intentplayground/ |
D | AMControl.java | 54 String line; in execCmd() local 62 while ((line = reader.readLine()) != null) { in execCmd() 63 output.append(line).append('\n'); in execCmd() 69 while ((line = reader.readLine()) != null) { in execCmd() 70 output.append(line).append('\n'); in execCmd()
|
/development/tools/findunused/ |
D | find_unused_resources.rb | 94 file.each { |line| 96 findAllOccurrences(re, line).each { |id| 114 file.each { |line| 115 findAllOccurrences(@@stringIdPattern, line).each {|id| 118 findAllOccurrences(@@layoutIdPattern, line).each {|id| 122 findAllOccurrences(re, line).each {|id| 133 file.each { |line| 135 findAllOccurrences(re, line).each {|id|
|
/development/tools/core_connectivity/ |
D | check_style.sh | 32 while read -r line; do 33 test `echo $line | wc -c` -gt 65 && echo "FAILED: Line $i exceed 65 chars limit: $line"
|
/development/tools/bugreport/src/com/android/bugreport/stacks/ |
D | VmTracesParser.java | 57 final Line line = lines.next(); in parse() local 58 final String text = line.text; in parse() 66 final Line line = lines.next(); in parse() local 67 final String text = line.text; in parse()
|
/development/samples/browseable/PermissionRequest/src/com.example.android.permissionrequest/ |
D | SimpleWebServer.java | 127 String line; in handle() local 128 while (!TextUtils.isEmpty(line = reader.readLine())) { in handle() 129 if (line.startsWith("GET /")) { in handle() 130 int start = line.indexOf('/') + 1; in handle() 131 int end = line.indexOf(' ', start); in handle() 132 route = line.substring(start, end); in handle()
|
/development/tools/bugreport/src/com/android/bugreport/html/ |
D | Renderer.java | 499 final LogLine line = bugreport.interestingLogLines.get(i); in makeLogcatHdf() local 500 makeLogcatLineHdf(interestingHdf.createChild(Integer.toString(i)), line); in makeLogcatHdf() local 507 final LogLine line = logcat.lines.get(i); in makeLogcatHdf() local 508 makeLogcatLineHdf(linesHdf.createChild(Integer.toString(i)), line); in makeLogcatHdf() local 515 private void makeLogcatLineHdf(Data hdf, LogLine line) { in makeLogcatLineHdf() argument 516 hdf.setValue("lineno", Integer.toString(line.lineno)); in makeLogcatLineHdf() 517 if (line.bufferBegin != null) { in makeLogcatLineHdf() 518 hdf.setValue("bufferBegin", line.bufferBegin); in makeLogcatLineHdf() 519 hdf.setValue("rawText", line.rawText); in makeLogcatLineHdf() 521 hdf.setValue("header", line.header); in makeLogcatLineHdf() [all …]
|