Code example for UsbEndpoint

Methods: getMaxPacketSize

        final int interval = ep.getInterval();
        return "" + interval;
    public static String getMaxPacketSizeString(UsbEndpoint ep) {
        final int size = ep.getMaxPacketSize();
        return "" + size;
    public static String getTypeString(UsbEndpoint ep) {
        switch (ep.getType()) {
            case UsbConstants.USB_ENDPOINT_XFER_CONTROL:
                return "Control"; 
            case UsbConstants.USB_ENDPOINT_XFER_INT:
                return "Interrupt"; 
            case UsbConstants.USB_ENDPOINT_XFER_BULK:
                return "Bulk"; 
            case UsbConstants.USB_ENDPOINT_XFER_ISOC:
                return "Isochronous"; 
Connect your IDE to all the code out there  Get Codota for Java