Searched refs:endpoint (Results 1 - 8 of 8) sorted by relevance

/frameworks/base/core/java/android/hardware/usb/
H A DUsbRequest.java32 * <p>Requests on endpoint zero are not supported by this class;
33 * use {@link UsbDeviceConnection#controlTransfer} for endpoint zero requests instead.
55 * Initializes the request so it can read or write data on the given endpoint.
56 * Whether the request allows reading or writing depends on the direction of the endpoint.
58 * @param endpoint the endpoint to be used for this request.
61 public boolean initialize(UsbDeviceConnection connection, UsbEndpoint endpoint) { argument
62 mEndpoint = endpoint;
63 return native_init(connection, endpoint.getAddress(), endpoint
[all...]
H A DUsbDeviceConnection.java105 * Performs a control transaction on endpoint zero for this device.
129 * Performs a bulk transaction on the given endpoint.
130 * The direction of the transfer is determined by the direction of the endpoint
132 * @param endpoint the endpoint for this transaction
139 public int bulkTransfer(UsbEndpoint endpoint, byte[] buffer, int length, int timeout) { argument
140 return native_bulk_request(endpoint.getAddress(), buffer, length, timeout);
179 private native int native_bulk_request(int endpoint, byte[] buffer, int length, int timeout); argument
/frameworks/base/core/java/android/net/
H A DLocalSocket.java84 * Connects this socket to an endpoint. May only be called on an instance
87 * @param endpoint endpoint address
91 public void connect(LocalSocketAddress endpoint) throws IOException { argument
98 impl.connect(endpoint, 0);
105 * Binds this socket to an endpoint name. May only be called on an instance
108 * @param bindpoint endpoint address
241 public void connect(LocalSocketAddress endpoint, int timeout) argument
H A DLocalSocketImpl.java242 * Binds this socket to an endpoint name. May only be called on an instance
245 * @param endpoint endpoint address
248 public void bind(LocalSocketAddress endpoint) throws IOException argument
254 bindLocal(fd, endpoint.getName(), endpoint.getNamespace().getId());
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/
H A Daccessorychat.c35 int endpoint = (int)arg; local
41 ret = usb_device_bulk_transfer(sDevice, endpoint, buffer, sizeof(buffer), 1000);
55 int endpoint = (int)arg; local
63 ret = usb_device_bulk_transfer(sDevice, endpoint, line, strlen(line), 1000);
/frameworks/base/services/jni/
H A Dcom_android_server_UsbHostManager.cpp89 struct usb_endpoint_descriptor *endpoint = (struct usb_endpoint_descriptor *)desc; local
92 endpointValues.add(endpoint->bEndpointAddress);
93 endpointValues.add(endpoint->bmAttributes);
94 endpointValues.add(__le16_to_cpu(endpoint->wMaxPacketSize));
95 endpointValues.add(endpoint->bInterval);
/frameworks/base/core/jni/
H A Dandroid_hardware_UsbDeviceConnection.cpp173 jint endpoint, jbyteArray buffer, jint length, jint timeout)
190 jint result = usb_device_bulk_transfer(device, endpoint, bufferBytes, length, timeout);
172 android_hardware_UsbDeviceConnection_bulk_request(JNIEnv *env, jobject thiz, jint endpoint, jbyteArray buffer, jint length, jint timeout) argument
/frameworks/base/media/mtp/
H A DMtpPacket.cpp157 request->endpoint,

Completed in 282 milliseconds