Lines Matching refs:accessory

71      * accessory function is enabled
128 * Broadcast Action: A broadcast for USB accessory attached event.
130 * This intent is sent when a USB accessory is attached.
133 * for the attached accessory
141 * Broadcast Action: A broadcast for USB accessory detached event.
143 * This intent is sent when a USB accessory is detached.
146 * for the attached accessory that was detached
258 public static final String USB_FUNCTION_ACCESSORY = "accessory";
287 * containing the {@link UsbAccessory} object for the accessory.
289 public static final String EXTRA_ACCESSORY = "accessory";
371 UsbAccessory accessory = mService.getCurrentAccessory();
372 if (accessory == null) {
375 return new UsbAccessory[] { accessory };
383 * Opens a file descriptor for reading and writing data to the USB accessory.
385 * @param accessory the USB accessory to open
388 public ParcelFileDescriptor openAccessory(UsbAccessory accessory) {
390 return mService.openAccessory(accessory);
417 * Returns true if the caller has permission to access the accessory.
420 * by the user choosing the caller as the default application for the accessory.
422 * @param accessory to check permissions for
425 public boolean hasPermission(UsbAccessory accessory) {
430 return mService.hasAccessoryPermission(accessory);
463 * Requests temporary permission for the given package to access the accessory.
467 * If successful, this grants the caller permission to access the accessory only
472 * <li> {@link #EXTRA_ACCESSORY} containing the accessory passed into this call
477 * @param accessory to request permissions for
480 public void requestPermission(UsbAccessory accessory, PendingIntent pi) {
482 mService.requestAccessoryPermission(accessory, mContext.getPackageName(), pi);