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


खास जानकारी

सार्वजनिक तरीके

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)

सार्वजनिक तरीके

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-aware के तौर पर तय किया जाता है, तब मॉनिटर थ्रेड इस तरीके को सभी हैंडलर पर कॉल करता है. आम तौर पर, ऐसा HELO का जवाब मिलने के बाद होता है.

हैंडलर, इस अवसर का इस्तेमाल क्लाइंट-साइड गतिविधि को शुरू करने के लिए कर सकता है. ऐसा हो सकता है कि हमें क्लाइंट को मैसेज भेजना पड़े. इसलिए, इस तरीके से 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)

इनकमिंग चंक को मैनेज करता है. "टाइप" टाइप का डेटा, "डेटा" की शुरुआत से शुरू होता है और data.limit() तक जारी रहता है.

अगर "isReply" सेट है, तो "msgId" उस अनुरोध का आईडी होगा जो हमने क्लाइंट को भेजा था. इसके अलावा, यह क्लाइंट की ओर से इस इवेंट के लिए जनरेट किया गया आईडी होता है. ध्यान दें कि ऐसा हो सकता है कि हमें उन जवाब पैकेट में चंक मिलें जिनके लिए हमने रजिस्टर नहीं किया है.

हैंडलर, "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