1 package net.osdn.gokigen.a01d.camera.ptpip.wrapper.command;
3 import android.util.Log;
5 public class PtpIpResponseReceiver implements IPtpIpCommandCallback
7 private final String TAG = toString();
9 public PtpIpResponseReceiver()
15 public void receivedMessage(int id, byte[] rx_body)
21 if (rx_body.length > 10)
23 int responseCode = (rx_body[9] & 0xff) + ((rx_body[10] & 0xff) * 256);
24 Log.v(TAG, String.format(" ID : %d, RESPONSE CODE : 0x%x ", id, responseCode));
28 Log.v(TAG, " receivedMessage() " + id + " " + rx_body.length + " bytes.");
38 Log.v(TAG, " receivedMessage() " + id);
43 public void onReceiveProgress(int currentBytes, int totalBytes, byte[] rx_body)
45 Log.v(TAG, " onReceiveProgress() " + currentBytes + "/" + totalBytes);
49 public boolean isReceiveMulti()