HandleViewDebug

public final class HandleViewDebug
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.HandleViewDebug


סיכום

‫methods ציבוריים

static void captureLayers(ClientImpl client, String viewRoot, DebugViewDumpHandler handler)
static void captureView(Client client, String viewRoot, String view, DebugViewDumpHandler handler)
void clientDisconnected(ClientImpl client)

הלקוח עזב.

void clientReady(ClientImpl client)

הלקוח מוכן.

static void dumpDisplayList(Client client, String viewRoot, String view)
static void dumpTheme(ClientImpl client, String viewRoot, DebugViewDumpHandler handler)
static void dumpViewHierarchy(Client client, String viewRoot, boolean skipChildren, boolean includeProperties, boolean useV2, DebugViewDumpHandler handler)
void handleChunk(ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)

טיפול בחלק נכנס.

static void invalidateView(ClientImpl client, String viewRoot, String view)
static void invokeMethod(ClientImpl client, String viewRoot, String view, String method, Object... args)
static void listViewRoots(Client client, DebugViewDumpHandler replyHandler)
static void profileView(ClientImpl client, String viewRoot, String view, DebugViewDumpHandler handler)
static void register(MonitorThread mt)
static void requestLayout(ClientImpl client, String viewRoot, String view)
static void sendStartGlTracing(ClientImpl client)
static void sendStopGlTracing(ClientImpl client)
static void setLayoutParameter(ClientImpl client, String viewRoot, String view, String parameter, int value)

‫methods ציבוריים

captureLayers

public static void captureLayers (ClientImpl client, 
                String viewRoot, 
                DebugViewDumpHandler handler)

פרמטרים
client ClientImpl

viewRoot String

handler DebugViewDumpHandler

captureView

public static void captureView (Client client, 
                String viewRoot, 
                String view, 
                DebugViewDumpHandler handler)

פרמטרים
client Client

viewRoot String

view String

handler DebugViewDumpHandler

clientDisconnected

public void clientDisconnected (ClientImpl client)

הלקוח עזב. אפשר להשתמש בו כדי לנקות את כל המשאבים שמשויכים לחיבור של הלקוח הזה.

פרמטרים
client ClientImpl

clientReady

public void clientReady (ClientImpl client)

הלקוח מוכן. שרשור המעקב קורא לשיטה הזו בכל המטפלים כשהלקוח מזוהה ככזה שמודע ל-DDM (בדרך כלל אחרי קבלת תגובת HELO).

ה-handler יכול לנצל את ההזדמנות הזו כדי לאתחל פעילות בצד הלקוח. יכול להיות שנרצה לשלוח הודעה ללקוח, ולכן השיטה הזו יכולה להחזיר IOException.

פרמטרים
client ClientImpl

dumpDisplayList

public static void dumpDisplayList (Client client, 
                String viewRoot, 
                String view)

פרמטרים
client Client

viewRoot String

view String

dumpTheme

public static void dumpTheme (ClientImpl client, 
                String viewRoot, 
                DebugViewDumpHandler handler)

פרמטרים
client ClientImpl

viewRoot String

handler DebugViewDumpHandler

dumpViewHierarchy

public static void dumpViewHierarchy (Client client, 
                String viewRoot, 
                boolean skipChildren, 
                boolean includeProperties, 
                boolean useV2, 
                DebugViewDumpHandler handler)

פרמטרים
client Client

viewRoot String

skipChildren boolean

includeProperties boolean

useV2 boolean

handler DebugViewDumpHandler

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

invalidateView

public static void invalidateView (ClientImpl client, 
                String viewRoot, 
                String view)

פרמטרים
client ClientImpl

viewRoot String

view String

invokeMethod

public static void invokeMethod (ClientImpl client, 
                String viewRoot, 
                String view, 
                String method, 
                Object... args)

פרמטרים
client ClientImpl

viewRoot String

view String

method String

args Object

listViewRoots

public static void listViewRoots (Client client, 
                DebugViewDumpHandler replyHandler)

פרמטרים
client Client

replyHandler DebugViewDumpHandler

profileView

public static void profileView (ClientImpl client, 
                String viewRoot, 
                String view, 
                DebugViewDumpHandler handler)

פרמטרים
client ClientImpl

viewRoot String

view String

handler DebugViewDumpHandler

להירשם

public static void register (MonitorThread mt)

פרמטרים
mt MonitorThread

requestLayout

public static void requestLayout (ClientImpl client, 
                String viewRoot, 
                String view)

פרמטרים
client ClientImpl

viewRoot String

view String

sendStartGlTracing

public static void sendStartGlTracing (ClientImpl client)

פרמטרים
client ClientImpl

sendStopGlTracing

public static void sendStopGlTracing (ClientImpl client)

פרמטרים
client ClientImpl

setLayoutParameter

public static void setLayoutParameter (ClientImpl client, 
                String viewRoot, 
                String view, 
                String parameter, 
                int value)

פרמטרים
client ClientImpl

viewRoot String

view String

parameter String

value int