Searched refs:toFd (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/cmds/incidentd/src/ |
D | FdBuffer.cpp | 123 status_t FdBuffer::readProcessedDataInStream(int fd, unique_fd toFd, unique_fd fromFd, in readProcessedDataInStream() argument 127 {.fd = toFd.get(), .events = POLLOUT}, in readProcessedDataInStream() 135 fcntl(toFd.get(), F_SETFL, fcntl(toFd.get(), F_GETFL, 0) | O_NONBLOCK); in readProcessedDataInStream() 207 amt = ::write(toFd.get(), cirBuf + wpos, rpos - wpos); in readProcessedDataInStream() 209 amt = ::write(toFd.get(), cirBuf + wpos, BUFFER_SIZE - wpos); in readProcessedDataInStream() 213 VLOG("Fail to write toFd %d: %s", toFd.get(), strerror(errno)); in readProcessedDataInStream() 224 VLOG("Close write pipe %d", toFd.get()); in readProcessedDataInStream() 225 toFd.reset(); in readProcessedDataInStream()
|
D | FdBuffer.h | 63 status_t readProcessedDataInStream(int fd, unique_fd toFd, unique_fd fromFd, int64_t timeoutMs,
|
/frameworks/av/media/mtp/ |
D | MtpUtils.cpp | 164 android::base::unique_fd toFd(open(toPath, O_CREAT | O_WRONLY, FILE_PERM)); in copyFile() local 165 if (toFd == -1) { in copyFile() 180 ret = sendfile(toFd, fromFd, &offset, transfer_length); in copyFile()
|