Home
last modified time | relevance | path

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

12345

/development/scripts/
Dadd3prf.py102 for line in inf:
103 match = YMD_MATCHER.match(line)
112 match = YMD_LINE_MATCHER.match(line)
141 for line in input_file:
142 if APACHE_MATCHER.match(line):
144 if BOOST_MATCHER.match(line):
146 if MIT_MATCHER.match(line):
148 if BSD_MATCHER.match(line):
150 if MPL_MATCHER.match(line):
152 if UNLICENSE_MATCHER.match(line):
[all …]
Dstack_core.py175 lines = [self.CleanLine(line) for line in lines]
180 for line in lines:
181 self.ProcessLine(line)
187 def MatchTraceLine(self, line): argument
188 match = self.trace_line.match(line)
197 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:
279 match = self.zipinfo_central_directory_line.search(line)
[all …]
Dcargo2rulesmk.py194 self.line = "" # original rustc command line parameters
291 def parse(self, line_num, line): argument
294 self.line = line
295 args = [unquote(l) for l in line.split()]
438 self.write("\n// Line " + str(self.line_num) + " " + self.line)
814 for line in inf:
816 if match := name.match(line):
820 in_pkg = pkg_section.match(line) is not None
1006 def rustc_command(self, n, rustc_line, line, outf_name): argument
1011 new_rustc = (rustc_line.strip() + line) if rustc_line else 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/header-checker/src/repr/symbol/
Dversion_script_parser.cpp92 const std::string &line, const ParsedTags &initial_value) { in ParseSymbolTags() argument
98 std::string_view line_view(line); in ParseSymbolTags()
239 const std::string &line, bool is_in_extern_cpp, in ParseSymbolLine() argument
242 std::string::size_type pos = line.find(";"); in ParseSymbolLine()
244 ReportError("No semicolon at the end of the symbol line: " + line); in ParseSymbolLine()
248 std::string symbol(utils::Trim(line.substr(0, pos))); in ParseSymbolLine()
250 ParsedTags tags = ParseSymbolTags(line, version_block_tags); in ParseSymbolLine()
290 std::string line; in ParseVersionBlock() local
291 if (!ReadLine(line)) { in ParseVersionBlock()
295 if (line.find("}") != std::string::npos) { in ParseVersionBlock()
[all …]
/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/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/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/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/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/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/cargo_embargo/src/cargo/
Dcargo_out.rs125 while let Some((n, line)) = lines_iter.next() { in parse()
126 if line.starts_with("warning: ") { in parse()
127 result.warning_lines.insert(n, line.to_string()); in parse()
134 if let Some(args) = match1(&RUSTC_REGEX, line) { in parse()
142 if RUSTC_VV_REGEX.is_match(line) { in parse()
145 let mut line = line.to_string(); in parse() localVariable
148 if line.ends_with('`') && line.chars().filter(|c| *c == '`').count() % 2 == 0 { in parse()
152 line += next_line; in parse()
160 if let Some(args) = match1(&RUSTC_VV_CMD_ARGS, &line) { in parse()
163 bail!("failed to parse cargo.out line: {}", line); in parse()
[all …]
/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/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()
/development/tools/core_connectivity/
Dcheck_style.sh32 while read -r line; do
33 test `echo $line | wc -c` -gt 65 && echo "FAILED: Line $i exceed 65 chars limit: $line"
/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/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/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/tools/bugreport/src/com/android/bugreport/bugreport/
DBugreportParser.java103 final Line line = lines.next(); in parse() local
104 if (Utils.matches(mSectionBegin, line.text)) { in parse()
115 final Line line = lines.next(); in parse() local
116 if ((m = Utils.match(mSectionEnd, line.text)) != null) { in parse()
136 } else if (((m = Utils.match(mSectionBegin, line.text)) != null) in parse()
137 || ((m = Utils.match(mSectionBeginNoCmd, line.text)) != null)) { in parse()
/development/samples/browseable/NfcProvisioning/src/com.example.android.nfcprovisioning/
DProvisioningValuesLoader.java117 String line; in loadFromFile() local
118 while (null != (line = reader.readLine())) { in loadFromFile()
119 if (line.startsWith("#")) { in loadFromFile()
122 int position = line.indexOf("="); in loadFromFile()
126 String key = line.substring(0, position); in loadFromFile()
127 String value = line.substring(position + 1); in loadFromFile()

12345