Home | History | Annotate | Download | only in usb

Lines Matching defs:accessory

79      * accessory function is enabled
136 * Activity intent sent when user attaches a USB accessory.
140 * for the attached accessory
148 * Broadcast Action: A broadcast for USB accessory detached event.
150 * This intent is sent when a USB accessory is detached.
153 * for the attached accessory that was detached
251 * Name of the Accessory USB function.
256 public static final String USB_FUNCTION_ACCESSORY = "accessory";
285 * containing the {@link UsbAccessory} object for the accessory.
287 public static final String EXTRA_ACCESSORY = "accessory";
328 * Code for the accessory usb function.
331 public static final long FUNCTION_ACCESSORY = GadgetFunction.ACCESSORY;
435 UsbAccessory accessory = mService.getCurrentAccessory();
436 if (accessory == null) {
439 return new UsbAccessory[] { accessory };
447 * Opens a file descriptor for reading and writing data to the USB accessory.
453 * @param accessory the USB accessory to open
454 * @return file descriptor, or null if the accessory could not be opened.
457 public ParcelFileDescriptor openAccessory(UsbAccessory accessory) {
459 return mService.openAccessory(accessory);
509 * Returns true if the caller has permission to access the accessory.
512 * by the user choosing the caller as the default application for the accessory.
514 * @param accessory to check permissions for
518 public boolean hasPermission(UsbAccessory accessory) {
523 return mService.hasAccessoryPermission(accessory);
561 * Requests temporary permission for the given package to access the accessory.
565 * If successful, this grants the caller permission to access the accessory only
570 * <li> {@link #EXTRA_ACCESSORY} containing the accessory passed into this call
575 * @param accessory to request permissions for
579 public void requestPermission(UsbAccessory accessory, PendingIntent pi) {
581 mService.requestAccessoryPermission(accessory, mContext.getPackageName(), pi);