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 | ||
التعامل مع إشعارات حالة المحادثة
ملخّص
الحقول | |
|---|---|
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
|
الطُرق العامة | |
|---|---|
void
|
clientDisconnected(ClientImpl client)
تم إغلاق التطبيق. |
void
|
clientReady(ClientImpl client)
العميل جاهز. |
void
|
handleChunk(ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)
نقطة دخول معالج الأجزاء |
static
void
|
register(MonitorThread mt)
تسجيل الحِزم التي نتوقّع تلقّيها من العميل |
static
void
|
requestThreadStackCallRefresh(ClientImpl client, int threadId)
|
static
void
|
requestThreadUpdate(ClientImpl client)
يتم استدعاء هذه الطريقة بشكل دوري من سلسلة UI. |
static
void
|
sendSTKL(ClientImpl client, int threadId)
أرسِل طلب STKL (قائمة STacK) إلى العميل. |
static
void
|
sendTHEN(ClientImpl client, boolean enable)
أرسِل طلب THEN (تفعيل إشعارات المحادثات) إلى العميل. |
الحقول
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
الطُرق العامة
clientDisconnected
public void clientDisconnected (ClientImpl client)
تم إغلاق التطبيق.
| المعلمات | |
|---|---|
client |
ClientImpl |
handleChunk
public void handleChunk (ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)
نقطة دخول معالج الأجزاء
| المعلمات | |
|---|---|
client |
ClientImpl |
type |
int |
data |
ByteBuffer |
isReply |
boolean |
msgId |
int |
تسجيل
public static void register (MonitorThread mt)
تسجيل الحِزم التي نتوقّع تلقّيها من العميل
| المعلمات | |
|---|---|
mt |
MonitorThread |
requestThreadStackCallRefresh
public static void requestThreadStackCallRefresh (ClientImpl client, int threadId)
| المعلمات | |
|---|---|
client |
ClientImpl |
threadId |
int |
requestThreadUpdate
public static void requestThreadUpdate (ClientImpl client)
يتم استدعاء هذه الطريقة بشكل دوري من سلسلة واجهة المستخدم. ولتجنُّب قفل واجهة المستخدِم أثناء طلب التحديثات، ننشئ سلسلة محادثات جديدة.
| المعلمات | |
|---|---|
client |
ClientImpl |
sendSTKL
public static void sendSTKL (ClientImpl client, int threadId)
أرسِل طلب STKL (قائمة STacK) إلى العميل. ستعلّق الآلة الافتراضية سلسلة التعليمات المستهدَفة، وستحصل على حزمة التعليمات الخاصة بها، ثم ستعرضها. إذا لم يعُد مؤشر الترابط قيد التشغيل، سيتم عرض نتيجة تعذُّر.
| المعلمات | |
|---|---|
client |
ClientImpl |
threadId |
int |
sendTHEN
public static void sendTHEN (ClientImpl client, boolean enable)
أرسِل طلب THEN (تفعيل إشعارات المحادثات) إلى العميل.
| المعلمات | |
|---|---|
client |
ClientImpl |
enable |
boolean |