OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:usbDevice
(Results
1 - 3
of
3
) sorted by null
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
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) {
63
public boolean hasPermissionForPackage(
UsbDevice
device, String packageName) {
64
List<
UsbDevice
> usbDevices = grantedPermissions.get(packageName);
70
protected void grantPermission(
UsbDevice
device) {
76
protected void grantPermission(
UsbDevice
device, String packageName) {
77
List<
UsbDevice
> usbDevices = grantedPermissions.get(packageName);
89
public void revokePermission(
UsbDevice
device, String packageName)
[
all
...]
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/
BaseUsbConnection.java
24
import android.hardware.usb.
UsbDevice
;
43
protected
UsbDevice
usbDevice
= null;
58
protected abstract boolean isCompatibleUsbDevice(
UsbDevice
usbDevice
);
108
UsbDevice
usbDevice
= findUsbDevice();
109
connect(
usbDevice
);
112
public void connect(
UsbDevice
usbDevice
) {
[
all
...]
MainActivity.java
24
import android.hardware.usb.
UsbDevice
;
113
final
UsbDevice
usbDevice
;
117
usbDevice
= intent.getParcelableExtra(UsbManager.EXTRA_DEVICE);
119
usbDevice
= null;
126
if (
usbDevice
== null) {
129
waltDevice.connect(
usbDevice
);
Completed in 137 milliseconds