Package android.ddm
Class DdmHandleAppName
- java.lang.Object
-
- org.apache.harmony.dalvik.ddmc.ChunkHandler
-
- android.ddm.DdmHandleAppName
-
public class DdmHandleAppName extends ChunkHandler
Track our app name. We don't (currently) handle any inbound packets.
-
-
Field Summary
Fields Modifier and Type Field Description static intCHUNK_APNM-
Fields inherited from class org.apache.harmony.dalvik.ddmc.ChunkHandler
CHUNK_FAIL, CHUNK_ORDER
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnected()Called when the DDM server connects.voiddisconnected()Called when the DDM server disconnects.static StringgetAppName()ChunkhandleChunk(Chunk request)Handle a chunk of data.static voidregister()Register for the messages we're interested in.static voidsetAppName(String name, int userId)Set the application name.-
Methods inherited from class org.apache.harmony.dalvik.ddmc.ChunkHandler
createFailChunk, getString, name, putString, type, wrapChunk
-
-
-
-
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:
connectedin classChunkHandler
-
disconnected
public void disconnected()
Called when the DDM server disconnects. Can be used to disable periodic transmissions or clean up saved state.- Specified by:
disconnectedin classChunkHandler
-
handleChunk
public Chunk handleChunk(Chunk request)
Handle a chunk of data.- Specified by:
handleChunkin classChunkHandler
-
setAppName
public static void setAppName(String name, int userId)
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()
-
-