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

Commit 24d32a2b authored by Richard Uhler's avatar Richard Uhler Committed by Android (Google) Code Review
Browse files

Merge "Add flag to enable holdback study on jank_perceptible_narrow." into main

parents ea570188 ccec4b71
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1188,7 +1188,7 @@ public class ActivityManager {

    /** @hide Should this process state be considered jank perceptible? */
    public static final boolean isProcStateJankPerceptible(int procState) {
        if (Flags.jankPerceptibleNarrow()) {
        if (Flags.jankPerceptibleNarrow() && !Flags.jankPerceptibleNarrowHoldback()) {
            return procState == PROCESS_STATE_PERSISTENT_UI
                || procState == PROCESS_STATE_TOP
                || procState == PROCESS_STATE_IMPORTANT_FOREGROUND
+1 −1
Original line number Diff line number Diff line
@@ -4014,7 +4014,7 @@ public final class ActivityThread extends ClientTransactionHandler
            return VM_PROCESS_STATE_JANK_PERCEPTIBLE;
        }

        if (Flags.jankPerceptibleNarrow()) {
        if (Flags.jankPerceptibleNarrow() && !Flags.jankPerceptibleNarrowHoldback()) {
            // Unlike other persistent processes, system server is often on
            // the critical path for application startup. Mark it explicitly
            // as jank perceptible regardless of processState.
+7 −0
Original line number Diff line number Diff line
@@ -163,3 +163,10 @@ flag {
    description: "Narrow the scope of Jank Perceptible"
    bug: "304837972"
}

flag {
    name: "jank_perceptible_narrow_holdback"
    namespace: "system_performance"
    description: "Holdback study for jank_perceptible_narrow"
    bug: "304837972"
}