Package org.robolectric.shadows
Class ShadowUsbRequest
- java.lang.Object
-
- org.robolectric.shadows.ShadowUsbRequest
-
@Implements(android.hardware.usb.UsbRequest.class) public class ShadowUsbRequest extends Object
Robolectric implementation ofUsbRequest.
-
-
Constructor Summary
Constructors Constructor Description ShadowUsbRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidclose()protected booleaninitialize(UsbDeviceConnection connection, UsbEndpoint endpoint)protected booleanqueue(ByteBuffer buffer)protected booleanqueue(ByteBuffer buffer, int length)
-
-
-
Method Detail
-
initialize
@Implementation protected boolean initialize(UsbDeviceConnection connection, UsbEndpoint endpoint)
-
close
@Implementation protected void close()
-
queue
@Implementation protected boolean queue(ByteBuffer buffer, int length)
-
queue
@Implementation(minSdk=26) protected boolean queue(ByteBuffer buffer)
-
-