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

Commit 3c6317c3 authored by Mateus Azis's avatar Mateus Azis Committed by Automerger Merge Worker
Browse files

Merge "Add missing Nullable annotations to...

Merge "Add missing Nullable annotations to UsbDeviceConnection.controlTransfer." am: a7e060a9 am: 0b82504a am: 99b584f0 am: 4f9b44a2 am: 26945500

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2383855



Change-Id: I4a47a1c60dd4b612e648572970d00a19eaacf012
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents b008b16c 26945500
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -19909,8 +19909,8 @@ package android.hardware.usb {
    method public int bulkTransfer(android.hardware.usb.UsbEndpoint, byte[], int, int, int);
    method public boolean claimInterface(android.hardware.usb.UsbInterface, boolean);
    method public void close();
    method public int controlTransfer(int, int, int, int, byte[], int, int);
    method public int controlTransfer(int, int, int, int, byte[], int, int, int);
    method public int controlTransfer(int, int, int, int, @Nullable byte[], int, int);
    method public int controlTransfer(int, int, int, int, @Nullable byte[], int, int, int);
    method public int getFileDescriptor();
    method public byte[] getRawDescriptors();
    method public String getSerial();
+2 −2
Original line number Diff line number Diff line
@@ -238,7 +238,7 @@ public class UsbDeviceConnection {
     * or negative value for failure
     */
    public int controlTransfer(int requestType, int request, int value,
            int index, byte[] buffer, int length, int timeout) {
            int index, @Nullable byte[] buffer, int length, int timeout) {
        return controlTransfer(requestType, request, value, index, buffer, 0, length, timeout);
    }

@@ -263,7 +263,7 @@ public class UsbDeviceConnection {
     * or negative value for failure
     */
    public int controlTransfer(int requestType, int request, int value, int index,
            byte[] buffer, int offset, int length, int timeout) {
            @Nullable byte[] buffer, int offset, int length, int timeout) {
        checkBounds(buffer, offset, length);
        return native_control_request(requestType, request, value, index,
                buffer, offset, length, timeout);