/build/make/tools/product_config/test/com/android/build/config/ |
D | CsvParserTest.java | 59 List<CsvParser.Line> lines = CsvParser.parse(new StringReader( in testEmptyString() local 62 Assert.assertEquals(0, lines.size()); in testEmptyString() 67 List<CsvParser.Line> lines = CsvParser.parse(new StringReader( in testLexerOneCharacter() local 70 Assert.assertEquals(1, lines.size()); in testLexerOneCharacter() 71 assertLineEquals(lines.get(0), 1, "a"); in testLexerOneCharacter() 76 List<CsvParser.Line> lines = CsvParser.parse(new StringReader( in testLexerTwoFieldsNoNewline() local 79 Assert.assertEquals(1, lines.size()); in testLexerTwoFieldsNoNewline() 80 assertLineEquals(lines.get(0), 1, "a", "b"); in testLexerTwoFieldsNoNewline() 85 List<CsvParser.Line> lines = CsvParser.parse(new StringReader( in testLexerTwoFieldsNewline() local 88 Assert.assertEquals(1, lines.size()); in testLexerTwoFieldsNewline() [all …]
|
/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
|
/build/make/tools/releasetools/ |
D | test_utils.py | 163 self.lines = [] 167 self.lines.append(('Mount',) + args) 170 self.lines.append(('AssertDevice',) + args) 173 self.lines.append(('AssertOemProperty',) + args) 176 self.lines.append(('AssertFingerprintOrThumbprint',) + args) 179 self.lines.append(('AssertSomeFingerprint',) + args) 182 self.lines.append(('AssertSomeThumbprint',) + args) 187 self.lines.append('# {}'.format(comment)) 190 self.lines.append(extra) 193 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_non_ab_ota.py | 133 script_writer.lines) 145 script_writer.lines) 157 script_writer.lines) 172 script_writer.lines)
|
D | test_common.py | 339 self.assertEqual([('Mount', '/oem', None)], script_writer.lines) 345 self.assertEqual([('AssertDevice', 'product-device')], script_writer.lines) 359 script_writer.lines) 1964 lines = self.get_op_list(self.output_path) 1966 remove_all_groups = lines.index("remove_all_groups") 1967 add_group = lines.index("add_group group_foo 4294967296") 1968 add_vendor = lines.index("add vendor group_foo") 1969 add_system = lines.index("add system group_foo") 1970 resize_vendor = lines.index("resize vendor 1073741824") 1971 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:
|
/build/soong/scripts/hiddenapi/ |
D | generate_hiddenapi_lists.py | 146 lines = f.readlines(); 147 lines = filter(lambda line: not line.startswith('#'), lines) 148 lines = map(lambda line: line.strip(), lines) 149 return set(lines) 152 def write_lines(filename, lines): argument 159 lines = map(lambda line: line + '\n', lines) 161 f.writelines(lines) 240 lines = [] 243 lines.append(",".join([api] + flags)) 244 return sorted(lines)
|
/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/rust/ |
D | protobuf.go | 175 lines := []string{ 179 lines = append(lines, fmt.Sprintf("pub mod %s;", protoName)) 183 lines = append(lines, fmt.Sprintf("pub mod %s;", grpcName)) 184 lines = append(lines, fmt.Sprintf("pub mod %s%s;", grpcName, grpcSuffix)) 187 lines = append( 188 lines, 194 return strings.Join(lines, "\n")
|
/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/soong/scripts/check_boot_jars/ |
D | check_boot_jars.py | 23 lines = [] 29 lines.append(line) 30 combined_re = r'^(%s)$' % '|'.join(lines)
|
/build/soong/cmd/multiproduct_kati/ |
D | main.go | 90 lines := strings.Split(strings.TrimSpace(string(data)), "\n") 91 if len(lines) > errorLeadingLines+errorTrailingLines+1 { 92 lines[errorLeadingLines] = fmt.Sprintf("... skipping %d lines ...", 93 len(lines)-errorLeadingLines-errorTrailingLines) 95 lines = append(lines[:errorLeadingLines+1], 96 lines[len(lines)-errorTrailingLines:]...) 99 for _, line := range lines {
|
/build/make/tools/fs_config/ |
D | pylintrc | 2 disable=fixme,design,locally-disabled,too-many-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/product_config/src/com/android/build/config/ |
D | DumpConfigParser.java | 80 final List<CsvParser.Line> lines = CsvParser.parse(mReader); in parseImpl() local 81 final int lineCount = lines.size(); in parseImpl() 92 final CsvParser.Line line = lines.get(index); in parseImpl() 124 final CsvParser.Line line = lines.get(index); in parseImpl()
|
/build/soong/scripts/ |
D | manifest_check.py | 128 lines = [] 130 lines.append(match.group(0)) 139 tags = first_unique_elements(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
|