Lines Matching refs:p
279 func (p *BaseSnapshotDecorator) Name(name string) string {
280 return name + p.NameSuffix()
283 func (p *BaseSnapshotDecorator) NameSuffix() string {
284 return getSnapshotNameSuffix(p.moduleSuffix(), p.Version(), p.Arch())
287 func (p *BaseSnapshotDecorator) Version() string {
288 return p.baseProperties.Version
291 func (p *BaseSnapshotDecorator) Arch() string {
292 return p.baseProperties.Target_arch
295 func (p *BaseSnapshotDecorator) moduleSuffix() string {
296 return p.baseProperties.ModuleSuffix
299 func (p *BaseSnapshotDecorator) IsSnapshotPrebuilt() bool {
303 func (p *BaseSnapshotDecorator) SnapshotAndroidMkSuffix() string {
304 return p.baseProperties.Androidmk_suffix
307 func (p *BaseSnapshotDecorator) SetSnapshotAndroidMkSuffix(ctx android.ModuleContext, variant strin…
316 p.baseProperties.Androidmk_suffix = p.Image.moduleNameSuffix()
325 p.baseProperties.Androidmk_suffix = p.Image.moduleNameSuffix()
332 if p.Image == image {
343 p.Version(),
345 p.baseProperties.Androidmk_suffix = p.Image.moduleNameSuffix()
350 p.baseProperties.Androidmk_suffix = ""
355 func (p *BaseSnapshotDecorator) Init(m LinkableInterface, image SnapshotImage, moduleSuffix string)…
356 p.Image = image
357 p.baseProperties.ModuleSuffix = image.moduleNameSuffix() + moduleSuffix
358 m.AddProperties(&p.baseProperties)
360 vendorSnapshotLoadHook(ctx, p)
366 func vendorSnapshotLoadHook(ctx android.LoadHookContext, p *BaseSnapshotDecorator) {
367 if p.Version() != ctx.DeviceConfig().VndkVersion() {
419 func (p *snapshotLibraryDecorator) linkerFlags(ctx ModuleContext, flags Flags) Flags {
420 p.libraryDecorator.libName = strings.TrimSuffix(ctx.ModuleName(), p.NameSuffix())
421 return p.libraryDecorator.linkerFlags(ctx, flags)
424 func (p *snapshotLibraryDecorator) MatchesWithDevice(config android.DeviceConfig) bool {
426 if len(arches) == 0 || arches[0].ArchType.String() != p.Arch() {
429 if !p.header() && p.properties.Src == nil {
438 func (p *snapshotLibraryDecorator) link(ctx ModuleContext, flags Flags, deps PathDeps, objs Objects…
440 if p.shared() {
442 } else if p.static() {
448 p.SetSnapshotAndroidMkSuffix(ctx, variant)
450 if p.header() {
451 return p.libraryDecorator.link(ctx, flags, deps, objs)
454 if p.sanitizerProperties.CfiEnabled {
455 p.properties = p.sanitizerProperties.Cfi
458 if !p.MatchesWithDevice(ctx.DeviceConfig()) {
463 …p.libraryDecorator.reexportDirs(android.PathsForModuleSrc(ctx, p.properties.Export_include_dirs)..…
464 …p.libraryDecorator.reexportSystemDirs(android.PathsForModuleSrc(ctx, p.properties.Export_system_in…
465 p.libraryDecorator.reexportFlags(p.properties.Export_flags...)
468 p.libraryDecorator.reexportDirs(deps.ReexportedDirs...)
469 p.libraryDecorator.reexportSystemDirs(deps.ReexportedSystemDirs...)
470 p.libraryDecorator.reexportFlags(deps.ReexportedFlags...)
471 p.libraryDecorator.reexportDeps(deps.ReexportedDeps...)
472 p.libraryDecorator.addExportedGeneratedHeaders(deps.ReexportedGeneratedHeaders...)
474 in := android.PathForModuleSrc(ctx, *p.properties.Src)
475 p.unstrippedOutputFile = in
477 if p.shared() {
483 p.tocFile = android.OptionalPathForPath(tocFile)
490 TableOfContents: p.tocFile,
494 if p.static() {
503 p.libraryDecorator.flagExporter.setProvider(ctx)
508 func (p *snapshotLibraryDecorator) install(ctx ModuleContext, file android.Path) {
509 if p.MatchesWithDevice(ctx.DeviceConfig()) && p.shared() {
510 p.baseInstaller.install(ctx, file)
514 func (p *snapshotLibraryDecorator) nativeCoverage() bool {
518 func (p *snapshotLibraryDecorator) isSanitizerEnabled(t SanitizerType) bool {
521 return p.sanitizerProperties.Cfi.Src != nil
527 func (p *snapshotLibraryDecorator) setSanitizerVariation(t SanitizerType, enabled bool) {
533 p.sanitizerProperties.CfiEnabled = true
651 func (p *snapshotBinaryDecorator) MatchesWithDevice(config android.DeviceConfig) bool {
652 if config.DeviceArch() != p.Arch() {
655 if p.properties.Src == nil {
663 func (p *snapshotBinaryDecorator) link(ctx ModuleContext, flags Flags, deps PathDeps, objs Objects)…
664 p.SetSnapshotAndroidMkSuffix(ctx, snapshotBinarySuffix)
666 if !p.MatchesWithDevice(ctx.DeviceConfig()) {
670 in := android.PathForModuleSrc(ctx, *p.properties.Src)
671 p.unstrippedOutputFile = in
684 p.setSymlinkList(ctx)
689 func (p *snapshotBinaryDecorator) nativeCoverage() bool {
749 func (p *snapshotObjectLinker) MatchesWithDevice(config android.DeviceConfig) bool {
750 if config.DeviceArch() != p.Arch() {
753 if p.properties.Src == nil {
761 func (p *snapshotObjectLinker) link(ctx ModuleContext, flags Flags, deps PathDeps, objs Objects) an…
762 p.SetSnapshotAndroidMkSuffix(ctx, snapshotObjectSuffix)
764 if !p.MatchesWithDevice(ctx.DeviceConfig()) {
768 return android.PathForModuleSrc(ctx, *p.properties.Src)
771 func (p *snapshotObjectLinker) nativeCoverage() bool {