Home
last modified time | relevance | path

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

/hardware/libhardware/modules/sensors/dynamic_sensor/
DRingBuffer.cpp39 size_t numAvailableToRead = mWritePos - mReadPos; in write() local
40 size_t numAvailableToWrite = mSize - numAvailableToRead; in write()
61 if (numAvailableToRead == 0 && size > 0) { in write()
71 size_t numAvailableToRead; in read() local
73 numAvailableToRead = mWritePos - mReadPos; in read()
74 if (numAvailableToRead > 0) { in read()
81 if (size > numAvailableToRead) { in read()
82 size = numAvailableToRead; in read()