blob: f17b65a6fe4ad1dc3c8be32aac43ce6dde0be9c7 [file] [log] [blame]
// 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";
}
}