Searched refs:UsbDevice (Results 1 – 13 of 13) sorted by relevance
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowUsbManager.java | 14 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/ |
D | BaseUsbConnection.java | 24 import android.hardware.usb.UsbDevice; 44 protected UsbDevice usbDevice = null; 59 protected abstract boolean isCompatibleUsbDevice(UsbDevice usbDevice); in isCompatibleUsbDevice() 109 UsbDevice usbDevice = findUsbDevice(); in connect() 113 public void connect(UsbDevice usbDevice) { in connect() 152 UsbDevice usbDevice = intent.getParcelableExtra(UsbManager.EXTRA_DEVICE); 186 public UsbDevice findUsbDevice() { in findUsbDevice() 191 HashMap<String, UsbDevice> deviceHash = usbManager.getDeviceList(); in findUsbDevice() 199 UsbDevice usbDevice = null; in findUsbDevice() 203 UsbDevice dev = deviceHash.get(key); in findUsbDevice()
|
D | WaltUsbConnection.java | 20 import android.hardware.usb.UsbDevice; 72 protected boolean isCompatibleUsbDevice(UsbDevice usbDevice) { in isCompatibleUsbDevice()
|
D | WaltDevice.java | 21 import android.hardware.usb.UsbDevice; 129 public void connect(UsbDevice usbDevice) { in connect()
|
D | MainActivity.java | 26 import android.hardware.usb.UsbDevice; 114 final UsbDevice usbDevice; in onResume()
|
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/programmer/ |
D | BootloaderConnection.java | 4 import android.hardware.usb.UsbDevice; 36 protected boolean isCompatibleUsbDevice(UsbDevice usbDevice) { in isCompatibleUsbDevice()
|
/external/autotest/client/common_lib/cros/cfm/usb/ |
D | usb_device_unittest.py | 12 self._usb_device = usb_device.UsbDevice( 43 child = usb_device.UsbDevice(
|
D | usb_device.py | 6 class UsbDevice(object): class
|
D | usb_device_collector.py | 84 return usb_device.UsbDevice(
|
/external/autotest/server/cros/cfm/configurable_test/ |
D | actions_unittest.py | 14 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/ |
D | ShadowUsbManagerTest.java | 15 import android.hardware.usb.UsbDevice; 41 @Mock UsbDevice usbDevice1; 42 @Mock UsbDevice usbDevice2;
|
/external/libusb/android/ |
D | README | 112 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/ |
D | LoopbackActivity.java | 32 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()
|