Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 15f16ed6 authored by Kevin Jeon's avatar Kevin Jeon
Browse files

Introduce oomadjuster_cached_app_tiers flag

This change adds a flag for cached app tiers in OomAdjuster. The
default-disabled constant for this functionality has been replaced with
a flag check.

Test: Build successfully, check that the flag exists.
Bug: 369893532
Flag: com.android.server.am.oomadjuster_cached_app_tiers
Change-Id: I71445a19328724f77ad489d45433ce82be4be529
parent fca8ee70
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -246,7 +246,7 @@ final class ActivityManagerConstants extends ContentObserver {

    static final int DEFAULT_MAX_SERVICE_CONNECTIONS_PER_PROCESS = 3000;

    private static final boolean DEFAULT_USE_TIERED_CACHED_ADJ = false;
    private static final boolean DEFAULT_USE_TIERED_CACHED_ADJ = Flags.oomadjusterCachedAppTiers();
    private static final long DEFAULT_TIERED_CACHED_ADJ_DECAY_TIME = 60 * 1000;

    /**
+8 −0
Original line number Diff line number Diff line
@@ -225,3 +225,11 @@ flag {
    description: "Migrate OomAdjuster pulled device state to a push model"
    bug: "302575389"
}

flag {
    name: "oomadjuster_cached_app_tiers"
    namespace: "system_performance"
    is_fixed_read_only: true
    description: "Assign cached oom_score_adj in tiers."
    bug: "369893532"
}