HomeSort by relevance Sort by last modified time
    Searched defs:usb (Results 26 - 50 of 56) sorted by null

12 3

  /frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
UsbDebuggingActivity.java 17 package com.android.systemui.usb;
26 import android.hardware.usb.IUsbManager;
27 import android.hardware.usb.UsbManager;
132 Log.e(TAG, "Unable to notify Usb service", e);
UsbPermissionActivity.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;
UsbStorageActivity.java 17 package com.android.systemui.usb;
30 import android.hardware.usb.UsbManager;
54 * This activity is shown to the user for him/her to enable USB mass storage
55 * on-demand (that is, when the USB cable is connected). It uses the alert
80 /** Used to detect when the USB cable is unplugged, so we can call finish() */
256 // will be hidden once USB mass storage kicks in (or fails)
  /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;
36 * UsbHostManager manages USB state in host mode.
42 // contains all connected USB devices
45 // USB busses to exclude from USB host support
82 /* returns true if the USB device should not be accessible by applications *
    [all...]
UsbService.java 17 package com.android.server.usb;
25 import android.hardware.usb.IUsbManager;
26 import android.hardware.usb.UsbAccessory;
27 import android.hardware.usb.UsbDevice;
41 * UsbService manages all USB related state, including both host and device support.
124 /* Returns a list of all currently attached USB devices (host mdoe) */
132 /* Opens the specified USB device (host mode) */
142 /* returns the currently attached USB accessory (device mode) */
152 /* opens the currently attached USB accessory (device mode) */
231 throw new IllegalStateException("USB device mode not supported")
    [all...]
UsbDebuggingManager.java 17 package com.android.server.usb;
250 "com.android.systemui.usb.UsbDebuggingActivity");
326 pw.println(" USB Debugging State:");
UsbDeviceManager.java 17 package com.android.server.usb;
31 import android.hardware.usb.UsbAccessory;
32 import android.hardware.usb.UsbManager;
64 * UsbDeviceManager manages USB state in device mode.
96 // Delay for debouncing USB disconnects.
97 // We often get rapid connect/disconnect events when enabling USB functions,
134 * Listens for uevent messages from the kernel to monitor the USB state
139 if (DEBUG) Slog.v(TAG, "USB UEVENT: " + event.toString());
193 // We do not show the USB notification if the primary volume supports mass storage.
240 // XOR the USB serial across the remaining 5 byte
    [all...]
UsbSettingsManager.java 17 package com.android.server.usb;
31 import android.hardware.usb.UsbAccessory;
32 import android.hardware.usb.UsbDevice;
33 import android.hardware.usb.UsbInterface;
34 import android.hardware.usb.UsbManager;
81 // Temporary mapping USB device name to list of UIDs with permissions for the device
96 // This class is used to describe a USB device.
101 // USB Vendor ID (or -1 for unspecified)
103 // USB Product ID (or -1 for unspecified)
105 // USB device or interface class (or -1 for unspecified
    [all...]
  /system/core/adb/
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...]
usb_linux_client.c 22 #include <linux/usb/ch9.h>
23 #include <linux/usb/functionfs.h>
151 struct usb_handle *usb = (struct usb_handle *)x; local
155 // wait until the USB device needs opening
156 adb_mutex_lock(&usb->lock);
157 while (usb->fd != -1)
158 adb_cond_wait(&usb->notify, &usb->lock);
159 adb_mutex_unlock(&usb->lock);
176 usb->fd = fd
318 struct usb_handle *usb = (struct usb_handle *)x; local
    [all...]
