/build/soong/bpfix/bpfix/ |
D | bpfix.go | 37 res, err := parser.Print(tree) 163 tree *parser.File 166 func (f Fixer) Tree() *parser.File { 170 func NewFixer(tree *parser.File) *Fixer { 181 func (f *Fixer) Fix(config FixRequest) (*parser.File, error) { 212 bytes, err := parser.Print(f.tree) 220 buf, err := parser.Print(f.tree) 232 func parse(name string, r io.Reader) (*parser.File, error) { 233 tree, errs := parser.Parse(name, r, parser.NewScope(nil)) 254 func simplifyKnownPropertiesDuplicatingEachOther(mod *parser.Module, buf []byte, patchList *parser.… [all …]
|
/build/soong/ui/status/ |
D | kati_test.go | 50 parser := &katiOutputParser{ 55 parser.parseLine(msg) 65 parser.parseLine("out/build-aosp_arm.ninja is missing, regenerating...") 68 parser.parseLine("[1/1] initializing build system ...") 76 parser.parseLine("[2/5] including out/soong/Android-aosp_arm.mk ...") 84 parser.parseLine("[3/5] including a ...") 86 parser.parseLine(msg) 89 parser.parseLine("[4/5] finishing build rules ...") 96 parser.parseLine("[5/5] writing build rules ...") 97 parser.parseLine("*kati*: verbose msg") [all …]
|
/build/soong/partner/bpfix/extensions/ |
D | headers.go | 41 func findHeaderLib(e parser.Expression) (*includeDirFix, bool) { 42 if op, ok := e.(*parser.Operator); ok { 46 arg0, ok := op.Args[0].(*parser.Variable) 47 arg1, ok1 := op.Args[1].(*parser.String) 59 func searchThroughOperatorList(mod *parser.Module, e parser.Expression) { 60 if list, ok := e.(*parser.List); ok { 61 newList := make([]parser.Expression, 0, len(list.Values)) 73 if op, ok := e.(*parser.Operator); ok { 78 func getLiteralListProperty(mod *parser.Module, name string) (list *parser.List, found bool) { 83 list, ok = prop.Value.(*parser.List) [all …]
|
/build/soong/scripts/ |
D | lint-project-xml.py | 34 def __call__(self, parser, namespace, values, option_string=None): argument 52 parser = argparse.ArgumentParser(fromfile_prefix_chars='@') 53 parser.convert_arg_line_to_args = convert_arg_line_to_args 54 parser.add_argument('--project_out', dest='project_out', 56 parser.add_argument('--config_out', dest='config_out', 58 parser.add_argument('--name', dest='name', 60 parser.add_argument('--srcs', dest='srcs', action='append', default=[], 62 parser.add_argument('--generated_srcs', dest='generated_srcs', action='append', default=[], 64 parser.add_argument('--resources', dest='resources', action='append', default=[], 66 parser.add_argument('--classes', dest='classes', action='append', default=[], [all …]
|
D | gen-kotlin-build-file.py | 35 parser = argparse.ArgumentParser(fromfile_prefix_chars='@') 36 parser.convert_arg_line_to_args = convert_arg_line_to_args 37 parser.add_argument('--out', dest='out', 39 parser.add_argument('--classpath', dest='classpath', action='append', default=[], 41 parser.add_argument('--name', dest='name', 43 parser.add_argument('--out_dir', dest='out_dir', 45 parser.add_argument('--srcs', dest='srcs', action='append', default=[], 47 parser.add_argument('--common_srcs', dest='common_srcs', action='append', default=[], 50 return parser.parse_args()
|
D | test_config_fixer.py | 35 parser = argparse.ArgumentParser() 36 parser.add_argument('--manifest', default='', dest='manifest', 38 parser.add_argument('--package-name', default='', dest='package_name', 40 parser.add_argument('--test-file-name', default='', dest='test_file_name', 42 parser.add_argument('input', help='input test config file') 43 parser.add_argument('output', help='output test config file') 44 return parser.parse_args()
|
D | jsonmodify.py | 80 parser = argparse.ArgumentParser() 81 parser.add_argument('-o', '--out', 85 parser.add_argument('input', nargs='?', help='JSON file') 86 parser.add_argument("-v", "--value", type=SetValue, 90 parser.add_argument("-s", "--replace", type=Replace, 94 parser.add_argument("-r", "--remove", type=Remove, 98 parser.add_argument("-a", "--append_list", type=AppendList, 102 args = parser.parse_args()
|
D | manifest_check.py | 39 parser = argparse.ArgumentParser() 40 parser.add_argument('--uses-library', dest='uses_libraries', 43 parser.add_argument('--optional-uses-library', 47 parser.add_argument('--enforce-uses-libraries', 51 parser.add_argument('--extract-target-sdk-version', 55 parser.add_argument('--output', '-o', dest='output', help='output AndroidManifest.xml file') 56 parser.add_argument('input', help='input AndroidManifest.xml file') 57 return parser.parse_args()
|
D | mergenotice.py | 30 parser = argparse.ArgumentParser(description='Merge notice files.') 31 parser.add_argument('--output', help='output file path.') 32 parser.add_argument('inputs', metavar='INPUT', nargs='+', 34 return parser.parse_args()
|
D | manifest_fixer.py | 39 parser = argparse.ArgumentParser() 40 parser.add_argument('--minSdkVersion', default='', dest='min_sdk_version', 42 parser.add_argument('--targetSdkVersion', default='', dest='target_sdk_version', 44 parser.add_argument('--raise-min-sdk-version', dest='raise_min_sdk_version', action='store_true', 46 parser.add_argument('--library', dest='library', action='store_true', 48 parser.add_argument('--uses-library', dest='uses_libraries', action='append', 50 parser.add_argument('--optional-uses-library', dest='optional_uses_libraries', action='append', 52 parser.add_argument('--uses-non-sdk-api', dest='uses_non_sdk_api', action='store_true', 54 parser.add_argument('--logging-parent', dest='logging_parent', default='', 57 parser.add_argument('--use-embedded-dex', dest='use_embedded_dex', action='store_true', [all …]
|
D | construct_context.py | 29 parser = argparse.ArgumentParser() 30 parser.add_argument('--target-sdk-version', default='', dest='sdk', 32 parser.add_argument('--host-classpath-for-sdk', dest='host_classpaths', 35 parser.add_argument('--target-classpath-for-sdk', dest='target_classpaths', 38 return parser.parse_args(args)
|
D | generate-notice-files.py | 194 parser = argparse.ArgumentParser() 195 parser.add_argument( 198 parser.add_argument( 201 parser.add_argument( 204 parser.add_argument( 207 parser.add_argument( 210 parser.add_argument( 213 parser.add_argument( 216 return parser.parse_args()
|
/build/soong/cc/symbolfile/ |
D | test_symbolfile.py | 305 parser = symbolfile.SymbolFileParser(input_file, {}, 'arm', 16, False, False) 306 self.assertIsNone(parser.current_line) 308 self.assertEqual('foo', parser.next_line().strip()) 309 self.assertEqual('foo', parser.current_line.strip()) 311 self.assertEqual('bar', parser.next_line().strip()) 312 self.assertEqual('bar', parser.current_line.strip()) 314 self.assertEqual('qux', parser.next_line().strip()) 315 self.assertEqual('qux', parser.current_line.strip()) 317 self.assertEqual('', parser.next_line()) 318 self.assertEqual('', parser.current_line) [all …]
|
/build/soong/androidmk/ |
D | Android.bp | 41 "androidmk-parser", 42 "blueprint-parser", 48 name: "androidmk-parser", 49 pkgPath: "android/soong/androidmk/parser", 51 "parser/ast.go", 52 "parser/make_strings.go", 53 "parser/parser.go", 54 "parser/scope.go", 57 "parser/make_strings_test.go", 58 "parser/parser_test.go",
|
/build/blueprint/proptools/ |
D | unpack.go | 41 property *parser.Property 69 func UnpackProperties(properties []*parser.Property, objects ...interface{}) (map[string]*parser.Pr… 90 result := make(map[string]*parser.Property) 124 func (ctx *unpackContext) buildPropertyMap(prefix string, properties []*parser.Property) bool { 140 case *parser.Map: 142 case *parser.List: 149 …if t := propValue.Values[0].Type(); t == parser.StringType || t == parser.Int64Type || t == parser… 153 itemProperties := make([]*parser.Property, len(propValue.Values), len(propValue.Values)) 155 itemProperties[i] = &parser.Property{ 307 sliceName string, property *parser.Property, sliceType reflect.Type) (reflect.Value, bool) { [all …]
|
/build/make/tools/ |
D | generate-enforce-rro-android-manifest.py | 35 parser = argparse.ArgumentParser() 36 parser.add_argument( 39 parser.add_argument( 42 parser.add_argument( 45 parser.add_argument( 48 parser.add_argument( 51 return parser.parse_args()
|
D | generate-notice-files.py | 194 parser = argparse.ArgumentParser() 195 parser.add_argument( 198 parser.add_argument( 201 parser.add_argument( 204 parser.add_argument( 207 parser.add_argument( 210 parser.add_argument( 213 parser.add_argument( 216 return parser.parse_args()
|
D | checkowners.py | 11 parser = argparse.ArgumentParser(description='Check OWNERS file syntax') variable 12 parser.add_argument('-v', '--verbose', dest='verbose', 15 parser.add_argument('-c', '--check_address', dest='check_address', 18 parser.add_argument(dest='owners', metavar='OWNERS', nargs='+', 20 args = parser.parse_args()
|
/build/blueprint/bpmodify/ |
D | bpmodify.go | 74 file, errs := parser.Parse(filename, r, parser.NewScope(nil)) 91 res, err := parser.Print(file) 122 func findModules(file *parser.File) (modified bool, errs []error) { 125 if module, ok := def.(*parser.Module); ok { 127 if prop.Name == "name" && prop.Value.Type() == parser.StringType { 128 if targetedModule(prop.Value.Eval().(*parser.String).Value) { 141 func processModule(module *parser.Module, moduleName string, 142 file *parser.File) (modified bool, errs []error) { 151 prop := parser.Property{Name: *parameter, Value: &parser.List{}} 161 func processParameter(value parser.Expression, paramName, moduleName string, [all …]
|
/build/blueprint/ |
D | Blueprints | 4 "blueprint-parser", 35 name: "blueprint-parser", 36 pkgPath: "github.com/google/blueprint/parser", 38 "parser/ast.go", 39 "parser/modify.go", 40 "parser/parser.go", 41 "parser/printer.go", 42 "parser/sort.go", 45 "parser/modify_test.go", 46 "parser/parser_test.go", [all …]
|
/build/soong/cc/ndkstubgen/ |
D | __init__.py | 89 parser = argparse.ArgumentParser() 91 parser.add_argument('-v', '--verbose', action='count', default=0) 93 parser.add_argument( 95 parser.add_argument( 98 parser.add_argument( 100 parser.add_argument( 103 parser.add_argument( 107 parser.add_argument( 109 parser.add_argument( 112 parser.add_argument( [all …]
|
D | test_ndkstubgen.py | 181 parser = symbolfile.SymbolFileParser(input_file, api_map, 'arm', 9, 183 versions = parser.parse() 233 parser = symbolfile.SymbolFileParser(input_file, api_map, 'arm', 9001, 235 versions = parser.parse() 283 parser = symbolfile.SymbolFileParser(input_file, {}, 'arm', 16, False, 288 parser.parse() 331 parser = symbolfile.SymbolFileParser(input_file, api_map, 'arm', 9, 333 versions = parser.parse()
|
/build/soong/androidmk/parser/ |
D | parser.go | 15 package parser package 42 func (p *parser) Parse() ([]Node, []error) { 60 type parser struct { struct 69 func NewParser(filename string, r io.Reader) *parser { 70 p := &parser{} 88 func (p *parser) Unpack(pos Pos) scanner.Position { argument 99 func (p *parser) pos() Pos { argument 107 func (p *parser) errorf(format string, args ...interface{}) { argument 118 func (p *parser) accept(toks ...rune) bool { argument 130 func (p *parser) next() { argument [all …]
|
/build/make/tools/fs_config/ |
D | test_fs_config_generator.py | 80 parser = AIDHeaderParser(temp_file.name) 81 oem_ranges = parser.oem_ranges 82 aids = parser.aids 107 parser = AIDHeaderParser(temp_file.name) 108 oem_ranges = parser.oem_ranges 109 aids = parser.aids 230 parser = AIDHeaderParser(temp_file.name) 231 aids = parser.aids 265 parser = FSConfigFileParser([temp_file.name], [(5000, 5999)]) 266 files = parser.files [all …]
|
/build/blueprint/parser/ |
D | parser.go | 15 package parser package 62 func parse(p *parser) (file *File, errs []error) { argument 101 type parser struct { struct 110 func newParser(r io.Reader, scope *Scope) *parser { 111 p := &parser{} 123 func (p *parser) error(err error) { argument 138 func (p *parser) errorf(format string, args ...interface{}) { argument 142 func (p *parser) accept(toks ...rune) bool { argument 154 func (p *parser) next() { argument 174 func (p *parser) parseDefinitions() (defs []Definition) { argument [all …]
|