Home
last modified time | relevance | path

Searched refs:mPacketSize (Results 1 – 9 of 9) sorted by relevance

/frameworks/av/media/mtp/
DMtpDataPacket.cpp76 if (mPacketSize - mOffset < sizeof(value)) in getUInt8()
83 if (mPacketSize - mOffset < sizeof(value)) in getUInt16()
92 if (mPacketSize - mOffset < sizeof(value)) in getUInt32()
102 if (mPacketSize - mOffset < sizeof(value)) in getUInt64()
253 if (mPacketSize < mOffset) in putInt8()
254 mPacketSize = mOffset; in putInt8()
260 if (mPacketSize < mOffset) in putUInt8()
261 mPacketSize = mOffset; in putUInt8()
268 if (mPacketSize < mOffset) in putInt16()
269 mPacketSize = mOffset; in putInt16()
[all …]
DMtpResponsePacket.cpp40 putUInt32(MTP_CONTAINER_LENGTH_OFFSET, mPacketSize); in write()
42 int ret = h->write(mBuffer, mPacketSize); in write()
53 mPacketSize = ret; in read()
55 mPacketSize = 0; in read()
DMtpPacket.cpp35 mPacketSize(0) in MtpPacket()
51 mPacketSize = MTP_CONTAINER_HEADER_SIZE; in reset()
72 for (size_t i = 0; i < mPacketSize; i++) { in dump()
88 int length = src.mPacketSize; in copyFrom()
90 mPacketSize = length; in copyFrom()
149 if (mPacketSize < offset + sizeof(uint32_t)) in setParameter()
150 mPacketSize = offset + sizeof(uint32_t); in setParameter()
DMtpEventPacket.cpp42 putUInt32(MTP_CONTAINER_LENGTH_OFFSET, mPacketSize); in write()
46 event.length = mPacketSize; in write()
56 mPacketSize = 0; in sendRequest()
67 mPacketSize = req->actual_length; in readResponse()
DMtpRequestPacket.cpp52 mPacketSize = read_size; in read()
66 putUInt32(MTP_CONTAINER_LENGTH_OFFSET, mPacketSize); in write()
69 request->buffer_length = mPacketSize; in write()
DMtpPacket.h39 size_t mPacketSize; variable
DMtpDataPacket.h125 inline bool hasData() const { return mPacketSize > MTP_CONTAINER_HEADER_SIZE; } in hasData()
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/
DUsbEndpointDescriptor.java74 private int mPacketSize; // 4:2 Maximum Packet Size this endpoint is capable of field in UsbEndpointDescriptor
97 return mPacketSize; in getPacketSize()
119 return new UsbEndpoint(mEndpointAddress, mAttributes, mPacketSize, mInterval); in toAndroid()
126 mPacketSize = stream.unpackUsbShort(); in parseRawDescriptors()
DUsbDeviceDescriptor.java44 private byte mPacketSize; // 7:1 Maximum Packet Size for Zero Endpoint. field in UsbDeviceDescriptor
79 return mPacketSize; in getPacketSize()
173 mPacketSize = stream.getByte(); in parseRawDescriptors()