Home
last modified time | relevance | path

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

/frameworks/base/media/tests/NativeMidiDemo/jni/
Dmessagequeue.cpp33 size_t messageLen = strlen(message); in writeMessage() local
34 if (messageLen == 0) return; in writeMessage()
36 messageLen += 1; // Also count in the null terminator. in writeMessage()
38 if (messageLen >= messageBufferSize) { in writeMessage()
39 snprintf(buffer, sizeof(buffer), "!!! Message too long: %zu bytes !!!", messageLen); in writeMessage()
41 messageLen = strlen(message); in writeMessage()
45 if (wrappedWritePos + messageLen >= messageBufferSize) { in writeMessage()
52 memcpy(messageBuffer + wrappedWritePos, message, messageLen); in writeMessage()
53 lastWritePos += messageLen; in writeMessage()
103 size_t messageLen = strlen(messageBufferCopy + (readPos % messageBufferSize)); in getRecentMessagesForJava() local
[all …]
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/
DBluetoothMapBmessageParser.java315 int messageLen = mBmsg.mBbodyLength - MSG_CONTAINER_LEN; in parseBody() local
316 int offset = messageLen + CRLF_LEN; in parseBody()
335 mBmsg.mMessage = new String(data, 0, messageLen, StandardCharsets.UTF_8); in parseBody()
371 mBmsg.mMessage = remng.substring(0, messageLen); in parseBody()