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

Commit 84e04799 authored by Philip P. Moltmann's avatar Philip P. Moltmann
Browse files

Describe how the accessory input stream drops data

Test: Built
Change-Id: I201726cb3900ae0591808565c10d021c50325f06
parent f04eb2ed
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -449,8 +449,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.
     */
    public ParcelFileDescriptor openAccessory(UsbAccessory accessory) {
        try {