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


Gérez les mises à jour de l'état des fils de discussion.

Résumé

Champs

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

Méthodes publiques

void clientDisconnected(ClientImpl client)

Le client est parti.

void clientReady(ClientImpl client)

Le client est prêt.

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

Point d'entrée du gestionnaire de blocs.

static void register(MonitorThread mt)

Enregistrez les paquets que vous prévoyez de recevoir du client.

static void requestThreadStackCallRefresh(ClientImpl client, int threadId)
static void requestThreadUpdate(ClientImpl client)

Cette méthode est appelée périodiquement à partir du thread UI.

static void sendSTKL(ClientImpl client, int threadId)

Envoyez une requête STKL (STacK List) au client.

static void sendTHEN(ClientImpl client, boolean enable)

Envoyez une requête THEN (THread notification ENable) au client.

Champs

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

Méthodes publiques

clientDisconnected

public void clientDisconnected (ClientImpl client)

Le client est parti.

Paramètres
client ClientImpl

clientReady

public void clientReady (ClientImpl client)

Le client est prêt.

Paramètres
client ClientImpl

handleChunk

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

Point d'entrée du gestionnaire de blocs.

Paramètres
client ClientImpl

type int

data ByteBuffer

isReply boolean

msgId int

s'inscrire

public static void register (MonitorThread mt)

Enregistrez les paquets que vous prévoyez de recevoir du client.

Paramètres
mt MonitorThread

requestThreadStackCallRefresh

public static void requestThreadStackCallRefresh (ClientImpl client, 
                int threadId)

Paramètres
client ClientImpl

threadId int

requestThreadUpdate

public static void requestThreadUpdate (ClientImpl client)

Cette méthode est appelée périodiquement à partir du thread UI. Pour éviter de bloquer l'UI pendant que nous demandons les mises à jour, nous créons un thread.

Paramètres
client ClientImpl

sendSTKL

public static void sendSTKL (ClientImpl client, 
                int threadId)

Envoyez une requête STKL (STacK List) au client. La VM suspend le thread cible, obtient sa pile et la renvoie. Si le thread n'est plus en cours d'exécution, un résultat d'échec est renvoyé.

Paramètres
client ClientImpl

threadId int

sendTHEN

public static void sendTHEN (ClientImpl client, 
                boolean enable)

Envoyez une requête THEN (THread notification ENable) au client.

Paramètres
client ClientImpl

enable boolean