summaryrefslogtreecommitdiff
path: root/core/java/android/os/Process.java
diff options
context:
space:
mode:
authorRobert Sesek <rsesek@google.com>2016-10-22 03:12:18 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-10-22 03:12:18 +0000
commitf80fab010a46f322a2bcb33586665bdaf4afe6ce (patch)
tree8be781fcfc2660fe976c90c3b253443a4ffa40a0 /core/java/android/os/Process.java
parent50f9b6e71f8b91848278aae896feb2902f2c19a1 (diff)
parent8be2850546117a536abd48b249d9d1843f51bad0 (diff)
Merge "Create the WebViewZygote and implement WebViewZygoteInit."
am: 8be2850546 Change-Id: I608ea53be52cb91f0e8cf73998de4578b39e099a
Diffstat (limited to 'core/java/android/os/Process.java')
-rw-r--r--core/java/android/os/Process.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/core/java/android/os/Process.java b/core/java/android/os/Process.java
index f9dee92fdf43..4eee8541f3bb 100644
--- a/core/java/android/os/Process.java
+++ b/core/java/android/os/Process.java
@@ -20,6 +20,7 @@ import android.annotation.TestApi;
import android.system.Os;
import android.system.OsConstants;
import android.util.Log;
+import android.webkit.WebViewZygote;
import dalvik.system.VMRuntime;
/**
@@ -133,6 +134,12 @@ public class Process {
public static final int CAMERASERVER_UID = 1047;
/**
+ * Defines the UID/GID for the WebView zygote process.
+ * @hide
+ */
+ public static final int WEBVIEW_ZYGOTE_UID = 1051;
+
+ /**
* Defines the start of a range of UIDs (and GIDs), going from this
* number to {@link #LAST_APPLICATION_UID} that are reserved for assigning
* to applications.
@@ -425,6 +432,22 @@ public class Process {
abi, instructionSet, appDataDir, zygoteArgs);
}
+ /** @hide */
+ public static final ProcessStartResult startWebView(final String processClass,
+ final String niceName,
+ int uid, int gid, int[] gids,
+ int debugFlags, int mountExternal,
+ int targetSdkVersion,
+ String seInfo,
+ String abi,
+ String instructionSet,
+ String appDataDir,
+ String[] zygoteArgs) {
+ return WebViewZygote.getProcess().start(processClass, niceName, uid, gid, gids,
+ debugFlags, mountExternal, targetSdkVersion, seInfo,
+ abi, instructionSet, appDataDir, zygoteArgs);
+ }
+
/**
* Returns elapsed milliseconds of the time this process has run.
* @return Returns the number of milliseconds this process has return.