Home
last modified time | relevance | path

Searched refs:MTP_CONTAINER_HEADER_SIZE (Results 1 – 6 of 6) sorted by relevance

/frameworks/av/media/mtp/
DMtpDataPacket.cpp34 mOffset(MTP_CONTAINER_HEADER_SIZE) in MtpDataPacket()
43 mOffset = MTP_CONTAINER_HEADER_SIZE; in reset()
351 if (ret < MTP_CONTAINER_HEADER_SIZE) in read()
354 mOffset = MTP_CONTAINER_HEADER_SIZE; in read()
367 memcpy(mBuffer + MTP_CONTAINER_HEADER_SIZE, data, length); in writeData()
368 length += MTP_CONTAINER_HEADER_SIZE; in writeData()
383 if (length >= MTP_CONTAINER_HEADER_SIZE) { in read()
446 request->buffer_length = MTP_CONTAINER_HEADER_SIZE; in writeDataHeader()
457 request->buffer_length = MTP_CONTAINER_HEADER_SIZE; in write()
459 if (ret == MTP_CONTAINER_HEADER_SIZE) { in write()
[all …]
DMtpDataPacket.h44 inline const uint8_t* getData() const { return mBuffer + MTP_CONTAINER_HEADER_SIZE; } in getData()
117 inline bool hasData() const { return mPacketSize > MTP_CONTAINER_HEADER_SIZE; } in hasData()
DMtpPacket.cpp50 allocate(MTP_CONTAINER_HEADER_SIZE); in reset()
51 mPacketSize = MTP_CONTAINER_HEADER_SIZE; in reset()
DMtpDevice.cpp586 if (length - MTP_CONTAINER_HEADER_SIZE != objectSize) { in readObject()
591 length -= MTP_CONTAINER_HEADER_SIZE; in readObject()
690 if (length < MTP_CONTAINER_HEADER_SIZE) in readObject()
692 length -= MTP_CONTAINER_HEADER_SIZE; in readObject()
791 if (ret >= MTP_CONTAINER_HEADER_SIZE) { in readData()
826 if (ret >= MTP_CONTAINER_HEADER_SIZE) { in readResponse()
DMtpServer.cpp927 if (ret < MTP_CONTAINER_HEADER_SIZE) { in doSendObject()
931 initialData = ret - MTP_CONTAINER_HEADER_SIZE; in doSendObject()
1116 if (ret < MTP_CONTAINER_HEADER_SIZE) in doSendPartialObject()
1118 int initialData = ret - MTP_CONTAINER_HEADER_SIZE; in doSendPartialObject()
Dmtp.h38 #define MTP_CONTAINER_HEADER_SIZE 12 macro