HomeSort by relevance Sort by last modified time
    Searched refs:mtp_data_header (Results 1 - 4 of 4) sorted by null

  /frameworks/av/media/mtp/tests/
MtpFfsHandle_test.cpp 261 char buf[size + sizeof(mtp_data_header) + 1];
262 buf[size + sizeof(mtp_data_header)] = '\0';
272 EXPECT_EQ(read(this->bulk_in, buf, size + sizeof(mtp_data_header)),
273 static_cast<long>(size + sizeof(mtp_data_header)));
275 struct mtp_data_header *header = reinterpret_cast<struct mtp_data_header*>(buf);
276 EXPECT_STREQ(buf + sizeof(mtp_data_header), ss.str().c_str());
277 EXPECT_EQ(header->length, static_cast<unsigned int>(size + sizeof(mtp_data_header)));
290 char buf[size + sizeof(mtp_data_header) + 1];
291 buf[size + sizeof(mtp_data_header)] = '\0'
    [all...]
  /frameworks/av/media/mtp/
MtpFfsCompatHandle.cpp 249 file_length + sizeof(mtp_data_header));
256 static_cast<uint64_t>(packet_size - sizeof(mtp_data_header)), file_length);
272 mtp_data_header *header = reinterpret_cast<mtp_data_header*>(data);
281 sizeof(mtp_data_header), init_read_len, offset))
283 if (writeHandle(mBulkIn, data, sizeof(mtp_data_header) + init_read_len) == -1) return -1;
286 ret = init_read_len + sizeof(mtp_data_header);
MtpFfsHandle.h 102 struct mtp_data_header { struct in namespace:android
MtpFfsHandle.cpp 558 file_length + sizeof(mtp_data_header));
565 static_cast<uint64_t>(packet_size - sizeof(mtp_data_header)), file_length);
580 mtp_data_header *header = reinterpret_cast<mtp_data_header*>(mIobuf[0].bufs.data());
589 sizeof(mtp_data_header), init_read_len, offset))
591 if (doAsync(mIobuf[0].bufs.data(), sizeof(mtp_data_header) + init_read_len,
596 ret = init_read_len + sizeof(mtp_data_header);

Completed in 76 milliseconds