Home
last modified time | relevance | path

Searched refs:args (Results 1 – 25 of 129) sorted by relevance

123456

/build/soong/android/
Dmodule_test.go22 type args struct {
27 args args
32 args: args{
39 args: args{
46 args: args{
53 args: args{
61 if gotModule := SrcIsModule(tt.args.s); gotModule != tt.wantModule {
69 type args struct {
74 args args
80 args: args{
[all …]
/build/soong/java/
Dandroid_manifest.go32 `$args $in $out`,
39 Command: `${config.ManifestMergerCmd} $args --main $in $libs --out $out`,
58 var args []string
60 args = append(args, "--library")
67 args = append(args, fmt.Sprintf("--extract-native-libs=%v", !useEmbeddedNativeLibs))
75 args = append(args, "--uses-non-sdk-api")
79 args = append(args, "--use-embedded-dex")
84 args = append(args, "--optional-uses-library", usesLib)
86 args = append(args, "--uses-library", usesLib)
91 args = append(args, "--has-no-code")
[all …]
Djava_resources.go37 …resourceDirs, excludeResourceDirs, excludeResourceFiles []string) (args []string, deps android.Pat…
62 args = append(args, "-C", dir.String())
69 args = append(args, "-f", pathtools.MatchEscape(path))
75 return args, deps
81 res, exclude []string) (args []string, deps android.Paths) {
89 res, exclude []string) (args []string, deps android.Paths) {
93 args = resourcePathsToJarArgs(files)
95 return args, files
99 var args []string
110 args = append(args, "-C", dir)
[all …]
/build/soong/scripts/
Dlint-project-xml.py96 def write_project_xml(f, args): argument
97 test_attr = "test='true' " if args.test else ""
101 if args.root_dir:
102 f.write(" <root dir='%s' />\n" % args.root_dir)
103 …<module name='%s' android='true' %sdesugar='full' >\n" % (args.name, "library='true' " if args.lib…
104 if args.manifest:
105 f.write(" <manifest file='%s' %s/>\n" % (args.manifest, test_attr))
106 if args.merged_manifest:
107 f.write(" <merged-manifest file='%s' %s/>\n" % (args.merged_manifest, test_attr))
108 for src_file in args.srcs:
[all …]
Dconstruct_context.py27 def parse_args(args): argument
38 return parser.parse_args(args)
64 def construct_contexts(args): argument
65 host_context = construct_context(args.host_classpaths, args.sdk)
66 target_context = construct_context(args.target_classpaths, args.sdk)
74 args = parse_args(sys.argv[1:])
75 if not args.sdk:
77 if not args.host_classpaths:
79 if not args.target_classpaths:
82 print(construct_contexts(args))
Dconstruct_context_test.py27 args = cc.parse_args(arglist)
28 return cc.construct_contexts(args)
41 args = ['--target-sdk-version', '28'] + classpaths
42 result = construct_contexts(args)
57 args = ['--target-sdk-version', '29'] + classpaths
58 result = construct_contexts(args)
69 args = ['--target-sdk-version', 'S'] + classpaths
70 result = construct_contexts(args)
Dgen-kotlin-build-file.py54 args = parse_args()
56 if not args.out:
59 if not args.name:
62 with open(args.out, 'w') as f:
65 …f.write(' <module name="%s" type="java-production" outputDir="%s">\n' % (args.name, args.out_dir …
68 for c in args.classpath:
74 for rsp_file in args.srcs:
84 for rsp_file in args.common_srcs:
Dtest_config_fixer.py76 args = parse_args()
78 doc = minidom.parse(args.input)
80 if args.package_name:
81 if not args.manifest:
83 manifest_doc = minidom.parse(args.manifest)
84 overwrite_package_name(doc, manifest_doc, args.package_name)
86 if args.test_file_name:
87 overwrite_test_file_name(doc, args.test_file_name)
89 with open(args.output, 'wb') as f:
Dmanifest_fixer.py325 args = parse_args()
327 doc = minidom.parse(args.input)
331 if args.raise_min_sdk_version:
332 raise_min_sdk_version(doc, args.min_sdk_version, args.target_sdk_version, args.library)
334 if args.uses_libraries:
335 add_uses_libraries(doc, args.uses_libraries, True)
337 if args.optional_uses_libraries:
338 add_uses_libraries(doc, args.optional_uses_libraries, False)
340 if args.uses_non_sdk_api:
343 if args.logging_parent:
[all …]
/build/soong/cc/
Dcompdb.go115 func expandAllVars(ctx android.SingletonContext, args []string) []string {
117 for _, arg := range args {
130 var args []string
154 args = append(args, clangPath)
155 args = append(args, expandAllVars(ctx, ccModule.flags.Global.CommonFlags)...)
156 args = append(args, expandAllVars(ctx, ccModule.flags.Local.CommonFlags)...)
157 args = append(args, expandAllVars(ctx, ccModule.flags.Global.CFlags)...)
158 args = append(args, expandAllVars(ctx, ccModule.flags.Local.CFlags)...)
160 args = append(args, expandAllVars(ctx, ccModule.flags.Global.CppFlags)...)
161 args = append(args, expandAllVars(ctx, ccModule.flags.Local.CppFlags)...)
[all …]
/build/soong/ui/build/
Dkati.go42 if args := config.KatiArgs(); len(args) > 0 {
43 katiSuffix += "-" + spaceSlashReplacer.Replace(strings.Join(args, "_"))
63 func runKati(ctx Context, config Config, extraSuffix string, args []string, envFunc func(*Environme…
65 args = append([]string{
87 }, args...)
90 args = append(args, "--empty_ninja_file")
94 args = append(args, "--default_pool=local_pool")
97 cmd := Command(ctx, config, "ckati", executable, args...)
135 args := []string{
142 args = append(args, "--werror_implicit_rules")
[all …]
Dconfig_test.go45 args []string
83 t.Run(strings.Join(tc.args, " "), func(t *testing.T) {
92 c.parseArgs(ctx, tc.args)
96 strings.Join(tc.args, " "),
101 strings.Join(tc.args, " "),
106 strings.Join(tc.args, " "),
118 args []string
130 args: []string{"abc"},
136 args: []string{"A=bc"},
142 args: []string{"A=bc"},
[all …]
Dninja.go39 args := []string{
46 args = append(args, config.NinjaArgs()...)
54 args = append(args, "-j", strconv.Itoa(parallel))
56 args = append(args, "-k", strconv.Itoa(config.keepGoing))
59 args = append(args, "-f", config.CombinedNinjaFile())
61 args = append(args,
66 cmd := Command(ctx, config, "ninja", executable, args...)
/build/soong/cmd/zip2zip/
Dzip2zip_test.go32 args []string
44 args: []string{"a\\b:b"},
60 args: []string{"OTA/android-info.txt:android-info.txt", "IMAGES/*.img:."},
82 args: []string{"IMAGES/*.img:.", "OTA/android-info.txt:android-info.txt"},
107 args: []string{"**/*"},
135 args: nil,
165 args: nil,
186 args: []string{"a:a2", "**/*"},
200 args: []string{"a/a", "a/*"},
213 args: []string{"a/b:a/a", "a/*"},
[all …]
/build/soong/cmd/diff_target_files/
Dallow_list_test.go61 type args struct {
67 args args
73 args: args{
85 args: args{
95 args: args{
105 args: args{
116 got, err := applyAllowLists(tt.args.diff, tt.args.allowLists)
/build/soong/zip/
Dzip_test.go104 args *FileArgsBuilder
118 args: fileArgsBuilder(),
124 args: fileArgsBuilder().
138 args: fileArgsBuilder().
153 args: fileArgsBuilder().
168 args: fileArgsBuilder().
182 args: fileArgsBuilder().
199 args: fileArgsBuilder().
216 args: fileArgsBuilder().
227 args: fileArgsBuilder().
[all …]
/build/soong/cc/ndkstubgen/
D__init__.py121 args = parse_args()
123 with open(args.api_map) as map_file:
125 api = symbolfile.decode_api_level(args.api, api_map)
128 verbosity = args.verbose
133 with open(args.symbol_file) as symbol_file:
136 args.arch, api, args.llndk,
137 args.apex).parse()
139 sys.exit('{}: error: {}'.format(args.symbol_file, ex))
141 with open(args.stub_src, 'w') as src_file:
142 with open(args.version_script, 'w') as version_file:
[all …]
/build/soong/cuj/
Dcuj.go37 args []string member
87 config := build.NewConfig(buildCtx, t.args...)
151 args: []string{"clean"},
156 args: []string{"nothing"},
161 args: []string{"nothing"},
166 args: []string{"nothing"},
171 args: []string{"framework"},
176 args: []string{"framework"},
181 args: []string{"framework"},
186 args: []string{"droid"},
[all …]
/build/make/tools/releasetools/
Dtest_utils.py159 def Mount(self, *args): argument
160 self.lines.append(('Mount',) + args)
162 def AssertDevice(self, *args): argument
163 self.lines.append(('AssertDevice',) + args)
165 def AssertOemProperty(self, *args): argument
166 self.lines.append(('AssertOemProperty',) + args)
168 def AssertFingerprintOrThumbprint(self, *args): argument
169 self.lines.append(('AssertFingerprintOrThumbprint',) + args)
171 def AssertSomeFingerprint(self, *args): argument
172 self.lines.append(('AssertSomeFingerprint',) + args)
[all …]
/build/make/tools/
Dgenerate-enforce-rro-android-manifest.py55 args = get_args()
57 partition = args.partition
58 priority = args.priority
59 if args.use_package_name:
60 package_name = args.package_info
62 with open(args.package_info) as f:
68 with open(args.output, 'w+') as f:
Djava-event-log-tags.py38 opts, args = getopt.getopt(sys.argv[1:], "ho:") variable
54 if len(args) != 1 and len(args) != 2:
55 print "need one or two input files, not %d" % (len(args),)
59 fn = args[0]
62 if len(args) > 1:
66 merged_fn = args[1]
143 args = [arg.strip("() ").split("|") for arg in t.description.split(",")] variable
145 args = [] variable
146 argTypesNames = ", ".join([javaTypes[int(arg[1])] + " " + javaName(arg[0]) for arg in args])
147 argNames = "".join([", " + javaName(arg[0]) for arg in args])
/build/make/tools/warn/
Dwarn.py27 def classify_warnings(args): argument
40 for line, link in args['group']:
41 common.classify_one_warning(line, link, results, args['project_patterns'],
42 args['warn_patterns'])
46 if args['num_processes'] > 1:
47 signal.signal(signal.SIGTERM, lambda *args: sys.exit(-signal.SIGTERM))
/build/soong/cmd/path_interposer/
Dmain_test.go86 args []string
94 args: []string{interposer},
101 args: []string{filepath.Base(interposer)},
108 args: []string{"/my/path/true"},
112 args: []string{"true"},
116 args: []string{"bash", "-c", "exit 42"},
123 args: []string{"bash", "-c", "kill -9 $$"},
130 args: []string{"path_interposer_test_does_not_exist"},
138 args: []string{"path_interposer_test_not_allowed"},
158 exitCode, err := Main(ioutil.Discard, ioutil.Discard, interposer, testCase.args, mainOpts{
/build/soong/remoteexec/
Dremoteexec.go112 args := ""
122 args += " --labels=" + strings.Join(kvs, ",")
136 args += " --platform=\"" + strings.Join(platform, ",") + "\""
143 args += " --exec_strategy=" + strategy
146 args += " --inputs=" + strings.Join(r.Inputs, ",")
150 args += " --input_list_paths=" + r.RSPFile
154 args += " --output_files=" + strings.Join(r.OutputFiles, ",")
158 args += " --output_directories=" + strings.Join(r.OutputDirectories, ",")
162 args += " --toolchain_inputs=" + strings.Join(r.ToolchainInputs, ",")
165 return args + " -- "
/build/soong/cmd/soong_ui/
Dmain.go51 config func(ctx build.Context, args ...string) build.Config
57 run func(ctx build.Context, config build.Config, args []string, logsDir string)
67 config: func(ctx build.Context, args ...string) build.Config {
68 return build.NewConfig(ctx, args...)
122 c, args := getCommand(os.Args)
163 config := c.config(buildCtx, args...)
216 c.run(buildCtx, config, args, logsDir)
233 func dumpVar(ctx build.Context, config build.Config, args []string, _ string) {
246 flags.Parse(args)
283 func dumpVars(ctx build.Context, config build.Config, args []string, _ string) {
[all …]

123456