diff options
| author | Jeff Tinker <jtinker@google.com> | 2018-01-08 15:05:48 -0800 |
|---|---|---|
| committer | Jeff Tinker <jtinker@google.com> | 2018-01-08 23:24:32 +0000 |
| commit | 9765e20d18ff6df69c4839d35ac16ad26324ff4e (patch) | |
| tree | b6c74c2752290ba7f792e3fbc97f0bf418548f52 /core/java/android/os/Process.java | |
| parent | 5459651bf6cd645e4595363f649f1140b1f1a38a (diff) | |
Add video priority to Process.java
The definitions in Process.java need to be kept in sync with
definitions in system/core/libsystem/include/system/thread_defs.h.
This CL adds the video thread priority to Process.java
because it was previously added only to thread_defs.h.
bug:65462846
test: make, make offline-sdk-docs
Change-Id: I5fdbcc91adbb11179ab57c9e9e257411aac33686
Diffstat (limited to 'core/java/android/os/Process.java')
| -rw-r--r-- | core/java/android/os/Process.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/os/Process.java b/core/java/android/os/Process.java index 0874d93e8262..e6cf5e6a6cbf 100644 --- a/core/java/android/os/Process.java +++ b/core/java/android/os/Process.java @@ -269,6 +269,15 @@ public class Process { public static final int THREAD_PRIORITY_URGENT_DISPLAY = -8; /** + * Standard priority of video threads. Applications can not normally + * change to this priority. + * Use with {@link #setThreadPriority(int)} and + * {@link #setThreadPriority(int, int)}, <b>not</b> with the normal + * {@link java.lang.Thread} class. + */ + public static final int THREAD_PRIORITY_VIDEO = -10; + + /** * Standard priority of audio threads. Applications can not normally * change to this priority. * Use with {@link #setThreadPriority(int)} and |
