/build/make/tools/ |
D | parsedeps.py | 22 self.lines = {} 27 t = self.lines.get(tgt) 30 self.lines[tgt] = t 31 p = self.lines.get(prereq) 34 self.lines[prereq] = p 39 t = self.lines.get(tgt) 42 self.lines[tgt] = t 46 if self.lines.has_key(tgt): 47 return self.lines[tgt] 52 return self.lines.iteritems() [all …]
|
D | compare_fileslist.py | 37 lines = f.readlines() 39 lines = map(string.split, lines) 40 lines = map(lambda (x,y): (y,int(x)), lines) 41 for fn,sz in lines:
|
D | product_debug.py | 35 lines = text.split() 36 lines.sort() 37 return "\n".join(lines) 39 def parse_variables(lines): argument 40 return [split_line(line) for line in lines if line.strip()] 79 lines = sys.stdin.readlines() 80 variables = parse_variables(lines)
|
D | filter-product-graph.py | 36 lines = sys.stdin.readlines() 37 lines = [line.strip() for line in lines] 39 for line in lines:
|
D | java-layers.py | 121 lines = f.readlines() 127 lines = [lineno(x,n) for x in lines] 128 lines = [(n,s.split("#")[0].strip()) for (n,s) in lines] 129 lines = [(n,s) for (n,s) in lines if len(s) > 0] 130 lines = [(n,s.split()) for (n,s) in lines] 132 for n,words in lines:
|
D | mk2bp_catalog.py | 55 def analyze_lines(filename, lines, func): argument 57 for i in range(len(lines)): 58 line = lines[i] 129 lines = f.readlines() 133 lines = [line.strip() for line in lines] 135 self.analyses = dict([(analyzer, analyze_lines(filename, lines, analyzer.func)) for analyzer
|
D | check_elf_file.py | 202 lines = out.splitlines() 203 return cls._parse_llvm_readobj(elf_file_path, header, lines) 207 def _parse_llvm_readobj(cls, elf_file_path, header, lines): argument 209 lines_it = iter(lines)
|
/build/make/tools/releasetools/ |
D | test_utils.py | 156 self.lines = [] 160 self.lines.append(('Mount',) + args) 163 self.lines.append(('AssertDevice',) + args) 166 self.lines.append(('AssertOemProperty',) + args) 169 self.lines.append(('AssertFingerprintOrThumbprint',) + args) 172 self.lines.append(('AssertSomeFingerprint',) + args) 175 self.lines.append(('AssertSomeThumbprint',) + args) 180 self.lines.append('# {}'.format(comment)) 183 self.lines.append(extra) 186 return '\n'.join(self.lines)
|
D | validate_target_files.py | 178 lines = script.read().strip().split('\n') 179 assert len(lines) >= 10 181 lines[1].strip()) 187 assert len(lines) == 10, "Invalid line count: {}".format(lines) 190 target = re.search(r'--target (.+) &&', lines[4].strip()) 192 "Failed to parse target line \"{}\"".format(lines[4]) 204 assert len(lines) == 11, "Invalid line count: {}".format(lines) 207 source = re.search(r'--source (\w+:.+:\w+:\w+) \\', lines[4].strip()) 209 "Failed to parse source line \"{}\"".format(lines[4]) 220 target = re.search(r'--target (\w+:.+:\w+:\w+) && \\', lines[5].strip()) [all …]
|
D | ota_package_parser.py | 79 lines = self.package.read(name).strip().splitlines() 80 assert len(lines) >= 4, "{} is too short; Transfer list expects at least" \ 81 "4 lines, it has {}".format(name, len(lines)) 82 assert int(lines[0]) >= 3 83 logging.info("(version: {})".format(lines[0])) 87 for line in lines[4:]: 136 blocks_written, lines[1])) 138 format(my_stash.max_stash_needed, lines[3]))
|
D | test_common.py | 295 self.assertEqual([('Mount', '/oem', None)], script_writer.lines) 301 self.assertEqual([('AssertDevice', 'product-device')], script_writer.lines) 315 script_writer.lines) 1740 lines = self.get_op_list(self.output_path) 1742 remove_all_groups = lines.index("remove_all_groups") 1743 add_group = lines.index("add_group group_foo 4294967296") 1744 add_vendor = lines.index("add vendor group_foo") 1745 add_system = lines.index("add system group_foo") 1746 resize_vendor = lines.index("resize vendor 1073741824") 1747 resize_system = lines.index("resize system 3221225472") [all …]
|
D | target_files_diff.py | 101 lines = original.readlines() 102 lines.sort() 103 for line in lines:
|
D | build_super_image.py | 198 lines = f.read() 200 return BuildSuperImageFromDict(common.LoadDictionaryFromLines(lines.split("\n")), out)
|
D | pylintrc | 65 …plicate-code,too-few-public-methods,too-many-instance-attributes,too-many-lines,too-many-public-me… 101 # Minimum lines number of a similarity. 102 min-similarity-lines=4 255 ignore-long-lines=^\s*(# )?<?https?://\S+>?$ 264 # Maximum number of lines in a module 265 max-module-lines=1000
|
/build/make/core/ |
D | checktree | 54 lines = fd.readlines() 62 if len(lines) >= 1: 63 lines = filter(filterit, lines) 64 if len(lines) >= 1: 65 return map(matchit, lines)
|
/build/soong/cmd/path_interposer/ |
D | main.go | 172 lines := bytes.Split(data, []byte("\n")) 173 if len(lines) < 2 { 177 lines = lines[1:] 179 ret := make(map[int]procEntry, len(lines)) 180 for _, line := range lines {
|
/build/make/core/tasks/check_boot_jars/ |
D | check_boot_jars.py | 22 lines = [] 28 lines.append(line) 29 combined_re = r'^(%s)$' % '|'.join(lines)
|
/build/soong/cmd/multiproduct_kati/ |
D | main.go | 72 lines := strings.Split(strings.TrimSpace(string(data)), "\n") 73 if len(lines) > errorLeadingLines+errorTrailingLines+1 { 74 lines[errorLeadingLines] = fmt.Sprintf("... skipping %d lines ...", 75 len(lines)-errorLeadingLines-errorTrailingLines) 77 lines = append(lines[:errorLeadingLines+1], 78 lines[len(lines)-errorTrailingLines:]...) 81 for _, line := range lines {
|
/build/soong/androidmk/parser/ |
D | parser.go | 66 lines []int member 71 p.lines = []int{0} 90 line := sort.Search(len(p.lines), func(i int) bool { return p.lines[i] > offset }) - 1 94 Column: offset - p.lines[line] + 1, 138 p.lines = append(p.lines, p.scanner.Position.Offset+1)
|
/build/make/tools/fs_config/ |
D | pylintrc | 2 disable=fixme,design,locally-disabled,too-many-lines
|
/build/soong/ui/terminal/ |
D | smart_status.go | 429 func (ansiImpl) panDown(lines int) string { 430 return fmt.Sprintf("\x1b[%dS", lines) 433 func (ansiImpl) panUp(lines int) string { 434 return fmt.Sprintf("\x1b[%dT", lines)
|
/build/blueprint/parser/ |
D | parser_test.go | 1238 lines := strings.Split(in, "\n") 1239 for i := range lines { 1240 lines[i] = strings.TrimSpace(lines[i]) 1242 in = strings.Join(lines, "\n") 1256 modEnd := mkpos(len(in)-1, len(lines)-1, 2) 1270 endColumn := len(lines[endLine-1]) // scanner.Position.Line is starts at 1
|
/build/soong/scripts/ |
D | build_broken_logs.go | 265 lines := strings.Split(string(soongLog), "\n") 266 for _, line := range lines {
|
/build/blueprint/bootstrap/bpdoc/ |
D | properties.go | 272 lines := strings.Split(text, "\n") 274 for _, line := range lines {
|
/build/ |
D | envsetup.sh | 1300 local lines 1301 lines=($(\grep "$1" $FILELIST | sed -e 's/\/[^/]*$//' | sort | uniq)) 1312 for line in ${lines[@]}; do 1324 pathname=${lines[@]:$(($choice-1)):1} 1327 pathname=${lines[@]:0:1}
|