diff options
| author | Chris Wailes <chriswailes@google.com> | 2019-01-11 13:19:20 -0800 |
|---|---|---|
| committer | Chris Wailes <chriswailes@google.com> | 2019-01-22 16:07:31 -0800 |
| commit | efce929711536274fddc0642df162df1dddc7752 (patch) | |
| tree | 8c5e7a25eeffefc1d4507686ae8dae60892be354 /core/java/android/os/Process.java | |
| parent | aa1c962ded6bfdf0dd4ed2152320f75459311e93 (diff) | |
Code cleanup to conform to style guide / linter.
This commit made the following changes to make the code conform to the
Frameworks style guide:
* Re-named variables
* Re-flowed code
* Organized includes
Topic: zygote-prefork
Test: make & flash & launch apps
Bug: 68253328
Change-Id: I9274b32f1f606f29f6eb3a1e5068ca18f607afe7
Diffstat (limited to 'core/java/android/os/Process.java')
| -rw-r--r-- | core/java/android/os/Process.java | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/core/java/android/os/Process.java b/core/java/android/os/Process.java index f2a9adb6feea..07c4933e2e3f 100644 --- a/core/java/android/os/Process.java +++ b/core/java/android/os/Process.java @@ -32,16 +32,6 @@ public class Process { private static final String LOG_TAG = "Process"; /** - * @hide for internal use only. - */ - public static final String ZYGOTE_SOCKET = "zygote"; - - /** - * @hide for internal use only. - */ - public static final String SECONDARY_ZYGOTE_SOCKET = "zygote_secondary"; - - /** * An invalid UID value. */ public static final int INVALID_UID = -1; @@ -479,8 +469,7 @@ public class Process { * State associated with the zygote process. * @hide */ - public static final ZygoteProcess zygoteProcess = - new ZygoteProcess(ZYGOTE_SOCKET, SECONDARY_ZYGOTE_SOCKET); + public static final ZygoteProcess ZYGOTE_PROCESS = new ZygoteProcess(); /** * Start a new process. @@ -538,7 +527,7 @@ public class Process { @Nullable String[] packagesForUid, @Nullable String[] visibleVols, @Nullable String[] zygoteArgs) { - return zygoteProcess.start(processClass, niceName, uid, gid, gids, + return ZYGOTE_PROCESS.start(processClass, niceName, uid, gid, gids, runtimeFlags, mountExternal, targetSdkVersion, seInfo, abi, instructionSet, appDataDir, invokeWith, packageName, packagesForUid, visibleVols, zygoteArgs); |
