HandleThread
public
final
class
HandleThread
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.HandleThread | ||
Handle thread status updates.
Summary
Fields | |
|---|---|
public
static
final
int |
CHUNK_STKL
|
public
static
final
int |
CHUNK_THCR
|
public
static
final
int |
CHUNK_THDE
|
public
static
final
int |
CHUNK_THEN
|
public
static
final
int |
CHUNK_THNM
|
public
static
final
int |
CHUNK_THST
|
Public methods | |
|---|---|
void
|
clientDisconnected(ClientImpl client)
Client went away. |
void
|
clientReady(ClientImpl client)
Client is ready. |
void
|
handleChunk(ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)
Chunk handler entry point. |
static
void
|
register(MonitorThread mt)
Register for the packets we expect to get from the client. |
static
void
|
requestThreadStackCallRefresh(ClientImpl client, int threadId)
|
static
void
|
requestThreadUpdate(ClientImpl client)
This is called periodically from the UI thread. |
static
void
|
sendSTKL(ClientImpl client, int threadId)
Send a STKL (STacK List) request to the client. |
static
void
|
sendTHEN(ClientImpl client, boolean enable)
Send a THEN (THread notification ENable) request to the client. |
Fields
CHUNK_STKL
public static final int CHUNK_STKL
CHUNK_THCR
public static final int CHUNK_THCR
CHUNK_THDE
public static final int CHUNK_THDE
CHUNK_THEN
public static final int CHUNK_THEN
CHUNK_THNM
public static final int CHUNK_THNM
CHUNK_THST
public static final int CHUNK_THST
Public methods
clientDisconnected
public void clientDisconnected (ClientImpl client)
Client went away.
| Parameters | |
|---|---|
client |
ClientImpl |
clientReady
public void clientReady (ClientImpl client)
Client is ready.
| Parameters | |
|---|---|
client |
ClientImpl |
handleChunk
public void handleChunk (ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)
Chunk handler entry point.
| Parameters | |
|---|---|
client |
ClientImpl |
type |
int |
data |
ByteBuffer |
isReply |
boolean |
msgId |
int |
register
public static void register (MonitorThread mt)
Register for the packets we expect to get from the client.
| Parameters | |
|---|---|
mt |
MonitorThread |
requestThreadStackCallRefresh
public static void requestThreadStackCallRefresh (ClientImpl client, int threadId)
| Parameters | |
|---|---|
client |
ClientImpl |
threadId |
int |
requestThreadUpdate
public static void requestThreadUpdate (ClientImpl client)
This is called periodically from the UI thread. To avoid locking the UI while we request the updates, we create a new thread.
| Parameters | |
|---|---|
client |
ClientImpl |
sendSTKL
public static void sendSTKL (ClientImpl client, int threadId)
Send a STKL (STacK List) request to the client. The VM will suspend the target thread, obtain its stack, and return it. If the thread is no longer running, a failure result will be returned.
| Parameters | |
|---|---|
client |
ClientImpl |
threadId |
int |
sendTHEN
public static void sendTHEN (ClientImpl client, boolean enable)
Send a THEN (THread notification ENable) request to the client.
| Parameters | |
|---|---|
client |
ClientImpl |
enable |
boolean |