Home
last modified time | relevance | path

Searched refs:usbManager (Results 1 – 9 of 9) 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/tests/UsbHostExternalManagmentTest/UsbHostExternalManagmentTestApp/src/com/android/hardware/usb/externalmanagementtest/
DUsbHostManagementActivity.java82 UsbManager usbManager = (UsbManager)getSystemService(Context.USB_SERVICE); in onCreate() local
84 LinkedList<UsbDevice> devices = UsbUtil.findAllPossibleAndroidDevices(usbManager); in onCreate()
130 mUsbDeviceStateController = new UsbDeviceStateController(this, this, usbManager); in onCreate()
154 UsbManager usbManager = (UsbManager)getSystemService(Context.USB_SERVICE); in startAoapActivity() local
155 usbManager.grantPermission(device, uid); in startAoapActivity()
168 UsbManager usbManager = (UsbManager)getSystemService(Context.USB_SERVICE); in dumpUsbDevices() local
169 HashMap<String, UsbDevice> devices = usbManager.getDeviceList(); in dumpUsbDevices()
191 UsbManager usbManager = (UsbManager)getSystemService(Context.USB_SERVICE); in handleUsbDeviceAttached() local
192 if (!UsbUtil.isDeviceConnected(usbManager, mUsbDevice)) { in handleUsbDeviceAttached()
DUsbUtil.java32 public static LinkedList<UsbDevice> findAllPossibleAndroidDevices(UsbManager usbManager) { in findAllPossibleAndroidDevices() argument
33 HashMap<String, UsbDevice> devices = usbManager.getDeviceList(); in findAllPossibleAndroidDevices()
78 public static boolean isDeviceConnected(UsbManager usbManager, UsbDevice device) { in isDeviceConnected() argument
79 HashMap<String, UsbDevice> devices = usbManager.getDeviceList(); in isDeviceConnected()
DUsbDeviceStateController.java61 UsbManager usbManager) { in UsbDeviceStateController() argument
64 mUsbManager = usbManager; in UsbDeviceStateController()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DAppUtils.java48 IUsbManager usbManager, PackageManager pm, Context context) { in getLaunchByDefaultSummary() argument
51 || hasUsbDefaults(usbManager, packageName); in getLaunchByDefaultSummary()
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()
/frameworks/base/core/java/android/hardware/usb/
DParcelableUsbPort.java72 public @NonNull UsbPort getUsbPort(@NonNull UsbManager usbManager) { in getUsbPort() argument
73 return new UsbPort(usbManager, mId, mSupportedModes, mSupportedContaminantProtectionModes, in getUsbPort()
DUsbPort.java66 public UsbPort(@NonNull UsbManager usbManager, @NonNull String id, int supportedModes, in UsbPort() argument
74 mUsbManager = usbManager; in UsbPort()
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DTethering.java1290 UsbManager usbManager = (UsbManager) mContext.getSystemService(Context.USB_SERVICE); in setUsbTethering() local
1291 if (usbManager == null) { in setUsbTethering()
1297 usbManager.setCurrentFunctions(enable ? UsbManager.FUNCTION_RNDIS in setUsbTethering()
1305 UsbManager usbManager = (UsbManager) mContext.getSystemService(Context.USB_SERVICE); in setNcmTethering() local
1307 usbManager.setCurrentFunctions(enable ? UsbManager.FUNCTION_NCM in setNcmTethering()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbPortManager.java1142 PortInfo(@NonNull UsbManager usbManager, @NonNull String portId, int supportedModes, in PortInfo() argument
1146 mUsbPort = new UsbPort(usbManager, portId, supportedModes, in PortInfo()