Home
last modified time | relevance | path

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

/frameworks/base/media/tests/NativeMidiDemo/jni/
Dmessagequeue.cpp26 static const int messageBufferSize = 64 * 1024; variable
27 static char messageBuffer[messageBufferSize];
38 if (messageLen >= messageBufferSize) { in writeMessage()
44 size_t wrappedWritePos = lastWritePos % messageBufferSize; in writeMessage()
45 if (wrappedWritePos + messageLen >= messageBufferSize) { in writeMessage()
46 size_t tailLen = messageBufferSize - wrappedWritePos; in writeMessage()
57 static char messageBufferCopy[messageBufferSize];
71 if (lastWritePos - lastReadPos > messageBufferSize) { in getRecentMessagesForJava()
78 if (lastWritePos / messageBufferSize == lastReadPos / messageBufferSize) { in getRecentMessagesForJava()
79 size_t wrappedReadPos = lastReadPos % messageBufferSize; in getRecentMessagesForJava()
[all …]