Merge "Set android.display thread to top-app cpusets and schedtune group" into oc-dev
am: 5362f10dad
Change-Id: I4993d49f7bcf9606e7676b17f7dacbc0e457e061
This commit is contained in:
@@ -660,7 +660,7 @@ public class Process {
|
||||
* @hide
|
||||
* @param tid The identifier of the thread to change.
|
||||
* @param group The target group for this thread from THREAD_GROUP_*.
|
||||
*
|
||||
*
|
||||
* @throws IllegalArgumentException Throws IllegalArgumentException if
|
||||
* <var>tid</var> does not exist.
|
||||
* @throws SecurityException Throws SecurityException if your process does
|
||||
@@ -675,6 +675,21 @@ public class Process {
|
||||
public static final native void setThreadGroup(int tid, int group)
|
||||
throws IllegalArgumentException, SecurityException;
|
||||
|
||||
/**
|
||||
* Sets the scheduling group and the corresponding cpuset group
|
||||
* @hide
|
||||
* @param tid The identifier of the thread to change.
|
||||
* @param group The target group for this thread from THREAD_GROUP_*.
|
||||
*
|
||||
* @throws IllegalArgumentException Throws IllegalArgumentException if
|
||||
* <var>tid</var> does not exist.
|
||||
* @throws SecurityException Throws SecurityException if your process does
|
||||
* not have permission to modify the given thread, or to use the given
|
||||
* priority.
|
||||
*/
|
||||
public static final native void setThreadGroupAndCpuset(int tid, int group)
|
||||
throws IllegalArgumentException, SecurityException;
|
||||
|
||||
/**
|
||||
* Sets the scheduling group for a process and all child threads
|
||||
* @hide
|
||||
|
||||
Reference in New Issue
Block a user