Home
last modified time | relevance | path

Searched refs:aio (Results 1 – 3 of 3) sorted by relevance

/frameworks/av/media/mtp/tests/
DPosixAsyncIO_test.cpp54 struct aiocb aio; in TEST_F() local
55 struct aiocb *aiol[] = {&aio}; in TEST_F()
56 aio.aio_fildes = dummy_file.fd; in TEST_F()
57 aio.aio_buf = buf; in TEST_F()
58 aio.aio_offset = 0; in TEST_F()
59 aio.aio_nbytes = TEST_PACKET_SIZE; in TEST_F()
61 EXPECT_EQ(aio_read(&aio), 0); in TEST_F()
63 EXPECT_EQ(aio_return(&aio), TEST_PACKET_SIZE); in TEST_F()
70 struct aiocb aio; in TEST_F() local
71 struct aiocb *aiol[] = {&aio}; in TEST_F()
[all …]
/frameworks/av/media/mtp/
DMtpFfsCompatHandle.cpp170 struct aiocb aio; in receiveFile() local
171 aio.aio_fildes = mfr.fd; in receiveFile()
172 aio.aio_buf = nullptr; in receiveFile()
173 struct aiocb *aiol[] = {&aio}; in receiveFile()
200 int written = aio_return(&aio); in receiveFile()
202 errno = aio_error(&aio); in receiveFile()
205 if (static_cast<size_t>(written) < aio.aio_nbytes) { in receiveFile()
227 aio_prepare(&aio, data, length, offset); in receiveFile()
228 aio_write(&aio); in receiveFile()
263 struct aiocb aio; in sendFile() local
[all …]
DMtpFfsHandle.cpp444 struct aiocb aio; in receiveFile() local
445 aio.aio_fildes = mfr.fd; in receiveFile()
446 aio.aio_buf = nullptr; in receiveFile()
447 struct aiocb *aiol[] = {&aio}; in receiveFile()
472 int written = aio_return(&aio); in receiveFile()
473 if (static_cast<size_t>(written) < aio.aio_nbytes) { in receiveFile()
474 errno = written == -1 ? aio_error(&aio) : EIO; in receiveFile()
539 aio_prepare(&aio, mIobuf[i].bufs.data(), ret, offset); in receiveFile()
540 aio_write(&aio); in receiveFile()
571 struct aiocb aio; in sendFile() local
[all …]