Lines Matching refs:c
517 func (c *Module) Toc() android.OptionalPath {
518 if c.linker != nil {
519 if library, ok := c.linker.(libraryInterface); ok {
523 panic(fmt.Errorf("Toc() called on non-library module: %q", c.BaseModuleName()))
526 func (c *Module) ApiLevel() string {
527 if c.linker != nil {
528 if stub, ok := c.linker.(*stubDecorator); ok {
532 panic(fmt.Errorf("ApiLevel() called on non-stub library module: %q", c.BaseModuleName()))
535 func (c *Module) Static() bool {
536 if c.linker != nil {
537 if library, ok := c.linker.(libraryInterface); ok {
541 panic(fmt.Errorf("Static() called on non-library module: %q", c.BaseModuleName()))
544 func (c *Module) Shared() bool {
545 if c.linker != nil {
546 if library, ok := c.linker.(libraryInterface); ok {
550 panic(fmt.Errorf("Shared() called on non-library module: %q", c.BaseModuleName()))
553 func (c *Module) SelectedStl() string {
554 if c.stl != nil {
555 return c.stl.Properties.SelectedStl
560 func (c *Module) ToolchainLibrary() bool {
561 if _, ok := c.linker.(*toolchainLibraryDecorator); ok {
567 func (c *Module) NdkPrebuiltStl() bool {
568 if _, ok := c.linker.(*ndkPrebuiltStlLinker); ok {
574 func (c *Module) StubDecorator() bool {
575 if _, ok := c.linker.(*stubDecorator); ok {
581 func (c *Module) SdkVersion() string {
582 return String(c.Properties.Sdk_version)
585 func (c *Module) MinSdkVersion() string {
586 return String(c.Properties.Min_sdk_version)
589 func (c *Module) AlwaysSdk() bool {
590 return c.Properties.AlwaysSdk || Bool(c.Properties.Sdk_variant_only)
593 func (c *Module) IncludeDirs() android.Paths {
594 if c.linker != nil {
595 if library, ok := c.linker.(exportedFlagsProducer); ok {
599 panic(fmt.Errorf("IncludeDirs called on non-exportedFlagsProducer module: %q", c.BaseModuleName()))
602 func (c *Module) HasStaticVariant() bool {
603 if c.staticVariant != nil {
609 func (c *Module) GetStaticVariant() LinkableInterface {
610 return c.staticVariant
613 func (c *Module) SetDepsInLinkOrder(depsInLinkOrder []android.Path) {
614 c.depsInLinkOrder = depsInLinkOrder
617 func (c *Module) GetDepsInLinkOrder() []android.Path {
618 return c.depsInLinkOrder
621 func (c *Module) StubsVersions() []string {
622 if c.linker != nil {
623 if library, ok := c.linker.(*libraryDecorator); ok {
627 panic(fmt.Errorf("StubsVersions called on non-library module: %q", c.BaseModuleName()))
630 func (c *Module) CcLibrary() bool {
631 if c.linker != nil {
632 if _, ok := c.linker.(*libraryDecorator); ok {
639 func (c *Module) CcLibraryInterface() bool {
640 if _, ok := c.linker.(libraryInterface); ok {
646 func (c *Module) NonCcVariants() bool {
650 func (c *Module) SetBuildStubs() {
651 if c.linker != nil {
652 if library, ok := c.linker.(*libraryDecorator); ok {
654 c.Properties.HideFromMake = true
655 c.sanitize = nil
656 c.stl = nil
657 c.Properties.PreventInstall = true
660 if _, ok := c.linker.(*llndkStubDecorator); ok {
661 c.Properties.HideFromMake = true
665 panic(fmt.Errorf("SetBuildStubs called on non-library module: %q", c.BaseModuleName()))
668 func (c *Module) BuildStubs() bool {
669 if c.linker != nil {
670 if library, ok := c.linker.(*libraryDecorator); ok {
674 panic(fmt.Errorf("BuildStubs called on non-library module: %q", c.BaseModuleName()))
677 func (c *Module) SetStubsVersions(version string) {
678 if c.linker != nil {
679 if library, ok := c.linker.(*libraryDecorator); ok {
683 if llndk, ok := c.linker.(*llndkStubDecorator); ok {
688 panic(fmt.Errorf("SetStubsVersions called on non-library module: %q", c.BaseModuleName()))
691 func (c *Module) StubsVersion() string {
692 if c.linker != nil {
693 if library, ok := c.linker.(*libraryDecorator); ok {
696 if llndk, ok := c.linker.(*llndkStubDecorator); ok {
700 panic(fmt.Errorf("StubsVersion called on non-library module: %q", c.BaseModuleName()))
703 func (c *Module) SetStatic() {
704 if c.linker != nil {
705 if library, ok := c.linker.(libraryInterface); ok {
710 panic(fmt.Errorf("SetStatic called on non-library module: %q", c.BaseModuleName()))
713 func (c *Module) SetShared() {
714 if c.linker != nil {
715 if library, ok := c.linker.(libraryInterface); ok {
720 panic(fmt.Errorf("SetShared called on non-library module: %q", c.BaseModuleName()))
723 func (c *Module) BuildStaticVariant() bool {
724 if c.linker != nil {
725 if library, ok := c.linker.(libraryInterface); ok {
729 panic(fmt.Errorf("BuildStaticVariant called on non-library module: %q", c.BaseModuleName()))
732 func (c *Module) BuildSharedVariant() bool {
733 if c.linker != nil {
734 if library, ok := c.linker.(libraryInterface); ok {
738 panic(fmt.Errorf("BuildSharedVariant called on non-library module: %q", c.BaseModuleName()))
741 func (c *Module) Module() android.Module {
742 return c
745 func (c *Module) OutputFile() android.OptionalPath {
746 return c.outputFile
751 func (c *Module) UnstrippedOutputFile() android.Path {
752 if c.linker != nil {
753 return c.linker.unstrippedOutputFilePath()
758 func (c *Module) CoverageOutputFile() android.OptionalPath {
759 if c.linker != nil {
760 return c.linker.coverageOutputFilePath()
765 func (c *Module) RelativeInstallPath() string {
766 if c.installer != nil {
767 return c.installer.relativeInstallPath()
772 func (c *Module) VndkVersion() string {
773 return c.Properties.VndkVersion
776 func (c *Module) Init() android.Module {
777 c.AddProperties(&c.Properties, &c.VendorProperties)
778 if c.compiler != nil {
779 c.AddProperties(c.compiler.compilerProps()...)
781 if c.linker != nil {
782 c.AddProperties(c.linker.linkerProps()...)
784 if c.installer != nil {
785 c.AddProperties(c.installer.installerProps()...)
787 if c.stl != nil {
788 c.AddProperties(c.stl.props()...)
790 if c.sanitize != nil {
791 c.AddProperties(c.sanitize.props()...)
793 if c.coverage != nil {
794 c.AddProperties(c.coverage.props()...)
796 if c.sabi != nil {
797 c.AddProperties(c.sabi.props()...)
799 if c.vndkdep != nil {
800 c.AddProperties(c.vndkdep.props()...)
802 if c.lto != nil {
803 c.AddProperties(c.lto.props()...)
805 if c.pgo != nil {
806 c.AddProperties(c.pgo.props()...)
808 for _, feature := range c.features {
809 c.AddProperties(feature.props()...)
812 …c.Prefer32(func(ctx android.BaseModuleContext, base *android.ModuleBase, class android.OsClass) bo…
823 android.InitAndroidArchModule(c, c.hod, c.multilib)
824 android.InitApexModule(c)
825 android.InitSdkAwareModule(c)
826 android.InitDefaultableModule(c)
828 return c
833 func (c *Module) isDependencyRoot() bool {
834 if root, ok := c.linker.(interface {
848 func (c *Module) UseVndk() bool {
849 return c.Properties.VndkVersion != ""
852 func (c *Module) canUseSdk() bool {
853 return c.Os() == android.Android && !c.UseVndk() && !c.InRamdisk() && !c.InRecovery()
856 func (c *Module) UseSdk() bool {
857 if c.canUseSdk() {
858 return String(c.Properties.Sdk_version) != ""
863 func (c *Module) isCoverageVariant() bool {
864 return c.coverage.Properties.IsCoverageVariant
867 func (c *Module) IsNdk() bool {
868 return inList(c.Name(), ndkMigratedLibs)
871 func (c *Module) isLlndk(config android.Config) bool {
873 return isLlndkLibrary(c.BaseModuleName(), config)
876 func (c *Module) isLlndkPublic(config android.Config) bool {
878 name := c.BaseModuleName()
882 func (c *Module) isVndkPrivate(config android.Config) bool {
884 return isVndkPrivateLibrary(c.BaseModuleName(), config)
887 func (c *Module) IsVndk() bool {
888 if vndkdep := c.vndkdep; vndkdep != nil {
894 func (c *Module) isPgoCompile() bool {
895 if pgo := c.pgo; pgo != nil {
901 func (c *Module) isNDKStubLibrary() bool {
902 if _, ok := c.compiler.(*stubDecorator); ok {
908 func (c *Module) isVndkSp() bool {
909 if vndkdep := c.vndkdep; vndkdep != nil {
915 func (c *Module) isVndkExt() bool {
916 if vndkdep := c.vndkdep; vndkdep != nil {
922 func (c *Module) MustUseVendorVariant() bool {
923 return c.isVndkSp() || c.Properties.MustUseVendorVariant
926 func (c *Module) getVndkExtendsModuleName() string {
927 if vndkdep := c.vndkdep; vndkdep != nil {
935 func (c *Module) HasVendorVariant() bool {
936 return c.IsVndk() || Bool(c.VendorProperties.Vendor_available)
950 func (c *Module) inProduct() bool {
951 return c.Properties.ImageVariationPrefix == ProductVariationPrefix
955 func (c *Module) inVendor() bool {
956 return c.Properties.ImageVariationPrefix == VendorVariationPrefix
959 func (c *Module) InRamdisk() bool {
960 return c.ModuleBase.InRamdisk() || c.ModuleBase.InstallInRamdisk()
963 func (c *Module) InRecovery() bool {
964 return c.ModuleBase.InRecovery() || c.ModuleBase.InstallInRecovery()
967 func (c *Module) OnlyInRamdisk() bool {
968 return c.ModuleBase.InstallInRamdisk()
971 func (c *Module) OnlyInRecovery() bool {
972 return c.ModuleBase.InstallInRecovery()
975 func (c *Module) IsStubs() bool {
976 if library, ok := c.linker.(*libraryDecorator); ok {
978 } else if _, ok := c.linker.(*llndkStubDecorator); ok {
984 func (c *Module) HasStubsVariants() bool {
985 if library, ok := c.linker.(*libraryDecorator); ok {
988 if library, ok := c.linker.(*prebuiltLibraryLinker); ok {
994 func (c *Module) bootstrap() bool {
995 return Bool(c.Properties.Bootstrap)
998 func (c *Module) nativeCoverage() bool {
1000 if c.Target().NativeBridge == android.NativeBridgeEnabled {
1003 return c.linker != nil && c.linker.nativeCoverage()
1006 func (c *Module) isSnapshotPrebuilt() bool {
1007 if p, ok := c.linker.(interface{ isSnapshotPrebuilt() bool }); ok {
1013 func (c *Module) ExportedIncludeDirs() android.Paths {
1014 if flagsProducer, ok := c.linker.(exportedFlagsProducer); ok {
1020 func (c *Module) ExportedSystemIncludeDirs() android.Paths {
1021 if flagsProducer, ok := c.linker.(exportedFlagsProducer); ok {
1027 func (c *Module) ExportedFlags() []string {
1028 if flagsProducer, ok := c.linker.(exportedFlagsProducer); ok {
1034 func (c *Module) ExportedDeps() android.Paths {
1035 if flagsProducer, ok := c.linker.(exportedFlagsProducer); ok {
1041 func (c *Module) ExportedGeneratedHeaders() android.Paths {
1042 if flagsProducer, ok := c.linker.(exportedFlagsProducer); ok {
1063 func (c *Module) XrefCcFiles() android.Paths {
1064 return c.kytheFiles
1298 func (c *Module) Prebuilt() *android.Prebuilt {
1299 if p, ok := c.linker.(prebuiltLinkerInterface); ok {
1305 func (c *Module) Name() string {
1306 name := c.ModuleBase.Name()
1307 if p, ok := c.linker.(interface {
1315 func (c *Module) Symlinks() []string {
1316 if p, ok := c.installer.(interface {
1383 func (c *Module) IsTestPerSrcAllTestsVariation() bool {
1384 test, ok := c.linker.(testPerSrc)
1388 func (c *Module) getNameSuffixWithVndkVersion(ctx android.ModuleContext) string {
1393 if c.inProduct() {
1403 if c.Properties.VndkVersion != vndkVersion {
1406 nameSuffix += "." + c.Properties.VndkVersion
1411 func (c *Module) GenerateAndroidBuildActions(actx android.ModuleContext) {
1417 if c.IsTestPerSrcAllTestsVariation() {
1418 c.outputFile = android.OptionalPath{}
1422 c.makeLinkType = c.getMakeLinkType(actx)
1424 c.Properties.SubName = ""
1426 if c.Target().NativeBridge == android.NativeBridgeEnabled {
1427 c.Properties.SubName += nativeBridgeSuffix
1430 _, llndk := c.linker.(*llndkStubDecorator)
1431 _, llndkHeader := c.linker.(*llndkHeadersDecorator)
1432 if llndk || llndkHeader || (c.UseVndk() && c.HasVendorVariant()) {
1436 c.Properties.SubName += c.getNameSuffixWithVndkVersion(actx)
1437 } else if _, ok := c.linker.(*vndkPrebuiltLibraryDecorator); ok {
1440 c.Properties.SubName += vendorSuffix
1441 } else if c.InRamdisk() && !c.OnlyInRamdisk() {
1442 c.Properties.SubName += ramdiskSuffix
1443 } else if c.InRecovery() && !c.OnlyInRecovery() {
1444 c.Properties.SubName += recoverySuffix
1445 } else if c.Properties.IsSdkVariant && c.Properties.SdkAndPlatformVariantVisibleToMake {
1446 c.Properties.SubName += sdkSuffix
1452 mod: c,
1457 deps := c.depsToPaths(ctx)
1462 if c.Properties.Clang != nil && *c.Properties.Clang == false {
1467 Toolchain: c.toolchain(ctx),
1470 if c.compiler != nil {
1471 flags = c.compiler.compilerFlags(ctx, flags, deps)
1473 if c.linker != nil {
1474 flags = c.linker.linkerFlags(ctx, flags)
1476 if c.stl != nil {
1477 flags = c.stl.flags(ctx, flags)
1479 if c.sanitize != nil {
1480 flags = c.sanitize.flags(ctx, flags)
1482 if c.coverage != nil {
1483 flags, deps = c.coverage.flags(ctx, flags, deps)
1485 if c.lto != nil {
1486 flags = c.lto.flags(ctx, flags)
1488 if c.pgo != nil {
1489 flags = c.pgo.flags(ctx, flags)
1491 for _, feature := range c.features {
1511 c.flags = flags
1513 if c.sabi != nil {
1514 flags = c.sabi.flags(ctx, flags)
1529 if c.compiler != nil {
1530 objs = c.compiler.compile(ctx, flags, deps)
1534 c.kytheFiles = objs.kytheFiles
1537 if c.linker != nil {
1538 outputFile := c.linker.link(ctx, flags, deps, objs)
1542 c.outputFile = android.OptionalPathForPath(outputFile)
1550 if c.HasStubsVariants() &&
1551 android.DirectlyInAnyApex(ctx, ctx.baseModuleName()) && !c.InRamdisk() &&
1552 !c.InRecovery() && !c.UseVndk() && !c.static() && !c.isCoverageVariant() &&
1553 c.IsStubs() {
1554 c.Properties.HideFromMake = false // unhide
1559 …if i, ok := c.linker.(snapshotLibraryInterface); ok && ctx.DeviceConfig().VndkVersion() == "curren…
1560 if isSnapshotAware(ctx, c) {
1566 if c.installable() {
1567 c.installer.install(ctx, c.outputFile.Path())
1571 } else if !proptools.BoolDefault(c.Properties.Installable, true) {
1577 c.SkipInstall()
1581 func (c *Module) toolchain(ctx android.BaseModuleContext) config.Toolchain {
1582 if c.cachedToolchain == nil {
1583 c.cachedToolchain = config.FindToolchain(ctx.Os(), ctx.Arch())
1585 return c.cachedToolchain
1588 func (c *Module) begin(ctx BaseModuleContext) {
1589 if c.compiler != nil {
1590 c.compiler.compilerInit(ctx)
1592 if c.linker != nil {
1593 c.linker.linkerInit(ctx)
1595 if c.stl != nil {
1596 c.stl.begin(ctx)
1598 if c.sanitize != nil {
1599 c.sanitize.begin(ctx)
1601 if c.coverage != nil {
1602 c.coverage.begin(ctx)
1604 if c.sabi != nil {
1605 c.sabi.begin(ctx)
1607 if c.vndkdep != nil {
1608 c.vndkdep.begin(ctx)
1610 if c.lto != nil {
1611 c.lto.begin(ctx)
1613 if c.pgo != nil {
1614 c.pgo.begin(ctx)
1616 for _, feature := range c.features {
1624 c.Properties.Sdk_version = StringPtr(version)
1628 func (c *Module) deps(ctx DepsContext) Deps {
1631 if c.compiler != nil {
1632 deps = c.compiler.compilerDeps(ctx, deps)
1637 if c.pgo != nil {
1638 deps = c.pgo.deps(ctx, deps)
1640 if c.linker != nil {
1641 deps = c.linker.linkerDeps(ctx, deps)
1643 if c.stl != nil {
1644 deps = c.stl.deps(ctx, deps)
1646 if c.sanitize != nil {
1647 deps = c.sanitize.deps(ctx, deps)
1649 if c.coverage != nil {
1650 deps = c.coverage.deps(ctx, deps)
1652 if c.sabi != nil {
1653 deps = c.sabi.deps(ctx, deps)
1655 if c.vndkdep != nil {
1656 deps = c.vndkdep.deps(ctx, deps)
1658 if c.lto != nil {
1659 deps = c.lto.deps(ctx, deps)
1661 for _, feature := range c.features {
1700 func (c *Module) beginMutator(actx android.BottomUpMutatorContext) {
1704 mod: c,
1709 c.begin(ctx)
1722 func (c *Module) DepsMutator(actx android.BottomUpMutatorContext) {
1723 if !c.Enabled() {
1730 mod: c,
1735 deps := c.deps(ctx)
1766 if c.VndkVersion() != actx.DeviceConfig().VndkVersion() {
1820 if c.linker != nil {
1821 if library, ok := c.linker.(*libraryDecorator); ok {
1830 if c.VndkVersion() != actx.DeviceConfig().VndkVersion() {
1851 actx.AddFarVariationDependencies(append(ctx.Target().Variations(), c.ImageVariation()),
1915 if version != "" && VersionVariantAvailable(c) {
1925 if version == "" && VersionVariantAvailable(c) {
1941 if c.static() {
1972 actx.AddDependency(c, genSourceDepTag, deps.GeneratedSources...)
1979 actx.AddDependency(c, depTag, gen)
1993 actx.AddDependency(c, linkerFlagsDepTag, deps.LinkerFlagsFile)
1996 actx.AddDependency(c, dynamicLinkerDepTag, deps.DynamicLinker)
2009 if vndkdep := c.vndkdep; vndkdep != nil {
2012 c.ImageVariation(),
2020 if c, ok := ctx.Module().(*Module); ok && c.Enabled() {
2021 c.beginMutator(ctx)
2179 func (c *Module) depsToPaths(ctx android.ModuleContext) PathDeps {
2227 …c.sabi.Properties.ReexportedIncludes = append(c.sabi.Properties.ReexportedIncludes, dirs.Strings()…
2269 c.staticVariant = ccDep
2280 c.staticVariant = ccDep
2286 c.apexSdkVersion = android.FutureApiLevel
2287 if !c.IsForPlatform() {
2288 c.apexSdkVersion = c.ApexProperties.Info.MinSdkVersion
2295 c.apexSdkVersion = android.FutureApiLevel
2300 if c.apexSdkVersion <= android.SdkVersion_Android10 {
2325 depHasStubs := VersionVariantAvailable(c) && ccDep.HasStubsVariants()
2326 depInSameApex := android.DirectlyInApex(c.ApexName(), depName)
2337 } else if c.IsForPlatform() {
2341 if c.bootstrap() {
2346 for _, testFor := range c.TestFor() {
2363 versionToUse, err := c.ChooseSdkVersion(ccDep.StubsVersions(), c.apexSdkVersion)
2377 if c.UseVndk() {
2382 if c.ApexName() != "" && len(versions) > 0 {
2386 versionToUse, err = c.ChooseSdkVersion(versions, c.apexSdkVersion)
2415 c.sabi.Properties.ReexportedIncludes = append(
2416 c.sabi.Properties.ReexportedIncludes, i.exportedDirs().Strings()...)
2420 checkLinkType(ctx, c, ccDep, t)
2497 if c, ok := ccDep.(*Module); ok {
2498 staticLib := c.linker.(libraryInterface)
2541 if c, ok := ccDep.(*Module); ok {
2543 if c.isSnapshotPrebuilt() {
2544 baseName := c.BaseModuleName()
2546 if c.IsVndk() {
2558 …reVariant() && ccDep.IsVndk() && !ccDep.MustUseVendorVariant() && !c.InRamdisk() && !c.InRecovery(…
2562 } else if c.UseVndk() && bothVendorAndCoreVariantsExist {
2565 return libName + c.getNameSuffixWithVndkVersion(ctx)
2587 c.Properties.ApexesProvidingSharedLibs = append(
2588 c.Properties.ApexesProvidingSharedLibs, an)
2595 c.Properties.AndroidMkSharedLibs = append(
2596 c.Properties.AndroidMkSharedLibs, makeLibName(depName))
2598 c.Properties.SnapshotSharedLibs = append(c.Properties.SnapshotSharedLibs, baseLibName(depName))
2600 c.Properties.AndroidMkSharedLibs = append(
2601 c.Properties.AndroidMkSharedLibs,
2604 c.Properties.AndroidMkStaticLibs = append(
2605 c.Properties.AndroidMkStaticLibs, makeLibName(depName))
2607 c.Properties.AndroidMkRuntimeLibs = append(
2608 c.Properties.AndroidMkRuntimeLibs, makeLibName(depName))
2610 c.Properties.SnapshotRuntimeLibs = append(c.Properties.SnapshotRuntimeLibs, baseLibName(depName))
2612 c.Properties.AndroidMkWholeStaticLibs = append(
2613 c.Properties.AndroidMkWholeStaticLibs, makeLibName(depName))
2618 …depPaths.StaticLibs = append(depPaths.StaticLibs, orderStaticModuleDeps(c, directStaticDeps, direc…
2632 if c.sabi != nil {
2633 …c.sabi.Properties.ReexportedIncludes = android.FirstUniqueStrings(c.sabi.Properties.ReexportedIncl…
2639 func (c *Module) InstallInData() bool {
2640 if c.installer == nil {
2643 return c.installer.inData()
2646 func (c *Module) InstallInSanitizerDir() bool {
2647 if c.installer == nil {
2650 if c.sanitize != nil && c.sanitize.inSanitizerDir() {
2653 return c.installer.inSanitizerDir()
2656 func (c *Module) InstallInRamdisk() bool {
2657 return c.InRamdisk()
2660 func (c *Module) InstallInRecovery() bool {
2661 return c.InRecovery()
2664 func (c *Module) SkipInstall() {
2665 if c.installer == nil {
2666 c.ModuleBase.SkipInstall()
2669 c.installer.skipInstall(c)
2672 func (c *Module) HostToolPath() android.OptionalPath {
2673 if c.installer == nil {
2676 return c.installer.hostToolPath()
2679 func (c *Module) IntermPathForModuleOut() android.OptionalPath {
2680 return c.outputFile
2683 func (c *Module) OutputFiles(tag string) (android.Paths, error) {
2686 if c.outputFile.Valid() {
2687 return android.Paths{c.outputFile.Path()}, nil
2695 func (c *Module) static() bool {
2696 if static, ok := c.linker.(interface {
2704 func (c *Module) staticBinary() bool {
2705 if static, ok := c.linker.(interface {
2713 func (c *Module) header() bool {
2714 if h, ok := c.linker.(interface {
2722 func (c *Module) binary() bool {
2723 if b, ok := c.linker.(interface {
2731 func (c *Module) object() bool {
2732 if o, ok := c.linker.(interface {
2740 func (c *Module) getMakeLinkType(actx android.ModuleContext) string {
2741 if c.UseVndk() {
2742 if lib, ok := c.linker.(*llndkStubDecorator); ok {
2748 if c.IsVndk() && !c.isVndkExt() {
2749 if Bool(c.VendorProperties.Vendor_available) {
2754 if c.inProduct() {
2758 } else if c.InRamdisk() {
2760 } else if c.InRecovery() {
2762 } else if c.Target().Os == android.Android && String(c.Properties.Sdk_version) != "" {
2767 } else if actx.DeviceConfig().VndkUseCoreVariant() && !c.MustUseVendorVariant() {
2776 func (c *Module) IsInstallableToApex() bool {
2777 if shared, ok := c.linker.(interface {
2782 return shared.shared() && !c.IsStubs() && c.ContainingSdk().Unversioned()
2783 } else if _, ok := c.linker.(testPerSrc); ok {
2789 func (c *Module) AvailableFor(what string) bool {
2790 if linker, ok := c.linker.(interface {
2793 return c.ApexModuleBase.AvailableFor(what) || linker.availableFor(what)
2795 return c.ApexModuleBase.AvailableFor(what)
2799 func (c *Module) TestFor() []string {
2800 if test, ok := c.linker.(interface {
2805 return c.ApexModuleBase.TestFor()
2810 func (c *Module) EverInstallable() bool {
2811 return c.installer != nil &&
2813 c.installer.everInstallable()
2816 func (c *Module) installable() bool {
2817 ret := c.EverInstallable() &&
2819 proptools.BoolDefault(c.Properties.Installable, true) &&
2820 !c.Properties.PreventInstall && c.outputFile.Valid()
2825 if c.IsForPlatform() {
2834 if c.InstallInData() {
2841 func (c *Module) AndroidMkWriteAdditionalDependenciesForSourceAbiDiff(w io.Writer) {
2842 if c.linker != nil {
2843 if library, ok := c.linker.(*libraryDecorator); ok {
2849 func (c *Module) DepIsInSameApex(ctx android.BaseModuleContext, dep android.Module) bool {
3126 func (c *Module) CoreVariantNeeded(ctx android.BaseModuleContext) bool {
3127 return c.Properties.CoreVariantNeeded
3130 func (c *Module) RamdiskVariantNeeded(ctx android.BaseModuleContext) bool {
3131 return c.Properties.RamdiskVariantNeeded
3134 func (c *Module) RecoveryVariantNeeded(ctx android.BaseModuleContext) bool {
3135 return c.Properties.RecoveryVariantNeeded
3138 func (c *Module) ExtraImageVariations(ctx android.BaseModuleContext) []string {
3139 return c.Properties.ExtraVariants
3142 func (c *Module) SetImageVariation(ctx android.BaseModuleContext, variant string, module android.Mo…