/cts/hostsidetests/usb/SerialTestApp/src/com/android/cts/usb/serialtest/ |
UsbSerialTest.java | 17 package com.android.cts.usb.serialtest;
|
/bootable/recovery/minadbd/ |
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.h | 32 USB usb; member in class:AndroidAccessory
|
/frameworks/base/core/java/android/hardware/usb/ |
UsbEndpoint.java | 17 package android.hardware.usb; 25 * Endpoints are the channels for sending and receiving data over USB.
|
UsbInterface.java | 17 package android.hardware.usb; 25 * USB devices can have one or more interfaces, each one providing a different 32 * <p>For more information about communicating with USB hardware, read the 33 * <a href="{@docRoot}guide/topics/usb/index.html">USB</a> developer guide.</p> 69 * Some useful constants for USB classes can be found in {@link UsbConstants} 96 * Returns the number of {@link android.hardware.usb.UsbEndpoint}s this interface contains. 105 * Returns the {@link android.hardware.usb.UsbEndpoint} at the given index.
|
UsbAccessory.java | 17 package android.hardware.usb; 25 * A class representing a USB accessory, which is an external hardware component 26 * that communicates with an android application over USB. 27 * The accessory is the USB host and android the device side of the USB connection. 31 * The manufacturer, model and version strings are used by the USB Manager to choose 43 * <p>For more information about communicating with USB hardware, read the 44 * <a href="{@docRoot}guide/topics/usb/index.html">USB</a> developer guide.</p>
|
UsbConstants.java | 17 package android.hardware.usb; 20 * Contains constants for the USB protocol. 21 * These constants correspond to definitions in linux/usb/ch9.h in the linux kernel. 107 * USB class indicating that the class is determined on a per-interface basis. 111 * USB class for audio devices. 115 * USB class for communication devices. 119 * USB class for human interface devices (for example, mice and keyboards). 123 * USB class for physical devices. 127 * USB class for still image devices (digital cameras). 131 * USB class for printers [all...] |
UsbDevice.java | 17 package android.hardware.usb; 27 * This class represents a USB device attached to the android device with the android device 28 * acting as the USB host. 30 * {@link UsbEndpoint}s (the channels via which data is transmitted over USB). 33 * that describes the capabilities of the USB device. 40 * <p>For more information about communicating with USB hardware, read the 41 * <a href="{@docRoot}guide/topics/usb/index.html">USB</a> developer guide.</p> 86 * IDs are not persistent across USB disconnects. 114 * Some useful constants for USB device classes can be found in {@link UsbConstants} [all...] |
UsbDeviceConnection.java | 17 package android.hardware.usb; 25 * This class is used for sending and receiving data and control messages to a USB device. 71 * Returns the raw USB descriptors for the device. 75 * @return raw USB descriptors 82 * Claims exclusive access to a {@link android.hardware.usb.UsbInterface}. 84 * {@link android.hardware.usb.UsbEndpoint}s belonging to the interface. 95 * Releases exclusive access to a {@link android.hardware.usb.UsbInterface}. 199 * Waits for the result of a {@link android.hardware.usb.UsbRequest#queue} operation 201 * {@link android.hardware.usb.UsbEndpoint}s. 202 * When multiple endpoints are in use, {@link android.hardware.usb.UsbRequest#getEndpoint} an [all...] |
UsbRequest.java | 17 package android.hardware.usb; 24 * A class representing USB request packet. 26 * {@link android.hardware.usb.UsbDeviceConnection}. 101 * {@link android.hardware.usb.UsbDeviceConnection#requestWait} 114 * {@link android.hardware.usb.UsbDeviceConnection#requestWait} 128 * returned via {@link android.hardware.usb.UsbDeviceConnection#requestWait}
|
UsbManager.java | 18 package android.hardware.usb; 31 * This class allows you to access the state of USB and communicate with USB devices. 42 * <p>For more information about communicating with USB hardware, read the 43 * <a href="{@docRoot}guide/topics/usb/index.html">USB</a> developer guide.</p> 50 * Broadcast Action: A sticky broadcast for USB state change events when in device mode. 52 * This is a sticky broadcast for clients that includes USB connected/disconnected state, 54 * <li> {@link #USB_CONNECTED} boolean indicating whether USB is connected or disconnected. 55 * <li> {@link #USB_CONFIGURED} boolean indicating whether USB is configured [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
UsbAccessoryUriActivity.java | 17 package com.android.systemui.usb; 23 import android.hardware.usb.UsbAccessory; 24 import android.hardware.usb.UsbManager; 35 * If the attached USB accessory has a URL associated with it, and that URL is valid,
|
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;
|
UsbResolverActivity.java | 17 package com.android.systemui.usb; 22 import android.hardware.usb.IUsbManager; 23 import android.hardware.usb.UsbAccessory; 24 import android.hardware.usb.UsbDevice; 25 import android.hardware.usb.UsbManager; 40 /* Activity for choosing an application for a USB device or accessory */
|
StorageNotification.java | 17 package com.android.systemui.usb; 43 * The notification that is shown when a USB mass storage host 132 intent.setClass(mContext, com.android.systemui.usb.UsbStorageActivity.class); 250 * Update the state of the USB mass storage notification 256 intent.setClass(mContext, com.android.systemui.usb.UsbStorageActivity.class); 271 * Sets the USB storage notification. 321 // user has attached the device to USB either to charge the phone (in which case 327 // developer (a) knows how to enable UMS, and (b) is probably using USB to install
|
UsbConfirmActivity.java | 17 package com.android.systemui.usb; 26 import android.hardware.usb.IUsbManager; 27 import android.hardware.usb.UsbAccessory; 28 import android.hardware.usb.UsbDevice; 29 import android.hardware.usb.UsbManager;
|
/device/asus/flo/charger_touch/ |
charger_touch.c | 26 const char* USB = "change@/devices/platform/msm_ssbi.0/pm8921-core/pm8921-charger/power_supply/usb"; 69 char wlc[2], usb[2], ac[2]; local 73 memset(usb, 0, 2); 84 } else if (!strncmp(str, USB, strlen(USB))) { 85 snprintf(path, sizeof(path), "%s/usb/online", POWER_SUPPLY_PATH); 86 read_path(path, usb, 1); 91 if (!strncmp(usb, "1", 1)) {
|
/device/lge/mako/charger_touch/ |
charger_touch.c | 26 const char* USB = "change@/devices/platform/msm_ssbi.0/pm8921-core/pm8921-charger/power_supply/usb"; 69 char wlc[2], usb[2], ac[2]; local 73 memset(usb, 0, 2); 84 } else if (!strncmp(str, USB, strlen(USB))) { 85 snprintf(path, sizeof(path), "%s/usb/online", POWER_SUPPLY_PATH); 86 read_path(path, usb, 1); 91 if (!strncmp(usb, "1", 1)) {
|
/frameworks/base/libs/usb/src/com/android/future/usb/ |
UsbAccessory.java | 17 package com.android.future.usb; 20 * A class representing a USB accessory. 31 /* package */ UsbAccessory(android.hardware.usb.UsbAccessory accessory) {
|
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...] |
/system/core/fastboot/ |
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/hostsidetests/usb/src/com/android/cts/usb/ |
TestUsbTest.java | 16 package com.android.cts.usb; 49 * Functional tests for usb connection 55 private static final String PACKAGE_NAME = "com.android.cts.usb.serialtest"; 81 * Check if adb serial number, USB serial number, ro.serialno, and android.os.Build.SERIAL 111 assertEquals("usb serial != adb serial" , usbSerial, adbSerial); 135 assertEquals("usb serial != Build.SERIAL" , usbSerial, buildSerial);
|
/external/aac/libFDK/include/ |
qmf.h | 167 int usb; /*!< Top of high subbands */ member in struct:QMF_FILTER_BANK 205 int usb, /*!< Number of upper bands */ 223 int usb, /*!< Number of upper bands */
|
/external/aac/libSBRdec/src/ |
sbrdec_freq_sca.cpp | 722 int k2,kx, lsb, usb; local 753 usb = hFreq->freqBandTable[0][nBandsLo]; 756 if ( (lsb > (32)) || (lsb >= usb) ) { 809 hFreq->highSubband = usb;
|