Searched refs:mUsbManager (Results 1 – 8 of 8) sorted by relevance
56 private UsbManager mUsbManager; field in AccessoryChat85 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()
43 private UsbManager mUsbManager; field in UsbAoapDeviceTestActivity55 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()
46 private UsbManager mUsbManager; field in SourceActivity62 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()
56 private final UsbManager mUsbManager; field in UsbPort76 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()
54 private final UsbManager mUsbManager; field in MtpClient155 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()
43 private UsbManager mUsbManager; field in UsbAoapHostTestActivity55 mUsbManager = (UsbManager)getSystemService(Context.USB_SERVICE); in onCreate()64 mUsbConnection = mUsbManager.openDevice(mUsbDevice); in onCreate()
67 private UsbManager mUsbManager; field in SinkActivity94 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()
49 private final UsbManager mUsbManager; field in UsbDeviceStateController64 mUsbManager = usbManager; in UsbDeviceStateController()247 mUsbManager.grantPermission(device); in openConnection()248 return mUsbManager.openDevice(device); in openConnection()