Home
last modified time | relevance | path

Searched refs:maxPacketSize (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/media/packages/BluetoothMidiService/src/com/android/bluetoothmidiservice/
DBluetoothPacketDecoder.java44 public BluetoothPacketDecoder(int maxPacketSize) { in BluetoothPacketDecoder() argument
45 mBuffer = new byte[maxPacketSize]; in BluetoothPacketDecoder()
46 setMaxPacketSize(maxPacketSize); in BluetoothPacketDecoder()
52 public void setMaxPacketSize(int maxPacketSize) { in setMaxPacketSize() argument
53 mMaxPacketSize = Math.min(maxPacketSize, mBuffer.length); in setMaxPacketSize()
DBluetoothPacketEncoder.java191 public BluetoothPacketEncoder(PacketReceiver packetReceiver, int maxPacketSize) { in BluetoothPacketEncoder() argument
193 mAccumulationBuffer = new byte[maxPacketSize]; in BluetoothPacketEncoder()
194 setMaxPacketSize(maxPacketSize); in BluetoothPacketEncoder()
200 public void setMaxPacketSize(int maxPacketSize) { in setMaxPacketSize() argument
202 mMaxPacketSize = Math.min(maxPacketSize, mAccumulationBuffer.length); in setMaxPacketSize()
/frameworks/base/core/java/android/hardware/usb/
DUsbEndpoint.java43 public UsbEndpoint(int address, int attributes, int maxPacketSize, int interval) { in UsbEndpoint() argument
46 mMaxPacketSize = maxPacketSize; in UsbEndpoint()
141 int maxPacketSize = in.readInt();
143 return new UsbEndpoint(address, attributes, maxPacketSize, interval);
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
DTransport.java58 public Transport(Logger logger, int maxPacketSize) { in Transport() argument
61 mOutputBuffer = ByteBuffer.allocate(maxPacketSize); in Transport()
63 maxPacketSize, Protocol.MAX_ENVELOPE_SIZE, MAX_INPUT_BUFFERS); in Transport()
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
DSinkActivity.java303 final int maxPacketSize = mControlEndpoint.getMaxPacketSize(); in registerHid() local
304 mLogger.log("Control endpoint max packet size: " + maxPacketSize); in registerHid()
305 if (mMultitouch.getReportSize() > maxPacketSize) { in registerHid()
321 int count = Math.min(mHidBuffer.remaining(), maxPacketSize); in registerHid()