Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a7541197 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Move CLIENT_PROTOCOL_VERSION to point of use"

parents 17ed973b e649a565
Loading
Loading
Loading
Loading
+9 −5
Original line number Original line Diff line number Diff line
@@ -16,14 +16,16 @@


package android.ddm;
package android.ddm;


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.Debug;
import android.os.UserHandle;
import android.os.UserHandle;
import android.util.Log;

import dalvik.system.VMRuntime;
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 java.nio.ByteBuffer;
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_WAIT = type("WAIT");
    public static final int CHUNK_FEAT = type("FEAT");
    public static final int CHUNK_FEAT = type("FEAT");


    private static final int CLIENT_PROTOCOL_VERSION = 1;

    private static DdmHandleHello mInstance = new DdmHandleHello();
    private static DdmHandleHello mInstance = new DdmHandleHello();


    private static final String[] FRAMEWORK_FEATURES = new String[] {
    private static final String[] FRAMEWORK_FEATURES = new String[] {
@@ -145,7 +149,7 @@ public class DdmHandleHello extends ChunkHandler {
                            + vmFlags.length() * 2
                            + vmFlags.length() * 2
                            + 1);
                            + 1);
        out.order(ChunkHandler.CHUNK_ORDER);
        out.order(ChunkHandler.CHUNK_ORDER);
        out.putInt(DdmServer.CLIENT_PROTOCOL_VERSION);
        out.putInt(CLIENT_PROTOCOL_VERSION);
        out.putInt(android.os.Process.myPid());
        out.putInt(android.os.Process.myPid());
        out.putInt(vmIdent.length());
        out.putInt(vmIdent.length());
        out.putInt(appName.length());
        out.putInt(appName.length());