/**@class android.hardware.usb.UsbDevice implements android.os.Parcelable @extends java.lang.Object This class represents a USB device attached to the android device with the android device acting as the USB host. Each device contains one or more {@link android.hardware.usb.UsbInterface}s, each of which contains a number of {@link android.hardware.usb.UsbEndpoint}s (the channels via which data is transmitted over USB). <p> This class contains information (along with {@link android.hardware.usb.UsbInterface} and {@link android.hardware.usb.UsbEndpoint}) that describes the capabilities of the USB device. To communicate with the device, you open a {@link android.hardware.usb.UsbDeviceConnection} for the device and use {@link android.hardware.usb.UsbRequest} to send and receive data on an endpoint. {@link android.hardware.usb.UsbDeviceConnection#controlTransfer} is used for control requests on endpoint zero. <div class="special reference"> <h3>Developer Guides</h3> <p>For more information about communicating with USB hardware, read the <a href="{@docRoot}guide/topics/connectivity/usb/index.html">USB</a> developer guide.</p> </div> */ var UsbDevice = { /***/ CREATOR : "null", /**Returns the name of the device. In the standard implementation, this is the path of the device file for the device in the usbfs file system. @return {String} the device name */ getDeviceName : function( ) {}, /**Returns the manufacturer name of the device. @return {String} the manufacturer name, or {@code null} if the property could not be read */ getManufacturerName : function( ) {}, /**Returns the product name of the device. @return {String} the product name, or {@code null} if the property could not be read */ getProductName : function( ) {}, /**Returns the version number of the device. @return {String} the device version */ getVersion : function( ) {}, /**Returns the serial number of the device. @return {String} the serial number name, or {@code null} if the property could not be read @throws SecurityException if the app targets SDK >= {@value android.os.Build.VERSION_CODES#Q} and the app does not have permission to read from the device. */ getSerialNumber : function( ) {}, /**Returns a unique integer ID for the device. This is a convenience for clients that want to use an integer to represent the device, rather than the device name. IDs are not persistent across USB disconnects. @return {Number} the device ID */ getDeviceId : function( ) {}, /**Returns a vendor ID for the device. @return {Number} the device vendor ID */ getVendorId : function( ) {}, /**Returns a product ID for the device. @return {Number} the device product ID */ getProductId : function( ) {}, /**Returns the devices's class field. Some useful constants for USB device classes can be found in {@link android.hardware.usb.UsbConstants}. @return {Number} the devices's class */ getDeviceClass : function( ) {}, /**Returns the device's subclass field. @return {Number} the device's subclass */ getDeviceSubclass : function( ) {}, /**Returns the device's protocol field. @return {Number} the device's protocol */ getDeviceProtocol : function( ) {}, /**Returns the number of {@link android.hardware.usb.UsbConfiguration}s this device contains. @return {Number} the number of configurations */ getConfigurationCount : function( ) {}, /**Returns the {@link android.hardware.usb.UsbConfiguration} at the given index. @return {Object {android.hardware.usb.UsbConfiguration}} the configuration */ getConfiguration : function( ) {}, /**Returns the number of {@link android.hardware.usb.UsbInterface}s this device contains. For devices with multiple configurations, you will probably want to use {@link android.hardware.usb.UsbConfiguration#getInterfaceCount} instead. @return {Number} the number of interfaces */ getInterfaceCount : function( ) {}, /**Returns the {@link android.hardware.usb.UsbInterface} at the given index. For devices with multiple configurations, you will probably want to use {@link android.hardware.usb.UsbConfiguration#getInterface} instead. @return {Object {android.hardware.usb.UsbInterface}} the interface */ getInterface : function( ) {}, /** */ equals : function( ) {}, /** */ hashCode : function( ) {}, /** */ toString : function( ) {}, /** */ describeContents : function( ) {}, /** */ writeToParcel : function( ) {}, /** */ getDeviceId : function( ) {}, /** */ getDeviceName : function( ) {}, };