Home
last modified time | relevance | path

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

/frameworks/base/libs/usb/tests/AccessoryChat/src/com/android/accessorychat/
DAccessoryChat.java56 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/UsbHostExternalManagmentTest/AoapTestDevice/src/com/android/hardware/usb/aoapdevicetest/
DUsbAoapDeviceTestActivity.java43 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/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/
DSourceActivity.java46 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/core/java/android/hardware/usb/
DUsbPort.java56 private final UsbManager mUsbManager; field in UsbPort
76 mUsbManager = usbManager; in UsbPort()
149 return mUsbManager.getPortStatus(this); in getStatus()
176 mUsbManager.setPortRoles(this, powerRole, dataRole); in setRoles()
183 mUsbManager.enableContaminantDetection(this, enable); in enableContaminantDetection()
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
DMtpClient.java54 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/
DUsbAoapHostTestActivity.java43 private UsbManager mUsbManager; field in UsbAoapHostTestActivity
55 mUsbManager = (UsbManager)getSystemService(Context.USB_SERVICE); in onCreate()
64 mUsbConnection = mUsbManager.openDevice(mUsbDevice); in onCreate()
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
DSinkActivity.java67 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/
DUsbDeviceStateController.java49 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()