CapabilitiesNewReply

public class CapabilitiesNewReply
extends JdwpPayload

java.lang.Object
   ↳ com.android.tradefed.device.server.jdwp.JdwpPayload
     ↳ com.android.tradefed.device.server.jdwp.packets.CapabilitiesNewReply


The payload of a CapabilitiesNew reply of the JDWP protocol.

Summary

Constants

int CAN_REDEFINE_CLASSES_DEX_IDX

int CAN_REDEFINE_CLASSES_IDX

Public constructors

CapabilitiesNewReply()

Public methods

ByteBuffer getConverted()

Convert the reply payload such that if we are talking to an android device and it has RedefineClasses capabilities, the CanRedefineClasses byte is set to true.

void parse(ByteBuffer buffer, JdwpProtocol protocol)

Constants

CAN_REDEFINE_CLASSES_DEX_IDX

public static final int CAN_REDEFINE_CLASSES_DEX_IDX

Constant Value: 31 (0x0000001f)

CAN_REDEFINE_CLASSES_IDX

public static final int CAN_REDEFINE_CLASSES_IDX

Constant Value: 7 (0x00000007)

Public constructors

CapabilitiesNewReply

public CapabilitiesNewReply ()

Public methods

getConverted

public ByteBuffer getConverted ()

Convert the reply payload such that if we are talking to an android device and it has RedefineClasses capabilities, the CanRedefineClasses byte is set to true. Note that that byte is normally never set when talking to an Android device because it tries to prevent the debugger from feed it plan old Java class files.

Returns
ByteBuffer

parse

public void parse (ByteBuffer buffer, 
                JdwpProtocol protocol)

Parameters
buffer ByteBuffer

protocol JdwpProtocol