Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3190439f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Describe how the accessory input stream drops data"

parents f7726812 84e04799
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -454,8 +454,12 @@ public class UsbManager {
    /**
     * Opens a file descriptor for reading and writing data to the USB accessory.
     *
     * <p>If data is read from the {@link java.io.InputStream} created from this file descriptor all
     * data of a USB transfer should be read at once. If only a partial request is read the rest of
     * the transfer is dropped.
     *
     * @param accessory the USB accessory to open
     * @return file descriptor, or null if the accessor could not be opened.
     * @return file descriptor, or null if the accessory could not be opened.
     */
    @RequiresFeature(PackageManager.FEATURE_USB_ACCESSORY)
    public ParcelFileDescriptor openAccessory(UsbAccessory accessory) {