this.usbInterface = usbInterface;
List usbEndpoints = usbInterface.getUsbEndpoints();
for (int i = 0; i < usbEndpoints.size(); i++)
{
UsbEndpoint endpoint = (UsbEndpoint) usbEndpoints.get(i);
if (UsbConst.ENDPOINT_DIRECTION_IN == endpoint.getDirection())
{
inEndpoint = endpoint;
}
else if (UsbConst.ENDPOINT_DIRECTION_OUT == endpoint.getDirection())
{
outEndpoint = endpoint;
}
}