Home
last modified time | relevance | path

Searched refs:UsbDevice (Results 1 – 13 of 13) sorted by relevance

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowUsbManager.java14 import android.hardware.usb.UsbDevice;
42 private final HashMap<String, List<UsbDevice>> grantedPermissions = new HashMap<>();
49 private final HashMap<String, UsbDevice> usbDevices = new HashMap<>();
58 protected boolean hasPermission(UsbDevice device) { in hasPermission()
63 public boolean hasPermissionForPackage(UsbDevice device, String packageName) { in hasPermissionForPackage()
64 List<UsbDevice> usbDevices = grantedPermissions.get(packageName); in hasPermissionForPackage()
70 protected void grantPermission(UsbDevice device) { in grantPermission()
76 protected void grantPermission(UsbDevice device, String packageName) { in grantPermission()
77 List<UsbDevice> usbDevices = grantedPermissions.get(packageName); in grantPermission()
89 public void revokePermission(UsbDevice device, String packageName) { in revokePermission()
[all …]
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/
DBaseUsbConnection.java24 import android.hardware.usb.UsbDevice;
43 protected UsbDevice usbDevice = null;
58 protected abstract boolean isCompatibleUsbDevice(UsbDevice usbDevice); in isCompatibleUsbDevice()
108 UsbDevice usbDevice = findUsbDevice(); in connect()
112 public void connect(UsbDevice usbDevice) { in connect()
151 UsbDevice usbDevice = intent.getParcelableExtra(UsbManager.EXTRA_DEVICE);
185 public UsbDevice findUsbDevice() { in findUsbDevice()
189 HashMap<String, UsbDevice> deviceHash = usbManager.getDeviceList(); in findUsbDevice()
197 UsbDevice usbDevice = null; in findUsbDevice()
201 UsbDevice dev = deviceHash.get(key); in findUsbDevice()
DWaltUsbConnection.java20 import android.hardware.usb.UsbDevice;
72 protected boolean isCompatibleUsbDevice(UsbDevice usbDevice) { in isCompatibleUsbDevice()
DWaltDevice.java21 import android.hardware.usb.UsbDevice;
127 public void connect(UsbDevice usbDevice) { in connect()
DMainActivity.java24 import android.hardware.usb.UsbDevice;
113 final UsbDevice usbDevice; in onResume()
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/programmer/
DBootloaderConnection.java4 import android.hardware.usb.UsbDevice;
36 protected boolean isCompatibleUsbDevice(UsbDevice usbDevice) { in isCompatibleUsbDevice()
/external/autotest/client/common_lib/cros/cfm/usb/
Dusb_device_unittest.py12 self._usb_device = usb_device.UsbDevice(
43 child = usb_device.UsbDevice(
Dusb_device.py6 class UsbDevice(object): class
Dusb_device_collector.py84 return usb_device.UsbDevice(
/external/autotest/server/cros/cfm/configurable_test/
Dactions_unittest.py14 USB_DEVICE = usb_device.UsbDevice('v', 'p', 'prod', ['if'], 1, 2, 1)
82 device = usb_device.UsbDevice(
93 device = usb_device.UsbDevice(
143 device = usb_device.UsbDevice(
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowUsbManagerTest.java15 import android.hardware.usb.UsbDevice;
41 @Mock UsbDevice usbDevice1;
42 @Mock UsbDevice usbDevice2;
/external/libusb/android/
DREADME112 to request permission to use the UsbDevice and then opening the
116 android.hardware.usb.UsbDevice to a libusb_device.
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DLoopbackActivity.java32 import android.hardware.usb.UsbDevice;
2639 HashMap<String, UsbDevice> usbDevices = manager.getDeviceList(); in waitForUsbRoute()
2640 for (Map.Entry<String, UsbDevice> entry : usbDevices.entrySet()) { in waitForUsbRoute()