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:
Joel Fernandes
2017-04-06 22:57:31 +00:00
committed by android-build-merger
4 changed files with 48 additions and 1 deletions

View File

@@ -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