CapabilitiesNewReply
public
class
CapabilitiesNewReply
extends JdwpPayload
| java.lang.Object | ||
| ↳ | com.android.tradefed.device.server.jdwp.JdwpPayload | |
| ↳ | com.android.tradefed.device.server.jdwp.packets.CapabilitiesNewReply | |
JDWP 协议的 CapabilitiesNew 回复的载荷。
摘要
常量 | |
|---|---|
int |
CAN_REDEFINE_CLASSES_DEX_IDX
|
int |
CAN_REDEFINE_CLASSES_IDX
|
公共构造函数 | |
|---|---|
CapabilitiesNewReply()
|
|
公共方法 | |
|---|---|
ByteBuffer
|
getConverted()
转换回复载荷,以便在与 Android 设备通信且该设备具有 RedefineClasses 功能时,将 CanRedefineClasses 字节设置为 true。 |
void
|
parse(ByteBuffer buffer, JdwpProtocol protocol)
|
常量
CAN_REDEFINE_CLASSES_DEX_IDX
public static final int CAN_REDEFINE_CLASSES_DEX_IDX
常量值: 31 (0x0000001f)
CAN_REDEFINE_CLASSES_IDX
public static final int CAN_REDEFINE_CLASSES_IDX
常量值: 7 (0x00000007)
公共构造函数
CapabilitiesNewReply
public CapabilitiesNewReply ()
公共方法
getConverted
public ByteBuffer getConverted ()
转换回复载荷,以便在与 Android 设备通信且该设备具有 RedefineClasses 功能时,将 CanRedefineClasses 字节设置为 true。请注意,在与 Android 设备通信时,该字节通常永远不会设置,因为这样可以防止调试器向其提供普通的旧 Java 类文件。
| 返回 | |
|---|---|
ByteBuffer |
|
parse
public void parse (ByteBuffer buffer,
JdwpProtocol protocol)| 参数 | |
|---|---|
buffer |
ByteBuffer |
protocol |
JdwpProtocol |