usb_windows.c 29 /** Structure usb_handle describes our connection to the usb device via
34 /// Previous entry in the list of opened usb handles
37 /// Next entry in the list of opened usb handles
40 /// Handle to USB interface
43 /// Handle to USB read pipe (endpoint)
46 /// Handle to USB write pipe (endpoint)
59 /// List of opened usb handles
65 /// Locker for the list of opened usb handles
68 /// Checks if there is opened usb handle in handle_list for this device.
71 /// Checks if there is opened usb handle in handle_list for this device
117 usb_handle* usb; local
    [all...]
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...]
adb.c 103 { "usb", TRACE_USB },
222 //Close the associated usb
1343 int usb = 0; local
    [all...]
adb.h 152 ** connects through TCP (for the emulator), while a "usb transport" through
153 ** USB (for real devices)
187 /* usb handle or socket fd as needed */
188 usb_handle *usb; member in struct:atransport
286 void init_usb_transport(atransport *t, usb_handle *usb, int state);
301 void unregister_usb_transport(usb_handle *usb);
442 /* usb host/client interface */
450 /* used for USB device detection */
478 #define USB_FFS_ADB_PATH "/dev/usb-ffs/adb/"
  /system/core/fastboot/
usb_linux.c 47 #include <linux/usb/ch9.h>
53 #include "usb.h"
66 * in drivers/usb/core/devio.c.
166 * /dev/bus/usb. Unfortunately, the names of those entries change each
172 * have an Android device at /dev/bus/usb/001/027 so working with bash:
173 * $ ls -l /dev/bus/usb/001/027
174 * crw-rw-r-- 1 root plugdev 189, 26 Apr 9 11:03 /dev/bus/usb/001/027
180 * http://www.linux-usb.org/FAQ.html).
196 snprintf(info.device_path, sizeof(info.device_path), "usb:%s", slash+1);
246 usb_handle *usb = 0 local
    [all...]
fastboot.c 70 static usb_handle *usb = 0; variable
268 static usb_handle *usb = 0; local
271 if(usb) return usb;
274 usb = usb_open(match_fastboot);
275 if(usb) return usb;
285 // We don't actually open a USB device here,
322 " -i <vendor id> specify a custom USB vendor id\n"
569 static int64_t get_target_sparse_limit(struct usb_handle *usb)
    [all...]
  /packages/apps/Settings/src/com/android/settings/deviceinfo/
Memory.java 31 import android.hardware.usb.UsbManager;
178 final MenuItem usb = menu.findItem(R.id.storage_usb); local
182 usb.setVisible(usbItemVisible);
  /bootable/recovery/minadbd/
adb.h 149 ** connects through TCP (for the emulator), while a "usb transport" through
150 ** USB (for real devices)
181 /* usb handle or socket fd as needed */
182 usb_handle *usb; member in struct:atransport
248 void init_usb_transport(atransport *t, usb_handle *usb, int state);
263 void unregister_usb_transport(usb_handle *usb);
381 /* usb host/client interface */
389 /* used for USB device detection */
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/
UsbAccessoryTestActivity.java 17 package com.android.cts.verifier.usb;
32 import android.hardware.usb.UsbAccessory;
33 import android.hardware.usb.UsbManager;
52 * Test for USB accessories. The test activity interacts with a cts-usb-accessory program that
62 "com.android.cts.verifier.usb.USB_PERMISSION";
  /prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/linux/
edd.h 136 } __attribute__ ((packed)) usb; member in union:edd_device_params::__anon39343
  /prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/linux/
edd.h 136 } __attribute__ ((packed)) usb; member in union:edd_device_params::__anon40934
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/linux/
edd.h 136 } __attribute__ ((packed)) usb; member in union:edd_device_params::__anon42448
  /frameworks/base/services/java/com/android/server/
SystemServer.java 68 import com.android.server.usb.UsbService;
148 UsbService usb = null; local
408 * (for media / usb notifications) so we must start MountService first.
666 Slog.i(TAG, "USB Service");
667 // Manage USB host and device support
668 usb = new UsbService(context);
669 ServiceManager.addService(Context.USB_SERVICE, usb);
    [all...]
  /prebuilts/sdk/12/
android.jar 
  /prebuilts/sdk/13/
android.jar 

Completed in 313 milliseconds

12 3