Home
last modified time | relevance | path

Searched refs:mUsbManager (Results 1 – 4 of 4) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DUSBRestrictRecordAActivity.java63 private UsbManager mUsbManager; field in USBRestrictRecordAActivity
82 mUsbManager = (UsbManager) getSystemService(Context.USB_SERVICE); in onCreate()
159 HashMap<String, UsbDevice> deviceList = mUsbManager.getDeviceList(); in connectUSB()
176 mUsbManager.requestPermission(theDevice, permissionIntent); in connectUSB()
/cts/apps/CtsVerifierUSBCompanion/src/com/android/cts/verifierusbcompanion/
DAccessoryTestCompanion.java48 private UsbManager mUsbManager; field in AccessoryTestCompanion
63 mUsbManager = getContext().getSystemService(UsbManager.class); in runTest()
73 if (mUsbManager.hasPermission(device)) { in runTest()
76 mUsbManager.requestPermission(device, in runTest()
120 UsbDeviceConnection connection = mUsbManager.openDevice(mDevice); in runTest()
270 UsbDeviceConnection connection = mUsbManager.openDevice(device); in onDeviceAccessPermitted()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/mtp/
DMtpHostTestActivity.java111 private UsbManager mUsbManager; field in MtpHostTestActivity
159 mUsbManager = getSystemService(UsbManager.class); in onCreate()
240 for (final UsbDevice candidate : mUsbManager.getDeviceList().values()) {
251 if (!mUsbManager.hasPermission(mUsbDevice)) {
262 mUsbManager.requestPermission(
271 assertTrue(mUsbManager.hasPermission(mUsbDevice));
274 final UsbDeviceConnection connection = mUsbManager.openDevice(mUsbDevice);
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/device/
DUsbDeviceTestActivity.java80 private UsbManager mUsbManager; field in UsbDeviceTestActivity
120 mUsbManager = getSystemService(UsbManager.class); in onCreate()
153 mUsbManager.requestPermission(device, in onCreate()
167 UsbDeviceConnection connection = mUsbManager.openDevice(device); in onCreate()
1551 UsbDeviceConnection connection = mUsbManager.openDevice(device); in reconnectTest()
1600 mUsbManager.requestPermission(device, in attachedTask()
1628 mUsbManager.openDevice(device); in attachedTask()
1640 mUsbManager.openDevice(device); in attachedTask()
2067 UsbDeviceConnection connection = mUsbManager.openDevice(device); in setConfigurationTests()
2126 for (Map.Entry<String, UsbDevice> entry : mUsbManager.getDeviceList().entrySet()) { in enumerateDevices()
[all …]