Lines Matching refs:c
69 func (c Config) BuildDir() string {
70 return c.buildDir
73 func (c Config) NinjaBuildDir() string {
74 return c.buildDir
77 func (c Config) DebugCompilation() bool {
81 func (c Config) SrcDir() string {
82 return c.srcDir
347 func ConfigForAdditionalRun(c Config) (Config, error) {
348 newConfig, err := NewConfig(c.srcDir, c.buildDir, c.moduleListFile, c.env)
352 newConfig.BazelContext = c.BazelContext
353 newConfig.envDeps = c.envDeps
468 func (c *config) mockFileSystem(bp string, fs map[string][]byte) {
492 c.fs = pathtools.MockFs(mockFS)
493 c.mockBpList = blueprint.MockModuleListFile
496 func (c *config) StopBefore() bootstrap.StopBefore {
497 return c.stopBefore
501 func (c *config) SetStopBefore(stopBefore bootstrap.StopBefore) {
502 c.stopBefore = stopBefore
505 func (c *config) SetAllowMissingDependencies() {
506 c.productVariables.Allow_missing_dependencies = proptools.BoolPtr(true)
513 func (c *config) BlueprintToolLocation() string {
514 return filepath.Join(c.buildDir, "host", c.PrebuiltOS(), "bin")
519 func (c *config) HostToolPath(ctx PathContext, tool string) Path {
520 return PathForOutput(ctx, "host", c.PrebuiltOS(), "bin", tool)
523 func (c *config) HostJNIToolPath(ctx PathContext, path string) Path {
528 return PathForOutput(ctx, "host", c.PrebuiltOS(), "lib64", path+ext)
531 func (c *config) HostJavaToolPath(ctx PathContext, path string) Path {
532 return PathForOutput(ctx, "host", c.PrebuiltOS(), "framework", path)
536 func (c *config) PrebuiltOS() string {
548 func (c *config) GoRoot() string {
549 return fmt.Sprintf("%s/prebuilts/go/%s", c.srcDir, c.PrebuiltOS())
554 func (c *config) PrebuiltBuildTool(ctx PathContext, tool string) Path {
555 return PathForSource(ctx, "prebuilts/build-tools", c.PrebuiltOS(), "bin", tool)
560 func (c *config) CpPreserveSymlinksFlags() string {
571 func (c *config) Getenv(key string) string {
574 c.envLock.Lock()
575 defer c.envLock.Unlock()
576 if c.envDeps == nil {
577 c.envDeps = make(map[string]string)
579 if val, exists = c.envDeps[key]; !exists {
580 if c.envFrozen {
583 val, _ = c.env[key]
584 c.envDeps[key] = val
589 func (c *config) GetenvWithDefault(key string, defaultValue string) string {
590 ret := c.Getenv(key)
597 func (c *config) IsEnvTrue(key string) bool {
598 value := c.Getenv(key)
602 func (c *config) IsEnvFalse(key string) bool {
603 value := c.Getenv(key)
609 func (c *config) EnvDeps() map[string]string {
610 c.envLock.Lock()
611 defer c.envLock.Unlock()
612 c.envFrozen = true
613 return c.envDeps
616 func (c *config) KatiEnabled() bool {
617 return c.katiEnabled
620 func (c *config) BuildId() string {
621 return String(c.productVariables.BuildId)
631 func (c *config) BuildNumberFile(ctx PathContext) Path {
632 return PathForOutput(ctx, String(c.productVariables.BuildNumberFile))
637 func (c *config) DeviceName() string {
638 return *c.productVariables.DeviceName
641 func (c *config) DeviceResourceOverlays() []string {
642 return c.productVariables.DeviceResourceOverlays
645 func (c *config) ProductResourceOverlays() []string {
646 return c.productVariables.ProductResourceOverlays
649 func (c *config) PlatformVersionName() string {
650 return String(c.productVariables.Platform_version_name)
653 func (c *config) PlatformSdkVersion() ApiLevel {
654 return uncheckedFinalApiLevel(*c.productVariables.Platform_sdk_version)
657 func (c *config) PlatformSdkCodename() string {
658 return String(c.productVariables.Platform_sdk_codename)
661 func (c *config) PlatformSecurityPatch() string {
662 return String(c.productVariables.Platform_security_patch)
665 func (c *config) PlatformPreviewSdkVersion() string {
666 return String(c.productVariables.Platform_preview_sdk_version)
669 func (c *config) PlatformMinSupportedTargetSdkVersion() string {
670 return String(c.productVariables.Platform_min_supported_target_sdk_version)
673 func (c *config) PlatformBaseOS() string {
674 return String(c.productVariables.Platform_base_os)
677 func (c *config) MinSupportedSdkVersion() ApiLevel {
681 func (c *config) FinalApiLevels() []ApiLevel {
683 for i := 1; i <= c.PlatformSdkVersion().FinalOrFutureInt(); i++ {
689 func (c *config) PreviewApiLevels() []ApiLevel {
691 for i, codename := range c.PlatformVersionActiveCodenames() {
701 func (c *config) AllSupportedApiLevels() []ApiLevel {
703 levels = append(levels, c.FinalApiLevels()...)
704 return append(levels, c.PreviewApiLevels()...)
709 func (c *config) DefaultAppTargetSdk(ctx EarlyModuleContext) ApiLevel {
710 if Bool(c.productVariables.Platform_sdk_final) {
711 return c.PlatformSdkVersion()
713 codename := c.PlatformSdkCodename()
723 func (c *config) AppsDefaultVersionName() string {
724 return String(c.productVariables.AppsDefaultVersionName)
728 func (c *config) PlatformVersionActiveCodenames() []string {
729 return c.productVariables.Platform_version_active_codenames
732 func (c *config) ProductAAPTConfig() []string {
733 return c.productVariables.AAPTConfig
736 func (c *config) ProductAAPTPreferredConfig() string {
737 return String(c.productVariables.AAPTPreferredConfig)
740 func (c *config) ProductAAPTCharacteristics() string {
741 return String(c.productVariables.AAPTCharacteristics)
744 func (c *config) ProductAAPTPrebuiltDPI() []string {
745 return c.productVariables.AAPTPrebuiltDPI
748 func (c *config) DefaultAppCertificateDir(ctx PathContext) SourcePath {
749 defaultCert := String(c.productVariables.DefaultAppCertificate)
756 func (c *config) DefaultAppCertificate(ctx PathContext) (pem, key SourcePath) {
757 defaultCert := String(c.productVariables.DefaultAppCertificate)
761 defaultDir := c.DefaultAppCertificateDir(ctx)
765 func (c *config) ApexKeyDir(ctx ModuleContext) SourcePath {
767 defaultCert := String(c.productVariables.DefaultAppCertificate)
780 func (c *config) AllowMissingDependencies() bool {
781 return Bool(c.productVariables.Allow_missing_dependencies)
785 func (c *config) UnbundledBuild() bool {
786 return Bool(c.productVariables.Unbundled_build)
791 func (c *config) UnbundledBuildApps() bool {
792 return Bool(c.productVariables.Unbundled_build_apps)
796 func (c *config) AlwaysUsePrebuiltSdks() bool {
797 return Bool(c.productVariables.Always_use_prebuilt_sdks)
801 func (c *config) SkipBootJarsCheck() bool {
802 return Bool(c.productVariables.Skip_boot_jars_check)
805 func (c *config) Fuchsia() bool {
806 return Bool(c.productVariables.Fuchsia)
809 func (c *config) MinimizeJavaDebugInfo() bool {
810 return Bool(c.productVariables.MinimizeJavaDebugInfo) && !Bool(c.productVariables.Eng)
813 func (c *config) Debuggable() bool {
814 return Bool(c.productVariables.Debuggable)
817 func (c *config) Eng() bool {
818 return Bool(c.productVariables.Eng)
821 func (c *config) DevicePrimaryArchType() ArchType {
822 return c.Targets[Android][0].Arch.ArchType
825 func (c *config) SanitizeHost() []string {
826 return append([]string(nil), c.productVariables.SanitizeHost...)
829 func (c *config) SanitizeDevice() []string {
830 return append([]string(nil), c.productVariables.SanitizeDevice...)
833 func (c *config) SanitizeDeviceDiag() []string {
834 return append([]string(nil), c.productVariables.SanitizeDeviceDiag...)
837 func (c *config) SanitizeDeviceArch() []string {
838 return append([]string(nil), c.productVariables.SanitizeDeviceArch...)
841 func (c *config) EnableCFI() bool {
842 if c.productVariables.EnableCFI == nil {
845 return *c.productVariables.EnableCFI
848 func (c *config) DisableScudo() bool {
849 return Bool(c.productVariables.DisableScudo)
852 func (c *config) Android64() bool {
853 for _, t := range c.Targets[Android] {
862 func (c *config) UseGoma() bool {
863 return Bool(c.productVariables.UseGoma)
866 func (c *config) UseRBE() bool {
867 return Bool(c.productVariables.UseRBE)
870 func (c *config) UseRBEJAVAC() bool {
871 return Bool(c.productVariables.UseRBEJAVAC)
874 func (c *config) UseRBER8() bool {
875 return Bool(c.productVariables.UseRBER8)
878 func (c *config) UseRBED8() bool {
879 return Bool(c.productVariables.UseRBED8)
882 func (c *config) UseRemoteBuild() bool {
883 return c.UseGoma() || c.UseRBE()
886 func (c *config) RunErrorProne() bool {
887 return c.IsEnvTrue("RUN_ERROR_PRONE")
891 func (c *config) XrefCorpusName() string {
892 return c.Getenv("XREF_CORPUS")
897 func (c *config) XrefCuEncoding() string {
898 if enc := c.Getenv("KYTHE_KZIP_ENCODING"); enc != "" {
908 func (c Config) XrefCuJavaSourceMax() string {
909 v := c.Getenv("KYTHE_JAVA_SOURCE_BATCH_SIZE")
923 func (c *config) EmitXrefRules() bool {
924 return c.XrefCorpusName() != ""
927 func (c *config) ClangTidy() bool {
928 return Bool(c.productVariables.ClangTidy)
931 func (c *config) TidyChecks() string {
932 if c.productVariables.TidyChecks == nil {
935 return *c.productVariables.TidyChecks
938 func (c *config) LibartImgHostBaseAddress() string {
942 func (c *config) LibartImgDeviceBaseAddress() string {
946 func (c *config) ArtUseReadBarrier() bool {
947 return Bool(c.productVariables.ArtUseReadBarrier)
954 func (c *config) EnforceRROForModule(name string) bool {
955 enforceList := c.productVariables.EnforceRROTargets
965 func (c *config) EnforceRROExcludedOverlay(path string) bool {
966 excluded := c.productVariables.EnforceRROExcludedOverlays
973 func (c *config) ExportedNamespaces() []string {
974 return append([]string(nil), c.productVariables.NamespacesToExport...)
977 func (c *config) HostStaticBinaries() bool {
978 return Bool(c.productVariables.HostStaticBinaries)
981 func (c *config) UncompressPrivAppDex() bool {
982 return Bool(c.productVariables.UncompressPrivAppDex)
985 func (c *config) ModulesLoadedByPrivilegedModules() []string {
986 return c.productVariables.ModulesLoadedByPrivilegedModules
992 func (c *config) DexpreoptGlobalConfigPath(ctx PathContext) OptionalPath {
993 if c.productVariables.DexpreoptGlobalConfig == nil {
997 pathForBuildToolDep(ctx, *c.productVariables.DexpreoptGlobalConfig))
1006 func (c *config) DexpreoptGlobalConfig(ctx PathContext) ([]byte, error) {
1007 path := c.DexpreoptGlobalConfigPath(ctx)
1015 func (c *deviceConfig) WithDexpreopt() bool {
1016 return c.config.productVariables.WithDexpreopt
1019 func (c *config) FrameworksBaseDirExists(ctx PathContext) bool {
1023 func (c *config) VndkSnapshotBuildArtifacts() bool {
1024 return Bool(c.productVariables.VndkSnapshotBuildArtifacts)
1027 func (c *config) HasMultilibConflict(arch ArchType) bool {
1028 return c.multilibConflicts[arch]
1031 func (c *config) PrebuiltHiddenApiDir(ctx PathContext) string {
1032 return String(c.productVariables.PrebuiltHiddenApiDir)
1035 func (c *deviceConfig) Arches() []Arch {
1037 for _, target := range c.config.Targets[Android] {
1043 func (c *deviceConfig) BinderBitness() string {
1044 is32BitBinder := c.config.productVariables.Binder32bit
1051 func (c *deviceConfig) VendorPath() string {
1052 if c.config.productVariables.VendorPath != nil {
1053 return *c.config.productVariables.VendorPath
1058 func (c *deviceConfig) VndkVersion() string {
1059 return String(c.config.productVariables.DeviceVndkVersion)
1062 func (c *deviceConfig) RecoverySnapshotVersion() string {
1063 return String(c.config.productVariables.RecoverySnapshotVersion)
1066 func (c *deviceConfig) CurrentApiLevelForVendorModules() string {
1067 return StringDefault(c.config.productVariables.DeviceCurrentApiLevelForVendorModules, "current")
1070 func (c *deviceConfig) PlatformVndkVersion() string {
1071 return String(c.config.productVariables.Platform_vndk_version)
1074 func (c *deviceConfig) ProductVndkVersion() string {
1075 return String(c.config.productVariables.ProductVndkVersion)
1078 func (c *deviceConfig) ExtraVndkVersions() []string {
1079 return c.config.productVariables.ExtraVndkVersions
1082 func (c *deviceConfig) VndkUseCoreVariant() bool {
1083 return Bool(c.config.productVariables.VndkUseCoreVariant)
1086 func (c *deviceConfig) SystemSdkVersions() []string {
1087 return c.config.productVariables.DeviceSystemSdkVersions
1090 func (c *deviceConfig) PlatformSystemSdkVersions() []string {
1091 return c.config.productVariables.Platform_systemsdk_versions
1094 func (c *deviceConfig) OdmPath() string {
1095 if c.config.productVariables.OdmPath != nil {
1096 return *c.config.productVariables.OdmPath
1101 func (c *deviceConfig) ProductPath() string {
1102 if c.config.productVariables.ProductPath != nil {
1103 return *c.config.productVariables.ProductPath
1108 func (c *deviceConfig) SystemExtPath() string {
1109 if c.config.productVariables.SystemExtPath != nil {
1110 return *c.config.productVariables.SystemExtPath
1115 func (c *deviceConfig) BtConfigIncludeDir() string {
1116 return String(c.config.productVariables.BtConfigIncludeDir)
1119 func (c *deviceConfig) DeviceKernelHeaderDirs() []string {
1120 return c.config.productVariables.DeviceKernelHeaders
1123 func (c *deviceConfig) SamplingPGO() bool {
1124 return Bool(c.config.productVariables.SamplingPGO)
1133 func (c *deviceConfig) JavaCoverageEnabledForPath(path string) bool {
1135 if len(c.config.productVariables.JavaCoveragePaths) == 0 ||
1136 InList("*", c.config.productVariables.JavaCoveragePaths) ||
1137 HasAnyPrefix(path, c.config.productVariables.JavaCoveragePaths) {
1140 if coverage && len(c.config.productVariables.JavaCoverageExcludePaths) > 0 {
1141 if HasAnyPrefix(path, c.config.productVariables.JavaCoverageExcludePaths) {
1149 func (c *deviceConfig) NativeCoverageEnabled() bool {
1150 return Bool(c.config.productVariables.GcovCoverage) ||
1151 Bool(c.config.productVariables.ClangCoverage)
1154 func (c *deviceConfig) ClangCoverageEnabled() bool {
1155 return Bool(c.config.productVariables.ClangCoverage)
1158 func (c *deviceConfig) GcovCoverageEnabled() bool {
1159 return Bool(c.config.productVariables.GcovCoverage)
1167 func (c *deviceConfig) NativeCoverageEnabledForPath(path string) bool {
1169 if len(c.config.productVariables.NativeCoveragePaths) > 0 {
1170 …if InList("*", c.config.productVariables.NativeCoveragePaths) || HasAnyPrefix(path, c.config.produ…
1174 if coverage && len(c.config.productVariables.NativeCoverageExcludePaths) > 0 {
1175 if HasAnyPrefix(path, c.config.productVariables.NativeCoverageExcludePaths) {
1182 func (c *deviceConfig) PgoAdditionalProfileDirs() []string {
1183 return c.config.productVariables.PgoAdditionalProfileDirs
1186 func (c *deviceConfig) VendorSepolicyDirs() []string {
1187 return c.config.productVariables.BoardVendorSepolicyDirs
1190 func (c *deviceConfig) OdmSepolicyDirs() []string {
1191 return c.config.productVariables.BoardOdmSepolicyDirs
1194 func (c *deviceConfig) SystemExtPublicSepolicyDirs() []string {
1195 return c.config.productVariables.SystemExtPublicSepolicyDirs
1198 func (c *deviceConfig) SystemExtPrivateSepolicyDirs() []string {
1199 return c.config.productVariables.SystemExtPrivateSepolicyDirs
1202 func (c *deviceConfig) SepolicyM4Defs() []string {
1203 return c.config.productVariables.BoardSepolicyM4Defs
1206 func (c *deviceConfig) OverrideManifestPackageNameFor(name string) (manifestName string, overridden…
1207 return findOverrideValue(c.config.productVariables.ManifestPackageNameOverrides, name,
1211 func (c *deviceConfig) OverrideCertificateFor(name string) (certificatePath string, overridden bool…
1212 return findOverrideValue(c.config.productVariables.CertificateOverrides, name,
1216 func (c *deviceConfig) OverridePackageNameFor(name string) string {
1218 c.config.productVariables.PackageNameOverrides,
1244 func (c *config) IntegerOverflowDisabledForPath(path string) bool {
1245 if len(c.productVariables.IntegerOverflowExcludePaths) == 0 {
1248 return HasAnyPrefix(path, c.productVariables.IntegerOverflowExcludePaths)
1251 func (c *config) CFIDisabledForPath(path string) bool {
1252 if len(c.productVariables.CFIExcludePaths) == 0 {
1255 return HasAnyPrefix(path, c.productVariables.CFIExcludePaths)
1258 func (c *config) CFIEnabledForPath(path string) bool {
1259 if len(c.productVariables.CFIIncludePaths) == 0 {
1262 return HasAnyPrefix(path, c.productVariables.CFIIncludePaths) && !c.CFIDisabledForPath(path)
1265 func (c *config) MemtagHeapDisabledForPath(path string) bool {
1266 if len(c.productVariables.MemtagHeapExcludePaths) == 0 {
1269 return HasAnyPrefix(path, c.productVariables.MemtagHeapExcludePaths)
1272 func (c *config) MemtagHeapAsyncEnabledForPath(path string) bool {
1273 if len(c.productVariables.MemtagHeapAsyncIncludePaths) == 0 {
1276 …return HasAnyPrefix(path, c.productVariables.MemtagHeapAsyncIncludePaths) && !c.MemtagHeapDisabled…
1279 func (c *config) MemtagHeapSyncEnabledForPath(path string) bool {
1280 if len(c.productVariables.MemtagHeapSyncIncludePaths) == 0 {
1283 …return HasAnyPrefix(path, c.productVariables.MemtagHeapSyncIncludePaths) && !c.MemtagHeapDisabledF…
1286 func (c *config) VendorConfig(name string) VendorConfig {
1287 return soongconfig.Config(c.productVariables.VendorVars[name])
1290 func (c *config) NdkAbis() bool {
1291 return Bool(c.productVariables.Ndk_abis)
1294 func (c *config) AmlAbis() bool {
1295 return Bool(c.productVariables.Aml_abis)
1298 func (c *config) FlattenApex() bool {
1299 return Bool(c.productVariables.Flatten_apex)
1302 func (c *config) ForceApexSymlinkOptimization() bool {
1303 return Bool(c.productVariables.ForceApexSymlinkOptimization)
1306 func (c *config) CompressedApex() bool {
1307 return Bool(c.productVariables.CompressedApex)
1310 func (c *config) EnforceSystemCertificate() bool {
1311 return Bool(c.productVariables.EnforceSystemCertificate)
1314 func (c *config) EnforceSystemCertificateAllowList() []string {
1315 return c.productVariables.EnforceSystemCertificateAllowList
1318 func (c *config) EnforceProductPartitionInterface() bool {
1319 return Bool(c.productVariables.EnforceProductPartitionInterface)
1322 func (c *config) EnforceInterPartitionJavaSdkLibrary() bool {
1323 return Bool(c.productVariables.EnforceInterPartitionJavaSdkLibrary)
1326 func (c *config) InterPartitionJavaLibraryAllowList() []string {
1327 return c.productVariables.InterPartitionJavaLibraryAllowList
1330 func (c *config) InstallExtraFlattenedApexes() bool {
1331 return Bool(c.productVariables.InstallExtraFlattenedApexes)
1334 func (c *config) ProductHiddenAPIStubs() []string {
1335 return c.productVariables.ProductHiddenAPIStubs
1338 func (c *config) ProductHiddenAPIStubsSystem() []string {
1339 return c.productVariables.ProductHiddenAPIStubsSystem
1342 func (c *config) ProductHiddenAPIStubsTest() []string {
1343 return c.productVariables.ProductHiddenAPIStubsTest
1346 func (c *deviceConfig) TargetFSConfigGen() []string {
1347 return c.config.productVariables.TargetFSConfigGen
1350 func (c *config) ProductPublicSepolicyDirs() []string {
1351 return c.productVariables.ProductPublicSepolicyDirs
1354 func (c *config) ProductPrivateSepolicyDirs() []string {
1355 return c.productVariables.ProductPrivateSepolicyDirs
1358 func (c *config) MissingUsesLibraries() []string {
1359 return c.productVariables.MissingUsesLibraries
1362 func (c *deviceConfig) DeviceArch() string {
1363 return String(c.config.productVariables.DeviceArch)
1366 func (c *deviceConfig) DeviceArchVariant() string {
1367 return String(c.config.productVariables.DeviceArchVariant)
1370 func (c *deviceConfig) DeviceSecondaryArch() string {
1371 return String(c.config.productVariables.DeviceSecondaryArch)
1374 func (c *deviceConfig) DeviceSecondaryArchVariant() string {
1375 return String(c.config.productVariables.DeviceSecondaryArchVariant)
1378 func (c *deviceConfig) BoardUsesRecoveryAsBoot() bool {
1379 return Bool(c.config.productVariables.BoardUsesRecoveryAsBoot)
1382 func (c *deviceConfig) BoardKernelBinaries() []string {
1383 return c.config.productVariables.BoardKernelBinaries
1386 func (c *deviceConfig) BoardKernelModuleInterfaceVersions() []string {
1387 return c.config.productVariables.BoardKernelModuleInterfaceVersions
1390 func (c *deviceConfig) BoardMoveRecoveryResourcesToVendorBoot() bool {
1391 return Bool(c.config.productVariables.BoardMoveRecoveryResourcesToVendorBoot)
1394 func (c *deviceConfig) PlatformSepolicyVersion() string {
1395 return String(c.config.productVariables.PlatformSepolicyVersion)
1398 func (c *deviceConfig) BoardSepolicyVers() string {
1399 if ver := String(c.config.productVariables.BoardSepolicyVers); ver != "" {
1402 return c.PlatformSepolicyVersion()
1405 func (c *deviceConfig) BoardReqdMaskPolicy() []string {
1406 return c.config.productVariables.BoardReqdMaskPolicy
1409 func (c *deviceConfig) DirectedVendorSnapshot() bool {
1410 return c.config.productVariables.DirectedVendorSnapshot
1413 func (c *deviceConfig) VendorSnapshotModules() map[string]bool {
1414 return c.config.productVariables.VendorSnapshotModules
1417 func (c *deviceConfig) DirectedRecoverySnapshot() bool {
1418 return c.config.productVariables.DirectedRecoverySnapshot
1421 func (c *deviceConfig) RecoverySnapshotModules() map[string]bool {
1422 return c.config.productVariables.RecoverySnapshotModules
1437 func (c *deviceConfig) createDirsMapOnce(onceKey OnceKey, previous map[string]bool, dirs []string) …
1438 dirMap := c.Once(onceKey, func() interface{} {
1453 func (c *deviceConfig) VendorSnapshotDirsExcludedMap() map[string]bool {
1454 return c.createDirsMapOnce(vendorSnapshotDirsExcludedKey, nil,
1455 c.config.productVariables.VendorSnapshotDirsExcluded)
1460 func (c *deviceConfig) VendorSnapshotDirsIncludedMap() map[string]bool {
1461 excludedMap := c.VendorSnapshotDirsExcludedMap()
1462 return c.createDirsMapOnce(vendorSnapshotDirsIncludedKey, excludedMap,
1463 c.config.productVariables.VendorSnapshotDirsIncluded)
1468 func (c *deviceConfig) RecoverySnapshotDirsExcludedMap() map[string]bool {
1469 return c.createDirsMapOnce(recoverySnapshotDirsExcludedKey, nil,
1470 c.config.productVariables.RecoverySnapshotDirsExcluded)
1475 func (c *deviceConfig) RecoverySnapshotDirsIncludedMap() map[string]bool {
1476 excludedMap := c.RecoverySnapshotDirsExcludedMap()
1477 return c.createDirsMapOnce(recoverySnapshotDirsIncludedKey, excludedMap,
1478 c.config.productVariables.RecoverySnapshotDirsIncluded)
1481 func (c *deviceConfig) ShippingApiLevel() ApiLevel {
1482 if c.config.productVariables.ShippingApiLevel == nil {
1485 apiLevel, _ := strconv.Atoi(*c.config.productVariables.ShippingApiLevel)
1489 func (c *deviceConfig) BuildBrokenEnforceSyspropOwner() bool {
1490 return c.config.productVariables.BuildBrokenEnforceSyspropOwner
1493 func (c *deviceConfig) BuildBrokenTrebleSyspropNeverallow() bool {
1494 return c.config.productVariables.BuildBrokenTrebleSyspropNeverallow
1497 func (c *deviceConfig) BuildDebugfsRestrictionsEnabled() bool {
1498 return c.config.productVariables.BuildDebugfsRestrictionsEnabled
1501 func (c *deviceConfig) BuildBrokenVendorPropertyNamespace() bool {
1502 return c.config.productVariables.BuildBrokenVendorPropertyNamespace
1505 func (c *deviceConfig) RequiresInsecureExecmemForSwiftshader() bool {
1506 return c.config.productVariables.RequiresInsecureExecmemForSwiftshader
1509 func (c *config) SelinuxIgnoreNeverallows() bool {
1510 return c.productVariables.SelinuxIgnoreNeverallows
1513 func (c *deviceConfig) SepolicySplit() bool {
1514 return c.config.productVariables.SepolicySplit
1812 func (c *config) BootJars() []string {
1813 return c.Once(earlyBootJarsKey, func() interface{} {
1814 list := c.productVariables.BootJars.CopyOfJars()
1815 return append(list, c.productVariables.UpdatableBootJars.CopyOfJars()...)
1819 func (c *config) NonUpdatableBootJars() ConfiguredJarList {
1820 return c.productVariables.BootJars
1823 func (c *config) UpdatableBootJars() ConfiguredJarList {
1824 return c.productVariables.UpdatableBootJars
1827 func (c *config) RBEWrapper() string {
1828 return c.GetenvWithDefault("RBE_WRAPPER", remoteexec.DefaultWrapperPath)