Rename classpath_fragment.go methods for better readability.

Bug: 180105615
Test: m nothing
Change-Id: Ic663c22e5b7cbab487dc1fe99805e08843c3213d
This commit is contained in:
satayev 2021-05-06 13:21:15 +01:00
parent 63bc30fc12
commit 128ce2ff73
2 changed files with 4 additions and 4 deletions

View File

@ -81,7 +81,7 @@ type classpathJar struct {
maxSdkVersion int32 maxSdkVersion int32
} }
func (c *ClasspathFragmentBase) generateAndroidBuildActions(ctx android.ModuleContext) { func (c *ClasspathFragmentBase) generateClasspathProtoBuildActions(ctx android.ModuleContext) {
outputFilename := ctx.ModuleName() + ".pb" outputFilename := ctx.ModuleName() + ".pb"
c.outputFilepath = android.PathForModuleOut(ctx, outputFilename).OutputPath c.outputFilepath = android.PathForModuleOut(ctx, outputFilename).OutputPath
c.installDirPath = android.PathForModuleInstall(ctx, "etc", "classpaths") c.installDirPath = android.PathForModuleInstall(ctx, "etc", "classpaths")
@ -137,7 +137,7 @@ func appendClasspathJar(slice []classpathJar, classpathType classpathType, paths
return return
} }
func (c *ClasspathFragmentBase) getAndroidMkEntries() []android.AndroidMkEntries { func (c *ClasspathFragmentBase) androidMkEntries() []android.AndroidMkEntries {
return []android.AndroidMkEntries{android.AndroidMkEntries{ return []android.AndroidMkEntries{android.AndroidMkEntries{
Class: "ETC", Class: "ETC",
OutputFile: android.OptionalPathForPath(c.outputFilepath), OutputFile: android.OptionalPathForPath(c.outputFilepath),

View File

@ -87,7 +87,7 @@ func (b *platformBootclasspathModule) AndroidMkEntries() (entries []android.Andr
OutputFile: android.OptionalPathForPath(b.hiddenAPIFlagsCSV), OutputFile: android.OptionalPathForPath(b.hiddenAPIFlagsCSV),
Include: "$(BUILD_PHONY_PACKAGE)", Include: "$(BUILD_PHONY_PACKAGE)",
}) })
entries = append(entries, b.classpathFragmentBase().getAndroidMkEntries()...) entries = append(entries, b.classpathFragmentBase().androidMkEntries()...)
return return
} }
@ -167,7 +167,7 @@ func (d *platformBootclasspathModule) MakeVars(ctx android.MakeVarsContext) {
} }
func (b *platformBootclasspathModule) GenerateAndroidBuildActions(ctx android.ModuleContext) { func (b *platformBootclasspathModule) GenerateAndroidBuildActions(ctx android.ModuleContext) {
b.classpathFragmentBase().generateAndroidBuildActions(ctx) b.classpathFragmentBase().generateClasspathProtoBuildActions(ctx)
// Gather all the dependencies from the art, updatable and non-updatable boot jars. // Gather all the dependencies from the art, updatable and non-updatable boot jars.
artModules := gatherApexModulePairDepsWithTag(ctx, platformBootclasspathArtBootJarDepTag) artModules := gatherApexModulePairDepsWithTag(ctx, platformBootclasspathArtBootJarDepTag)