Home
last modified time | relevance | path

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

/frameworks/av/media/mtp/
DMtpRequestPacket.cpp48 if (read_size >= MTP_CONTAINER_HEADER_SIZE in read()
49 && read_size <= MTP_CONTAINER_HEADER_SIZE + 5 * sizeof(uint32_t) in read()
50 && ((read_size - MTP_CONTAINER_HEADER_SIZE) & 3) == 0) { in read()
52 mParameterCount = (read_size - MTP_CONTAINER_HEADER_SIZE) / sizeof(uint32_t); in read()
DMtpDataPacket.cpp32 mOffset(MTP_CONTAINER_HEADER_SIZE) in MtpDataPacket()
41 mOffset = MTP_CONTAINER_HEADER_SIZE; in reset()
423 if (ret < MTP_CONTAINER_HEADER_SIZE) in read()
426 mOffset = MTP_CONTAINER_HEADER_SIZE; in read()
438 allocate(length + MTP_CONTAINER_HEADER_SIZE); in writeData()
439 memcpy(mBuffer + MTP_CONTAINER_HEADER_SIZE, data, length); in writeData()
440 length += MTP_CONTAINER_HEADER_SIZE; in writeData()
455 if (length >= MTP_CONTAINER_HEADER_SIZE) { in read()
518 request->buffer_length = MTP_CONTAINER_HEADER_SIZE; in writeDataHeader()
542 int length = mPacketSize - MTP_CONTAINER_HEADER_SIZE; in getData()
[all …]
DMtpDataPacket.h44 inline const uint8_t* getData() const { return mBuffer + MTP_CONTAINER_HEADER_SIZE; } in getData()
118 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.cpp709 if (fullLength < MTP_CONTAINER_HEADER_SIZE) { in readData()
713 const uint32_t length = fullLength - MTP_CONTAINER_HEADER_SIZE; in readData()
857 if (ret >= MTP_CONTAINER_HEADER_SIZE) { in readData()
892 if (ret >= MTP_CONTAINER_HEADER_SIZE) { in readResponse()
DMtpServer.cpp1002 if (ret < MTP_CONTAINER_HEADER_SIZE) { in doSendObject()
1006 initialData = ret - MTP_CONTAINER_HEADER_SIZE; in doSendObject()
1209 if (ret < MTP_CONTAINER_HEADER_SIZE) in doSendPartialObject()
1211 int initialData = ret - MTP_CONTAINER_HEADER_SIZE; in doSendPartialObject()
Dmtp.h38 #define MTP_CONTAINER_HEADER_SIZE 12 macro