Searched refs:mfr (Results 1 – 9 of 9) sorted by relevance
/frameworks/av/media/mtp/tests/ |
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 794 mfr.fd = open(filePath, O_RDONLY); in doGetObject() 795 if (mfr.fd < 0) { in doGetObject() 798 mfr.offset = 0; in doGetObject() 799 mfr.length = fileLength; in doGetObject() 800 mfr.command = mRequest.getOperationCode(); in doGetObject() 801 mfr.transaction_id = mRequest.getTransactionID(); in doGetObject() 804 int ret = mHandle->sendFile(mfr); in doGetObject() 819 fstat(mfr.fd, &sstat); in doGetObject() 823 closeObjFd(mfr.fd, filePath); 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 | 438 int MtpFfsHandle::receiveFile(mtp_file_range mfr, bool zero_packet) { in receiveFile() argument 441 uint32_t file_length = mfr.length; in receiveFile() 442 uint64_t offset = mfr.offset; in receiveFile() 445 aio.aio_fildes = mfr.fd; in receiveFile() 458 advise(mfr.fd); in receiveFile() 557 int MtpFfsHandle::sendFile(mtp_file_range mfr) { in sendFile() argument 558 uint64_t file_length = mfr.length; in sendFile() 561 uint64_t offset = mfr.offset; in sendFile() 569 advise(mfr.fd); in sendFile() 572 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 | 89 int receiveFile(mtp_file_range mfr, bool zero_packet) override; 90 int sendFile(mtp_file_range mfr) override;
|