Loading cmds/bootanimation/bootanim.rc +1 −0 Original line number Diff line number Diff line Loading @@ -4,3 +4,4 @@ service bootanim /system/bin/bootanimation group graphics audio disabled oneshot writepid /dev/stune/top-app/tasks No newline at end of file core/java/android/os/Process.java +5 −0 Original line number Diff line number Diff line Loading @@ -620,6 +620,9 @@ public class Process { * priority. * If the thread is a thread group leader, that is it's gettid() == getpid(), * then the other threads in the same thread group are _not_ affected. * * Does not set cpuset for some historical reason, just calls * libcutils::set_sched_policy(). */ public static final native void setThreadGroup(int tid, int group) throws IllegalArgumentException, SecurityException; Loading @@ -641,6 +644,8 @@ public class Process { * priority threads alone. group == THREAD_GROUP_BG_NONINTERACTIVE moves all * threads, regardless of priority, to the background scheduling group. * group == THREAD_GROUP_FOREGROUND is not allowed. * * Always sets cpusets. */ public static final native void setProcessGroup(int pid, int group) throws IllegalArgumentException, SecurityException; Loading services/core/java/com/android/server/UiThread.java +4 −1 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package com.android.server; import android.os.Handler; import android.os.Process; import android.os.Trace; /** Loading @@ -29,7 +30,9 @@ public final class UiThread extends ServiceThread { private static Handler sHandler; private UiThread() { super("android.ui", android.os.Process.THREAD_PRIORITY_FOREGROUND, false /*allowIo*/); super("android.ui", Process.THREAD_PRIORITY_FOREGROUND, false /*allowIo*/); // Make sure UiThread is in the fg stune boost group Process.setThreadGroup(Process.myTid(), Process.THREAD_GROUP_TOP_APP); } private static void ensureThreadLocked() { Loading Loading
cmds/bootanimation/bootanim.rc +1 −0 Original line number Diff line number Diff line Loading @@ -4,3 +4,4 @@ service bootanim /system/bin/bootanimation group graphics audio disabled oneshot writepid /dev/stune/top-app/tasks No newline at end of file
core/java/android/os/Process.java +5 −0 Original line number Diff line number Diff line Loading @@ -620,6 +620,9 @@ public class Process { * priority. * If the thread is a thread group leader, that is it's gettid() == getpid(), * then the other threads in the same thread group are _not_ affected. * * Does not set cpuset for some historical reason, just calls * libcutils::set_sched_policy(). */ public static final native void setThreadGroup(int tid, int group) throws IllegalArgumentException, SecurityException; Loading @@ -641,6 +644,8 @@ public class Process { * priority threads alone. group == THREAD_GROUP_BG_NONINTERACTIVE moves all * threads, regardless of priority, to the background scheduling group. * group == THREAD_GROUP_FOREGROUND is not allowed. * * Always sets cpusets. */ public static final native void setProcessGroup(int pid, int group) throws IllegalArgumentException, SecurityException; Loading
services/core/java/com/android/server/UiThread.java +4 −1 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package com.android.server; import android.os.Handler; import android.os.Process; import android.os.Trace; /** Loading @@ -29,7 +30,9 @@ public final class UiThread extends ServiceThread { private static Handler sHandler; private UiThread() { super("android.ui", android.os.Process.THREAD_PRIORITY_FOREGROUND, false /*allowIo*/); super("android.ui", Process.THREAD_PRIORITY_FOREGROUND, false /*allowIo*/); // Make sure UiThread is in the fg stune boost group Process.setThreadGroup(Process.myTid(), Process.THREAD_GROUP_TOP_APP); } private static void ensureThreadLocked() { Loading