Searched refs:mtp_data_header (Results 1 – 4 of 4) sorted by relevance
/frameworks/av/media/mtp/tests/ |
D | MtpFfsHandle_test.cpp | 261 char buf[size + sizeof(mtp_data_header) + 1]; in TYPED_TEST() 262 buf[size + sizeof(mtp_data_header)] = '\0'; in TYPED_TEST() 272 EXPECT_EQ(read(this->bulk_in, buf, size + sizeof(mtp_data_header)), in TYPED_TEST() 273 static_cast<long>(size + sizeof(mtp_data_header))); in TYPED_TEST() 275 struct mtp_data_header *header = reinterpret_cast<struct mtp_data_header*>(buf); in TYPED_TEST() 276 EXPECT_STREQ(buf + sizeof(mtp_data_header), ss.str().c_str()); in TYPED_TEST() 277 EXPECT_EQ(header->length, static_cast<unsigned int>(size + sizeof(mtp_data_header))); in TYPED_TEST() 290 char buf[size + sizeof(mtp_data_header) + 1]; in TYPED_TEST() 291 buf[size + sizeof(mtp_data_header)] = '\0'; in TYPED_TEST() 301 EXPECT_EQ(read(this->bulk_in, buf, size + sizeof(mtp_data_header)), in TYPED_TEST() [all …]
|
/frameworks/av/media/mtp/ |
D | MtpFfsCompatHandle.cpp | 249 file_length + sizeof(mtp_data_header)); in sendFile() 256 static_cast<uint64_t>(packet_size - sizeof(mtp_data_header)), file_length); in sendFile() 272 mtp_data_header *header = reinterpret_cast<mtp_data_header*>(data); in sendFile() 281 sizeof(mtp_data_header), init_read_len, offset)) in sendFile() 283 if (writeHandle(mBulkIn, data, sizeof(mtp_data_header) + init_read_len) == -1) return -1; in sendFile() 286 ret = init_read_len + sizeof(mtp_data_header); in sendFile()
|
D | MtpFfsHandle.cpp | 560 file_length + sizeof(mtp_data_header)); in sendFile() 567 static_cast<uint64_t>(packet_size - sizeof(mtp_data_header)), file_length); in sendFile() 582 mtp_data_header *header = reinterpret_cast<mtp_data_header*>(mIobuf[0].bufs.data()); in sendFile() 591 sizeof(mtp_data_header), init_read_len, offset)) in sendFile() 593 if (doAsync(mIobuf[0].bufs.data(), sizeof(mtp_data_header) + init_read_len, in sendFile() 598 ret = init_read_len + sizeof(mtp_data_header); in sendFile()
|
D | MtpFfsHandle.h | 102 struct mtp_data_header { struct
|