summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Rick Yiu <rickyiu@google.com> 2020-10-02 12:42:23 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2020-10-02 12:42:23 +0000
commit1cb565ec3c2548b843ebeeb6d77e200ed9382fb7 (patch)
tree57dc4c6e11bdc28ca0c2c24752e4cc1b0a1d2a43
parentf7ac1ee91d68d46a3f757f702f28752ad3c3682d (diff)
parentfe6160ab9ce6c83ef6a1cefbc57955b4d9c3849b (diff)
Merge "Revert "Refine documentation for Process.setThreadPriority"" am: fe6160ab9c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1440031 Change-Id: Ib2734db1b8a0e162088410fa7264ad8f1a5c4519
-rw-r--r--core/java/android/os/Process.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/core/java/android/os/Process.java b/core/java/android/os/Process.java
index 52dd86554e91..2aa5c13e6e9f 100644
--- a/core/java/android/os/Process.java
+++ b/core/java/android/os/Process.java
@@ -851,12 +851,11 @@ public class Process {
/**
* Set the priority of a thread, based on Linux priorities.
- *
- * @param tid The identifier of the thread/process to change. It should be
- * the native thread id but not the managed id of {@link java.lang.Thread}.
+ *
+ * @param tid The identifier of the thread/process to change.
* @param priority A Linux priority level, from -20 for highest scheduling
* priority to 19 for lowest scheduling priority.
- *
+ *
* @throws IllegalArgumentException Throws IllegalArgumentException if
* <var>tid</var> does not exist.
* @throws SecurityException Throws SecurityException if your process does