Home
last modified time | relevance | path

Searched refs:usbManager (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DTestUtil.java51 UsbManager usbManager, in setupMtpDevice() argument
55 final UsbDevice device = findMtpDevice(usbManager, manager); in setupMtpDevice()
86 UsbManager usbManager, in findMtpDevice() argument
88 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()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DAppUtils.java37 IUsbManager usbManager, PackageManager pm, Context context) { in getLaunchByDefaultSummary() argument
40 || hasUsbDefaults(usbManager, packageName); in getLaunchByDefaultSummary()
50 public static boolean hasUsbDefaults(IUsbManager usbManager, String packageName) { in hasUsbDefaults() argument
52 if (usbManager != null) { in hasUsbDefaults()
53 return usbManager.hasDefaults(packageName, UserHandle.myUserId()); in hasUsbDefaults()
/frameworks/base/services/core/java/com/android/server/connectivity/
DTethering.java865 UsbManager usbManager = (UsbManager)mContext.getSystemService(Context.USB_SERVICE); in setUsbTethering() local
878 usbManager.setCurrentFunction(UsbManager.USB_FUNCTION_RNDIS); in setUsbTethering()
888 usbManager.setCurrentFunction(null); in setUsbTethering()