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

Commit b97eff1d authored by Michael Wright's avatar Michael Wright Committed by Android (Google) Code Review
Browse files

Merge "Add ranges to priority calls" into main

parents a0d2cc09 5c92ce4b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -33145,7 +33145,7 @@ package android.os {
    method public static long getStartRequestedElapsedRealtime();
    method public static long getStartRequestedUptimeMillis();
    method public static long getStartUptimeMillis();
    method public static final int getThreadPriority(int) throws java.lang.IllegalArgumentException;
    method @IntRange(from=0xffffffec, to=android.os.Process.THREAD_PRIORITY_LOWEST) public static final int getThreadPriority(int) throws java.lang.IllegalArgumentException;
    method public static final int getUidForName(String);
    method public static final boolean is64Bit();
    method public static boolean isApplicationUid(int);
@@ -33160,8 +33160,8 @@ package android.os {
    method public static final int myUid();
    method public static android.os.UserHandle myUserHandle();
    method public static final void sendSignal(int, int);
    method public static final void setThreadPriority(int, int) throws java.lang.IllegalArgumentException, java.lang.SecurityException;
    method public static final void setThreadPriority(int) throws java.lang.IllegalArgumentException, java.lang.SecurityException;
    method public static final void setThreadPriority(int, @IntRange(from=0xffffffec, to=android.os.Process.THREAD_PRIORITY_LOWEST) int) throws java.lang.IllegalArgumentException, java.lang.SecurityException;
    method public static final void setThreadPriority(@IntRange(from=0xffffffec, to=android.os.Process.THREAD_PRIORITY_LOWEST) int) throws java.lang.IllegalArgumentException, java.lang.SecurityException;
    method @Deprecated public static final boolean supportsProcesses();
    field public static final int BLUETOOTH_UID = 1002; // 0x3ea
    field public static final int FIRST_APPLICATION_UID = 10000; // 0x2710
+6 −2
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ import static android.annotation.SystemApi.Client.MODULE_LIBRARIES;

import android.annotation.ElapsedRealtimeLong;
import android.annotation.FlaggedApi;
import android.annotation.IntRange;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.SuppressLint;
@@ -1122,7 +1123,8 @@ public class Process {
     * priority.
     */
    @android.ravenwood.annotation.RavenwoodReplace
    public static final native void setThreadPriority(int tid, int priority)
    public static final native void setThreadPriority(int tid,
            @IntRange(from = -20, to = THREAD_PRIORITY_LOWEST) int priority)
            throws IllegalArgumentException, SecurityException;

    /** @hide */
@@ -1288,7 +1290,8 @@ public class Process {
     * @see #setThreadPriority(int, int)
     */
    @android.ravenwood.annotation.RavenwoodReplace
    public static final native void setThreadPriority(int priority)
    public static final native void setThreadPriority(
            @IntRange(from = -20, to = THREAD_PRIORITY_LOWEST) int priority)
            throws IllegalArgumentException, SecurityException;

    /** @hide */
@@ -1310,6 +1313,7 @@ public class Process {
     * <var>tid</var> does not exist.
     */
    @android.ravenwood.annotation.RavenwoodReplace
    @IntRange(from = -20, to = THREAD_PRIORITY_LOWEST)
    public static final native int getThreadPriority(int tid)
            throws IllegalArgumentException;