Lines Matching refs:device

50      * Broadcast Action:  A sticky broadcast for USB state change events when in device mode.
77 * Broadcast Action: A broadcast for USB device attached event.
79 * This intent is sent when a USB device is attached to the USB bus when in host mode.
82 * for the attached device
89 * Broadcast Action: A broadcast for USB device detached event.
91 * This intent is sent when a USB device is detached from the USB bus when in host mode.
94 * for the detached device
191 * containing the UsbDevice object for the device.
194 public static final String EXTRA_DEVICE = "device";
224 * USB device name is the key for the returned HashMap.
246 * Opens the device so it can be used to send and receive
249 * @param device the device to open
250 * @return true if we successfully opened the device
252 public UsbDeviceConnection openDevice(UsbDevice device) {
254 String deviceName = device.getDeviceName();
257 UsbDeviceConnection connection = new UsbDeviceConnection(device);
306 * Returns true if the caller has permission to access the device.
309 * by the user choosing the caller as the default application for the device.
311 * @param device to check permissions for
314 public boolean hasPermission(UsbDevice device) {
316 return mService.hasDevicePermission(device);
342 * Requests temporary permission for the given package to access the device.
346 * If successful, this grants the caller permission to access the device only
347 * until the device is disconnected.
351 * <li> {@link #EXTRA_DEVICE} containing the device passed into this call
356 * @param device to request permissions for
359 public void requestPermission(UsbDevice device, PendingIntent pi) {
361 mService.requestDevicePermission(device, mContext.getPackageName(), pi);
373 * until the device is disconnected.