DebugViewDumpHandler
public
abstract
class
DebugViewDumpHandler
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.DebugViewDumpHandler | ||
סיכום
שדות | |
|---|---|
public
static
final
int |
CHUNK_VUGL
הפעלה/השבתה של מעקב אחרי קריאות OpenGL. |
public
static
final
int |
CHUNK_VULW
מפרטים את |
public
static
final
int |
CHUNK_VUOP
פעולת תצוגה כללית, הפרמטר הראשון בחבילה צריך להיות אחת מהקבועים VUOP_* שמופיעים בהמשך. |
public
static
final
int |
CHUNK_VURT
פעולה על שורש התצוגה, הפרמטר הראשון בחבילה צריך להיות אחת מהקבועים VURT_* |
Constructors ציבוריים | |
|---|---|
DebugViewDumpHandler(int chunkType)
|
|
methods ציבוריים | |
|---|---|
void
|
clientDisconnected(ClientImpl client)
הלקוח עזב. |
void
|
clientReady(ClientImpl client)
הלקוח מוכן. |
static
String
|
getString(ByteBuffer buf, int len)
פונקציית כלי עזר להעתקת מחרוזת מ-ByteBuffer. |
void
|
handleChunk(ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)
טיפול בחלק נכנס. |
שיטות מוגנות | |
|---|---|
abstract
void
|
handleViewDebugResult(ByteBuffer data)
|
void
|
waitForResult(long timeout, TimeUnit unit)
|
שדות
CHUNK_VUGL
public static final int CHUNK_VUGL
הפעלה/השבתה של מעקב אחרי קריאות OpenGL.
CHUNK_VULW
public static final int CHUNK_VULW
מפרטים את ViewRootImpl של התהליך הזה.
CHUNK_VUOP
public static final int CHUNK_VUOP
פעולת תצוגה כללית, הפרמטר הראשון בחבילה צריך להיות אחת מהקבועים VUOP_* שמופיעים בהמשך.
CHUNK_VURT
public static final int CHUNK_VURT
פעולה על שורש התצוגה, הפרמטר הראשון בחבילה צריך להיות אחת מהקבועים VURT_*
Constructors ציבוריים
DebugViewDumpHandler
public DebugViewDumpHandler (int chunkType)
| פרמטרים | |
|---|---|
chunkType |
int |
methods ציבוריים
clientDisconnected
public void clientDisconnected (ClientImpl client)
הלקוח עזב. אפשר להשתמש בו כדי לנקות את כל המשאבים שמשויכים לחיבור של הלקוח הזה.
| פרמטרים | |
|---|---|
client |
ClientImpl |
clientReady
public void clientReady (ClientImpl client)
הלקוח מוכן. שרשור המעקב קורא לשיטה הזו בכל המטפלים כשהלקוח מזוהה ככזה שמודע ל-DDM (בדרך כלל אחרי קבלת תגובת HELO).
ה-handler יכול לנצל את ההזדמנות הזו כדי לאתחל פעילות בצד הלקוח. יכול להיות שנרצה לשלוח הודעה ללקוח, ולכן השיטה הזו יכולה להחזיר IOException.
| פרמטרים | |
|---|---|
client |
ClientImpl |
getString
public static String getString (ByteBuffer buf,
int len)פונקציית כלי עזר להעתקת מחרוזת מ-ByteBuffer.
| פרמטרים | |
|---|---|
buf |
ByteBuffer |
len |
int |
| החזרות | |
|---|---|
String |
|
handleChunk
public void handleChunk (ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)
טיפול בחלק נכנס. הנתונים, מסוג המקטע 'type', מתחילים בתחילת הנתונים וממשיכים עד data.limit().
אם הערך של isReply מוגדר, msgId יהיה המזהה של הבקשה ששלחנו ללקוח. אחרת, זה המזהה שנוצר על ידי הלקוח לאירוע הזה. חשוב לדעת שאפשר לקבל נתחים בחבילות תשובה שלא נרשמנו לקבלתן.
ה-handler לא יכול לשנות את התוכן של 'data'.
| פרמטרים | |
|---|---|
client |
ClientImpl |
type |
int |
data |
ByteBuffer |
isReply |
boolean |
msgId |
int |
שיטות מוגנות
handleViewDebugResult
protected abstract void handleViewDebugResult (ByteBuffer data)
| פרמטרים | |
|---|---|
data |
ByteBuffer |
waitForResult
protected void waitForResult (long timeout,
TimeUnit unit)| פרמטרים | |
|---|---|
timeout |
long |
unit |
TimeUnit |