Lines Matching refs:global
55 global *GlobalConfig, module *ModuleConfig) (rule *android.RuleBuilder, err error) {
72 generateProfile := module.ProfileClassListing.Valid() && !global.DisableGenerateProfile
73 generateBootProfile := module.ProfileBootListing.Valid() && !global.DisableGenerateProfile
77 profile = profileCommand(ctx, globalSoong, global, module, rule)
80 bootProfileCommand(ctx, globalSoong, global, module, rule)
83 if !dexpreoptDisabled(ctx, global, module) {
89 appImage := (generateProfile || module.ForceCreateAppImage || global.DefaultAppImages) &&
92 generateDM := shouldGenerateDM(module, global)
95 dexpreoptCommand(ctx, globalSoong, global, module, rule, archIdx, profile, appImage, generateDM)
103 func dexpreoptDisabled(ctx android.PathContext, global *GlobalConfig, module *ModuleConfig) bool {
104 if contains(global.DisablePreoptModules, module.Name) {
109 if global.BootJars.ContainsJar(module.Name) {
114 if global.UpdatableSystemServerJars.ContainsJar(module.Name) {
122 if global.OnlyPreoptBootImageAndSystemServer && !global.BootJars.ContainsJar(module.Name) &&
123 !global.SystemServerJars.ContainsJar(module.Name) && !module.PreoptExtractedApk {
130 func profileCommand(ctx android.PathContext, globalSoong *GlobalSoongConfig, global *GlobalConfig,
171 func bootProfileCommand(ctx android.PathContext, globalSoong *GlobalSoongConfig, global *GlobalConf…
204 func dexpreoptCommand(ctx android.PathContext, globalSoong *GlobalSoongConfig, global *GlobalConfig,
228 if odexOnSystemOther(module, global) {
237 systemServerJars := NonUpdatableSystemServerJars(ctx, global)
327 Flag("--runtime-arg").FlagWithArg("-Xms", global.Dex2oatXms).
328 Flag("--runtime-arg").FlagWithArg("-Xmx", global.Dex2oatXmx).
338 FlagWithArg("--android-root=", global.EmptyDirectory).
340 FlagWithArg("--instruction-set-variant=", global.CpuVariant[arch]).
341 FlagWithArg("--instruction-set-features=", global.InstructionSetFeatures[arch]).
351 } else if len(global.PreoptFlags) > 0 {
352 preoptFlags = global.PreoptFlags
365 if global.SystemServerJars.ContainsJar(module.Name) {
367 if global.SystemServerCompilerFilter != "" {
368 compilerFilter = global.SystemServerCompilerFilter
372 …} else if contains(global.SpeedApps, module.Name) || contains(global.SystemServerApps, module.Name…
379 } else if global.DefaultCompilerFilter != "" {
380 compilerFilter = global.DefaultCompilerFilter
412 if global.NoDebugInfo {
419 if global.SystemServerJars.ContainsJar(module.Name) {
420 if global.AlwaysSystemServerDebugInfo {
422 } else if global.NeverSystemServerDebugInfo {
426 if global.AlwaysOtherDebugInfo {
428 } else if global.NeverOtherDebugInfo {
434 if global.IsEng {
453 if !global.DontResolveStartupStrings {
467 func shouldGenerateDM(module *ModuleConfig, global *GlobalConfig) bool {
470 return global.GenerateDMFiles && !module.UncompressedDex &&
474 func OdexOnSystemOtherByName(name string, dexLocation string, global *GlobalConfig) bool {
475 if !global.HasSystemOther {
479 if global.SanitizeLite {
483 if contains(global.SpeedApps, name) || contains(global.SystemServerApps, name) {
487 for _, f := range global.PatternsOnSystemOther {
496 func odexOnSystemOther(module *ModuleConfig, global *GlobalConfig) bool {
497 return OdexOnSystemOtherByName(module.Name, module.DexLocation, global)
530 func NonUpdatableSystemServerJars(ctx android.PathContext, global *GlobalConfig) []string {
532 …return android.RemoveListFromList(global.SystemServerJars.CopyOfJars(), global.UpdatableSystemServ…