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

Commit e3b3f741 authored by Rick Yiu's avatar Rick Yiu
Browse files

Add a new group for foreground of multi-window

Add THREAD_GROUP_FOREGROUND_MW.

Bug: 200769420
Test: build pass
Flag: com.android.window.flags.process_priority_policy_for_multi_window_mode
Change-Id: I24cd327caad3be5827a45ede41cb7404246536c8
parent d6761f1a
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -589,6 +589,12 @@ public class Process {
     **/
    public static final int THREAD_GROUP_RESTRICTED = 7;

    /**
     * Thread group for foreground apps in multi-window mode
     * @hide
     **/
    public static final int THREAD_GROUP_FOREGROUND_WINDOW = 8;

    /** @hide */
    public static final int SIGNAL_DEFAULT = 0;
    public static final int SIGNAL_QUIT = 3;
+5 −0
Original line number Diff line number Diff line
@@ -404,6 +404,11 @@ static void get_cpuset_cores_for_policy(SchedPolicy policy, cpu_set_t *cpu_set)
                return;
            }
            break;
        case SP_FOREGROUND_WINDOW:
            if (!CgroupGetAttributePath("HighCapacityWICPUs", &filename)) {
                return;
            }
            break;
        case SP_TOP_APP:
            if (!CgroupGetAttributePath("MaxCapacityCPUs", &filename)) {
                return;