com.android.ddmlib
Class HandleViewDebug.ViewDumpHandler

java.lang.Object
  extended by com.android.ddmlib.HandleViewDebug.ViewDumpHandler
Enclosing class:
HandleViewDebug

public abstract static class HandleViewDebug.ViewDumpHandler
extends java.lang.Object


Field Summary
static int CHUNK_FAIL
           
static int CHUNK_HEADER_LEN
           
static java.nio.ByteOrder CHUNK_ORDER
           
 
Constructor Summary
HandleViewDebug.ViewDumpHandler(int chunkType)
           
 
Method Summary
protected static Client checkDebuggerPortForAppName(Client client, java.lang.String appName)
          Check that the client is opened with the proper debugger port for the specified application name, and if not, reopen it.
static java.lang.String getString(java.nio.ByteBuffer buf, int len)
          Utility function to copy a String out of a ByteBuffer.
protected  void handleUnknownChunk(Client client, int type, java.nio.ByteBuffer data, boolean isReply, int msgId)
          Handle chunks not recognized by handlers.
protected abstract  void handleViewDebugResult(java.nio.ByteBuffer data)
           
protected  void waitForResult(long timeout, java.util.concurrent.TimeUnit unit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHUNK_HEADER_LEN

public static final int CHUNK_HEADER_LEN
See Also:
Constant Field Values

CHUNK_ORDER

public static final java.nio.ByteOrder CHUNK_ORDER

CHUNK_FAIL

public static final int CHUNK_FAIL
Constructor Detail

HandleViewDebug.ViewDumpHandler

public HandleViewDebug.ViewDumpHandler(int chunkType)
Method Detail

handleViewDebugResult

protected abstract void handleViewDebugResult(java.nio.ByteBuffer data)

waitForResult

protected void waitForResult(long timeout,
                             java.util.concurrent.TimeUnit unit)

handleUnknownChunk

protected void handleUnknownChunk(Client client,
                                  int type,
                                  java.nio.ByteBuffer data,
                                  boolean isReply,
                                  int msgId)
Handle chunks not recognized by handlers. The handleChunk() method in sub-classes should call this if the chunk type isn't recognized.


getString

public static java.lang.String getString(java.nio.ByteBuffer buf,
                                         int len)
Utility function to copy a String out of a ByteBuffer.


checkDebuggerPortForAppName

protected static Client checkDebuggerPortForAppName(Client client,
                                                    java.lang.String appName)
Check that the client is opened with the proper debugger port for the specified application name, and if not, reopen it.

Parameters:
client -
uiThread -
appName -
Returns: