Searched refs:mUsbManager (Results 1 – 7 of 7) sorted by relevance
45 private UsbManager mUsbManager; field in UsbBackend58 mUsbManager = context.getSystemService(UsbManager.class); in UsbBackend()65 UsbPort[] ports = mUsbManager.getPorts(); in UsbBackend()70 UsbPortStatus status = mUsbManager.getPortStatus(ports[i]); in UsbBackend()91 } else if (mUsbManager.isFunctionEnabled(UsbManager.USB_FUNCTION_MTP)) { in getUsbDataMode()93 } else if (mUsbManager.isFunctionEnabled(UsbManager.USB_FUNCTION_PTP)) { in getUsbDataMode()95 } else if (mUsbManager.isFunctionEnabled(UsbManager.USB_FUNCTION_MIDI)) { in getUsbDataMode()104 mUsbManager.setCurrentFunction(UsbManager.USB_FUNCTION_MTP); in setUsbFunction()105 mUsbManager.setUsbDataUnlocked(true); in setUsbFunction()108 mUsbManager.setCurrentFunction(UsbManager.USB_FUNCTION_PTP); in setUsbFunction()[all …]
52 private final UsbManager mUsbManager; field in MtpClient166 mUsbManager = (UsbManager) context.getSystemService(Context.USB_SERVICE); in MtpClient()190 if (!mUsbManager.hasPermission(usbDevice)) { in openDeviceLocked()191 mUsbManager.requestPermission(usbDevice, mPermissionIntent); in openDeviceLocked()194 UsbDeviceConnection connection = mUsbManager.openDevice(usbDevice); in openDeviceLocked()255 for (UsbDevice usbDevice : mUsbManager.getDeviceList().values()) { in getDeviceList()
55 private final UsbManager mUsbManager; field in MtpClient169 mUsbManager = (UsbManager)context.getSystemService(Context.USB_SERVICE); in MtpClient()192 if (!mUsbManager.hasPermission(usbDevice)) { in openDeviceLocked()193 mUsbManager.requestPermission(usbDevice, mPermissionIntent); in openDeviceLocked()196 UsbDeviceConnection connection = mUsbManager.openDevice(usbDevice); in openDeviceLocked()282 for (UsbDevice usbDevice : mUsbManager.getDeviceList().values()) { in getDeviceList()
49 private IUsbManager mUsbManager; field in ClearDefaultsPreference63 mUsbManager = IUsbManager.Stub.asInterface(b); in ClearDefaultsPreference()94 if (mUsbManager != null) { in onBindViewHolder()101 mUsbManager.clearDefaults(mPackageName, userId); in onBindViewHolder()122 || AppUtils.hasUsbDefaults(mUsbManager, mPackageName); in updateUI()
68 protected IUsbManager mUsbManager; field in AppInfoBase90 mUsbManager = IUsbManager.Stub.asInterface(b); in onCreate()
563 mLaunchPreference.setSummary(AppUtils.getLaunchByDefaultSummary(mAppEntry, mUsbManager, in refreshUi()
35 private final IUsbManager mUsbManager; field in ClearDefaultsPreference42 mUsbManager = IUsbManager.Stub.asInterface(usbBinder); in ClearDefaultsPreference()52 mEntry, mUsbManager, mPackageManager, getContext())); in refresh()