HomeSort by relevance Sort by last modified time
    Searched defs:usb (Results 1 - 25 of 49) sorted by null

1 2

  /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;
26 * This class is used for sending and receiving data and control messages to a USB device.
72 * Returns the raw USB descriptors for the device.
76 * @return raw USB descriptors
83 * Claims exclusive access to a {@link android.hardware.usb.UsbInterface}.
85 * {@link android.hardware.usb.UsbEndpoint}s belonging to the interface.
96 * Releases exclusive access to a {@link android.hardware.usb.UsbInterface}.
144 * Waits for the result of a {@link android.hardware.usb.UsbRequest#queue} operation
146 * {@link android.hardware.usb.UsbEndpoint}s.
147 * 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;
26 import android.hardware.usb.UsbAccessory;
27 import android.hardware.usb.UsbManager;
38 * 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;
45 * The notification that is shown when a USB mass storage host
138 intent.setClass(mContext, com.android.systemui.usb.UsbStorageActivity.class);
256 * Update the state of the USB mass storage notification
262 intent.setClass(mContext, com.android.systemui.usb.UsbStorageActivity.class);
277 * Sets the USB storage notification.
327 // user has attached the device to USB either to charge the phone (in which case
333 // 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;
UsbDebuggingActivity.java 17 package com.android.systemui.usb;
27 import android.hardware.usb.IUsbManager;
28 import android.hardware.usb.UsbDevice;
29 import android.hardware.usb.UsbManager;
133 Log.e(TAG, "Unable to notify Usb service", e);
UsbPermissionActivity.java 17 package com.android.systemui.usb;
27 import android.hardware.usb.IUsbManager;
28 import android.hardware.usb.UsbDevice;
29 import android.hardware.usb.UsbAccessory;
30 import android.hardware.usb.UsbManager;
UsbStorageActivity.java 17 package com.android.systemui.usb;
33 import android.hardware.usb.UsbManager;
56 * This activity is shown to the user for him/her to enable USB mass storage
57 * on-demand (that is, when the USB cable is connected). It uses the alert
82 /** Used to detect when the USB cable is unplugged, so we can call finish() */
258 // will be hidden once USB mass storage kicks in (or fails)
  /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...]
  /external/aac/libFDK/include/
qmf.h 165 int usb; /*!< Top of high subbands */ member in struct:QMF_FILTER_BANK
203 int usb, /*!< Number of upper bands */
221 int usb, /*!< Number of upper bands */
  /external/aac/libSBRdec/src/
sbrdec_freq_sca.cpp 715 int k2,kx, lsb, usb; local
746 usb = hFreq->freqBandTable[0][nBandsLo];
749 if ( (lsb > (32)) || (lsb >= usb) ) {
802 hFreq->highSubband = usb;
  /frameworks/base/services/java/com/android/server/usb/
UsbHostManager.java 17 package com.android.server.usb;
20 import android.hardware.usb.UsbConstants;
21 import android.hardware.usb.UsbDevice;
22 import android.hardware.usb.UsbEndpoint;
23 import android.hardware.usb.UsbInterface;
34 * UsbHostManager manages USB state in host mode.
40 // contains all connected USB devices
43 // USB busses to exclude from USB host support
80 /* returns true if the USB device should not be accessible by applications *
    [all...]

Completed in 196 milliseconds

1 2