/build/make/tools/ |
D | check_radio_versions.py | 30 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()
|
D | fileslist_util.py | 23 for line in data: 24 print(line["Name"]) 29 for line in data: 30 print "{0:12d} {1}".format(line["Size"], line["Name"])
|
D | event_log_tags.py | 63 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,))
|
D | parsedeps.py | 94 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()
|
D | filter-product-graph.py | 7 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)
|
D | product_debug.py | 27 def split_line(line): argument 28 words = line.split("=", 1) 40 return [split_line(line) for line in lines if line.strip()]
|
D | post_process_props.py | 170 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)
|
D | normalize_path.py | 28 for line in sys.stdin: 29 print os.path.normpath(line.strip())
|
/build/make/tools/product_config/ |
D | inherit_tree.py | 30 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/ |
D | warn_common.py | 117 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 …]
|
D | html_writer.py | 382 def escape_string(line): argument 383 return line.replace('\\', '\\\\').replace('"', '\\"') 387 def strip_escape_string(line): argument 388 if not line: 389 return line 390 line = line[:-1] if line[-1] == '\n' else line 391 return escape_string(line)
|
/build/make/tools/product_config/src/com/android/build/config/ |
D | DumpConfigParser.java | 92 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 …]
|
D | Position.java | 47 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()
|
D | CsvParser.java | 45 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/ |
D | javac_wrapper.go | 142 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/ |
D | kati.go | 63 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/scripts/check_boot_jars/ |
D | check_boot_jars.py | 25 for line in f: 26 line = line.strip() 27 if not line or line.startswith('#'): 29 lines.append(line)
|
/build/make/tools/releasetools/ |
D | ota_package_parser.py | 87 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 …]
|
D | sign_target_files_apks | 821 for line in data.split("\n"): 822 line = line.strip() 823 original_line = line 824 if line and line[0] != '#' and "=" in line: 825 key, value = line.split("=", 1) 848 line = key + "=" + value 849 if line != original_line: 851 print(" with: ", line) 852 output.append(line) 1094 for line in data.split("\n"): [all …]
|
/build/make/core/ |
D | filter_symbols.sh | 15 $NM -g -fp $1 | while read -a line 17 type=${line[1]}
|
/build/bazel/bazel_skylib/rules/ |
D | common_settings.bzl | 26 "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/ |
D | gen_ndk_backedby_apex.sh | 52 while IFS= read -r line 54 soFileName=$(echo "$line" | sed 's/\(.*so\).*/\1/')
|
/build/soong/ui/build/ |
D | dumpvars.go | 115 for _, line := range strings.Split(output.String(), "\n") { 116 if len(line) == 0 { 120 if key, value, ok := decodeKeyValue(line); ok { 125 return nil, fmt.Errorf("Failed to parse make line: %q", line) 128 return nil, fmt.Errorf("Failed to parse make line: %q", line)
|
/build/make/tools/droiddoc/templates-pdk/assets/ |
D | style.css | 45 line-height: 110%; 56 line-height: 110%; 67 line-height: 110%; 73 line-height: 110%; 84 line-height: 110%; 94 line-height: 110%; 103 line-height: 110%; 192 line-height: 120%; 230 line-height: 120%; 235 line-height: 120%; [all …]
|
/build/soong/scripts/hiddenapi/ |
D | generate_hiddenapi_lists.py | 147 lines = filter(lambda line: not line.startswith('#'), lines) 148 lines = map(lambda line: line.strip(), lines) 159 lines = map(lambda line: line + '\n', lines) 260 csv_values = [ line.split(',') for line in csv_lines ]
|