Lines Matching refs:android
33 android.RegisterModuleType("android_app", AndroidAppFactory)
34 android.RegisterModuleType("android_test", AndroidTestFactory)
35 android.RegisterModuleType("android_test_helper_app", AndroidTestHelperAppFactory)
36 android.RegisterModuleType("android_app_certificate", AndroidAppCertificateFactory)
37 android.RegisterModuleType("override_android_app", OverrideAndroidAppModuleFactory)
67 Jni_libs []string `android:"arch_variant"`
102 android.OverridableModuleBase
112 bundleFile android.Path
120 func (a *AndroidApp) ExportedProguardFlagFiles() android.Paths {
124 func (a *AndroidApp) ExportedStaticPackages() android.Paths {
131 Pem, Key android.Path
134 func (a *AndroidApp) DepsMutator(ctx android.BottomUpMutatorContext) {
152 cert := android.SrcIsModule(a.getCertString(ctx))
158 cert = android.SrcIsModule(cert)
168 func (a *AndroidApp) GenerateAndroidBuildActions(ctx android.ModuleContext) {
176 func (a *AndroidApp) shouldUncompressJNI(ctx android.ModuleContext) bool {
186 func (a *AndroidApp) shouldUncompressDex(ctx android.ModuleContext) bool {
211 func (a *AndroidApp) aaptBuildActions(ctx android.ModuleContext) {
259 func (a *AndroidApp) proguardBuildActions(ctx android.ModuleContext) {
260 var staticLibProguardFlagFiles android.Paths
261 ctx.VisitDirectDeps(func(m android.Module) {
267 staticLibProguardFlagFiles = android.FirstUniquePaths(staticLibProguardFlagFiles)
273 func (a *AndroidApp) dexBuildActions(ctx android.ModuleContext) android.Path {
284 a.dexpreopter.installPath = android.PathForModuleInstall(ctx, installDir, a.installApkName+".apk")
296 func (a *AndroidApp) jniBuildActions(jniLibs []jniLib, ctx android.ModuleContext) android.WritableP…
297 var jniJarFile android.WritablePath
302 jniJarFile = android.PathForModuleOut(ctx, "jnilibs.zip")
311 func (a *AndroidApp) certificateBuildActions(certificateDeps []Certificate, ctx android.ModuleConte…
313 certModule := android.SrcIsModule(cert)
344 func (a *AndroidApp) noticeBuildActions(ctx android.ModuleContext, installDir android.OutputPath) a…
346 return android.OptionalPath{}
350 seenModules := make(map[android.Module]bool)
351 noticePathSet := make(map[android.Path]bool)
354 if _, ok := child.(android.Module); !ok {
357 module := child.(android.Module)
365 if module.Target().Os.Class == android.Host || module.Target().Os.Class == android.HostCross {
382 return android.OptionalPath{}
384 var noticePaths []android.Path
391 noticeFile := android.BuildNoticeOutput(ctx, installDir, a.installApkName+".apk", noticePaths)
393 return android.OptionalPathForPath(noticeFile)
396 func (a *AndroidApp) generateAndroidBuildActions(ctx android.ModuleContext) {
400 var installDir android.OutputPath
403 installDir = android.PathForModuleInstall(ctx, "framework")
405 installDir = android.PathForModuleInstall(ctx, "priv-app", a.installApkName)
407 installDir = android.PathForModuleInstall(ctx, "app", a.installApkName)
430 packageFile := android.PathForModuleOut(ctx, ctx.ModuleName()+".apk")
436 packageFile := android.PathForModuleOut(ctx, ctx.ModuleName()+"_"+split.suffix+".apk")
442 bundleFile := android.PathForModuleOut(ctx, "base.zip")
453 func (a *AndroidApp) collectAppDeps(ctx android.ModuleContext) ([]jniLib, []Certificate) {
457 ctx.VisitDirectDeps(func(module android.Module) {
489 func (a *AndroidApp) getCertString(ctx android.BaseContext) string {
498 func AndroidAppFactory() android.Module {
516 …module.Prefer32(func(ctx android.BaseModuleContext, base *android.ModuleBase, class android.OsClas…
517 return class == android.Device && ctx.Config().DevicePrefer32BitApps()
520 android.InitAndroidMultiTargetsArchModule(module, android.DeviceSupported, android.MultilibCommon)
521 android.InitDefaultableModule(module)
522 android.InitOverridableModule(module, &module.appProperties.Overrides)
538 testConfig android.Path
539 data android.Paths
542 func (a *AndroidTest) GenerateAndroidBuildActions(ctx android.ModuleContext) {
553 a.data = android.PathsForModuleSrc(ctx, a.testProperties.Data)
556 func (a *AndroidTest) DepsMutator(ctx android.BottomUpMutatorContext) {
568 func AndroidTestFactory() android.Module {
590 android.InitAndroidMultiTargetsArchModule(module, android.DeviceSupported, android.MultilibCommon)
591 android.InitDefaultableModule(module)
598 Test_suites []string `android:"arch_variant"`
610 func AndroidTestHelperAppFactory() android.Module {
630 android.InitAndroidMultiTargetsArchModule(module, android.DeviceSupported, android.MultilibCommon)
631 android.InitDefaultableModule(module)
636 android.ModuleBase
648 func AndroidAppCertificateFactory() android.Module {
651 android.InitAndroidModule(module)
655 func (c *AndroidAppCertificate) GenerateAndroidBuildActions(ctx android.ModuleContext) {
658 android.PathForModuleSrc(ctx, cert+".x509.pem"),
659 android.PathForModuleSrc(ctx, cert+".pk8"),
664 android.ModuleBase
665 android.OverrideModuleBase
668 func (i *OverrideAndroidApp) GenerateAndroidBuildActions(ctx android.ModuleContext) {
675 func OverrideAndroidAppModuleFactory() android.Module {
679 android.InitAndroidModule(m)
680 android.InitOverrideModule(m)