HandleViewDebug

public final class HandleViewDebug
extends ChunkHandler

java.lang.Object
   ↳ com.android.tradefed.device.server.jdwp.JdwpInterceptor
     ↳ com.android.tradefed.device.server.jdwp.chunkhandler.ChunkHandler
       ↳ com.android.tradefed.device.server.jdwp.chunkhandler.HandleViewDebug


요약

공개 메서드

static void captureLayers(ClientImpl client, String viewRoot, DebugViewDumpHandler handler)
static void captureView(Client client, String viewRoot, String view, DebugViewDumpHandler handler)
void clientDisconnected(ClientImpl client)

클라이언트가 사라졌습니다.

void clientReady(ClientImpl client)

클라이언트가 준비되었습니다.

static void dumpDisplayList(Client client, String viewRoot, String view)
static void dumpTheme(ClientImpl client, String viewRoot, DebugViewDumpHandler handler)
static void dumpViewHierarchy(Client client, String viewRoot, boolean skipChildren, boolean includeProperties, boolean useV2, DebugViewDumpHandler handler)
void handleChunk(ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)

수신되는 청크를 처리합니다.

static void invalidateView(ClientImpl client, String viewRoot, String view)
static void invokeMethod(ClientImpl client, String viewRoot, String view, String method, Object... args)
static void listViewRoots(Client client, DebugViewDumpHandler replyHandler)
static void profileView(ClientImpl client, String viewRoot, String view, DebugViewDumpHandler handler)
static void register(MonitorThread mt)
static void requestLayout(ClientImpl client, String viewRoot, String view)
static void sendStartGlTracing(ClientImpl client)
static void sendStopGlTracing(ClientImpl client)
static void setLayoutParameter(ClientImpl client, String viewRoot, String view, String parameter, int value)

공개 메서드

captureLayers

public static void captureLayers (ClientImpl client, 
                String viewRoot, 
                DebugViewDumpHandler handler)

매개변수
client ClientImpl

viewRoot String

handler DebugViewDumpHandler

captureView

public static void captureView (Client client, 
                String viewRoot, 
                String view, 
                DebugViewDumpHandler handler)

매개변수
client Client

viewRoot String

view String

handler DebugViewDumpHandler

clientDisconnected

public void clientDisconnected (ClientImpl client)

클라이언트가 사라졌습니다. 이 클라이언트 연결과 연결된 리소스를 정리하는 데 사용할 수 있습니다.

매개변수
client ClientImpl

clientReady

public void clientReady (ClientImpl client)

클라이언트가 준비되었습니다. 모니터 스레드는 클라이언트가 DDM 인식으로 확인될 때 (일반적으로 HELO 응답을 수신한 후) 모든 핸들러에서 이 메서드를 호출합니다.

핸들러는 이 기회를 사용하여 클라이언트 측 활동을 초기화할 수 있습니다. 클라이언트에 메시지를 보낼 가능성이 있으므로 이 메서드는 IOException을 발생시킬 수 있습니다.

매개변수
client ClientImpl

dumpDisplayList

public static void dumpDisplayList (Client client, 
                String viewRoot, 
                String view)

매개변수
client Client

viewRoot String

view String

dumpTheme

public static void dumpTheme (ClientImpl client, 
                String viewRoot, 
                DebugViewDumpHandler handler)

매개변수
client ClientImpl

viewRoot String

handler DebugViewDumpHandler

dumpViewHierarchy

public static void dumpViewHierarchy (Client client, 
                String viewRoot, 
                boolean skipChildren, 
                boolean includeProperties, 
                boolean useV2, 
                DebugViewDumpHandler handler)

매개변수
client Client

viewRoot String

skipChildren boolean

includeProperties boolean

useV2 boolean

handler DebugViewDumpHandler

handleChunk

public void handleChunk (ClientImpl client, 
                int type, 
                ByteBuffer data, 
                boolean isReply, 
                int msgId)

수신되는 청크를 처리합니다. 청크 유형 'type'의 데이터는 'data'의 시작 부분에서 시작하여 data.limit()까지 계속됩니다.

'isReply'가 설정된 경우 'msgId'는 클라이언트에 전송된 요청의 ID입니다. 그렇지 않으면 클라이언트가 이 이벤트에 대해 생성한 ID입니다. 등록되지 않은 청크가 응답 패킷에 포함될 수 있습니다.

핸들러는 'data'의 콘텐츠를 수정할 수 없습니다.

매개변수
client ClientImpl

type int

data ByteBuffer

isReply boolean

msgId int

invalidateView

public static void invalidateView (ClientImpl client, 
                String viewRoot, 
                String view)

매개변수
client ClientImpl

viewRoot String

view String

invokeMethod

public static void invokeMethod (ClientImpl client, 
                String viewRoot, 
                String view, 
                String method, 
                Object... args)

매개변수
client ClientImpl

viewRoot String

view String

method String

args Object

listViewRoots

public static void listViewRoots (Client client, 
                DebugViewDumpHandler replyHandler)

매개변수
client Client

replyHandler DebugViewDumpHandler

profileView

public static void profileView (ClientImpl client, 
                String viewRoot, 
                String view, 
                DebugViewDumpHandler handler)

매개변수
client ClientImpl

viewRoot String

view String

handler DebugViewDumpHandler

register

public static void register (MonitorThread mt)

매개변수
mt MonitorThread

requestLayout

public static void requestLayout (ClientImpl client, 
                String viewRoot, 
                String view)

매개변수
client ClientImpl

viewRoot String

view String

sendStartGlTracing

public static void sendStartGlTracing (ClientImpl client)

매개변수
client ClientImpl

sendStopGlTracing

public static void sendStopGlTracing (ClientImpl client)

매개변수
client ClientImpl

setLayoutParameter

public static void setLayoutParameter (ClientImpl client, 
                String viewRoot, 
                String view, 
                String parameter, 
                int value)

매개변수
client ClientImpl

viewRoot String

view String

parameter String

value int