Home | History | Annotate | Download | only in usb

Lines Matching defs:accessory

40      * Broadcast Action:  A broadcast for USB accessory attached event.
42 * This intent is sent when a USB accessory is attached.
44 * {@link com.google.android.usb.UsbAccessory} for the attached accessory.
50 * Broadcast Action: A broadcast for USB accessory detached event.
52 * This intent is sent when a USB accessory is detached.
54 * {@link com.google.android.usb.UsbAccessory} for the attached accessory that was detached.
88 * broadcast Intent. This can also be used to retrieve the accessory from the result
94 android.hardware.usb.UsbAccessory accessory =
96 if (accessory == null) {
99 return new UsbAccessory(accessory);
111 android.hardware.usb.UsbAccessory accessory = mService.getCurrentAccessory();
112 if (accessory == null) {
115 return new UsbAccessory[] { new UsbAccessory(accessory) };
124 * Opens a file descriptor for reading and writing data to the USB accessory.
126 * @param accessory the USB accessory to open
129 public ParcelFileDescriptor openAccessory(UsbAccessory accessory) {
132 accessory.getManufacturer(),accessory.getModel(),
133 accessory.getDescription(), accessory.getVersion(),
134 accessory.getUri(), accessory.getSerial()));
142 * Returns true if the caller has permission to access the accessory.
145 * by the user choosing the caller as the default application for the accessory.
147 * @param accessory to check permissions for
150 public boolean hasPermission(UsbAccessory accessory) {
153 accessory.getManufacturer(),accessory.getModel(),
154 accessory.getDescription(), accessory.getVersion(),
155 accessory.getUri(), accessory.getSerial()));
163 * Requests temporary permission for the given package to access the accessory.
172 * @param accessory to request permissions for
175 public void requestPermission(UsbAccessory accessory, PendingIntent pi) {
178 accessory.getManufacturer(),accessory.getModel(),
179 accessory.getDescription(), accessory.getVersion(),
180 accessory.getUri(), accessory.getSerial()),