public final class HandleViewDebug extends ChunkHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
HandleViewDebug.ViewDumpHandler |
| Modifier and Type | Field and Description |
|---|---|
static int |
CHUNK_VUGL
Enable/Disable tracing of OpenGL calls.
|
static int |
CHUNK_VULW
List
ViewRootImpl's of this process. |
static int |
CHUNK_VUOP
Generic View Operation, first parameter in the packet should be one of the
VUOP_* constants below.
|
static int |
CHUNK_VURT
Operation on view root, first parameter in packet should be one of VURT_* constants
|
CHUNK_FAIL, CHUNK_HEADER_LEN, CHUNK_ORDER, DDMS_CMD, DDMS_CMD_SET| Modifier and Type | Method and Description |
|---|---|
static void |
captureLayers(Client client,
java.lang.String viewRoot,
HandleViewDebug.ViewDumpHandler handler) |
static void |
captureView(Client client,
java.lang.String viewRoot,
java.lang.String view,
HandleViewDebug.ViewDumpHandler handler) |
void |
clientDisconnected(Client client)
Client has gone away.
|
void |
clientReady(Client client)
Client is ready.
|
static void |
dumpDisplayList(Client client,
java.lang.String viewRoot,
java.lang.String view) |
static void |
dumpTheme(Client client,
java.lang.String viewRoot,
HandleViewDebug.ViewDumpHandler handler) |
static void |
dumpViewHierarchy(Client client,
java.lang.String viewRoot,
boolean skipChildren,
boolean includeProperties,
boolean useV2,
HandleViewDebug.ViewDumpHandler handler) |
void |
handleChunk(Client client,
int type,
java.nio.ByteBuffer data,
boolean isReply,
int msgId)
Handle an incoming chunk.
|
static void |
invalidateView(Client client,
java.lang.String viewRoot,
java.lang.String view) |
static void |
invokeMethod(Client client,
java.lang.String viewRoot,
java.lang.String view,
java.lang.String method,
java.lang.Object... args) |
static void |
listViewRoots(Client client,
HandleViewDebug.ViewDumpHandler replyHandler) |
static void |
profileView(Client client,
java.lang.String viewRoot,
java.lang.String view,
HandleViewDebug.ViewDumpHandler handler) |
static void |
register(com.android.ddmlib.MonitorThread mt) |
static void |
requestLayout(Client client,
java.lang.String viewRoot,
java.lang.String view) |
static void |
sendStartGlTracing(Client client) |
static void |
sendStopGlTracing(Client client) |
static void |
setLayoutParameter(Client client,
java.lang.String viewRoot,
java.lang.String view,
java.lang.String parameter,
int value) |
checkDebuggerPortForAppName, getString, handleUnknownChunk, interceptpublic static final int CHUNK_VUGL
public static final int CHUNK_VULW
ViewRootImpl's of this process.public static final int CHUNK_VURT
public static final int CHUNK_VUOP
public static void register(com.android.ddmlib.MonitorThread mt)
public void clientReady(Client client) throws java.io.IOException
ChunkHandlerjava.io.IOExceptionpublic void clientDisconnected(Client client)
ChunkHandlerpublic static void listViewRoots(Client client, HandleViewDebug.ViewDumpHandler replyHandler) throws java.io.IOException
java.io.IOExceptionpublic static void dumpViewHierarchy(@NonNull
Client client,
@NonNull
java.lang.String viewRoot,
boolean skipChildren,
boolean includeProperties,
boolean useV2,
@NonNull
HandleViewDebug.ViewDumpHandler handler)
throws java.io.IOException
java.io.IOExceptionpublic static void captureLayers(@NonNull
Client client,
@NonNull
java.lang.String viewRoot,
@NonNull
HandleViewDebug.ViewDumpHandler handler)
throws java.io.IOException
java.io.IOExceptionpublic static void profileView(@NonNull
Client client,
@NonNull
java.lang.String viewRoot,
@NonNull
java.lang.String view,
@NonNull
HandleViewDebug.ViewDumpHandler handler)
throws java.io.IOException
java.io.IOExceptionpublic static void captureView(@NonNull
Client client,
@NonNull
java.lang.String viewRoot,
@NonNull
java.lang.String view,
@NonNull
HandleViewDebug.ViewDumpHandler handler)
throws java.io.IOException
java.io.IOExceptionpublic static void invalidateView(@NonNull
Client client,
@NonNull
java.lang.String viewRoot,
@NonNull
java.lang.String view)
throws java.io.IOException
java.io.IOExceptionpublic static void requestLayout(@NonNull
Client client,
@NonNull
java.lang.String viewRoot,
@NonNull
java.lang.String view)
throws java.io.IOException
java.io.IOExceptionpublic static void dumpDisplayList(@NonNull
Client client,
@NonNull
java.lang.String viewRoot,
@NonNull
java.lang.String view)
throws java.io.IOException
java.io.IOExceptionpublic static void dumpTheme(@NonNull
Client client,
@NonNull
java.lang.String viewRoot,
@NonNull
HandleViewDebug.ViewDumpHandler handler)
throws java.io.IOException
java.io.IOExceptionpublic static void invokeMethod(@NonNull
Client client,
@NonNull
java.lang.String viewRoot,
@NonNull
java.lang.String view,
@NonNull
java.lang.String method,
java.lang.Object... args)
throws java.io.IOException
java.io.IOExceptionpublic static void setLayoutParameter(@NonNull
Client client,
@NonNull
java.lang.String viewRoot,
@NonNull
java.lang.String view,
@NonNull
java.lang.String parameter,
int value)
throws java.io.IOException
java.io.IOExceptionpublic void handleChunk(Client client, int type, java.nio.ByteBuffer data, boolean isReply, int msgId)
ChunkHandlerpublic static void sendStartGlTracing(Client client) throws java.io.IOException
java.io.IOExceptionpublic static void sendStopGlTracing(Client client) throws java.io.IOException
java.io.IOException