Lines Matching refs:global
56 global *GlobalConfig, module *ModuleConfig) (rule *android.RuleBuilder, err error) {
73 generateProfile := module.ProfileClassListing.Valid() && !global.DisableGenerateProfile
74 generateBootProfile := module.ProfileBootListing.Valid() && !global.DisableGenerateProfile
78 profile = profileCommand(ctx, globalSoong, global, module, rule)
81 bootProfileCommand(ctx, globalSoong, global, module, rule)
84 if !dexpreoptDisabled(ctx, global, module) {
86 if !contains(android.GetJarsFromApexJarPairs(ctx, global.BootJars), module.Name) {
87 appImage := (generateProfile || module.ForceCreateAppImage || global.DefaultAppImages) &&
90 generateDM := shouldGenerateDM(module, global)
93 dexpreoptCommand(ctx, globalSoong, global, module, rule, archIdx, profile, appImage, generateDM)
101 func dexpreoptDisabled(ctx android.PathContext, global *GlobalConfig, module *ModuleConfig) bool {
102 if contains(global.DisablePreoptModules, module.Name) {
107 for _, p := range global.UpdatableSystemServerJars {
117 …if global.OnlyPreoptBootImageAndSystemServer && !contains(android.GetJarsFromApexJarPairs(ctx, glo…
118 !contains(global.SystemServerJars, module.Name) && !module.PreoptExtractedApk {
125 func profileCommand(ctx android.PathContext, globalSoong *GlobalSoongConfig, global *GlobalConfig,
164 func bootProfileCommand(ctx android.PathContext, globalSoong *GlobalSoongConfig, global *GlobalConf…
246 func dexpreoptCommand(ctx android.PathContext, globalSoong *GlobalSoongConfig, global *GlobalConfig,
270 if odexOnSystemOther(module, global) {
280 systemServerJars := NonUpdatableSystemServerJars(ctx, global)
381 Flag("--runtime-arg").FlagWithArg("-Xms", global.Dex2oatXms).
382 Flag("--runtime-arg").FlagWithArg("-Xmx", global.Dex2oatXmx).
392 FlagWithArg("--android-root=", global.EmptyDirectory).
394 FlagWithArg("--instruction-set-variant=", global.CpuVariant[arch]).
395 FlagWithArg("--instruction-set-features=", global.InstructionSetFeatures[arch]).
405 } else if len(global.PreoptFlags) > 0 {
406 preoptFlags = global.PreoptFlags
419 if contains(global.SystemServerJars, module.Name) {
421 if global.SystemServerCompilerFilter != "" {
422 compilerFilter = global.SystemServerCompilerFilter
426 …} else if contains(global.SpeedApps, module.Name) || contains(global.SystemServerApps, module.Name…
433 } else if global.DefaultCompilerFilter != "" {
434 compilerFilter = global.DefaultCompilerFilter
457 if global.NoDebugInfo {
464 if contains(global.SystemServerJars, module.Name) {
465 if global.AlwaysSystemServerDebugInfo {
467 } else if global.NeverSystemServerDebugInfo {
471 if global.AlwaysOtherDebugInfo {
473 } else if global.NeverOtherDebugInfo {
479 if global.IsEng {
498 if !global.DontResolveStartupStrings {
512 func shouldGenerateDM(module *ModuleConfig, global *GlobalConfig) bool {
515 return global.GenerateDMFiles && !module.UncompressedDex &&
519 func OdexOnSystemOtherByName(name string, dexLocation string, global *GlobalConfig) bool {
520 if !global.HasSystemOther {
524 if global.SanitizeLite {
528 if contains(global.SpeedApps, name) || contains(global.SystemServerApps, name) {
532 for _, f := range global.PatternsOnSystemOther {
541 func odexOnSystemOther(module *ModuleConfig, global *GlobalConfig) bool {
542 return OdexOnSystemOtherByName(module.Name, module.DexLocation, global)
584 func NonUpdatableSystemServerJars(ctx android.PathContext, global *GlobalConfig) []string {
586 return android.RemoveListFromList(global.SystemServerJars,
587 android.GetJarsFromApexJarPairs(ctx, global.UpdatableSystemServerJars))