Searched refs:mfr (Results 1 – 10 of 10) sorted by relevance
/frameworks/av/media/mtp/tests/MtpFfsHandleTest/ |
D | MtpFfsHandle_test.cpp | 166 mtp_file_range mfr; in TYPED_TEST() local 171 mfr.offset = 0; in TYPED_TEST() 172 mfr.length = size; in TYPED_TEST() 173 mfr.fd = this->dummy_file.fd; in TYPED_TEST() 176 EXPECT_EQ(this->handle->receiveFile(mfr, false), 0); in TYPED_TEST() 183 mtp_file_range mfr; in TYPED_TEST() local 188 mfr.offset = 0; in TYPED_TEST() 189 mfr.length = size; in TYPED_TEST() 190 mfr.fd = this->dummy_file.fd; in TYPED_TEST() 195 EXPECT_EQ(this->handle->receiveFile(mfr, false), 0); in TYPED_TEST() [all …]
|
/frameworks/av/media/mtp/ |
D | MtpFfsCompatHandle.cpp | 160 int MtpFfsCompatHandle::receiveFile(mtp_file_range mfr, bool zero_packet) { in receiveFile() argument 163 uint32_t file_length = mfr.length; in receiveFile() 164 uint64_t offset = mfr.offset; in receiveFile() 171 aio.aio_fildes = mfr.fd; in receiveFile() 179 posix_fadvise(mfr.fd, 0, 0, POSIX_FADV_SEQUENTIAL | POSIX_FADV_NOREUSE); in receiveFile() 246 int MtpFfsCompatHandle::sendFile(mtp_file_range mfr) { in sendFile() argument 247 uint64_t file_length = mfr.length; in sendFile() 250 uint64_t offset = mfr.offset; in sendFile() 261 posix_fadvise(mfr.fd, 0, 0, POSIX_FADV_SEQUENTIAL | POSIX_FADV_NOREUSE); in sendFile() 264 aio.aio_fildes = mfr.fd; in sendFile() [all …]
|
D | MtpServer.cpp | 793 mtp_file_range mfr; in doGetObject() local 805 mfr.fd = mDatabase->openFilePath(filePath, true); in doGetObject() 806 fstat(mfr.fd, &sstat); in doGetObject() 809 if (mfr.fd < 0) { in doGetObject() 819 mfr.fd = open(filePath, O_RDONLY); in doGetObject() 820 if (mfr.fd < 0) { in doGetObject() 823 fstat(mfr.fd, &sstat); in doGetObject() 827 mfr.offset = 0; in doGetObject() 828 mfr.length = fileLength; in doGetObject() 829 mfr.command = mRequest.getOperationCode(); in doGetObject() [all …]
|
D | MtpDevHandle.cpp | 51 int MtpDevHandle::receiveFile(mtp_file_range mfr, bool) { in receiveFile() argument 52 return ioctl(mFd, MTP_RECEIVE_FILE, reinterpret_cast<unsigned long>(&mfr)); in receiveFile() 55 int MtpDevHandle::sendFile(mtp_file_range mfr) { in sendFile() argument 56 return ioctl(mFd, MTP_SEND_FILE_WITH_HEADER, reinterpret_cast<unsigned long>(&mfr)); in sendFile()
|
D | MtpFfsHandle.cpp | 443 int MtpFfsHandle::receiveFile(mtp_file_range mfr, bool zero_packet) { in receiveFile() argument 446 uint32_t file_length = mfr.length; in receiveFile() 447 uint64_t offset = mfr.offset; in receiveFile() 450 aio.aio_fildes = mfr.fd; in receiveFile() 463 advise(mfr.fd); in receiveFile() 564 int MtpFfsHandle::sendFile(mtp_file_range mfr) { in sendFile() argument 565 uint64_t file_length = mfr.length; in sendFile() 568 uint64_t offset = mfr.offset; in sendFile() 576 advise(mfr.fd); in sendFile() 579 aio.aio_fildes = mfr.fd; in sendFile() [all …]
|
D | MtpDevHandle.h | 35 int receiveFile(mtp_file_range mfr, bool); 36 int sendFile(mtp_file_range mfr);
|
D | IMtpHandle.h | 30 virtual int receiveFile(mtp_file_range mfr, bool zero_packet) = 0; 31 virtual int sendFile(mtp_file_range mfr) = 0;
|
D | MtpFfsCompatHandle.h | 38 int receiveFile(mtp_file_range mfr, bool zero_packet) override; 39 int sendFile(mtp_file_range mfr) override;
|
D | MtpFfsHandle.h | 92 int receiveFile(mtp_file_range mfr, bool zero_packet) override; 93 int sendFile(mtp_file_range mfr) override;
|
/frameworks/av/media/mtp/tests/MtpFuzzer/ |
D | MtpMockHandle.h | 72 int receiveFile(mtp_file_range mfr, bool zero_packet) { in receiveFile() argument 76 int sendFile(mtp_file_range mfr) { in sendFile() argument
|