Home
last modified time | relevance | path

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

/frameworks/av/media/mtp/
DMtpFfsCompatHandle.cpp255 int init_read_len = std::min( in sendFile() local
281 sizeof(mtp_data_header), init_read_len, offset)) in sendFile()
282 != init_read_len) return -1; in sendFile()
283 if (writeHandle(mBulkIn, data, sizeof(mtp_data_header) + init_read_len) == -1) return -1; in sendFile()
284 file_length -= init_read_len; in sendFile()
285 offset += init_read_len; in sendFile()
286 ret = init_read_len + sizeof(mtp_data_header); in sendFile()
DMtpFfsHandle.cpp566 int init_read_len = std::min( in sendFile() local
591 sizeof(mtp_data_header), init_read_len, offset)) in sendFile()
592 != init_read_len) return -1; in sendFile()
593 if (doAsync(mIobuf[0].bufs.data(), sizeof(mtp_data_header) + init_read_len, in sendFile()
596 file_length -= init_read_len; in sendFile()
597 offset += init_read_len; in sendFile()
598 ret = init_read_len + sizeof(mtp_data_header); in sendFile()