Build 1.0_r1(from source)

android.ddm
Class DdmHandleAppName

java.lang.Object
  extended by org.apache.harmony.dalvik.ddmc.ChunkHandler
      extended by android.ddm.DdmHandleAppName

public class DdmHandleAppName
extends org.apache.harmony.dalvik.ddmc.ChunkHandler

Track our app name. We don't (currently) handle any inbound packets.


Field Summary
static int CHUNK_APNM
           
 
Fields inherited from class org.apache.harmony.dalvik.ddmc.ChunkHandler
CHUNK_FAIL, CHUNK_ORDER
 
Method Summary
 void connected()
          Called when the DDM server connects.
 void disconnected()
          Called when the DDM server disconnects.
static String getAppName()
           
 org.apache.harmony.dalvik.ddmc.Chunk handleChunk(org.apache.harmony.dalvik.ddmc.Chunk request)
          Handle a chunk of data.
static void register()
          Register for the messages we're interested in.
static void setAppName(String name)
          Set the application name.
 
Methods inherited from class org.apache.harmony.dalvik.ddmc.ChunkHandler
createFailChunk, getString, name, putString, type, wrapChunk
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHUNK_APNM

public static final int CHUNK_APNM
Method Detail

register

public static void register()
Register for the messages we're interested in.


connected

public void connected()
Called when the DDM server connects. The handler is allowed to send messages to the server.

Specified by:
connected in class org.apache.harmony.dalvik.ddmc.ChunkHandler

disconnected

public void disconnected()
Called when the DDM server disconnects. Can be used to disable periodic transmissions or clean up saved state.

Specified by:
disconnected in class org.apache.harmony.dalvik.ddmc.ChunkHandler

handleChunk

public org.apache.harmony.dalvik.ddmc.Chunk handleChunk(org.apache.harmony.dalvik.ddmc.Chunk request)
Handle a chunk of data.

Specified by:
handleChunk in class org.apache.harmony.dalvik.ddmc.ChunkHandler

setAppName

public static void setAppName(String name)
Set the application name. Called when we get named, which may be before or after DDMS connects. For the latter we need to send up an APNM message.


getAppName

public static String getAppName()

Build 1.0_r1(from source)

Please submit a feedback, bug or feature