public abstract static class HandleViewDebug.ViewDumpHandler extends JdwpInterceptor
Modifier and Type | Field and Description |
---|---|
static int |
CHUNK_FAIL |
static int |
CHUNK_HEADER_LEN |
static java.nio.ByteOrder |
CHUNK_ORDER |
static int |
DDMS_CMD |
static int |
DDMS_CMD_SET |
Constructor and Description |
---|
ViewDumpHandler(int chunkType) |
Modifier and Type | Method and Description |
---|---|
protected static Client |
checkDebuggerPortForAppName(Client client,
java.lang.String appName)
Check that the client is opened with the proper debugger port for the
specified application name, and if not, reopen it.
|
static java.lang.String |
getString(java.nio.ByteBuffer buf,
int len)
Utility function to copy a String out of a ByteBuffer.
|
protected void |
handleUnknownChunk(Client client,
int type,
java.nio.ByteBuffer data,
boolean isReply,
int msgId)
Handle chunks not recognized by handlers.
|
protected abstract void |
handleViewDebugResult(java.nio.ByteBuffer data) |
JdwpPacket |
intercept(JdwpAgent agent,
JdwpPacket packet) |
protected void |
waitForResult(long timeout,
java.util.concurrent.TimeUnit unit) |
public static final int CHUNK_HEADER_LEN
public static final java.nio.ByteOrder CHUNK_ORDER
public static final int CHUNK_FAIL
public static final int DDMS_CMD_SET
public static final int DDMS_CMD
protected abstract void handleViewDebugResult(java.nio.ByteBuffer data)
protected void waitForResult(long timeout, java.util.concurrent.TimeUnit unit)
protected void handleUnknownChunk(Client client, int type, java.nio.ByteBuffer data, boolean isReply, int msgId)
public static java.lang.String getString(java.nio.ByteBuffer buf, int len)
protected static Client checkDebuggerPortForAppName(Client client, java.lang.String appName)
client
- appName
- public JdwpPacket intercept(@NonNull JdwpAgent agent, @NonNull JdwpPacket packet)
intercept
in class JdwpInterceptor