Esempio n. 1
0
  /** Called when the DDM server connects. The handler is allowed to send messages to the server. */
  public void connected() {
    if (false) Log.v("ddm-hello", "Connected!");

    if (false) {
      /* test spontaneous transmission */
      byte[] data = new byte[] {0, 1, 2, 3, 4, -4, -3, -2, -1, 127};
      Chunk testChunk = new Chunk(ChunkHandler.type("TEST"), data, 1, data.length - 2);
      DdmServer.sendChunk(testChunk);
    }
  }
Esempio n. 2
0
 /** Register for the messages we're interested in. */
 public static void register() {
   DdmServer.registerHandler(CHUNK_HELO, mInstance);
   DdmServer.registerHandler(CHUNK_FEAT, mInstance);
 }
Esempio n. 3
0
 /**
  * Send up a WAIT chunk. The only currently defined value for "reason" is zero, which means
  * "waiting for a debugger".
  */
 public static void sendWAIT(int reason) {
   byte[] data = new byte[] {(byte) reason};
   Chunk waitChunk = new Chunk(CHUNK_WAIT, data, 0, 1);
   DdmServer.sendChunk(waitChunk);
 }