You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.2 KiB
27 lines
1.2 KiB
4 months ago
|
// 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";
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|