Searched refs:usbManager (Results 1 – 3 of 3) sorted by relevance
51 UsbManager usbManager, in setupMtpDevice() argument55 final UsbDevice device = findMtpDevice(usbManager, manager); in setupMtpDevice()86 UsbManager usbManager, in findMtpDevice() argument88 final HashMap<String,UsbDevice> devices = usbManager.getDeviceList(); in findMtpDevice()94 if (usbManager.hasPermission(device)) { in findMtpDevice()95 final UsbDeviceConnection connection = usbManager.openDevice(device); in findMtpDevice()
37 IUsbManager usbManager, PackageManager pm, Context context) { in getLaunchByDefaultSummary() argument40 || hasUsbDefaults(usbManager, packageName); in getLaunchByDefaultSummary()50 public static boolean hasUsbDefaults(IUsbManager usbManager, String packageName) { in hasUsbDefaults() argument52 if (usbManager != null) { in hasUsbDefaults()53 return usbManager.hasDefaults(packageName, UserHandle.myUserId()); in hasUsbDefaults()
865 UsbManager usbManager = (UsbManager)mContext.getSystemService(Context.USB_SERVICE); in setUsbTethering() local878 usbManager.setCurrentFunction(UsbManager.USB_FUNCTION_RNDIS); in setUsbTethering()888 usbManager.setCurrentFunction(null); in setUsbTethering()