Home
last modified time | relevance | path

Searched refs:parser (Results 1 – 25 of 135) sorted by relevance

123456

/build/soong/scripts/
Dbuildinfo.py25 parser = argparse.ArgumentParser()
26 parser.add_argument('--use-vbmeta-digest-in-fingerprint', action='store_true')
27 parser.add_argument('--build-flavor', required=True)
28 parser.add_argument('--build-hostname-file', required=True, type=argparse.FileType('r')),
29 parser.add_argument('--build-id', required=True)
30 parser.add_argument('--build-keys', required=True)
31 parser.add_argument('--build-number-file', required=True, type=argparse.FileType('r'))
32 parser.add_argument('--build-thumbprint-file', type=argparse.FileType('r'))
33 parser.add_argument('--build-type', required=True)
34 parser.add_argument('--build-username', required=True)
[all …]
Dlint_project_xml.py36 def __call__(self, parser, namespace, values, option_string=None): argument
54 parser = argparse.ArgumentParser(fromfile_prefix_chars='@')
55 parser.convert_arg_line_to_args = convert_arg_line_to_args
56 parser.add_argument('--project_out', dest='project_out',
58 parser.add_argument('--config_out', dest='config_out',
60 parser.add_argument('--name', dest='name',
62 parser.add_argument('--srcs', dest='srcs', action='append', default=[],
64 parser.add_argument('--generated_srcs', dest='generated_srcs', action='append', default=[],
66 parser.add_argument('--resources', dest='resources', action='append', default=[],
68 parser.add_argument('--classes', dest='classes', action='append', default=[],
[all …]
Dgen-kotlin-build-file.py35 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()
Dcheck_prebuilt_presigned_apk.py49 parser = argparse.ArgumentParser()
50 parser.add_argument('--aapt2', help = "the path to the aapt2 executable")
51 parser.add_argument('--zipalign', help = "the path to the zipalign executable")
52parser.add_argument('--skip-preprocessed-apk-checks', action = 'store_true', help = "the value of …
53parser.add_argument('--preprocessed', action = 'store_true', help = "the value of the soong proper…
54parser.add_argument('--privileged', action = 'store_true', help = "the value of the soong property…
55 parser.add_argument('apk', help = "the apk to check")
56 parser.add_argument('stampfile', help = "a file to touch if successful")
57 args = parser.parse_args()
Dconstruct_uffd_gc_flag.py26 parser = argparse.ArgumentParser()
27 parser.add_argument('kernel_version_file')
28 parser.add_argument('output')
29 return parser.parse_args()
Dmodify_permissions_allowlist.py47 parser = argparse.ArgumentParser()
48 parser.add_argument('input', help='input allowlist template file')
49 parser.add_argument(
52 parser.add_argument('output', help='output allowlist file')
54 return parser.parse_args()
Dmerge_directories.py8 parser = argparse.ArgumentParser(
12 parser.add_argument(
18 parser.add_argument(
23 parser.add_argument("out_dir")
24 parser.add_argument("in_dir")
25 args = parser.parse_args()
Dextra_install_zips_file_list.py14 parser = argparse.ArgumentParser(
18 parser.add_argument('staging_dir',
20 parser.add_argument('extra_install_zips', nargs='*',
25 args = parser.parse_args()
/build/soong/ui/status/
Dkati_test.go50 parser := &katiOutputParser{
55 parser.parseLine(msg)
65 parser.parseLine("out/build-aosp_arm.ninja is missing, regenerating...")
68 parser.parseLine("[1/1] initializing legacy Make module parser ...")
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 legacy Make module parsing ...")
96 parser.parseLine("[5/5] writing legacy Make module rules ...")
97 parser.parseLine("*kati*: verbose msg")
[all …]
/build/make/tools/releasetools/
Dota_signing_utils.py25 def AddSigningArgumentParse(parser: argparse.ArgumentParser):
26 parser.add_argument('--package_key', type=str,
28 parser.add_argument('--search_path', '--path', type=str,
30 parser.add_argument('--payload_signer', type=str,
32 parser.add_argument('--payload_signer_args', type=ParseSignerArgs,
34 parser.add_argument('--payload_signer_maximum_signature_size', type=str,
37 parser.add_argument('--private_key_suffix', type=str,
Dcreate_brick_ota.py62 parser = argparse.ArgumentParser(description='Android Brick OTA generator')
63 parser.add_argument('otafile', metavar='PAYLOAD', type=str,
65 parser.add_argument('--product', type=str,
67 parser.add_argument('--serialno', type=str,
69 parser.add_argument('--extra_wipe_partitions', type=str,
71 parser.add_argument('-v', action="store_true",
73 parser.add_argument('--package_key', type=str,
75 parser.add_argument('--search_path', type=str,
77 parser.add_argument('--private_key_suffix', type=str,
79 args = parser.parse_args(argv[1:])
/build/soong/partner/bpfix/extensions/
Dheaders.go41 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/bpfix/bpfix/
Dbpfix.go43 res, err := parser.Print(tree)
209 tree *parser.File
212 func (f Fixer) Tree() *parser.File {
216 func NewFixer(tree *parser.File) *Fixer {
227 func (f *Fixer) Fix(config FixRequest) (*parser.File, error) {
268 bytes, err := parser.Print(f.tree)
276 buf, err := parser.Print(f.tree)
288 func parse(name string, r io.Reader) (*parser.File, error) {
289 tree, errs := parser.Parse(name, r, parser.NewScope(nil))
310 func simplifyKnownPropertiesDuplicatingEachOther(mod *parser.Module, buf []byte, patchList *parser.…
[all …]
/build/soong/androidmk/
DAndroid.bp45 "androidmk-parser",
46 "blueprint-parser",
52 name: "androidmk-parser",
53 pkgPath: "android/soong/androidmk/parser",
55 "parser/ast.go",
56 "parser/make_strings.go",
57 "parser/parser.go",
58 "parser/scope.go",
61 "parser/make_strings_test.go",
62 "parser/parser_test.go",
/build/make/tools/
Dgenerate-enforce-rro-android-manifest.py35 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()
Dfileslist_util.py35 parser = argparse.ArgumentParser()
36 parser.add_argument("-n", action="store_true",
38 parser.add_argument("-c", action="store_true",
40 parser.add_argument("json_files_list")
41 args = parser.parse_args()
Dgenerate_gts_shared_report.py38 parser = argparse.ArgumentParser()
39 parser.add_argument(
42 parser.add_argument(
45 parser.add_argument(
48 parser.add_argument(
51 return parser.parse_args()
/build/bazel/tests/apex/
Dapks_binary_arches.py23 parser = argparse.ArgumentParser(
26 parser.add_argument('--deapexer-path', required=True)
27 parser.add_argument('--readelf-path', required=True)
28 parser.add_argument('--debugfs-path', required=True)
29 parser.add_argument('--fsckerofs-path', required=True)
30 parser.add_argument('apks')
31 parser.add_argument('output')
32 args = parser.parse_args()
/build/soong/provenance/tools/
Dgen_provenance_metadata.py31 parser = argparse.ArgumentParser(description='Create provenance metadata for a prebuilt artifact')
32parser.add_argument('-v', '--verbose', action='store_true', help='Print more information in execut…
33 parser.add_argument('--module_name', help='Module name', required=True)
34parser.add_argument('--artifact_path', help='Relative path of the prebuilt artifact in source tree…
35parser.add_argument('--install_path', help='Absolute path of the artifact in the filesystem images…
36parser.add_argument('--metadata_path', help='Path of the provenance metadata file created for the …
37 return parser.parse_args(argv)
/build/blueprint/bpmodify/
Dbpmodify.go88 file, errs := parser.Parse(filename, r, parser.NewScope(nil))
103 res, err := parser.Print(file)
130 func findModules(file *parser.File) (modified bool, errs []error) {
132 if module, ok := def.(*parser.Module); ok {
134 … prop.Name == "name" && prop.Value.Type() == parser.StringType && targetedModule(prop.Value.Eval()…
147 func processModuleProperty(module *parser.Module, moduleName string,
148 file *parser.File, property qualifiedProperty) (modified bool, errs []error) {
156 …dified, err = createRecursiveProperty(module, property.name(), property.prefixes(), &parser.List{})
159 …fied, err = createRecursiveProperty(module, property.name(), property.prefixes(), &parser.String{})
162 …dified, err = createRecursiveProperty(module, property.name(), property.prefixes(), &parser.Bool{})
[all …]
/build/soong/cc/ndkstubgen/
D__init__.py90 parser = argparse.ArgumentParser()
96 parser.add_argument('-v', '--verbose', action='count', default=0)
98 parser.add_argument(
100 parser.add_argument(
103 parser.add_argument(
105 parser.add_argument(
109 parser.add_argument(
114 parser.add_argument(
120 parser.add_argument('--api-map',
125 parser.add_argument('symbol_file',
[all …]
/build/blueprint/proptools/
Dunpack.go41 property *parser.Property
73 func UnpackProperties(properties []*parser.Property, objects ...interface{}) (map[string]*parser.Pr…
94 result := make(map[string]*parser.Property)
146 func (ctx *unpackContext) buildPropertyMap(prefix string, properties []*parser.Property) bool {
162 case *parser.Map:
164 case *parser.List:
171 …if t := propValue.Values[0].Type(); t == parser.StringType || t == parser.Int64Type || t == parser
175 itemProperties := make([]*parser.Property, len(propValue.Values))
177 itemProperties[i] = &parser.Property{
316 if property.Value.Eval().Type() != parser.MapType {
[all …]
/build/soong/bin/
Dpathmod33 parser = argparse.ArgumentParser(description=__doc__)
34 parser.add_argument('module')
35 args = parser.parse_args()
Doutmod33 parser = argparse.ArgumentParser(description=__doc__)
34 parser.add_argument('module')
35 args = parser.parse_args()
Dsoongdbg180 def module_selection_args(parser): argument
181 parser.add_argument("modules", nargs="*",
183 parser.add_argument("--provider", nargs="+",
185 parser.add_argument("--dep", nargs="+",
212 def print_args(parser): argument
213 parser.add_argument("--label", action="append", metavar="JQ_FILTER",
215 parser.add_argument("--deptags", action="store_true",
218 group = parser.add_argument_group("output formats",
298 def args(self, parser): argument
299 parser.add_argument("module", nargs=2,
[all …]

123456