Lines Matching refs:android

30 	ExportPackage() android.Path
31 ExportedProguardFlagFiles() android.Paths
33 ExportedStaticPackages() android.Paths
34 ExportedManifests() android.Paths
35 ExportedAssets() android.OptionalPath
39 RegisterAARBuildComponents(android.InitRegistrationContext)
42 func RegisterAARBuildComponents(ctx android.RegistrationContext) {
74 Resource_zips []string `android:"path"`
77 Manifest *string `android:"path"`
80 Additional_manifests []string `android:"path"`
87 aaptSrcJar android.Path
88 exportPackage android.Path
89 manifestPath android.Path
90 transitiveManifestPaths android.Paths
91 proguardOptionsFile android.Path
93 rTxt android.Path
94 extraAaptPackagesFile android.Path
95 mergedManifestFile android.Path
96 noticeFile android.OptionalPath
97 assetPackage android.OptionalPath
105 resourceFiles android.Paths
116 path android.Path
119 func (a *aapt) ExportPackage() android.Path {
127 func (a *aapt) ExportedManifests() android.Paths {
131 func (a *aapt) ExportedAssets() android.OptionalPath {
135 func (a *aapt) aapt2Flags(ctx android.ModuleContext, sdkContext sdkContext,
136 manifestPath android.Path) (compileFlags, linkFlags []string, linkDeps android.Paths,
137 resDirs, overlayDirs []globbedResourceDir, rroDirs []rroDir, resZips android.Paths) {
139 hasVersionCode := android.PrefixInList(a.aaptProperties.Aaptflags, "--version-code")
140 hasVersionName := android.PrefixInList(a.aaptProperties.Aaptflags, "--version-name")
148 …assetDirs := android.PathsWithOptionalDefaultForModuleSrc(ctx, a.aaptProperties.Asset_dirs, "asset…
149 …resourceDirs := android.PathsWithOptionalDefaultForModuleSrc(ctx, a.aaptProperties.Resource_dirs, …
150 resourceZips := android.PathsForModuleSrc(ctx, a.aaptProperties.Resource_zips)
163 var assetFiles android.Paths
177 linkFlags = append(linkFlags, android.JoinWithPrefix(assetDirStrings, "-A "))
208 linkFlags, compileFlags = android.FilterList(linkFlags, []string{"--legacy"})
217 func (a *aapt) deps(ctx android.BottomUpMutatorContext, sdkDep sdkDep) {
229 func (a *aapt) buildActions(ctx android.ModuleContext, sdkContext sdkContext, extraLinkFlags ...str…
236 manifestSrcPath := android.PathForModuleSrc(ctx, manifestFile)
243 additionalManifests := android.PathsForModuleSrc(ctx, a.aaptProperties.Additional_manifests)
244 a.transitiveManifestPaths = append(android.Paths{manifestPath}, additionalManifests...)
269 packageRes := android.PathForModuleOut(ctx, "package-res.apk")
271 srcJar := android.PathForModuleGen(ctx, "android", "R.srcjar")
272 proguardOptionsFile := android.PathForModuleGen(ctx, "proguard.options")
273 rTxt := android.PathForModuleOut(ctx, "R.txt")
275 extraPackages := android.PathForModuleOut(ctx, "extra_packages")
277 var compiledResDirs []android.Paths
284 flata := android.PathForModuleOut(ctx, fmt.Sprintf("reszip.%d.flata", i))
286 compiledResDirs = append(compiledResDirs, android.Paths{flata})
289 var compiledRes, compiledOverlay android.Paths
317 var splitPackages android.WritablePaths
322 path := android.PathForModuleOut(ctx, "package_"+suffix+".apk")
337 if android.PrefixInList(linkFlags, "-A ") || len(assetPackages) > 0 {
338 assets := android.PathForModuleOut(ctx, "assets.zip")
339 ctx.Build(pctx, android.BuildParams{
345 a.assetPackage = android.OptionalPathForPath(assets)
359 func aaptLibs(ctx android.ModuleContext, sdkContext sdkContext) (transitiveStaticLibs, transitiveSt…
360 staticRRODirs []rroDir, assets, deps android.Paths, flags []string, sdkLibraries []string) {
362 var sharedLibs android.Paths
369 ctx.VisitDirectDeps(func(module android.Module) {
370 var exportPackage android.Path
429 transitiveStaticLibs = android.FirstUniquePaths(transitiveStaticLibs)
430 transitiveStaticLibManifests = android.FirstUniquePaths(transitiveStaticLibManifests)
431 sdkLibraries = android.FirstUniqueStrings(sdkLibraries)
442 aarFile android.WritablePath
444 exportedProguardFlagFiles android.Paths
445 exportedStaticPackages android.Paths
448 func (a *AndroidLibrary) ExportedProguardFlagFiles() android.Paths {
452 func (a *AndroidLibrary) ExportedStaticPackages() android.Paths {
458 func (a *AndroidLibrary) DepsMutator(ctx android.BottomUpMutatorContext) {
466 func (a *AndroidLibrary) GenerateAndroidBuildActions(ctx android.ModuleContext) {
487 a.aarFile = android.PathForModuleOut(ctx, ctx.ModuleName()+".aar")
488 var res android.Paths
494 ctx.VisitDirectDeps(func(m android.Module) {
502 a.exportedProguardFlagFiles = android.FirstUniquePaths(a.exportedProguardFlagFiles)
503 a.exportedStaticPackages = android.FirstUniquePaths(a.exportedStaticPackages)
512 func AndroidLibraryFactory() android.Module {
523 android.InitApexModule(module)
524 InitJavaModule(module, android.DeviceSupported)
533 Aars []string `android:"path"`
546 android.ModuleBase
547 android.DefaultableModuleBase
548 android.ApexModuleBase
549 prebuilt android.Prebuilt
556 classpathFile android.WritablePath
557 proguardFlags android.WritablePath
558 exportPackage android.WritablePath
559 extraAaptPackagesFile android.WritablePath
560 manifest android.WritablePath
562 exportedStaticPackages android.Paths
590 func (a *AARImport) ExportPackage() android.Path {
594 func (a *AARImport) ExportedProguardFlagFiles() android.Paths {
595 return android.Paths{a.proguardFlags}
602 func (a *AARImport) ExportedStaticPackages() android.Paths {
606 func (a *AARImport) ExportedManifests() android.Paths {
607 return android.Paths{a.manifest}
611 func (a *AARImport) ExportedAssets() android.OptionalPath {
612 return android.OptionalPath{}
615 func (a *AARImport) Prebuilt() *android.Prebuilt {
623 func (a *AARImport) JacocoReportClassesFile() android.Path {
627 func (a *AARImport) DepsMutator(ctx android.BottomUpMutatorContext) {
648 func (a *AARImport) GenerateAndroidBuildActions(ctx android.ModuleContext) {
655 var aar android.Path
656 aar = android.PathForModuleSrc(ctx, a.properties.Aars[0])
659 aar = android.PathForModuleOut(ctx, "jetifier", aarName)
660 TransformJetifier(ctx, aar.(android.WritablePath), inputFile)
663 extractedAARDir := android.PathForModuleOut(ctx, "aar")
668 ctx.Build(pctx, android.BuildParams{
671 Outputs: android.WritablePaths{a.classpathFile, a.proguardFlags, a.manifest},
681 compiledResDir := android.PathForModuleOut(ctx, "flat-res")
685 a.exportPackage = android.PathForModuleOut(ctx, "package-res.apk")
687 srcJar := android.PathForModuleGen(ctx, "android", "R.srcjar")
688 proguardOptionsFile := android.PathForModuleGen(ctx, "proguard.options")
689 rTxt := android.PathForModuleOut(ctx, "R.txt")
690 a.extraAaptPackagesFile = android.PathForModuleOut(ctx, "extra_packages")
692 var linkDeps android.Paths
713 overlayRes := append(android.Paths{flata}, transitiveStaticLibs...)
721 func (a *AARImport) HeaderJars() android.Paths {
722 return android.Paths{a.classpathFile}
725 func (a *AARImport) ImplementationJars() android.Paths {
726 return android.Paths{a.classpathFile}
729 func (a *AARImport) ResourceJars() android.Paths {
733 func (a *AARImport) ImplementationAndResourcesJars() android.Paths {
734 return android.Paths{a.classpathFile}
737 func (a *AARImport) DexJarBuildPath() android.Path {
741 func (a *AARImport) DexJarInstallPath() android.Path {
745 func (a *AARImport) AidlIncludeDirs() android.Paths {
753 func (d *AARImport) ExportedPlugins() (android.Paths, []string) {
757 func (a *AARImport) SrcJarArgs() ([]string, android.Paths) {
761 func (a *AARImport) DepIsInSameApex(ctx android.BaseModuleContext, dep android.Module) bool {
765 func (g *AARImport) ShouldSupportSdkVersion(ctx android.BaseModuleContext, sdkVersion int) error {
769 var _ android.PrebuiltInterface = (*Import)(nil)
775 func AARImportFactory() android.Module {
780 android.InitPrebuiltModule(module, &module.properties.Aars)
781 android.InitApexModule(module)
782 InitJavaModule(module, android.DeviceSupported)