Home
last modified time | relevance | path

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

/frameworks/base/cmds/incidentd/src/
DFdBuffer.cpp163 int rpos = 0, wpos = 0; in readProcessedDataInStream() local
210 if (rpos >= wpos) { in readProcessedDataInStream()
213 amt = TEMP_FAILURE_RETRY(::read(fd, cirBuf + rpos, wpos - rpos)); in readProcessedDataInStream()
232 if (rpos > wpos) { in readProcessedDataInStream()
233 amt = TEMP_FAILURE_RETRY(::write(toFd.get(), cirBuf + wpos, rpos - wpos)); in readProcessedDataInStream()
235 amt = TEMP_FAILURE_RETRY(::write(toFd.get(), cirBuf + wpos, BUFFER_SIZE - wpos)); in readProcessedDataInStream()
243 wpos += amt; in readProcessedDataInStream()
259 if (wpos >= BUFFER_SIZE) { in readProcessedDataInStream()
260 wpos = 0; in readProcessedDataInStream()