Home
last modified time | relevance | path

Searched refs:String (Results 1 – 25 of 249) sorted by relevance

12345678910

/build/soong/java/
Dkotlin_test.go48 if len(fooKotlinc.Inputs) != 2 || fooKotlinc.Inputs[0].String() != "a.java" ||
49 fooKotlinc.Inputs[1].String() != "b.kt" {
53 if len(fooJavac.Inputs) != 1 || fooJavac.Inputs[0].String() != "a.java" {
57 if !strings.Contains(fooJavac.Args["classpath"], fooKotlinc.Output.String()) {
59 fooJavac.Args["classpath"], fooKotlinc.Output.String())
62 if !inList(fooKotlinc.Output.String(), fooJar.Inputs.Strings()) {
64 fooJar.Inputs.Strings(), fooKotlinc.Output.String())
71 if len(barKotlinc.Inputs) != 1 || barKotlinc.Inputs[0].String() != "b.kt" {
75 if !inList(fooHeaderJar.Output.String(), barKotlinc.Implicits.Strings()) {
77 fooHeaderJar.Output.String(), barKotlinc.Implicits.Strings())
[all …]
Dproto.go39 rule.Command().Text("rm -rf").Flag(outDir.String())
40 rule.Command().Text("mkdir -p").Flag(outDir.String())
43 depFile := srcJarFile.InSameDir(ctx, protoFile.String()+".d")
44 rule.Command().Text("mkdir -p").Flag(filepath.Dir(depFile.String()))
55 FlagWithArg("-C ", outDir.String()).
56 FlagWithArg("-D ", outDir.String())
58 rule.Command().Text("rm -rf").Flag(outDir.String())
76 if String(p.Proto.Plugin) == "" {
77 switch String(p.Proto.Type) {
92 String(p.Proto.Type))
[all …]
Ddroiddoc.go330 } else if String(apiToCheck.Api_file) != "" && String(apiToCheck.Removed_api_file) != "" {
332 } else if String(apiToCheck.Api_file) != "" {
334 } else if String(apiToCheck.Removed_api_file) != "" {
342 api_file := String(apiToCheck.Api_file)
343 removed_api_file := String(apiToCheck.Removed_api_file)
432 return sdkSpecFrom(String(j.properties.Sdk_version))
436 return proptools.String(j.properties.System_modules)
479 flags = append(flags, "-p"+aidlPreprocess.String())
486 flags = append(flags, "-I"+android.PathForModuleSrc(ctx).String())
488 flags = append(flags, "-I"+src.String())
[all …]
Djava_resources.go42 dirs := ctx.Glob(android.PathForSource(ctx, ctx.ModuleDir()).Join(ctx, exclude).String(), nil)
44 excludeDirs = append(excludeDirs, dir.String())
45 excludeFiles = append(excludeFiles, dir.(android.SourcePath).Join(ctx, "**/*").String())
55 …dirs := ctx.Glob(android.PathForSource(ctx, ctx.ModuleDir()).Join(ctx, resourceDir).String(), excl…
57 files := ctx.GlobFiles(filepath.Join(dir.String(), "**/*"), excludeFiles)
62 args = append(args, "-C", dir.String())
65 path := f.String()
66 if !strings.HasPrefix(path, dir.String()) {
104 path := f.String()
Daapt2.go37 subDir := filepath.Dir(res.String())
81 Description: "aapt2 compile " + dir.String() + shardDesc,
85 "outDir": android.PathForModuleOut(ctx, "aapt2", dir.String()).String(),
92 return ret[i].String() < ret[j].String()
120 "resZipDir": android.PathForModuleOut(ctx, "aapt2", "reszip", flata.Base()).String(),
177 inFlags = append(inFlags, "@"+resFileList.String())
191 inFlags = append(inFlags, "-R", "@"+overlayFileList.String())
218 "proguardOptions": proguardOptions.String(),
219 "genDir": genDir.String(),
220 "genJar": genJar.String(),
[all …]
Ddexpreopt_bootjars.go348 FlagWithArg("-C ", image.dir.Join(ctx, android.Android.String()).String()).
364 os := image.target.Os.String() // We need to distinguish host-x86 and device-x86.
365 symbolsDir := image.symbolsDir.Join(ctx, os, image.installSubdir, arch.String())
367 outputDir := image.dir.Join(ctx, os, image.installSubdir, arch.String())
375 rule.Command().Text("mkdir").Flag("-p").Flag(symbolsDir.String())
377 Flag(symbolsDir.Join(ctx, "*.art").String()).
378 Flag(symbolsDir.Join(ctx, "*.oat").String()).
379 Flag(symbolsDir.Join(ctx, "*.invocation").String())
381 Flag(outputDir.Join(ctx, "*.art").String()).
382 Flag(outputDir.Join(ctx, "*.oat").String()).
[all …]
Dkotlin.go91 commonSrcFilesArg = "--common_srcs " + commonSrcsList.String()
105 "classesDir": android.PathForModuleOut(ctx, "kotlinc", "classes").String(),
106 "srcJarDir": android.PathForModuleOut(ctx, "kotlinc", "srcJars").String(),
107 "kotlinBuildFile": android.PathForModuleOut(ctx, "kotlinc-build.xml").String(),
108 "emptyDir": android.PathForModuleOut(ctx, "kotlinc", "empty").String(),
173 commonSrcFilesArg = "--common_srcs " + commonSrcsList.String()
187 {"-source", flags.javaVersion.String()},
188 {"-target", flags.javaVersion.String()},
206 "srcJarDir": android.PathForModuleOut(ctx, "kapt", "srcJars").String(),
207 "kotlinBuildFile": android.PathForModuleOut(ctx, "kapt", "build.xml").String(),
[all …]
Djava_test.go291 if len(javac.Inputs) != 1 || javac.Inputs[0].String() != "a.java" {
295 baz := ctx.ModuleForTests("baz", "android_common").Rule("javac").Output.String()
307 if len(combineJar.Inputs) != 2 || combineJar.Inputs[1].String() != baz {
444 …if len(javac.Inputs) != 2 || javac.Inputs[0].String() != "a.java" || javac.Inputs[1].String() != "…
463 buildOS := android.BuildOs.String()
466 barJar := bar.Output("bar.jar").Output.String()
503 buildOS := android.BuildOs.String()
571 if !strings.Contains(javac.Args["classpath"], barJar.String()) {
572 t.Errorf("foo classpath %v does not contain %q", javac.Args["classpath"], barJar.String())
575 if !strings.Contains(javac.Args["classpath"], sdklibStubsJar.String()) {
[all …]
/build/soong/cc/
Dndk_headers.go110 headerDir := filepath.Dir(header.String())
113 strippedHeaderDir, err := filepath.Rel(fullFromPath.String(), headerDir)
116 fullFromPath.String(), err)
127 if String(m.properties.License) == "" {
131 m.licensePath = android.PathForModuleSrc(ctx, String(m.properties.License))
135 installDir := getHeaderInstallDir(ctx, header, String(m.properties.From),
136 String(m.properties.To))
211 if String(m.properties.License) == "" {
215 m.licensePath = android.PathForModuleSrc(ctx, String(m.properties.License))
217 fromSrcPath := android.PathForModuleSrc(ctx, String(m.properties.From))
[all …]
Dproto.go44 optionsFile := pathtools.ReplaceExtension(protoFile.String(), "options")
65 if String(p.Proto.Plugin) == "" {
66 switch String(p.Proto.Type) {
101 String(p.Proto.Type))
121 flags.Local.CommonFlags = append(flags.Local.CommonFlags, "-I"+flags.proto.SubDir.String())
123 flags.Local.CommonFlags = append(flags.Local.CommonFlags, "-I"+flags.proto.Dir.String())
125 if String(p.Proto.Plugin) == "" {
128 switch String(p.Proto.Type) {
146 String(p.Proto.Type))
152 flags.proto.Flags = append(flags.proto.Flags, "--plugin="+path.String())
Dandroidmk.go156 path := d.SrcPath.String()
194 exportedFlags = append(exportedFlags, "-I"+dir.String())
197 exportedFlags = append(exportedFlags, "-isystem "+dir.String())
211 "$(LOCAL_ADDITIONAL_DEPENDENCIES) "+library.sAbiOutputFile.String())
214 "$(LOCAL_ADDITIONAL_DEPENDENCIES) "+library.sAbiDiff.String())
216 "$(HEADER_ABI_DIFFS) "+library.sAbiDiff.String())
225 library.sAbiOutputFile.String())
228 library.sAbiDiff.String())
230 library.sAbiDiff.String())
241 entries.SetString("LOCAL_SOONG_TOC", library.toc().String())
[all …]
/build/soong/apex/
Dkey.go27 var String = proptools.String var
71 if android.SrcIsModule(String(m.properties.Public_key)) != "" {
72 m.public_key_file = android.PathForModuleSrc(ctx, String(m.properties.Public_key))
74 m.public_key_file = ctx.Config().ApexKeyDir(ctx).Join(ctx, String(m.properties.Public_key))
76 if !android.ExistentPathForSource(ctx, m.public_key_file.String()).Valid() {
77 m.public_key_file = android.PathForModuleSrc(ctx, String(m.properties.Public_key))
81 if android.SrcIsModule(String(m.properties.Private_key)) != "" {
82 m.private_key_file = android.PathForModuleSrc(ctx, String(m.properties.Private_key))
84 m.private_key_file = ctx.Config().ApexKeyDir(ctx).Join(ctx, String(m.properties.Private_key))
85 if !android.ExistentPathForSource(ctx, m.private_key_file.String()).Valid() {
[all …]
Dandroidmk.go72 linkPath := filepath.Join(a.installDir.ToMakePath().String(), apexBundleName, fi.Path())
116 modulePath = filepath.Join(a.installDir.ToMakePath().String(), apexBundleName, fi.installDir)
148 fmt.Fprintln(w, "LOCAL_PREBUILT_MODULE_FILE :=", fi.builtFile.String())
151 archStr := fi.module.Target().Arch.ArchType.String()
170 makeOs := fi.module.Target().Os.String()
179 fmt.Fprintln(w, "LOCAL_SOONG_JACOCO_REPORT_CLASSES_JAR :=", fi.jacocoReportClassesFile.String())
188 ….Fprintln(w, "LOCAL_SOONG_CLASSES_JAR :=", javaModule.ImplementationAndResourcesJars()[0].String())
189 fmt.Fprintln(w, "LOCAL_SOONG_HEADER_JAR :=", javaModule.HeaderJars()[0].String())
191 fmt.Fprintln(w, "LOCAL_SOONG_CLASSES_JAR :=", fi.builtFile.String())
192 fmt.Fprintln(w, "LOCAL_SOONG_HEADER_JAR :=", fi.builtFile.String())
[all …]
Dbuilder.go49 return ctx.Config().HostToolPath(ctx, tool).String()
246 …if matched, err := path.Match("system/sepolicy/**/*", fileContexts.String()); err != nil || !match…
251 if !android.ExistentPathForSource(ctx, fileContexts.String()).Valid() {
299 Text("(cd " + imageDir.String() + " ; ").
353 Description: "Bundle Config " + output.String(),
380 destPath := android.PathForModuleOut(ctx, "image"+suffix, fi.Path()).String()
393 fmt.Sprintf("unzip -qDD -d %s %s", destPathDir, fi.builtFile.String()))
395 copyCommands = append(copyCommands, "cp -f "+fi.builtFile.String()+" "+destPath)
401 symlinkDest := android.PathForModuleOut(ctx, "image"+suffix, symlinkPath).String()
407 dataPath := d.SrcPath.String()
[all …]
/build/soong/android/
Drule_builder.go59 func (installs RuleBuilderInstalls) String() string { func
65 sb.WriteString(install.From.String())
69 return sb.String()
159 return temporariesList[i].String() < temporariesList[j].String()
176 inputStr := input.String()
179 inputs[input.String()] = input
191 return inputList[i].String() < inputList[j].String()
203 orderOnlys[orderOnly.String()] = orderOnly
213 return orderOnlyList[i].String() < orderOnlyList[j].String()
223 outputs[output.String()] = output
[all …]
Dproto.go50 if String(p.Proto.Plugin) != "" && String(p.Proto.Type) != "" {
54 if plugin := String(p.Proto.Plugin); plugin != "" {
78 plugin := String(p.Proto.Plugin)
80 flags = append(flags, "--plugin=protoc-gen-"+plugin+"="+hostTool.HostToolPath().String())
85 if plugin := String(p.Proto.Plugin); plugin != "" {
133 protoBase = strings.TrimSuffix(protoFile.String(), rel)
138 FlagWithArg(flags.OutTypeFlag+"=", strings.Join(flags.OutParams, ",")+":"+outDir.String()).
147 BuiltTool(ctx, "dep_fixer").Flag(depFile.String())
Dpaths.go116 String() string methodSpec
212 func (p OptionalPath) String() string { func
214 return p.path.String()
306 ret[i] = path.String()
320 prefix := pathForModuleSrc(ctx).String()
389 if !InList(p.String(), expandedExcludes) {
414 paths := ctx.GlobFiles(pathForModuleSrc(ctx, s).String(), expandedExcludes)
418 if exists, _, err := ctx.Config().fs.Exists(p.String()); err != nil {
424 if InList(p.String(), expandedExcludes) {
484 ret[i] = path.String()
[all …]
/build/soong/ui/metrics/
Dmetrics.go72 m.metrics.BuildId = proto.String(v)
75 m.metrics.PlatformVersionCodename = proto.String(v)
78 m.metrics.TargetProduct = proto.String(v)
94 m.metrics.TargetArchVariant = proto.String(v)
96 m.metrics.TargetCpuVariant = proto.String(v)
102 m.metrics.HostOs = proto.String(v)
104 m.metrics.HostOsExtra = proto.String(v)
106 m.metrics.HostCrossOs = proto.String(v)
108 m.metrics.HostCrossArch = proto.String(v)
110 m.metrics.HostCross_2NdArch = proto.String(v)
[all …]
/build/blueprint/parser/
Dast.go33 String() string methodSpec
49 func (a *Assignment) String() string { func
74 func (m *Module) String() string { func
77 propertyStrings[i] = property.String()
103 func (p *Property) String() string { func
117 String() string methodSpec
170 func (t Type) String() string { func
214 func (x *Operator) String() string { func
215 return fmt.Sprintf("(%s %c %s = %s)@%s", x.Args[0].String(), x.Operator, x.Args[1].String(),
237 func (x *Variable) String() string { func
[all …]
Dparser_test.go72 Value: &String{
166 &String{
170 &String{
174 &String{
178 &String{
182 &String{
245 Value: &String{
270 Value: &String{
315 &String{
319 &String{
[all …]
/build/soong/dexpreopt/dexpreopt_gen/
Ddexpreopt_gen.go34 dexpreoptScriptPath = flag.String("dexpreopt_script", "", "path to output dexpreopt script")
35 …globalSoongConfigPath = flag.String("global_soong", "", "path to global configuration file for set…
36 globalConfigPath = flag.String("global", "", "path to global configuration file")
37 moduleConfigPath = flag.String("module", "", "path to module configuration file")
38 outDir = flag.String("out_dir", "", "path to output directory")
145 dexpreoptRule.Command().FlagWithArg("rm -rf ", installDir.String())
146 dexpreoptRule.Command().FlagWithArg("mkdir -p ", installDir.String())
150 dexpreoptRule.Command().Text("mkdir -p").Flag(filepath.Dir(installPath.String()))
155 FlagWithArg("-C ", installDir.String()).
156 FlagWithArg("-D ", installDir.String())
[all …]
/build/soong/zip/cmd/
Dmain.go33 func (u *uniqueSet) String() string { func
49 func (file) String() string { return `""` } func
58 func (listFiles) String() string { return `""` } func
67 func (dir) String() string { return `""` } func
76 func (relativeRoot) String() string { return "" } func
86 func (junkPaths) String() string { return "" } func
96 func (rootPrefix) String() string { return "" } func
131 out := flags.String("o", "", "file to write zip file to")
132 manifest := flags.String("m", "", "input jar manifest file name")
142 cpuProfile := flags.String("cpuprofile", "", "write cpu profile to file")
[all …]
/build/soong/python/
Dproto.go29 rule.Command().Text("rm -rf").Flag(outDir.String())
30 rule.Command().Text("mkdir -p").Flag(outDir.String())
42 zipCmd.FlagWithArg("-C ", outDir.String()).
43 FlagWithArg("-D ", outDir.String())
45 rule.Command().Text("rm -rf").Flag(outDir.String())
/build/soong/symbol_inject/cmd/
Dsymbol_inject.go26 input = flag.String("i", "", "input file")
27 output = flag.String("o", "", "output file")
28 symbol = flag.String("s", "", "symbol to inject into")
29 from = flag.String("from", "", "optional existing value of the symbol for verification")
30 value = flag.String("v", "", "value to inject into symbol")
/build/soong/etc/
Dprebuilt_etc_test.go224 if p.installDirPath.String() != expected {
225 t.Errorf("expected %q, got %q", expected, p.installDirPath.String())
248 buildOS := android.BuildOs.String()
266 if p.installDirPath.String() != expected {
267 t.Errorf("expected %q, got %q", expected, p.installDirPath.String())
280 buildOS := android.BuildOs.String()
283 if p.installDirPath.String() != expected {
284 t.Errorf("expected %q, got %q", expected, p.installDirPath.String())
298 if p.installDirPath.String() != expected {
299 t.Errorf("expected %q, got %q", expected, p.installDirPath.String())
[all …]

12345678910