Home
last modified time | relevance | path

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

12345

/build/make/tools/
Dcheck_radio_versions.py30 for line in f:
31 line = line.strip() variable
32 if line.startswith("require"):
33 key, value = line.split()[1].split("=", 1)
59 for line in f:
60 line = line.strip() variable
61 if not line or line.startswith("#"): continue
62 h, v = line.split()
Dfileslist_util.py23 for line in data:
24 print(line["Name"])
29 for line in data:
30 print "{0:12d} {1}".format(line["Size"], line["Name"])
Dparsedeps.py94 for line in f:
95 line = line.strip()
96 if len(line) > 0:
97 if line[0] == '#':
98 pos,tgt = line.rsplit(":", 1)
103 (tgt,prereq) = line.split(':', 1)
111 line = raw_input("target> ")
112 if not line.strip():
114 split = line.split()
Devent_log_tags.py63 for self.linenum, line in enumerate(file_object):
65 line = re.sub('#.*$', '', line) # strip trailing comments
66 line = line.strip()
67 if not line: continue
68 parts = re.split(r"\s+", line, 2)
71 self.AddError("failed to parse \"%s\"" % (line,))
Dmk2bp_catalog.py58 line = lines[i]
59 stripped = line.strip()
63 line_matches.append((i+1, line))
67 def analyze_has_conditional(line): argument
68 return (line.startswith("ifeq") or line.startswith("ifneq")
69 or line.startswith("ifdef") or line.startswith("ifndef"))
83 def analyze_has_wacky_include(line): argument
84 if not (line.startswith("include") or line.startswith("-include")
85 or line.startswith("sinclude")):
88 if matcher.fullmatch(line):
[all …]
Dfilter-product-graph.py7 def choose_regex(regs, line): argument
9 m = reg.match(line)
37 lines = [line.strip() for line in lines]
39 for line in lines:
40 func,m = choose_regex(REGS, line)
Dproduct_debug.py27 def split_line(line): argument
28 words = line.split("=", 1)
40 return [split_line(line) for line in lines if line.strip()]
Dpost_process_props.py170 def from_line(line): argument
171 line = line.rstrip('\n')
172 if line.startswith("#"):
173 return Prop("", "", comment=line)
174 elif "?=" in line:
175 name, value = line.split("?=", 1)
177 elif "=" in line:
178 name, value = line.split("=", 1)
183 return Prop("", "", comment=line)
Dnormalize_path.py28 for line in sys.stdin:
29 print os.path.normpath(line.strip())
/build/make/tools/product_config/
Dinherit_tree.py30 for line in csv.reader(csvfile):
33 if len(line) < 3 or line[0] != "phase" or line[1] != "PRODUCTS":
35 root = line[2]
38 if len(line) < 3 or line[0] != "inherit":
40 graph.setdefault(line[1], list()).append(line[2])
/build/make/tools/warn/
Dwarn_common.py117 def find_project_index(line, project_patterns): argument
120 if pattern.match(line):
238 for line in buildlog:
239 if warning_pattern.match(line):
240 warning_lines.append(line)
247 path = os.path.normpath(re.sub(':.*$', '', line))
285 def normalize_warning_line(line, flags, android_root=None): argument
287 line = re.sub(u'[\u2018\u2019]', '\'', line)
289 line = re.sub(u'[^\x00-\x7f]', ' ', line)
290 line = line.strip()
[all …]
/build/make/tools/product_config/src/com/android/build/config/
DDumpConfigParser.java92 final CsvParser.Line line = lines.get(index); in parseImpl() local
93 final List<String> fields = line.getFields(); in parseImpl()
95 if (matchLineType(line, "dumpconfig_version", 1)) { in parseImpl()
100 new Position(mFilename, line.getLine()), in parseImpl()
124 final CsvParser.Line line = lines.get(index); in parseImpl() local
125 final List<String> fields = line.getFields(); in parseImpl()
128 if (matchLineType(line, "phase", 2)) { in parseImpl()
139 new Position(mFilename, line.getLine()), in parseImpl()
151 } else if (matchLineType(line, "var", 2)) { in parseImpl()
158 } else if (matchLineType(line, "import", 1)) { in parseImpl()
[all …]
DPosition.java47 public Position(String file, int line) { in Position() argument
48 if (line < NO_LINE) { in Position()
50 + " line=" + line); in Position()
53 mLine = line; in Position()
86 int line; in parse() local
88 line = NO_LINE; in parse()
91 line = Integer.parseInt(lineString); in parse()
93 line = NO_LINE; in parse()
96 return new Position(filename, line); in parse()
DCsvParser.java45 public ParseException(int line, int column, String message) { in ParseException() argument
47 mLine = line; in ParseException()
113 int line = 1; in parse() local
159 throw new ParseException(line, column, in parse()
180 throw new ParseException(line, column, in parse()
227 result.add(new Line(line, fields)); in parse()
233 line++; in parse()
/build/soong/cmd/javac_wrapper/
Djavac_wrapper.go142 func (proc *processor) processLine(w io.Writer, line string) {
144 if f.MatchString(line) {
150 if f.MatchString(line) {
154 if match := warningCount.FindStringSubmatch(line); match != nil {
161 line = fmt.Sprintf("%d warning", c)
163 line += "s"
170 if line, matched = applyColor(line, p.color, p.re); matched {
174 fmt.Fprintln(w, line)
179 func applyColor(line, color string, re *regexp.Regexp) (string, bool) { argument
180 if m := re.FindStringSubmatchIndex(line); m != nil {
[all …]
/build/soong/ui/status/
Dkati.go63 func (k *katiOutputParser) parseLine(line string) {
65 if katiLogRe.MatchString(line) {
66 k.st.Verbose(line)
70 if matches := katiIncludeRe.FindStringSubmatch(line); len(matches) > 0 {
74 matches := katiIncludeRe.FindStringSubmatch(line)
101 if katiError.MatchString(line) {
104 k.buf.WriteString(line)
108 if line == "No need to regenerate ninja file" || katiNinjaMissing.MatchString(line) {
109 k.st.Status(line)
111 k.st.Print(line)
/build/soong/ui/build/
Dtest_build.go86 line := scanner.Text()
87 if !strings.HasPrefix(line, outDir) {
91 if strings.HasPrefix(line, bootstrapDir) ||
92 strings.HasPrefix(line, miniBootstrapDir) ||
93 strings.HasPrefix(line, modulePathsDir) ||
94 line == variablesFilePath ||
95 line == dexpreoptConfigFilePath ||
96 line == buildDatetimeFilePath {
101 danglingRules[line] = true
/build/soong/scripts/check_boot_jars/
Dcheck_boot_jars.py25 for line in f:
26 line = line.strip()
27 if not line or line.startswith('#'):
29 lines.append(line)
/build/make/tools/releasetools/
Dtarget_files_diff.py78 for line in original:
81 if line.startswith(s):
85 new.write(line)
93 for line in original:
94 new.write(re.sub(r'[0-9a-f]{40}', '0'*40, line))
103 for line in lines:
104 new.write(line)
151 for line in stdout.strip().split('\n'):
152 print("%s: %s" % (name, line), file=out_file)
Dota_package_parser.py87 for line in lines[4:]:
88 cmd_list = line.strip().split(" ")
92 assert len(cmd_list) == 2, "command format error: {}".format(line)
98 assert len(cmd_list) >= 5, "command format error: {}".format(line)
110 assert len(cmd_list) >= 8, "command format error: {}".format(line)
120 assert len(cmd_list) == 3, "command format error: {}".format(line)
125 assert len(cmd_list) == 2, "command format error: {}".format(line)
129 logging.error("failed to parse command in: " + line)
176 for line in self.package.read(metadata_path).strip().splitlines():
177 index = line.find("=")
[all …]
Dsign_target_files_apks.py805 for line in data.split("\n"):
806 line = line.strip()
807 original_line = line
808 if line and line[0] != '#' and "=" in line:
809 key, value = line.split("=", 1)
832 line = key + "=" + value
833 if line != original_line:
835 print(" with: ", line)
836 output.append(line)
1078 for line in data.split("\n"):
[all …]
Dsign_target_files_apks805 for line in data.split("\n"):
806 line = line.strip()
807 original_line = line
808 if line and line[0] != '#' and "=" in line:
809 key, value = line.split("=", 1)
832 line = key + "=" + value
833 if line != original_line:
835 print(" with: ", line)
836 output.append(line)
1078 for line in data.split("\n"):
[all …]
/build/bazel/bazel_skylib/rules/
Dcommon_settings.bzl26 "This value may come from the command line or an upstream transition, " +
37 doc = "An int-typed build setting that can be set on the command line",
43 doc = "An int-typed build setting that cannot be set on the command line",
49 doc = "A bool-typed build setting that can be set on the command line",
55 doc = "A bool-typed build setting that cannot be set on the command line",
61 doc = "A string list-typed build setting that can be set on the command line",
67 doc = "A string list-typed build setting that cannot be set on the command line",
86 doc = "A string-typed build setting that can be set on the command line",
97 doc = "A string-typed build setting that cannot be set on the command line",
/build/soong/scripts/
Dgen_ndk_usedby_apex.sh32 while IFS= read -r line
34 if [[ $line = *FUNC*GLOBAL*UND*@* ]] ;
36 echo "$line" | sed -r 's/.*UND (.*@.*)/\1/g' >> "$2"
/build/make/core/
Dfilter_symbols.sh15 $NM -g -fp $1 | while read -a line
17 type=${line[1]}

12345