Home
last modified time | relevance | path

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

/frameworks/base/obex/javax/obex/
DServerOperation.java401 int bodyLength = -1; in sendReply() local
405 bodyLength = mPrivateOutput.size(); in sendReply()
406 orginalBodyLength = bodyLength; in sendReply()
438 if (bodyLength > 0) { in sendReply()
477 if (bodyLength > 0) { in sendReply()
483 if (bodyLength > (mMaxPacketLength - headerArray.length - 6)) { in sendReply()
484 bodyLength = mMaxPacketLength - headerArray.length - 6; in sendReply()
487 byte[] body = mPrivateOutput.readBytes(bodyLength); in sendReply()
497 bodyLength += 3; in sendReply()
498 out.write((byte)(bodyLength >> 8)); in sendReply()
[all …]
DClientOperation.java444 int bodyLength = -1; in sendRequest() local
447 bodyLength = mPrivateOutput.size(); in sendRequest()
503 if (bodyLength > 0) { in sendRequest()
517 if (bodyLength > 0) { in sendRequest()
523 if (bodyLength > (mMaxPacketSize - headerArray.length - 6)) { in sendRequest()
526 bodyLength = mMaxPacketSize - headerArray.length - 6; in sendRequest()
529 byte[] body = mPrivateOutput.readBytes(bodyLength); in sendRequest()
544 bodyLength += 3; in sendRequest()
545 out.write((byte)(bodyLength >> 8)); in sendRequest()
546 out.write((byte)bodyLength); in sendRequest()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DUsimDataDownloadHandler.java126 int bodyLength = getEnvelopeBodyLength(scAddressLength, tpduLength); in handleDataDownload() local
130 int totalLength = bodyLength + 1 + (bodyLength > 127 ? 2 : 1); in handleDataDownload()
137 if (bodyLength > 127) { in handleDataDownload()
140 envelope[index++] = (byte) bodyLength; in handleDataDownload()
/frameworks/base/tests/CoreTests/android/core/
DRequestAPITest.java465 int bodyLength = mBody.length(); in testPostWithData() local
466 if (bodyLength > 0) { in testPostWithData()
472 … "http://localhost:8080/test1", "POST", null, testEventHandler, bodyProvider, bodyLength); in testPostWithData()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DDisplayIdentification.cpp122 const size_t bodyLength = header & 0b11111; in parseCea861Block() local
124 const size_t dataBlockSize = bodyLength + kDataBlockHeaderSize; in parseCea861Block()
153 dataBlockOffset += bodyLength + kDataBlockHeaderSize; in parseCea861Block()
/frameworks/base/services/core/jni/
Dcom_android_server_hdmi_HdmiCecController.cpp368 size_t bodyLength = MIN(static_cast<size_t>(len), in nativeSendCecCommand() local
370 message.body.resize(bodyLength); in nativeSendCecCommand()
371 for (size_t i = 0; i < bodyLength; ++i) { in nativeSendCecCommand()