1// Signature format: 2.0 2package com.android.future.usb { 3 4 public class UsbAccessory { 5 method public String getDescription(); 6 method public String getManufacturer(); 7 method public String getModel(); 8 method public String getSerial(); 9 method public String getUri(); 10 method public String getVersion(); 11 } 12 13 public class UsbManager { 14 method public static com.android.future.usb.UsbAccessory getAccessory(android.content.Intent); 15 method public com.android.future.usb.UsbAccessory[] getAccessoryList(); 16 method public static com.android.future.usb.UsbManager getInstance(android.content.Context); 17 method public boolean hasPermission(com.android.future.usb.UsbAccessory); 18 method public android.os.ParcelFileDescriptor openAccessory(com.android.future.usb.UsbAccessory); 19 method public void requestPermission(com.android.future.usb.UsbAccessory, android.app.PendingIntent); 20 field public static final String ACTION_USB_ACCESSORY_ATTACHED = "android.hardware.usb.action.USB_ACCESSORY_ATTACHED"; 21 field public static final String ACTION_USB_ACCESSORY_DETACHED = "android.hardware.usb.action.USB_ACCESSORY_DETACHED"; 22 field public static final String EXTRA_PERMISSION_GRANTED = "permission"; 23 } 24 25} 26 27