Searched refs:usbManager (Results 1 – 8 of 8) sorted by relevance
/packages/services/Mtp/tests/src/com/android/mtp/ |
D | TestUtil.java | 51 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/ |
D | UsbUtil.java | 35 UsbManager usbManager) { in findAllPossibleAndroidDevices() argument 36 HashMap<String, UsbDevice> devices = usbManager.getDeviceList(); in findAllPossibleAndroidDevices() 39 UsbDeviceConnection connection = openConnection(usbManager, device); in findAllPossibleAndroidDevices() 81 public static boolean isDeviceConnected(UsbManager usbManager, UsbDevice device) { in isDeviceConnected() argument 82 HashMap<String, UsbDevice> devices = usbManager.getDeviceList(); in isDeviceConnected()
|
D | BootUsbScanner.java | 28 UsbManager usbManager = context.getSystemService(UsbManager.class); in onReceive() local 29 HashMap<String, UsbDevice> deviceList = usbManager.getDeviceList(); in onReceive()
|
D | UsbHostController.java | 230 UsbManager usbManager = mContext.getSystemService(UsbManager.class); in isDeviceAoapPossible() local 231 UsbDeviceConnection connection = UsbUtil.openConnection(usbManager, device); in isDeviceAoapPossible()
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/device/apps/ |
D | AppUtils.java | 61 public static boolean hasUsbDefaults(IUsbManager usbManager, String packageName) { in hasUsbDefaults() argument 63 if (usbManager != null) { in hasUsbDefaults() 64 return usbManager.hasDefaults(packageName, UserHandle.myUserId()); in hasUsbDefaults() 73 IUsbManager usbManager, PackageManager pm, Context context) { in getLaunchByDefaultSummary() argument 76 || hasUsbDefaults(usbManager, packageName); in getLaunchByDefaultSummary()
|
/packages/apps/Settings/src/com/android/settings/connecteddevice/stylus/ |
D | StylusUsbFirmwareController.java | 116 UsbManager usbManager = mContext.getSystemService(UsbManager.class); in getStylusUsbDevice() local 118 if (usbManager == null) { in getStylusUsbDevice() 122 List<UsbDevice> devices = new ArrayList<>(usbManager.getDeviceList().values()); in getStylusUsbDevice()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/managedomainurls/ |
D | ClearDefaultsPreferenceController.java | 108 private boolean hasUsbDefaults(IUsbManager usbManager, String packageName) { in hasUsbDefaults() argument 110 if (usbManager != null) { in hasUsbDefaults() 111 return usbManager.hasDefaults(packageName, getCurrentUserId()); in hasUsbDefaults()
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | Tethering.java | 1592 UsbManager usbManager = (UsbManager) mContext.getSystemService(Context.USB_SERVICE); in setUsbTethering() local 1593 if (usbManager == null) { in setUsbTethering() 1600 usbManager.setCurrentFunctions(enable ? usbFunction : UsbManager.FUNCTION_NONE); in setUsbTethering() 1612 UsbManager usbManager = (UsbManager) mContext.getSystemService(Context.USB_SERVICE); in setNcmTethering() 1613 usbManager.setCurrentFunctions(enable ? UsbManager.FUNCTION_NCM : UsbManager.FUNCTION_NONE); in setNcmTethering()
|