/frameworks/base/libs/usb/tests/AccessoryChat/src/com/android/accessorychat/ |
D | AccessoryChat.java | 56 private UsbManager mUsbManager; field in AccessoryChat 85 mUsbManager = (UsbManager) getSystemService(Context.USB_SERVICE); in onCreate() 102 UsbAccessory[] accessories = mUsbManager.getAccessoryList(); in onResume() 105 if (mUsbManager.hasPermission(accessory)) { in onResume() 110 mUsbManager.requestPermission(accessory, mPermissionIntent); in onResume() 141 mFileDescriptor = mUsbManager.openAccessory(accessory); in openAccessory()
|
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/ |
D | SourceActivity.java | 46 private UsbManager mUsbManager; field in SourceActivity 62 mUsbManager = (UsbManager)getSystemService(Context.USB_SERVICE); in onCreate() 88 UsbAccessory[] accessories = mUsbManager.getAccessoryList(); in onCreate() 142 if (!mUsbManager.hasPermission(accessory)) { in connect() 148 mUsbManager.requestPermission(accessory, pendingIntent); in connect() 153 ParcelFileDescriptor fd = mUsbManager.openAccessory(accessory); in connect()
|
/frameworks/base/tests/UsbHostExternalManagmentTest/AoapTestDevice/src/com/android/hardware/usb/aoapdevicetest/ |
D | UsbAoapDeviceTestActivity.java | 43 private UsbManager mUsbManager; field in UsbAoapDeviceTestActivity 55 mUsbManager = (UsbManager)getSystemService(Context.USB_SERVICE); in onCreate() 97 if (!mUsbManager.hasPermission(accessory)) { in onAccessoryAttached() 103 mUsbManager.requestPermission(accessory, pendingIntent); in onAccessoryAttached() 106 mFd = mUsbManager.openAccessory(accessory); in onAccessoryAttached()
|
/frameworks/base/core/java/android/hardware/usb/ |
D | UsbPort.java | 54 private final UsbManager mUsbManager; field in UsbPort 74 mUsbManager = usbManager; in UsbPort() 147 return mUsbManager.getPortStatus(this); in getStatus() 174 mUsbManager.setPortRoles(this, powerRole, dataRole); in setRoles() 181 mUsbManager.enableContaminantDetection(this, enable); in enableContaminantDetection()
|
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/ |
D | MtpClient.java | 54 private final UsbManager mUsbManager; field in MtpClient 155 mUsbManager = (UsbManager)context.getSystemService(Context.USB_SERVICE); in MtpClient() 173 if (!mUsbManager.hasPermission(usbDevice)) { in openDeviceLocked() 174 mUsbManager.requestPermission(usbDevice, mPermissionIntent); in openDeviceLocked() 176 UsbDeviceConnection connection = mUsbManager.openDevice(usbDevice); in openDeviceLocked() 256 for (UsbDevice usbDevice : mUsbManager.getDeviceList().values()) { in getDeviceList()
|
/frameworks/base/tests/UsbHostExternalManagmentTest/AoapTestHost/src/com/android/hardware/usb/aoaphosttest/ |
D | UsbAoapHostTestActivity.java | 43 private UsbManager mUsbManager; field in UsbAoapHostTestActivity 55 mUsbManager = (UsbManager)getSystemService(Context.USB_SERVICE); in onCreate() 64 mUsbConnection = mUsbManager.openDevice(mUsbDevice); in onCreate()
|
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
D | MtpManagerTest.java | 40 UsbManager mUsbManager; field in MtpManagerTest 46 mUsbManager = getContext().getSystemService(UsbManager.class); in setUp() 48 mUsbDevice = TestUtil.setupMtpDevice(getInstrumentation(), mUsbManager, mManager); in setUp()
|
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | TetheringTest.java | 194 @Mock private UsbManager mUsbManager; field in TetheringTest 260 if (Context.USB_SERVICE.equals(name)) return mUsbManager; in getSystemService() 707 verify(mUsbManager, times(1)).setCurrentFunctions(UsbManager.FUNCTION_NCM); in prepareNcmTethering() 718 verify(mUsbManager, times(1)).setCurrentFunctions(UsbManager.FUNCTION_RNDIS); in prepareUsbTethering() 1436 reset(mUsbManager); in testReportFailCallbackIfOffloadNotSupported() 1444 reset(mUsbManager); in testReportFailCallbackIfOffloadNotSupported() 1642 verify(mUsbManager, times(1)).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testDataSaverChanged() 1646 reset(mUsbManager); in testDataSaverChanged() 1654 verify(mUsbManager, times(0)).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testDataSaverChanged() 1659 verify(mUsbManager, times(0)).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testDataSaverChanged() [all …]
|
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/ |
D | SinkActivity.java | 67 private UsbManager mUsbManager; field in SinkActivity 94 mUsbManager = (UsbManager)getSystemService(Context.USB_SERVICE); in onCreate() 129 Map<String, UsbDevice> devices = mUsbManager.getDeviceList(); in onCreate() 165 if (!mUsbManager.hasPermission(device)) { in connect() 171 mUsbManager.requestPermission(device, pendingIntent); in connect() 176 UsbDeviceConnection conn = mUsbManager.openDevice(device); in connect()
|
/frameworks/base/tests/UsbHostExternalManagmentTest/UsbHostExternalManagmentTestApp/src/com/android/hardware/usb/externalmanagementtest/ |
D | UsbDeviceStateController.java | 49 private final UsbManager mUsbManager; field in UsbDeviceStateController 64 mUsbManager = usbManager; in UsbDeviceStateController() 247 mUsbManager.grantPermission(device); in openConnection() 248 return mUsbManager.openDevice(device); in openConnection()
|