diff options
Diffstat (limited to 'core/java/android/os/Process.java')
| -rw-r--r-- | core/java/android/os/Process.java | 23 |
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. |
