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

剖析

public void parse (ByteBuffer buffer, 
                JdwpProtocol protocol)

參數
buffer ByteBuffer

protocol JdwpProtocol