// Signature format: 2.0
package com.android.future.usb {

  public class UsbAccessory {
    method public String getDescription();
    method public String getManufacturer();
    method public String getModel();
    method public String getSerial();
    method public String getUri();
    method public String getVersion();
  }

  public class UsbManager {
    method public static com.android.future.usb.UsbAccessory getAccessory(android.content.Intent);
    method public com.android.future.usb.UsbAccessory[] getAccessoryList();
    method public static com.android.future.usb.UsbManager getInstance(android.content.Context);
    method public boolean hasPermission(com.android.future.usb.UsbAccessory);
    method public android.os.ParcelFileDescriptor openAccessory(com.android.future.usb.UsbAccessory);
    method public void requestPermission(com.android.future.usb.UsbAccessory, android.app.PendingIntent);
    field public static final String ACTION_USB_ACCESSORY_ATTACHED = "android.hardware.usb.action.USB_ACCESSORY_ATTACHED";
    field public static final String ACTION_USB_ACCESSORY_DETACHED = "android.hardware.usb.action.USB_ACCESSORY_DETACHED";
    field public static final String EXTRA_PERMISSION_GRANTED = "permission";
  }

}

