Home
last modified time | relevance | path

Searched refs:MAX_FILE_CHUNK_SIZE (Results 1 – 2 of 2) sorted by relevance

/frameworks/av/media/mtp/
DMtpFfsHandle.cpp56 constexpr int MAX_FILE_CHUNK_SIZE = 3145728; variable
576 mBuffer1.resize(MAX_FILE_CHUNK_SIZE); in start()
577 mBuffer2.resize(MAX_FILE_CHUNK_SIZE); in start()
578 posix_madvise(mBuffer1.data(), MAX_FILE_CHUNK_SIZE, in start()
580 posix_madvise(mBuffer2.data(), MAX_FILE_CHUNK_SIZE, in start()
676 length = std::min(static_cast<uint32_t>(MAX_FILE_CHUNK_SIZE), file_length); in receiveFile()
820 length = std::min(static_cast<uint64_t>(MAX_FILE_CHUNK_SIZE), file_length); in sendFile()
/frameworks/av/media/mtp/tests/
DMtpFfsHandle_test.cpp32 constexpr int MAX_FILE_CHUNK_SIZE = 3 * 1024 * 1024; variable
83 ffs_handle->mBuffer1.resize(MAX_FILE_CHUNK_SIZE); in MtpFfsHandleTest()
84 ffs_handle->mBuffer2.resize(MAX_FILE_CHUNK_SIZE); in MtpFfsHandleTest()