From 9765e20d18ff6df69c4839d35ac16ad26324ff4e Mon Sep 17 00:00:00 2001 From: Jeff Tinker Date: Mon, 8 Jan 2018 15:05:48 -0800 Subject: 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 --- core/java/android/os/Process.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'core/java/android/os/Process.java') 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 @@ -268,6 +268,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)}, not 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. -- cgit v1.2.3