Move CLIENT_PROTOCOL_VERSION to point of use

Removes dependency on constant that was in libcore.

Bug: b/119742461
Test: m -j100 checkbuild
Change-Id: I1708652edf65789ef4bdb6e83568696f70f96bdd
This commit is contained in:
Orion Hodson
2019-02-04 16:54:24 +00:00
parent 1cbb20b2df
commit e649a56524

View File

@@ -16,13 +16,15 @@
package android.ddm;
import android.os.Debug;
import android.os.UserHandle;
import android.util.Log;
import dalvik.system.VMRuntime;
import org.apache.harmony.dalvik.ddmc.Chunk;
import org.apache.harmony.dalvik.ddmc.ChunkHandler;
import org.apache.harmony.dalvik.ddmc.DdmServer;
import android.util.Log;
import android.os.Debug;
import android.os.UserHandle;
import dalvik.system.VMRuntime;
import java.nio.ByteBuffer;
@@ -35,6 +37,8 @@ public class DdmHandleHello extends ChunkHandler {
public static final int CHUNK_WAIT = type("WAIT");
public static final int CHUNK_FEAT = type("FEAT");
private static final int CLIENT_PROTOCOL_VERSION = 1;
private static DdmHandleHello mInstance = new DdmHandleHello();
private static final String[] FRAMEWORK_FEATURES = new String[] {
@@ -145,7 +149,7 @@ public class DdmHandleHello extends ChunkHandler {
+ vmFlags.length() * 2
+ 1);
out.order(ChunkHandler.CHUNK_ORDER);
out.putInt(DdmServer.CLIENT_PROTOCOL_VERSION);
out.putInt(CLIENT_PROTOCOL_VERSION);
out.putInt(android.os.Process.myPid());
out.putInt(vmIdent.length());
out.putInt(appName.length());