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

Commit 5c92ce4b authored by Charles Munger's avatar Charles Munger Committed by Michael Wright
Browse files

Add ranges to priority calls

Test: m
Change-Id: I3e6fe3c667d9b4f25413d8b3f4eb20944fd956f3
parent efdc1c87
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -33021,7 +33021,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);
@@ -33036,8 +33036,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;