summaryrefslogtreecommitdiff
path: root/java/bootclasspath_fragment.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2021-04-26 16:12:16 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2021-04-26 16:12:16 +0000
commit71c84696f9eaf41050aa770bd92ccfdacd2b116c (patch)
treec9af36e6cb76002ec68d7be481f84d04d8701eff /java/bootclasspath_fragment.go
parent00b47c4a6ebca7de66f337edf238b4358500ade1 (diff)
parente946b327f4aa2921c442f1b15aeb760eeabec5ce (diff)
Merge "Rename BootImageInfo to BootclasspathFragmentApexContentInfo"
Diffstat (limited to 'java/bootclasspath_fragment.go')
-rw-r--r--java/bootclasspath_fragment.go16
1 files changed, 9 insertions, 7 deletions
diff --git a/java/bootclasspath_fragment.go b/java/bootclasspath_fragment.go
index 619d47fcf..00d465992 100644
--- a/java/bootclasspath_fragment.go
+++ b/java/bootclasspath_fragment.go
@@ -165,24 +165,26 @@ func bootclasspathFragmentInitContentsFromImage(ctx android.EarlyModuleContext,
}
}
-var BootImageInfoProvider = blueprint.NewProvider(BootImageInfo{})
+var BootclasspathFragmentApexContentInfoProvider = blueprint.NewProvider(BootclasspathFragmentApexContentInfo{})
-type BootImageInfo struct {
+// BootclasspathFragmentApexContentInfo contains the bootclasspath_fragments contributions to the
+// apex contents.
+type BootclasspathFragmentApexContentInfo struct {
// The image config, internal to this module (and the dex_bootjars singleton).
//
- // Will be nil if the BootImageInfo has not been provided for a specific module. That can occur
+ // Will be nil if the BootclasspathFragmentApexContentInfo has not been provided for a specific module. That can occur
// when SkipDexpreoptBootJars(ctx) returns true.
imageConfig *bootImageConfig
}
-func (i BootImageInfo) Modules() android.ConfiguredJarList {
+func (i BootclasspathFragmentApexContentInfo) Modules() android.ConfiguredJarList {
return i.imageConfig.modules
}
// Get a map from ArchType to the associated boot image's contents for Android.
//
// Extension boot images only return their own files, not the files of the boot images they extend.
-func (i BootImageInfo) AndroidBootImageFilesByArchType() map[android.ArchType]android.OutputPaths {
+func (i BootclasspathFragmentApexContentInfo) AndroidBootImageFilesByArchType() map[android.ArchType]android.OutputPaths {
files := map[android.ArchType]android.OutputPaths{}
if i.imageConfig != nil {
for _, variant := range i.imageConfig.variants {
@@ -264,10 +266,10 @@ func (b *BootclasspathFragmentModule) GenerateAndroidBuildActions(ctx android.Mo
}
// Construct the boot image info from the config.
- info := BootImageInfo{imageConfig: imageConfig}
+ info := BootclasspathFragmentApexContentInfo{imageConfig: imageConfig}
// Make it available for other modules.
- ctx.SetProvider(BootImageInfoProvider, info)
+ ctx.SetProvider(BootclasspathFragmentApexContentInfoProvider, info)
}
func (b *BootclasspathFragmentModule) getImageConfig(ctx android.EarlyModuleContext) *bootImageConfig {