• Home
  • Raw
  • Download

Lines Matching refs:ctx

58 func (d *dexpreopter) dexpreoptDisabled(ctx android.ModuleContext) bool {
59 global := dexpreoptGlobalConfig(ctx)
65 if inList(ctx.ModuleName(), global.DisablePreoptModules) {
69 if ctx.Config().UnbundledBuild() {
90 func odexOnSystemOther(ctx android.ModuleContext, installPath android.OutputPath) bool {
91 …opt.OdexOnSystemOtherByName(ctx.ModuleName(), android.InstallPathToOnDevicePath(ctx, installPath),…
94 func (d *dexpreopter) dexpreopt(ctx android.ModuleContext, dexJarFile android.ModuleOutPath) androi…
95 if d.dexpreoptDisabled(ctx) {
99 global := dexpreoptGlobalConfig(ctx)
100 bootImage := defaultBootImageConfig(ctx)
103 bootImage = apexBootImageConfig(ctx)
107 for _, a := range ctx.MultiTargets() {
112 for _, target := range ctx.Config().Targets[android.Android] {
115 if inList(ctx.ModuleName(), global.SystemServerJars) && !d.isSDKLibrary {
120 if ctx.Config().SecondArchIsTranslated() {
130 dexLocation := android.InstallPathToOnDevicePath(ctx, d.installPath)
132 strippedDexJarFile := android.PathForModuleOut(ctx, "dexpreopt", dexJarFile.Base())
141 android.PathForModuleSrc(ctx, String(d.dexpreoptProperties.Dex_preopt.Profile)))
144 profileClassListing = android.ExistentPathForSource(ctx,
145 global.ProfileDir, ctx.ModuleName()+".prof")
150 Name: ctx.ModuleName(),
152 BuildPath: android.PathForModuleOut(ctx, "dexpreopt", ctx.ModuleName()+".jar").OutputPath,
185 dexpreoptRule, err := dexpreopt.GenerateDexpreoptRule(ctx, global, dexpreoptConfig)
187 ctx.ModuleErrorf("error generating dexpreopt rule: %s", err.Error())
191 dexpreoptRule.Build(pctx, ctx, "dexpreopt", "dexpreopt")
197 ctx.ModuleErrorf("error generating dexpreopt strip rule: %s", err.Error())
201 stripRule.Build(pctx, ctx, "dexpreopt_strip", "dexpreopt strip")