diff options
Diffstat (limited to 'android/apex_contributions.go')
-rw-r--r-- | android/apex_contributions.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/android/apex_contributions.go b/android/apex_contributions.go index 34941c091..a30964080 100644 --- a/android/apex_contributions.go +++ b/android/apex_contributions.go @@ -164,6 +164,18 @@ func (p *PrebuiltSelectionInfoMap) IsSelected(baseModuleName, name string) bool } } +// Return the list of soong modules selected for this api domain +// In the case of apexes, it is the canonical name of the apex on device (/apex/<apex_name>) +func (p *PrebuiltSelectionInfoMap) GetSelectedModulesForApiDomain(apiDomain string) []string { + selected := []string{} + for _, entry := range *p { + if entry.apiDomain == apiDomain { + selected = append(selected, entry.selectedModuleName) + } + } + return selected +} + // This module type does not have any build actions. func (a *allApexContributions) GenerateAndroidBuildActions(ctx ModuleContext) { } |