Lines Matching refs:c
526 func (c *Module) Toc() android.OptionalPath {
527 if c.linker != nil {
528 if library, ok := c.linker.(libraryInterface); ok {
532 panic(fmt.Errorf("Toc() called on non-library module: %q", c.BaseModuleName()))
535 func (c *Module) ApiLevel() string {
536 if c.linker != nil {
537 if stub, ok := c.linker.(*stubDecorator); ok {
541 panic(fmt.Errorf("ApiLevel() called on non-stub library module: %q", c.BaseModuleName()))
544 func (c *Module) Static() bool {
545 if c.linker != nil {
546 if library, ok := c.linker.(libraryInterface); ok {
550 panic(fmt.Errorf("Static() called on non-library module: %q", c.BaseModuleName()))
553 func (c *Module) Shared() bool {
554 if c.linker != nil {
555 if library, ok := c.linker.(libraryInterface); ok {
559 panic(fmt.Errorf("Shared() called on non-library module: %q", c.BaseModuleName()))
562 func (c *Module) SelectedStl() string {
563 if c.stl != nil {
564 return c.stl.Properties.SelectedStl
569 func (c *Module) ToolchainLibrary() bool {
570 if _, ok := c.linker.(*toolchainLibraryDecorator); ok {
576 func (c *Module) NdkPrebuiltStl() bool {
577 if _, ok := c.linker.(*ndkPrebuiltStlLinker); ok {
583 func (c *Module) StubDecorator() bool {
584 if _, ok := c.linker.(*stubDecorator); ok {
590 func (c *Module) SdkVersion() string {
591 return String(c.Properties.Sdk_version)
594 func (c *Module) MinSdkVersion() string {
595 return String(c.Properties.Min_sdk_version)
598 func (c *Module) AlwaysSdk() bool {
599 return c.Properties.AlwaysSdk || Bool(c.Properties.Sdk_variant_only)
602 func (c *Module) IncludeDirs() android.Paths {
603 if c.linker != nil {
604 if library, ok := c.linker.(exportedFlagsProducer); ok {
608 panic(fmt.Errorf("IncludeDirs called on non-exportedFlagsProducer module: %q", c.BaseModuleName()))
611 func (c *Module) HasStaticVariant() bool {
612 if c.staticVariant != nil {
618 func (c *Module) GetStaticVariant() LinkableInterface {
619 return c.staticVariant
622 func (c *Module) SetDepsInLinkOrder(depsInLinkOrder []android.Path) {
623 c.depsInLinkOrder = depsInLinkOrder
626 func (c *Module) GetDepsInLinkOrder() []android.Path {
627 return c.depsInLinkOrder
630 func (c *Module) StubsVersions() []string {
631 if c.linker != nil {
632 if library, ok := c.linker.(*libraryDecorator); ok {
636 panic(fmt.Errorf("StubsVersions called on non-library module: %q", c.BaseModuleName()))
639 func (c *Module) CcLibrary() bool {
640 if c.linker != nil {
641 if _, ok := c.linker.(*libraryDecorator); ok {
648 func (c *Module) CcLibraryInterface() bool {
649 if _, ok := c.linker.(libraryInterface); ok {
655 func (c *Module) NonCcVariants() bool {
659 func (c *Module) SetBuildStubs() {
660 if c.linker != nil {
661 if library, ok := c.linker.(*libraryDecorator); ok {
663 c.Properties.HideFromMake = true
664 c.sanitize = nil
665 c.stl = nil
666 c.Properties.PreventInstall = true
669 if _, ok := c.linker.(*llndkStubDecorator); ok {
670 c.Properties.HideFromMake = true
674 panic(fmt.Errorf("SetBuildStubs called on non-library module: %q", c.BaseModuleName()))
677 func (c *Module) BuildStubs() bool {
678 if c.linker != nil {
679 if library, ok := c.linker.(*libraryDecorator); ok {
683 panic(fmt.Errorf("BuildStubs called on non-library module: %q", c.BaseModuleName()))
686 func (c *Module) SetStubsVersions(version string) {
687 if c.linker != nil {
688 if library, ok := c.linker.(*libraryDecorator); ok {
692 if llndk, ok := c.linker.(*llndkStubDecorator); ok {
697 panic(fmt.Errorf("SetStubsVersions called on non-library module: %q", c.BaseModuleName()))
700 func (c *Module) StubsVersion() string {
701 if c.linker != nil {
702 if library, ok := c.linker.(*libraryDecorator); ok {
705 if llndk, ok := c.linker.(*llndkStubDecorator); ok {
709 panic(fmt.Errorf("StubsVersion called on non-library module: %q", c.BaseModuleName()))
712 func (c *Module) SetStatic() {
713 if c.linker != nil {
714 if library, ok := c.linker.(libraryInterface); ok {
719 panic(fmt.Errorf("SetStatic called on non-library module: %q", c.BaseModuleName()))
722 func (c *Module) SetShared() {
723 if c.linker != nil {
724 if library, ok := c.linker.(libraryInterface); ok {
729 panic(fmt.Errorf("SetShared called on non-library module: %q", c.BaseModuleName()))
732 func (c *Module) BuildStaticVariant() bool {
733 if c.linker != nil {
734 if library, ok := c.linker.(libraryInterface); ok {
738 panic(fmt.Errorf("BuildStaticVariant called on non-library module: %q", c.BaseModuleName()))
741 func (c *Module) BuildSharedVariant() bool {
742 if c.linker != nil {
743 if library, ok := c.linker.(libraryInterface); ok {
747 panic(fmt.Errorf("BuildSharedVariant called on non-library module: %q", c.BaseModuleName()))
750 func (c *Module) Module() android.Module {
751 return c
754 func (c *Module) OutputFile() android.OptionalPath {
755 return c.outputFile
758 func (c *Module) CoverageFiles() android.Paths {
759 if c.linker != nil {
760 if library, ok := c.linker.(libraryInterface); ok {
764 panic(fmt.Errorf("CoverageFiles called on non-library module: %q", c.BaseModuleName()))
769 func (c *Module) UnstrippedOutputFile() android.Path {
770 if c.linker != nil {
771 return c.linker.unstrippedOutputFilePath()
776 func (c *Module) CoverageOutputFile() android.OptionalPath {
777 if c.linker != nil {
778 return c.linker.coverageOutputFilePath()
783 func (c *Module) RelativeInstallPath() string {
784 if c.installer != nil {
785 return c.installer.relativeInstallPath()
790 func (c *Module) VndkVersion() string {
791 return c.Properties.VndkVersion
794 func (c *Module) Init() android.Module {
795 c.AddProperties(&c.Properties, &c.VendorProperties)
796 if c.compiler != nil {
797 c.AddProperties(c.compiler.compilerProps()...)
799 if c.linker != nil {
800 c.AddProperties(c.linker.linkerProps()...)
802 if c.installer != nil {
803 c.AddProperties(c.installer.installerProps()...)
805 if c.stl != nil {
806 c.AddProperties(c.stl.props()...)
808 if c.sanitize != nil {
809 c.AddProperties(c.sanitize.props()...)
811 if c.coverage != nil {
812 c.AddProperties(c.coverage.props()...)
814 if c.sabi != nil {
815 c.AddProperties(c.sabi.props()...)
817 if c.vndkdep != nil {
818 c.AddProperties(c.vndkdep.props()...)
820 if c.lto != nil {
821 c.AddProperties(c.lto.props()...)
823 if c.pgo != nil {
824 c.AddProperties(c.pgo.props()...)
826 for _, feature := range c.features {
827 c.AddProperties(feature.props()...)
830 …c.Prefer32(func(ctx android.BaseModuleContext, base *android.ModuleBase, class android.OsClass) bo…
834 android.InitAndroidArchModule(c, c.hod, c.multilib)
835 android.InitApexModule(c)
836 android.InitSdkAwareModule(c)
837 android.InitDefaultableModule(c)
839 return c
844 func (c *Module) isDependencyRoot() bool {
845 if root, ok := c.linker.(interface {
859 func (c *Module) UseVndk() bool {
860 return c.Properties.VndkVersion != ""
863 func (c *Module) canUseSdk() bool {
864 return c.Os() == android.Android && !c.UseVndk() && !c.InRamdisk() && !c.InRecovery()
867 func (c *Module) UseSdk() bool {
868 if c.canUseSdk() {
869 return String(c.Properties.Sdk_version) != ""
874 func (c *Module) isCoverageVariant() bool {
875 return c.coverage.Properties.IsCoverageVariant
878 func (c *Module) IsNdk() bool {
879 return inList(c.Name(), ndkKnownLibs)
882 func (c *Module) isLlndk(config android.Config) bool {
884 return isLlndkLibrary(c.BaseModuleName(), config)
887 func (c *Module) isLlndkPublic(config android.Config) bool {
889 name := c.BaseModuleName()
893 func (c *Module) isVndkPrivate(config android.Config) bool {
895 return isVndkPrivateLibrary(c.BaseModuleName(), config)
898 func (c *Module) IsVndk() bool {
899 if vndkdep := c.vndkdep; vndkdep != nil {
905 func (c *Module) isPgoCompile() bool {
906 if pgo := c.pgo; pgo != nil {
912 func (c *Module) isNDKStubLibrary() bool {
913 if _, ok := c.compiler.(*stubDecorator); ok {
919 func (c *Module) isVndkSp() bool {
920 if vndkdep := c.vndkdep; vndkdep != nil {
926 func (c *Module) isVndkExt() bool {
927 if vndkdep := c.vndkdep; vndkdep != nil {
933 func (c *Module) MustUseVendorVariant() bool {
934 return c.isVndkSp() || c.Properties.MustUseVendorVariant
937 func (c *Module) getVndkExtendsModuleName() string {
938 if vndkdep := c.vndkdep; vndkdep != nil {
946 func (c *Module) HasVendorVariant() bool {
947 return c.IsVndk() || Bool(c.VendorProperties.Vendor_available)
961 func (c *Module) inProduct() bool {
962 return c.Properties.ImageVariationPrefix == ProductVariationPrefix
966 func (c *Module) inVendor() bool {
967 return c.Properties.ImageVariationPrefix == VendorVariationPrefix
970 func (c *Module) InRamdisk() bool {
971 return c.ModuleBase.InRamdisk() || c.ModuleBase.InstallInRamdisk()
974 func (c *Module) InRecovery() bool {
975 return c.ModuleBase.InRecovery() || c.ModuleBase.InstallInRecovery()
978 func (c *Module) OnlyInRamdisk() bool {
979 return c.ModuleBase.InstallInRamdisk()
982 func (c *Module) OnlyInRecovery() bool {
983 return c.ModuleBase.InstallInRecovery()
986 func (c *Module) IsStubs() bool {
987 if library, ok := c.linker.(*libraryDecorator); ok {
989 } else if _, ok := c.linker.(*llndkStubDecorator); ok {
995 func (c *Module) HasStubsVariants() bool {
996 if library, ok := c.linker.(*libraryDecorator); ok {
999 if library, ok := c.linker.(*prebuiltLibraryLinker); ok {
1005 func (c *Module) bootstrap() bool {
1006 return Bool(c.Properties.Bootstrap)
1009 func (c *Module) nativeCoverage() bool {
1011 if c.Target().NativeBridge == android.NativeBridgeEnabled {
1014 return c.linker != nil && c.linker.nativeCoverage()
1017 func (c *Module) isSnapshotPrebuilt() bool {
1018 if p, ok := c.linker.(interface{ isSnapshotPrebuilt() bool }); ok {
1024 func (c *Module) ExportedIncludeDirs() android.Paths {
1025 if flagsProducer, ok := c.linker.(exportedFlagsProducer); ok {
1031 func (c *Module) ExportedSystemIncludeDirs() android.Paths {
1032 if flagsProducer, ok := c.linker.(exportedFlagsProducer); ok {
1038 func (c *Module) ExportedFlags() []string {
1039 if flagsProducer, ok := c.linker.(exportedFlagsProducer); ok {
1045 func (c *Module) ExportedDeps() android.Paths {
1046 if flagsProducer, ok := c.linker.(exportedFlagsProducer); ok {
1052 func (c *Module) ExportedGeneratedHeaders() android.Paths {
1053 if flagsProducer, ok := c.linker.(exportedFlagsProducer); ok {
1074 func (c *Module) XrefCcFiles() android.Paths {
1075 return c.kytheFiles
1314 func (c *Module) Prebuilt() *android.Prebuilt {
1315 if p, ok := c.linker.(prebuiltLinkerInterface); ok {
1321 func (c *Module) Name() string {
1322 name := c.ModuleBase.Name()
1323 if p, ok := c.linker.(interface {
1331 func (c *Module) Symlinks() []string {
1332 if p, ok := c.installer.(interface {
1399 func (c *Module) IsTestPerSrcAllTestsVariation() bool {
1400 test, ok := c.linker.(testPerSrc)
1404 func (c *Module) DataPaths() []android.DataPath {
1405 if p, ok := c.installer.(interface {
1413 func (c *Module) getNameSuffixWithVndkVersion(ctx android.ModuleContext) string {
1418 if c.inProduct() {
1428 if c.Properties.VndkVersion != vndkVersion {
1431 nameSuffix += "." + c.Properties.VndkVersion
1436 func (c *Module) GenerateAndroidBuildActions(actx android.ModuleContext) {
1442 if c.IsTestPerSrcAllTestsVariation() {
1443 c.outputFile = android.OptionalPath{}
1447 c.makeLinkType = c.getMakeLinkType(actx)
1449 c.Properties.SubName = ""
1451 if c.Target().NativeBridge == android.NativeBridgeEnabled {
1452 c.Properties.SubName += nativeBridgeSuffix
1455 _, llndk := c.linker.(*llndkStubDecorator)
1456 _, llndkHeader := c.linker.(*llndkHeadersDecorator)
1457 if llndk || llndkHeader || (c.UseVndk() && c.HasVendorVariant()) {
1461 c.Properties.SubName += c.getNameSuffixWithVndkVersion(actx)
1462 } else if _, ok := c.linker.(*vndkPrebuiltLibraryDecorator); ok {
1465 c.Properties.SubName += vendorSuffix
1466 } else if c.InRamdisk() && !c.OnlyInRamdisk() {
1467 c.Properties.SubName += ramdiskSuffix
1468 } else if c.InRecovery() && !c.OnlyInRecovery() {
1469 c.Properties.SubName += recoverySuffix
1470 } else if c.Properties.IsSdkVariant && c.Properties.SdkAndPlatformVariantVisibleToMake {
1471 c.Properties.SubName += sdkSuffix
1477 mod: c,
1482 deps := c.depsToPaths(ctx)
1487 if c.Properties.Clang != nil && *c.Properties.Clang == false {
1492 Toolchain: c.toolchain(ctx),
1495 if c.compiler != nil {
1496 flags = c.compiler.compilerFlags(ctx, flags, deps)
1498 if c.linker != nil {
1499 flags = c.linker.linkerFlags(ctx, flags)
1501 if c.stl != nil {
1502 flags = c.stl.flags(ctx, flags)
1504 if c.sanitize != nil {
1505 flags = c.sanitize.flags(ctx, flags)
1507 if c.coverage != nil {
1508 flags, deps = c.coverage.flags(ctx, flags, deps)
1510 if c.lto != nil {
1511 flags = c.lto.flags(ctx, flags)
1513 if c.pgo != nil {
1514 flags = c.pgo.flags(ctx, flags)
1516 for _, feature := range c.features {
1536 c.flags = flags
1538 if c.sabi != nil {
1539 flags = c.sabi.flags(ctx, flags)
1554 if c.compiler != nil {
1555 objs = c.compiler.compile(ctx, flags, deps)
1559 c.kytheFiles = objs.kytheFiles
1562 if c.linker != nil {
1563 outputFile := c.linker.link(ctx, flags, deps, objs)
1567 c.outputFile = android.OptionalPathForPath(outputFile)
1575 if c.HasStubsVariants() &&
1576 android.DirectlyInAnyApex(ctx, ctx.baseModuleName()) && !c.InRamdisk() &&
1577 !c.InRecovery() && !c.UseVndk() && !c.static() && !c.isCoverageVariant() &&
1578 c.IsStubs() {
1579 c.Properties.HideFromMake = false // unhide
1584 …if i, ok := c.linker.(snapshotLibraryInterface); ok && ctx.DeviceConfig().VndkVersion() == "curren…
1585 if isSnapshotAware(ctx, c) {
1591 if c.installable() {
1592 c.installer.install(ctx, c.outputFile.Path())
1596 } else if !proptools.BoolDefault(c.Properties.Installable, true) {
1602 c.SkipInstall()
1606 func (c *Module) toolchain(ctx android.BaseModuleContext) config.Toolchain {
1607 if c.cachedToolchain == nil {
1608 c.cachedToolchain = config.FindToolchain(ctx.Os(), ctx.Arch())
1610 return c.cachedToolchain
1613 func (c *Module) begin(ctx BaseModuleContext) {
1614 if c.compiler != nil {
1615 c.compiler.compilerInit(ctx)
1617 if c.linker != nil {
1618 c.linker.linkerInit(ctx)
1620 if c.stl != nil {
1621 c.stl.begin(ctx)
1623 if c.sanitize != nil {
1624 c.sanitize.begin(ctx)
1626 if c.coverage != nil {
1627 c.coverage.begin(ctx)
1629 if c.sabi != nil {
1630 c.sabi.begin(ctx)
1632 if c.vndkdep != nil {
1633 c.vndkdep.begin(ctx)
1635 if c.lto != nil {
1636 c.lto.begin(ctx)
1638 if c.pgo != nil {
1639 c.pgo.begin(ctx)
1641 for _, feature := range c.features {
1649 c.Properties.Sdk_version = StringPtr(version)
1653 func (c *Module) deps(ctx DepsContext) Deps {
1656 if c.compiler != nil {
1657 deps = c.compiler.compilerDeps(ctx, deps)
1662 if c.pgo != nil {
1663 deps = c.pgo.deps(ctx, deps)
1665 if c.linker != nil {
1666 deps = c.linker.linkerDeps(ctx, deps)
1668 if c.stl != nil {
1669 deps = c.stl.deps(ctx, deps)
1671 if c.sanitize != nil {
1672 deps = c.sanitize.deps(ctx, deps)
1674 if c.coverage != nil {
1675 deps = c.coverage.deps(ctx, deps)
1677 if c.sabi != nil {
1678 deps = c.sabi.deps(ctx, deps)
1680 if c.vndkdep != nil {
1681 deps = c.vndkdep.deps(ctx, deps)
1683 if c.lto != nil {
1684 deps = c.lto.deps(ctx, deps)
1686 for _, feature := range c.features {
1725 func (c *Module) beginMutator(actx android.BottomUpMutatorContext) {
1729 mod: c,
1734 c.begin(ctx)
1747 func (c *Module) DepsMutator(actx android.BottomUpMutatorContext) {
1748 if !c.Enabled() {
1755 mod: c,
1760 deps := c.deps(ctx)
1789 if c.VndkVersion() != actx.DeviceConfig().VndkVersion() {
1839 if c.linker != nil {
1840 if library, ok := c.linker.(*libraryDecorator); ok {
1849 if c.VndkVersion() != actx.DeviceConfig().VndkVersion() {
1870 actx.AddFarVariationDependencies(append(ctx.Target().Variations(), c.ImageVariation()),
1934 if version != "" && VersionVariantAvailable(c) {
1944 if version == "" && VersionVariantAvailable(c) {
1960 if c.static() {
1995 actx.AddDependency(c, genSourceDepTag, deps.GeneratedSources...)
2002 actx.AddDependency(c, depTag, gen)
2016 actx.AddDependency(c, linkerFlagsDepTag, deps.LinkerFlagsFile)
2019 actx.AddDependency(c, dynamicLinkerDepTag, deps.DynamicLinker)
2032 if vndkdep := c.vndkdep; vndkdep != nil {
2035 c.ImageVariation(),
2043 if c, ok := ctx.Module().(*Module); ok && c.Enabled() {
2044 c.beginMutator(ctx)
2202 func (c *Module) depsToPaths(ctx android.ModuleContext) PathDeps {
2219 c.apexSdkVersion = android.FutureApiLevel
2220 if !c.IsForPlatform() {
2221 c.apexSdkVersion = c.ApexProperties.Info.MinSdkVersion
2228 c.apexSdkVersion = android.FutureApiLevel
2261 …c.sabi.Properties.ReexportedIncludes = append(c.sabi.Properties.ReexportedIncludes, dirs.Strings()…
2303 c.staticVariant = ccDep
2314 c.staticVariant = ccDep
2321 if c.apexSdkVersion <= android.SdkVersion_Android10 {
2346 depHasStubs := VersionVariantAvailable(c) && ccDep.HasStubsVariants()
2347 depInSameApex := android.DirectlyInApex(c.ApexName(), depName)
2358 } else if c.IsForPlatform() {
2362 if c.bootstrap() {
2367 for _, testFor := range c.TestFor() {
2384 versionToUse, err := c.ChooseSdkVersion(ccDep.StubsVersions(), c.apexSdkVersion)
2398 if c.UseVndk() {
2403 if c.ApexName() != "" && len(versions) > 0 {
2407 versionToUse, err = c.ChooseSdkVersion(versions, c.apexSdkVersion)
2435 c.sabi.Properties.ReexportedIncludes = append(
2436 c.sabi.Properties.ReexportedIncludes, i.exportedDirs().Strings()...)
2440 checkLinkType(ctx, c, ccDep, t)
2520 if c, ok := ccDep.(*Module); ok {
2521 staticLib := c.linker.(libraryInterface)
2526 } else if c, ok := ccDep.(LinkableInterface); ok {
2529 c.CoverageFiles()...)
2568 if c, ok := ccDep.(*Module); ok {
2570 if c.isSnapshotPrebuilt() {
2571 baseName := c.BaseModuleName()
2573 if c.IsVndk() {
2585 …reVariant() && ccDep.IsVndk() && !ccDep.MustUseVendorVariant() && !c.InRamdisk() && !c.InRecovery(…
2589 } else if c.UseVndk() && bothVendorAndCoreVariantsExist {
2592 return libName + c.getNameSuffixWithVndkVersion(ctx)
2614 c.Properties.ApexesProvidingSharedLibs = append(
2615 c.Properties.ApexesProvidingSharedLibs, an)
2622 c.Properties.AndroidMkSharedLibs = append(
2623 c.Properties.AndroidMkSharedLibs, makeLibName(depName))
2625 c.Properties.SnapshotSharedLibs = append(c.Properties.SnapshotSharedLibs, baseLibName(depName))
2627 c.Properties.AndroidMkSharedLibs = append(
2628 c.Properties.AndroidMkSharedLibs,
2631 c.Properties.AndroidMkStaticLibs = append(
2632 c.Properties.AndroidMkStaticLibs, makeLibName(depName))
2634 c.Properties.AndroidMkRuntimeLibs = append(
2635 c.Properties.AndroidMkRuntimeLibs, makeLibName(depName))
2637 c.Properties.SnapshotRuntimeLibs = append(c.Properties.SnapshotRuntimeLibs, baseLibName(depName))
2639 c.Properties.AndroidMkWholeStaticLibs = append(
2640 c.Properties.AndroidMkWholeStaticLibs, makeLibName(depName))
2642 c.Properties.AndroidMkHeaderLibs = append(
2643 c.Properties.AndroidMkHeaderLibs, makeLibName(depName))
2648 …depPaths.StaticLibs = append(depPaths.StaticLibs, orderStaticModuleDeps(c, directStaticDeps, direc…
2661 if c.sabi != nil {
2662 …c.sabi.Properties.ReexportedIncludes = android.FirstUniqueStrings(c.sabi.Properties.ReexportedIncl…
2668 func (c *Module) InstallInData() bool {
2669 if c.installer == nil {
2672 return c.installer.inData()
2675 func (c *Module) InstallInSanitizerDir() bool {
2676 if c.installer == nil {
2679 if c.sanitize != nil && c.sanitize.inSanitizerDir() {
2682 return c.installer.inSanitizerDir()
2685 func (c *Module) InstallInRamdisk() bool {
2686 return c.InRamdisk()
2689 func (c *Module) InstallInRecovery() bool {
2690 return c.InRecovery()
2693 func (c *Module) SkipInstall() {
2694 if c.installer == nil {
2695 c.ModuleBase.SkipInstall()
2698 c.installer.skipInstall(c)
2701 func (c *Module) HostToolPath() android.OptionalPath {
2702 if c.installer == nil {
2705 return c.installer.hostToolPath()
2708 func (c *Module) IntermPathForModuleOut() android.OptionalPath {
2709 return c.outputFile
2712 func (c *Module) OutputFiles(tag string) (android.Paths, error) {
2715 if c.outputFile.Valid() {
2716 return android.Paths{c.outputFile.Path()}, nil
2724 func (c *Module) static() bool {
2725 if static, ok := c.linker.(interface {
2733 func (c *Module) staticBinary() bool {
2734 if static, ok := c.linker.(interface {
2742 func (c *Module) header() bool {
2743 if h, ok := c.linker.(interface {
2751 func (c *Module) binary() bool {
2752 if b, ok := c.linker.(interface {
2760 func (c *Module) object() bool {
2761 if o, ok := c.linker.(interface {
2769 func (c *Module) getMakeLinkType(actx android.ModuleContext) string {
2770 if c.UseVndk() {
2771 if lib, ok := c.linker.(*llndkStubDecorator); ok {
2777 if c.IsVndk() && !c.isVndkExt() {
2778 if Bool(c.VendorProperties.Vendor_available) {
2783 if c.inProduct() {
2787 } else if c.InRamdisk() {
2789 } else if c.InRecovery() {
2791 } else if c.Target().Os == android.Android && String(c.Properties.Sdk_version) != "" {
2796 } else if actx.DeviceConfig().VndkUseCoreVariant() && !c.MustUseVendorVariant() {
2805 func (c *Module) IsInstallableToApex() bool {
2806 if shared, ok := c.linker.(interface {
2811 return shared.shared() && !c.IsStubs() && c.ContainingSdk().Unversioned()
2812 } else if _, ok := c.linker.(testPerSrc); ok {
2818 func (c *Module) AvailableFor(what string) bool {
2819 if linker, ok := c.linker.(interface {
2822 return c.ApexModuleBase.AvailableFor(what) || linker.availableFor(what)
2824 return c.ApexModuleBase.AvailableFor(what)
2828 func (c *Module) TestFor() []string {
2829 if test, ok := c.linker.(interface {
2834 return c.ApexModuleBase.TestFor()
2839 func (c *Module) EverInstallable() bool {
2840 return c.installer != nil &&
2842 c.installer.everInstallable()
2845 func (c *Module) installable() bool {
2846 ret := c.EverInstallable() &&
2848 proptools.BoolDefault(c.Properties.Installable, true) &&
2849 !c.Properties.PreventInstall && c.outputFile.Valid()
2854 if c.IsForPlatform() {
2863 if c.InstallInData() {
2870 func (c *Module) AndroidMkWriteAdditionalDependenciesForSourceAbiDiff(w io.Writer) {
2871 if c.linker != nil {
2872 if library, ok := c.linker.(*libraryDecorator); ok {
2878 func (c *Module) DepIsInSameApex(ctx android.BaseModuleContext, dep android.Module) bool {
2919 func (c *Module) ShouldSupportSdkVersion(ctx android.BaseModuleContext, sdkVersion int) error {
2921 if strings.HasPrefix(ctx.OtherModuleName(c), "libclang_rt") {
2925 if c.ToolchainLibrary() {
2929 if _, ok := c.linker.(prebuiltLinkerInterface); ok {
2932 minSdkVersion := c.MinSdkVersion()
2941 minSdkVersion = c.SdkVersion()
3222 func (c *Module) CoreVariantNeeded(ctx android.BaseModuleContext) bool {
3223 return c.Properties.CoreVariantNeeded
3226 func (c *Module) RamdiskVariantNeeded(ctx android.BaseModuleContext) bool {
3227 return c.Properties.RamdiskVariantNeeded
3230 func (c *Module) RecoveryVariantNeeded(ctx android.BaseModuleContext) bool {
3231 return c.Properties.RecoveryVariantNeeded
3234 func (c *Module) ExtraImageVariations(ctx android.BaseModuleContext) []string {
3235 return c.Properties.ExtraVariants
3238 func (c *Module) SetImageVariation(ctx android.BaseModuleContext, variant string, module android.Mo…
3264 func (c *Module) IsSdkVariant() bool {
3265 return c.Properties.IsSdkVariant