diff options
| author | Chris Wailes <chriswailes@google.com> | 2019-01-11 13:19:20 -0800 |
|---|---|---|
| committer | Chris Wailes <chriswailes@google.com> | 2019-01-23 13:34:52 -0800 |
| commit | 6e3c7ced5edcc0bc1a842a9e11f2d1f232865f28 (patch) | |
| tree | 35c12b654b85eeacb6ab89289ed463a8e791a44f /core/java/android/os/Process.java | |
| parent | 8b35ba25a9663264e6e50867f124f9100953299a (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
Merged-In: 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 8254c534c7df..c7afd411936c 100644 --- a/core/java/android/os/Process.java +++ b/core/java/android/os/Process.java @@ -30,16 +30,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; @@ -454,8 +444,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. @@ -507,7 +496,7 @@ public class Process { String appDataDir, String invokeWith, 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, zygoteArgs); } |
