summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2019-01-15 16:08:07 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2019-01-15 16:08:07 +0000
commitd08f18b455beb9cd981369df0561b54c74482e54 (patch)
tree102ffd73da19cfa5a312d639687201215a690ef6
parent7c6e34b08cb438936088e9acf7239ad58901f2d4 (diff)
parentdbf6abc35757692de776cefc0f0944bfe316accc (diff)
Merge "Make some Process constants @TestApi."
-rw-r--r--api/test-current.txt5
-rw-r--r--core/java/android/os/Process.java5
2 files changed, 10 insertions, 0 deletions
diff --git a/api/test-current.txt b/api/test-current.txt
index 1ef309686389..a421da42b186 100644
--- a/api/test-current.txt
+++ b/api/test-current.txt
@@ -966,6 +966,11 @@ package android.os {
public class Process {
method public static final int getThreadScheduler(int) throws java.lang.IllegalArgumentException;
+ field public static final int FIRST_APP_ZYGOTE_ISOLATED_UID = 90000; // 0x15f90
+ field public static final int FIRST_ISOLATED_UID = 99000; // 0x182b8
+ field public static final int LAST_APP_ZYGOTE_ISOLATED_UID = 98999; // 0x182b7
+ field public static final int LAST_ISOLATED_UID = 99999; // 0x1869f
+ field public static final int NUM_UIDS_PER_APP_ZYGOTE = 100; // 0x64
}
public final class RemoteCallback implements android.os.Parcelable {
diff --git a/core/java/android/os/Process.java b/core/java/android/os/Process.java
index ee56e3d0ad16..760fef7566c7 100644
--- a/core/java/android/os/Process.java
+++ b/core/java/android/os/Process.java
@@ -208,30 +208,35 @@ public class Process {
* First uid used for fully isolated sandboxed processes spawned from an app zygote
* @hide
*/
+ @TestApi
public static final int FIRST_APP_ZYGOTE_ISOLATED_UID = 90000;
/**
* Number of UIDs we allocate per application zygote
* @hide
*/
+ @TestApi
public static final int NUM_UIDS_PER_APP_ZYGOTE = 100;
/**
* Last uid used for fully isolated sandboxed processes spawned from an app zygote
* @hide
*/
+ @TestApi
public static final int LAST_APP_ZYGOTE_ISOLATED_UID = 98999;
/**
* First uid used for fully isolated sandboxed processes (with no permissions of their own)
* @hide
*/
+ @TestApi
public static final int FIRST_ISOLATED_UID = 99000;
/**
* Last uid used for fully isolated sandboxed processes (with no permissions of their own)
* @hide
*/
+ @TestApi
public static final int LAST_ISOLATED_UID = 99999;
/**