Home
last modified time | relevance | path

Searched refs:line (Results 1 – 25 of 104) sorted by relevance

12345

/development/scripts/
Ddisassemble_tombstone.py38 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 …]
Dstack_core.py183 for line in lines:
184 self.ProcessLine(line)
190 def MatchTraceLine(self, line): argument
191 if self.trace_line.match(line):
192 match = self.trace_line.match(line)
199 if self.sanitizer_trace_line.match(line):
200 match = self.sanitizer_trace_line.match(line)
271 for line in cmd.stdout:
272 if self.zipinfo_central_directory_line.search(line):
278 for line in cmd.stdout:
[all …]
Dcargo2android.py245 self.line = '' # original rustc command line parameters
378 def parse(self, line_num, line): argument
381 self.line = line
382 args = line.split() # Loop through every argument of rustc.
501 self.write('\n// Line ' + str(self.line_num) + ' ' + self.line)
861 self.line = ''
870 self.line = args_line
885 self.write('\n// Line ' + str(self.line_num) + ' "ar" ' + self.line)
944 self.line = ''
957 self.line = args_line
[all …]
Dcompare-installed-size.py45 for line in input_stream:
47 line = line.strip()
50 size, name = line.split()
/development/vndk/tools/header-checker/src/repr/symbol/
Dversion_script_parser.cpp54 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/vndk/tools/header-checker/src/utils/
Dconfig_file.cpp42 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/testrunner/
Dam_instrument_parser.py48 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 …]
Dandroid_mk.py45 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/vndk/tools/elfcheck/elfcheck/
Drewriter.py30 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 …]
Dreadobj.py39 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/bugreport/src/com/android/bugreport/inspector/
DInspector.java584 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/logblame/
Dps.py57 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)
Dlogs.py96 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/tools/bugreport/src/com/android/bugreport/logcat/
DLogcat.java37 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/vndk/tools/sourcedr/blueprint/tests/
Dtest_lexer.py50 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/tools/idegen/src/com/android/idegen/
DMakeFileParser.java94 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/tools/axl/
Dchewperf.py17 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/monkey/
DMonkeyLogParser.java55 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/findunused/
Dfind_unused_resources.rb94 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/bugreport/src/com/android/bugreport/html/
DRenderer.java499 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 …]
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeySourceScript.java204 String line; in readHeader() local
206 while ((line = mBufferedReader.readLine()) != null) { in readHeader()
207 line = line.trim(); in readHeader()
209 if (line.indexOf(HEADER_COUNT) >= 0) { in readHeader()
211 String value = line.substring(HEADER_COUNT.length() + 1).trim(); in readHeader()
217 } else if (line.indexOf(HEADER_SPEED) >= 0) { in readHeader()
219 String value = line.substring(HEADER_COUNT.length() + 1).trim(); in readHeader()
225 } else if (line.indexOf(HEADER_LINE_BY_LINE) >= 0) { in readHeader()
227 } else if (line.indexOf(STARTING_DATA_LINE) >= 0) { in readHeader()
242 String line; in readLines() local
[all …]
/development/vndk/tools/sourcedr/ninja/tests/
Dtest_ninja.py217 self.assertEqual(1, tok.line)
222 self.assertEqual(1, tok.line)
229 self.assertEqual(1, tok.line)
233 self.assertEqual(2, tok.line)
239 self.assertEqual(1, tok.line)
243 self.assertEqual(2, tok.line)
249 self.assertEqual(1, tok.line)
253 self.assertEqual(1, tok.line)
257 self.assertEqual(1, tok.line)
261 self.assertEqual(2, tok.line)
[all …]
/development/samples/IntentPlayground/src/com/example/android/intentplayground/
DAMControl.java54 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/samples/browseable/PermissionRequest/src/com.example.android.permissionrequest/
DSimpleWebServer.java127 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/stacks/
DVmTracesParser.java57 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()

12345