Lines Matching refs:accessory

68      * accessory function is enabled
103 * Broadcast Action: A broadcast for USB accessory attached event.
105 * This intent is sent when a USB accessory is attached.
108 * for the attached accessory
115 * Broadcast Action: A broadcast for USB accessory detached event.
117 * This intent is sent when a USB accessory is detached.
120 * for the attached accessory that was detached
196 public static final String USB_FUNCTION_ACCESSORY = "accessory";
209 * containing the UsbAccessory object for the accessory.
211 public static final String EXTRA_ACCESSORY = "accessory";
288 UsbAccessory accessory = mService.getCurrentAccessory();
289 if (accessory == null) {
292 return new UsbAccessory[] { accessory };
301 * Opens a file descriptor for reading and writing data to the USB accessory.
303 * @param accessory the USB accessory to open
306 public ParcelFileDescriptor openAccessory(UsbAccessory accessory) {
308 return mService.openAccessory(accessory);
334 * Returns true if the caller has permission to access the accessory.
337 * by the user choosing the caller as the default application for the accessory.
339 * @param accessory to check permissions for
342 public boolean hasPermission(UsbAccessory accessory) {
344 return mService.hasAccessoryPermission(accessory);
378 * Requests temporary permission for the given package to access the accessory.
382 * If successful, this grants the caller permission to access the accessory only
387 * <li> {@link #EXTRA_ACCESSORY} containing the accessory passed into this call
392 * @param accessory to request permissions for
395 public void requestPermission(UsbAccessory accessory, PendingIntent pi) {
397 mService.requestAccessoryPermission(accessory, mContext.getPackageName(), pi);