Lines Matching refs:a

284 func (a *ApexSet) installable() bool {
285 return a.properties.Installable == nil || proptools.Bool(a.properties.Installable)
288 func (a *ApexSet) InstallFilename() string {
289 return proptools.StringDefault(a.properties.Filename, a.BaseModuleName()+imageApexSuffix)
292 func (a *ApexSet) Name() string {
293 return a.prebuiltCommon.prebuilt.Name(a.ModuleBase.Name())
296 func (a *ApexSet) Overrides() []string {
297 return a.properties.Overrides
309 func (a *ApexSet) GenerateAndroidBuildActions(ctx android.ModuleContext) {
310 a.installFilename = a.InstallFilename()
311 if !strings.HasSuffix(a.installFilename, imageApexSuffix) {
315 apexSet := a.prebuiltCommon.prebuilt.SingleSourcePath(ctx)
316 a.outputApex = android.PathForModuleOut(ctx, a.installFilename)
322 Output: a.outputApex,
325 "allow-prereleased": strconv.FormatBool(proptools.Bool(a.properties.Prerelease)),
330 if a.prebuiltCommon.checkForceDisable(ctx) {
331 a.SkipInstall()
335 a.installDir = android.PathForModuleInstall(ctx, "apex")
336 if a.installable() {
337 ctx.InstallFile(a.installDir, a.installFilename, a.outputApex)
341 a.compatSymlinks = makeCompatSymlinks(a.BaseModuleName(), ctx)
343 for _, overridden := range a.properties.Overrides {
344 a.compatSymlinks = append(a.compatSymlinks, makeCompatSymlinks(overridden, ctx)...)
348 func (a *ApexSet) AndroidMkEntries() []android.AndroidMkEntries {
351 OutputFile: android.OptionalPathForPath(a.outputApex),
355 entries.SetString("LOCAL_MODULE_PATH", a.installDir.ToMakePath().String())
356 entries.SetString("LOCAL_MODULE_STEM", a.installFilename)
357 entries.SetBoolIfTrue("LOCAL_UNINSTALLABLE_MODULE", !a.installable())
358 entries.AddStrings("LOCAL_OVERRIDES_MODULES", a.properties.Overrides...)
359 if len(a.compatSymlinks) > 0 {
360 entries.SetString("LOCAL_POST_INSTALL_CMD", strings.Join(a.compatSymlinks, " && "))