Home
last modified time | relevance | path

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

/frameworks/base/media/tests/NativeMidiDemo/jni/
Dmessagequeue.cpp61 static unsigned long long lastReadPos = 0; in getRecentMessagesForJava() local
71 if (lastWritePos - lastReadPos > messageBufferSize) { in getRecentMessagesForJava()
74 lastReadPos = lastWritePos; in getRecentMessagesForJava()
77 if (lastWritePos == lastReadPos) return result; in getRecentMessagesForJava()
78 if (lastWritePos / messageBufferSize == lastReadPos / messageBufferSize) { in getRecentMessagesForJava()
79 size_t wrappedReadPos = lastReadPos % messageBufferSize; in getRecentMessagesForJava()
84 size_t wrappedReadPos = lastReadPos % messageBufferSize; in getRecentMessagesForJava()
92 if (newLastWritePos - lastReadPos > messageBufferSize) { in getRecentMessagesForJava()
95 lastReadPos = lastWritePos = newLastWritePos; in getRecentMessagesForJava()
102 for (unsigned long long readPos = lastReadPos; readPos < lastWritePos; ) { in getRecentMessagesForJava()
[all …]