Home
last modified time | relevance | path

Searched refs:lines (Results 1 – 25 of 40) sorted by relevance

12

/build/make/tools/
Dparsedeps.py22 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 …]
Dcompare_fileslist.py37 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:
Dproduct_debug.py35 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)
Dfilter-product-graph.py36 lines = sys.stdin.readlines()
37 lines = [line.strip() for line in lines]
39 for line in lines:
Djava-layers.py121 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:
Dmk2bp_catalog.py55 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
Dcheck_elf_file.py202 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/
Dtest_utils.py156 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)
Dvalidate_target_files.py178 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 …]
Dota_package_parser.py79 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]))
Dtest_common.py295 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 …]
Dtarget_files_diff.py101 lines = original.readlines()
102 lines.sort()
103 for line in lines:
Dbuild_super_image.py198 lines = f.read()
200 return BuildSuperImageFromDict(common.LoadDictionaryFromLines(lines.split("\n")), out)
Dpylintrc65 …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/
Dchecktree54 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/
Dmain.go172 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/
Dcheck_boot_jars.py22 lines = []
28 lines.append(line)
29 combined_re = r'^(%s)$' % '|'.join(lines)
/build/soong/cmd/multiproduct_kati/
Dmain.go72 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/
Dparser.go66 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/
Dpylintrc2 disable=fixme,design,locally-disabled,too-many-lines
/build/soong/ui/terminal/
Dsmart_status.go429 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/
Dparser_test.go1238 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/
Dbuild_broken_logs.go265 lines := strings.Split(string(soongLog), "\n")
266 for _, line := range lines {
/build/blueprint/bootstrap/bpdoc/
Dproperties.go272 lines := strings.Split(text, "\n")
274 for _, line := range lines {
/build/
Denvsetup.sh1300 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}

12