diff options
| author | 2021-05-21 22:18:56 +0100 | |
|---|---|---|
| committer | 2021-05-24 13:32:55 +0100 | |
| commit | af99afa919790cc76a9b1a1947d473065ecb65a5 (patch) | |
| tree | 783327a595eb85038c34858f133e0b87d3b5d074 /java/bootclasspath_fragment.go | |
| parent | 1352f7c4715d3d311a2644b9337e4b1028d82cb0 (diff) | |
Rename hiddenAPIFlagFileInfo to HiddenAPIInfo
This reflects that it has expanded from its initial purpose to include
more than just flag files. It is exported for use in tests in other
packages.
Bug: 179354495
Test: m nothing
Change-Id: I9f780b20e18ce3a774e4aa04a276463070a64c34
Diffstat (limited to 'java/bootclasspath_fragment.go')
| -rw-r--r-- | java/bootclasspath_fragment.go | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/java/bootclasspath_fragment.go b/java/bootclasspath_fragment.go index a7c1e78a8..cc4b0ddb9 100644 --- a/java/bootclasspath_fragment.go +++ b/java/bootclasspath_fragment.go @@ -555,12 +555,12 @@ func (b *BootclasspathFragmentModule) generateHiddenAPIBuildActions(ctx android. hiddenAPIModules := gatherHiddenAPIModuleFromContents(ctx, contents) - // Delegate the production of the hidden API all flags file to a module type specific method. + // Delegate the production of the hidden API all-flags.csv file to a module type specific method. common := ctx.Module().(commonBootclasspathFragment) output := common.produceHiddenAPIAllFlagsFile(ctx, hiddenAPIModules, input) - // Initialize a hiddenAPIFlagFileInfo structure and provide it for use by other modules. - flagFileInfo := hiddenAPIFlagFileInfo{ + // Initialize a HiddenAPIInfo structure and provide it for use by other modules. + hiddenAPIInfo := HiddenAPIInfo{ // The monolithic hidden API processing needs access to the flag files from all the fragments. FlagFilesByCategory: input.FlagFilesByCategory, @@ -568,7 +568,7 @@ func (b *BootclasspathFragmentModule) generateHiddenAPIBuildActions(ctx android. // hidden API processing of this fragment. HiddenAPIFlagOutput: *output, } - ctx.SetProvider(hiddenAPIFlagFileInfoProvider, flagFileInfo) + ctx.SetProvider(HiddenAPIInfoProvider, hiddenAPIInfo) return output } @@ -696,17 +696,17 @@ func (b *bootclasspathFragmentSdkMemberProperties) PopulateFromVariant(ctx andro b.Image_name = module.properties.Image_name b.Contents = module.properties.Contents - // Get the flag file information from the module. + // Get the hidden API information from the module. mctx := ctx.SdkModuleContext() - flagFileInfo := mctx.OtherModuleProvider(module, hiddenAPIFlagFileInfoProvider).(hiddenAPIFlagFileInfo) - b.Flag_files_by_category = flagFileInfo.FlagFilesByCategory + hiddenAPIInfo := mctx.OtherModuleProvider(module, HiddenAPIInfoProvider).(HiddenAPIInfo) + b.Flag_files_by_category = hiddenAPIInfo.FlagFilesByCategory // Copy all the generated file paths. - b.Stub_flags_path = android.OptionalPathForPath(flagFileInfo.StubFlagsPath) - b.Annotation_flags_path = android.OptionalPathForPath(flagFileInfo.AnnotationFlagsPath) - b.Metadata_path = android.OptionalPathForPath(flagFileInfo.MetadataPath) - b.Index_path = android.OptionalPathForPath(flagFileInfo.IndexPath) - b.All_flags_path = android.OptionalPathForPath(flagFileInfo.AllFlagsPath) + b.Stub_flags_path = android.OptionalPathForPath(hiddenAPIInfo.StubFlagsPath) + b.Annotation_flags_path = android.OptionalPathForPath(hiddenAPIInfo.AnnotationFlagsPath) + b.Metadata_path = android.OptionalPathForPath(hiddenAPIInfo.MetadataPath) + b.Index_path = android.OptionalPathForPath(hiddenAPIInfo.IndexPath) + b.All_flags_path = android.OptionalPathForPath(hiddenAPIInfo.AllFlagsPath) // Copy stub_libs properties. b.Stub_libs = module.properties.Api.Stub_libs |