Loading core/java/android/hardware/usb/UsbManager.java +5 −1 Original line number Diff line number Diff line Loading @@ -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) { Loading Loading
core/java/android/hardware/usb/UsbManager.java +5 −1 Original line number Diff line number Diff line Loading @@ -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) { Loading