/frameworks/base/core/java/android/hardware/usb/ |
UsbAccessory.aidl | 17 package android.hardware.usb;
|
UsbDevice.aidl | 17 package android.hardware.usb;
|
UsbEndpoint.aidl | 17 package android.hardware.usb;
|
UsbInterface.aidl | 17 package android.hardware.usb;
|
IUsbManager.aidl | 17 package android.hardware.usb; 20 import android.hardware.usb.UsbAccessory; 21 import android.hardware.usb.UsbDevice; 28 /* Returns a list of all currently attached USB devices */ 31 /* Returns a file descriptor for communicating with the USB device. 36 /* Returns the currently attached USB accessory */ 39 /* Returns a file descriptor for communicating with the USB accessory. 44 /* Sets the default package for a USB device 49 /* Sets the default package for a USB accessory 79 /* Returns true if the USB manager has default preferences or permissions for the package * [all...] |
/system/core/fastboot/ |
fastboot.h | 32 #include "usb.h" 37 int fb_command(usb_handle *usb, const char *cmd); 38 int fb_command_response(usb_handle *usb, const char *cmd, char *response); 39 int fb_download_data(usb_handle *usb, const void *data, unsigned size); 40 int fb_download_data_sparse(usb_handle *usb, struct sparse_file *s); 47 int fb_getvar(struct usb_handle *usb, char *response, const char *fmt, ...); 48 int fb_format_supported(usb_handle *usb, const char *partition); 61 int fb_execute_queue(usb_handle *usb);
|
protocol.c | 50 static int check_response(usb_handle *usb, unsigned int size, char *response) 56 r = usb_read(usb, status, 64); 59 usb_close(usb); 66 usb_close(usb); 95 usb_close(usb); 102 usb_close(usb); 109 static int _command_start(usb_handle *usb, const char *cmd, unsigned size, 124 if(usb_write(usb, cmd, cmdsize) != cmdsize) { 126 usb_close(usb); 130 return check_response(usb, size, response) 229 usb_handle *usb = priv; local [all...] |
usbtest.c | 36 #include "usb.h" 89 int test_null(usb_handle *usb) 98 if(usb_write(usb, buf, arg_size) != arg_size) { 108 int test_zero(usb_handle *usb) 116 if(usb_read(usb, buf, arg_size) != arg_size) { 130 int (*test)(usb_handle *usb); 180 usb_handle *usb; local 193 usb = usb_open(tests[i].match); 195 if(usb == 0) { 200 if(tests[i].test(usb)) { [all...] |
/cts/apps/cts-usb-accessory/ |
Android.mk | 25 LOCAL_SRC_FILES := cts-usb-accessory.c 27 LOCAL_MODULE := cts-usb-accessory
|
/system/core/adb/ |
usb_linux.c | 33 #include <linux/usb/ch9.h> 45 /* usb scan debugging is waaaay too verbose */ 87 usb_handle *usb; local 90 for(usb = handle_list.next; usb != &handle_list; usb = usb->next){ 91 if(!strcmp(usb->fname, dev_name)) { 93 usb->mark = 1; 104 usb_handle *usb; local 564 usb_handle* usb = 0; local [all...] |
transport_usb.c | 55 if(usb_read(t->usb, &p->msg, sizeof(amessage))){ 56 D("remote usb: read terminated (message)\n"); 63 D("remote usb: check_header failed\n"); 68 if(usb_read(t->usb, p->data, p->msg.data_length)){ 69 D("remote usb: terminated (data)\n"); 75 D("remote usb: check_data failed\n"); 88 if(usb_write(t->usb, &p->msg, sizeof(amessage))) { 89 D("remote usb: 1 - write terminated\n"); 93 if(usb_write(t->usb, &p->data, size)) { 94 D("remote usb: 2 - write terminated\n") [all...] |
usb_libusb.c | 329 D("register_device(): Registering %p [%s] as USB transport\n", 332 struct usb_handle *usb= NULL; local 334 usb = calloc(1, sizeof(struct usb_handle)); 335 memcpy(usb, uh, sizeof(struct usb_handle)); 336 strcpy(usb->serial, uh->serial); 338 adb_cond_init(&usb->notify, 0); 339 adb_mutex_init(&usb->lock, 0); 343 usb->next = &handle_list; 344 usb->prev = handle_list.prev; 345 usb->prev->next = usb 358 struct usb_handle *usb= NULL; local 562 struct usb_handle *usb= NULL; local [all...] |
/bootable/recovery/minadbd/ |
transport_usb.c | 51 if(usb_read(t->usb, &p->msg, sizeof(amessage))){ 52 D("remote usb: read terminated (message)\n"); 59 D("remote usb: check_header failed\n"); 64 if(usb_read(t->usb, p->data, p->msg.data_length)){ 65 D("remote usb: terminated (data)\n"); 71 D("remote usb: check_data failed\n"); 84 if(usb_write(t->usb, &p->msg, sizeof(amessage))) { 85 D("remote usb: 1 - write terminated\n"); 89 if(usb_write(t->usb, &p->data, size)) { 90 D("remote usb: 2 - write terminated\n") [all...] |
usb_linux_client.c | 47 struct usb_handle *usb = (struct usb_handle *)x; local 51 // wait until the USB device needs opening 52 adb_mutex_lock(&usb->lock); 53 while (usb->fd != -1) 54 adb_cond_wait(&usb->notify, &usb->lock); 55 adb_mutex_unlock(&usb->lock); 72 usb->fd = fd; 75 register_usb_transport(usb, 0, 1); 124 // the enabling of the adb USB function in the kernel [all...] |
/device/google/accessory/arduino/AndroidAccessory/ |
AndroidAccessory.cpp | 19 #include <Usb.h> 63 usb.ctrlReq(addr, 0, 73 usb.ctrlReq(addr, 0, 100 usb.ctrlReq(addr, 0, 106 while (usb.getUsbTaskState() != USB_DETACHED_SUBSTATE_WAIT_FOR_DEVICE) { 108 usb.Task(); 121 err = usb.getConfDescr(addr, 0, 4, 0, (char *)descBuff); 135 err = usb.getConfDescr(addr, 0, len, 0, (char *)descBuff); 212 epRecord[0] = *(usb.getDevTableEntry(0,0)); 213 usb.setDevTableEntry(1, epRecord) [all...] |
/frameworks/base/libs/usb/src/com/android/future/usb/ |
UsbManager.java | 18 package com.android.future.usb; 23 import android.hardware.usb.IUsbManager; 31 * This is a wrapper class for the USB Manager to support USB accessories. 40 * Broadcast Action: A broadcast for USB accessory attached event. 42 * This intent is sent when a USB accessory is attached. 44 * {@link com.google.android.usb.UsbAccessory} for the attached accessory. 47 "android.hardware.usb.action.USB_ACCESSORY_ATTACHED"; 50 * Broadcast Action: A broadcast for USB accessory detached event. 52 * This intent is sent when a USB accessory is detached [all...] |
/device/google/accessory/demokit/app/ |
Android.mk | 26 LOCAL_JAVA_LIBRARIES := com.android.future.usb.accessory
|
/frameworks/base/libs/usb/ |
Android.mk | 25 LOCAL_MODULE:= com.android.future.usb.accessory
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
UsbDisconnectedReceiver.java | 17 package com.android.systemui.usb; 24 import android.hardware.usb.UsbAccessory; 25 import android.hardware.usb.UsbDevice; 26 import android.hardware.usb.UsbManager;
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/linux/usb/ |
gadgetfs.h | 7 #include <linux/usb/ch9.h> 10 * Filesystem based user-mode API to USB Gadget controller hardware 16 * when it's closed, the device disconnects from usb. Operations on
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/linux/usb/ |
gadgetfs.h | 7 #include <linux/usb/ch9.h> 10 * Filesystem based user-mode API to USB Gadget controller hardware 16 * when it's closed, the device disconnects from usb. Operations on
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/linux/usb/ |
gadgetfs.h | 7 #include <linux/usb/ch9.h> 10 * Filesystem based user-mode API to USB Gadget controller hardware 16 * when it's closed, the device disconnects from usb. Operations on
|
/external/libmtp/ |
hotplug.sh.in | 136 if test -d ${HOTPLUGPATH}/usb 138 echo "Has usb subdirectory." 140 mkdir ${HOTPLUGPATH}/usb 144 ${INSTALL} libmtp.sh ${HOTPLUGPATH}/usb 146 ${INSTALL} -m 644 ${USERMAP} ${HOTPLUGPATH}/usb 147 # If we find a usb.usermap file, and we see that this distribution 149 # patch the usb.usermap file. 154 echo "/etc/hotplug/usb/*.usermap support was added in august 2002" 156 CVSTAG=`grep '\$Id:' /etc/hotplug/usb.agent` 174 echo "We need to edit the ${HOTPLUGPATH}/usb.usermap if it exists... [all...] |
/device/ti/panda/ |
device.mk | 26 device/ti/panda/init.omap4pandaboard.usb.rc:root/init.omap4pandaboard.usb.rc \ 33 frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \ 35 frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml 38 com.android.future.usb.accessory 57 com.android.future.usb.accessory
|
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/ |
DeviceDisconnectedReceiver.java | 24 import android.hardware.usb.UsbDevice; 25 import android.hardware.usb.UsbManager;
|