android.hardware.usb
Class UsbDevice

java.lang.Object
  extended by android.hardware.usb.UsbDevice
All Implemented Interfaces:
Parcelable

public class UsbDevice
extends Object
implements Parcelable


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
 
Field Summary
static Parcelable.Creator<UsbDevice> CREATOR
           
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Method Summary
 int describeContents()
           
 boolean equals(Object o)
           
 int getDeviceClass()
           
 int getDeviceId()
           
static int getDeviceId(String name)
           
 String getDeviceName()
           
static String getDeviceName(int id)
           
 int getDeviceProtocol()
           
 int getDeviceSubclass()
           
 UsbInterface getInterface(int index)
           
 int getInterfaceCount()
           
 int getProductId()
           
 int getVendorId()
           
 int hashCode()
           
 String toString()
           
 void writeToParcel(Parcel parcel, int flags)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CREATOR

public static final Parcelable.Creator<UsbDevice> CREATOR
Method Detail

getDeviceName

public String getDeviceName()

getDeviceId

public int getDeviceId()

getVendorId

public int getVendorId()

getProductId

public int getProductId()

getDeviceClass

public int getDeviceClass()

getDeviceSubclass

public int getDeviceSubclass()

getDeviceProtocol

public int getDeviceProtocol()

getInterfaceCount

public int getInterfaceCount()

getInterface

public UsbInterface getInterface(int index)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

describeContents

public int describeContents()
Specified by:
describeContents in interface Parcelable

writeToParcel

public void writeToParcel(Parcel parcel,
                          int flags)
Specified by:
writeToParcel in interface Parcelable

getDeviceId

public static int getDeviceId(String name)

getDeviceName

public static String getDeviceName(int id)


Copyright © 2008-2012. All Rights Reserved.