Home
last modified time | relevance | path

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

/packages/services/Mtp/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()
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DUsbUtil.java35 UsbManager usbManager) { in findAllPossibleAndroidDevices() argument
36 HashMap<String, UsbDevice> devices = usbManager.getDeviceList(); in findAllPossibleAndroidDevices()
39 UsbDeviceConnection connection = openConnection(usbManager, device); in findAllPossibleAndroidDevices()
87 public static boolean isDeviceConnected(UsbManager usbManager, UsbDevice device) { in isDeviceConnected() argument
88 HashMap<String, UsbDevice> devices = usbManager.getDeviceList(); in isDeviceConnected()
DBootUsbScanner.java28 UsbManager usbManager = context.getSystemService(UsbManager.class); in onReceive() local
29 HashMap<String, UsbDevice> deviceList = usbManager.getDeviceList(); in onReceive()
DUsbHostController.java208 UsbManager usbManager = mContext.getSystemService(UsbManager.class); in isDeviceAoapPossible() local
209 UsbDeviceConnection connection = UsbUtil.openConnection(usbManager, device); in isDeviceAoapPossible()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/managedomainurls/
DClearDefaultsPreferenceController.java101 private boolean hasUsbDefaults(IUsbManager usbManager, String packageName) { in hasUsbDefaults() argument
103 if (usbManager != null) { in hasUsbDefaults()
104 return usbManager.hasDefaults(packageName, getCurrentUserId()); in hasUsbDefaults()