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

Commit d4299e84 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add a new group for foreground of multi-window" into main

parents d8465f2b e3b3f741
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;