Home
last modified time | relevance | path

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

/frameworks/base/media/mtp/
DMtpDataPacket.cpp156 if (mPacketSize < mOffset) in putInt8()
157 mPacketSize = mOffset; in putInt8()
163 if (mPacketSize < mOffset) in putUInt8()
164 mPacketSize = mOffset; in putUInt8()
171 if (mPacketSize < mOffset) in putInt16()
172 mPacketSize = mOffset; in putInt16()
179 if (mPacketSize < mOffset) in putUInt16()
180 mPacketSize = mOffset; in putUInt16()
189 if (mPacketSize < mOffset) in putInt32()
190 mPacketSize = mOffset; in putInt32()
[all …]
DMtpRequestPacket.cpp41 mPacketSize = ret; in read()
43 mPacketSize = 0; in read()
52 putUInt32(MTP_CONTAINER_LENGTH_OFFSET, mPacketSize); in write()
55 request->buffer_length = mPacketSize; in write()
DMtpResponsePacket.cpp39 putUInt32(MTP_CONTAINER_LENGTH_OFFSET, mPacketSize); in write()
41 int ret = ::write(fd, mBuffer, mPacketSize); in write()
52 mPacketSize = ret; in read()
54 mPacketSize = 0; in read()
DMtpEventPacket.cpp46 putUInt32(MTP_CONTAINER_LENGTH_OFFSET, mPacketSize); in write()
50 event.length = mPacketSize; in write()
62 mPacketSize = ret; in read()
64 mPacketSize = 0; in read()
DMtpPacket.cpp35 mPacketSize(0) in MtpPacket()
51 mPacketSize = MTP_CONTAINER_HEADER_SIZE; in reset()
72 for (int 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()
DMtpPacket.h35 int mPacketSize; variable
DMtpDataPacket.h117 inline bool hasData() const { return mPacketSize > MTP_CONTAINER_HEADER_SIZE; } in hasData()