summaryrefslogtreecommitdiffstats
path: root/core/jni/android_hardware_UsbDevice.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Frameworks/base: Consistency in core/jniAndreas Gampe2014-11-211-2/+2
| | | | | | | | Make consistent use of core_jni_helpers for registration. Translate some #ifdefs into const bools. Change-Id: I37639aa053dd50f003a552cbd8550dddecc811c5
* More native code cleanup.Elliott Hughes2011-04-121-7/+0
| | | | | | | | Don't keep unused global references to classes, don't throw exceptions when an exception is already pending, and fix a (harmless) misunderstanding about how GetStringChars works. Change-Id: Ie445036f057daa8a1c76aceb7bad2a84fb81d820
* UsbDevice: Move IO related methods to new UsbDeviceConnection classMike Lockwood2011-03-111-202/+0
| | | | | | | | | | | | UsbDevice is now just an immutable parcelable object like UsbInterface and UsbEndpoint. All IO related functionality is now contained in UsbDeviceConnection and UsbRequest. Bug: 4067029 Change-Id: Ia84da0b512a697acc940eee0c3566711c62e1a68 Signed-off-by: Mike Lockwood <lockwood@android.com>
* Move USB framework support from android.hardware to android.hardware.usb packageMike Lockwood2011-03-011-4/+4
| | | | | Change-Id: I00fd4f0caaa4aebe48f71c576bb211b5f38bf88d Signed-off-by: Mike Lockwood <lockwood@android.com>
* Add support for synchronous bulk USB transfersMike Lockwood2011-01-271-4/+33
| | | | | Change-Id: Id5de49e4d728a702fa1583ecc24f83f36cc57d21 Signed-off-by: Mike Lockwood <lockwood@android.com>
* usb: correct return type of android_hardware_UsbDevice_claim_interfaceErik Gilling2011-01-251-2/+2
| | | | Change-Id: I1e8bfb8d52b5bb87e5bb7249ab439740f57e63f3
* New APIs for USB host support:Mike Lockwood2011-01-221-0/+239
UsbManager: - is now a service retrievable via Context.getSystemService(Context.USB_SERVICE). - provides support for returning a list all connected USB devices - broadcasts ACTION_USB_DEVICE_ATTACHED and USB_DEVICE_DETACHED when devices are added and removed from the USB host bus UsbDevice: - represents an attached USB device. UsbInterface: - represents an interface on a USB device - devices may have multiple interfaces if they provide multiple sets of functionality (for example, android phones typically have interfaces for both USB mass storage and adb) UsbEndpoint: - represents an endpoint on a USB interface - endpoints are used for sending or receiving data (only in one or the other direction) UsbRequest: - encapsulates a send or receive request to be sent over an endpoint Change-Id: Ieef3e434c62760770ea839070cf5eba1a705967a Signed-off-by: Mike Lockwood <lockwood@android.com>