Merge "gofmt soong" into main
This commit is contained in:
@@ -782,7 +782,7 @@ func (b *BootclasspathFragmentModule) produceBootImageProfileFromSource(ctx andr
|
||||
dexLocations := make([]string, 0, len(contents))
|
||||
for _, module := range contents {
|
||||
dexPaths = append(dexPaths, modules[module.Name()])
|
||||
dexLocations = append(dexLocations, filepath.Join("/", "apex", apex, "javalib", module.Name() + ".jar"))
|
||||
dexLocations = append(dexLocations, filepath.Join("/", "apex", apex, "javalib", module.Name()+".jar"))
|
||||
}
|
||||
|
||||
// Build a profile for the modules in this fragment.
|
||||
|
@@ -628,7 +628,7 @@ func generateBootImage(ctx android.ModuleContext, imageConfig *bootImageConfig)
|
||||
}
|
||||
|
||||
type apexJarModulePair struct {
|
||||
apex string
|
||||
apex string
|
||||
jarModule android.Module
|
||||
}
|
||||
|
||||
@@ -640,7 +640,7 @@ func getModulesForImage(ctx android.ModuleContext, imageConfig *bootImageConfig)
|
||||
name := android.RemoveOptionalPrebuiltPrefix(module.Name())
|
||||
if name == imageConfig.modules.Jar(i) {
|
||||
modules = append(modules, apexJarModulePair{
|
||||
apex: imageConfig.modules.Apex(i),
|
||||
apex: imageConfig.modules.Apex(i),
|
||||
jarModule: module,
|
||||
})
|
||||
found = true
|
||||
@@ -1178,7 +1178,7 @@ func dumpOatRules(ctx android.ModuleContext, image *bootImageConfig) {
|
||||
Rule: android.Phony,
|
||||
Output: phony,
|
||||
Inputs: allPhonies,
|
||||
Description: "dump-oat-"+name,
|
||||
Description: "dump-oat-" + name,
|
||||
})
|
||||
}
|
||||
|
||||
|
@@ -278,7 +278,7 @@ func getDexpreoptDirName(ctx android.PathContext) string {
|
||||
prefix := "dexpreopt_"
|
||||
targets := ctx.Config().Targets[android.Android]
|
||||
if len(targets) > 0 {
|
||||
return prefix+targets[0].Arch.ArchType.String()
|
||||
return prefix + targets[0].Arch.ArchType.String()
|
||||
}
|
||||
return prefix+"unknown_target"
|
||||
return prefix + "unknown_target"
|
||||
}
|
||||
|
@@ -77,7 +77,7 @@ var ApexBootJarDexJarPaths = []string{
|
||||
|
||||
func PrepareApexBootJarModule(apexName string, moduleName string) android.FixturePreparer {
|
||||
moduleSourceDir := fmt.Sprintf("packages/modules/%s", apexName)
|
||||
fragmentName := apexName+"-bootclasspath-fragment"
|
||||
fragmentName := apexName + "-bootclasspath-fragment"
|
||||
imageNameProp := ""
|
||||
if apexName == "com.android.art" {
|
||||
fragmentName = "art-bootclasspath-fragment"
|
||||
|
Reference in New Issue
Block a user