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

Commit ccec4b71 authored by Richard Uhler's avatar Richard Uhler
Browse files

Add flag to enable holdback study on jank_perceptible_narrow.

Bug: 304837972
Flag: android.app.jank_perceptible_narrow_holdback
Test: Device boots, verified holdback flag turns off jank_perceptible_narrow
Change-Id: I7afebfe7fe318143c7004e0a68e507bf66b695c1
parent 332a045f
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"
}