Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9765e20d authored by Jeff Tinker's avatar Jeff Tinker
Browse files

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
parent 5459651b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -32053,6 +32053,7 @@ package android.os {
    field public static final int THREAD_PRIORITY_MORE_FAVORABLE = -1; // 0xffffffff
    field public static final int THREAD_PRIORITY_URGENT_AUDIO = -19; // 0xffffffed
    field public static final int THREAD_PRIORITY_URGENT_DISPLAY = -8; // 0xfffffff8
    field public static final int THREAD_PRIORITY_VIDEO = -10; // 0xfffffff6
  }
  public abstract class ProxyFileDescriptorCallback {
+9 −0
Original line number Diff line number Diff line
@@ -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)}, <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.