Home
last modified time | relevance | path

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

/frameworks/base/obex/javax/obex/
DServerOperation.java391 int bodyLength = -1; in sendReply() local
395 bodyLength = mPrivateOutput.size(); in sendReply()
396 orginalBodyLength = bodyLength; in sendReply()
428 if (bodyLength > 0) { in sendReply()
467 if (bodyLength > 0) { in sendReply()
473 if (bodyLength > (mMaxPacketLength - headerArray.length - 6)) { in sendReply()
474 bodyLength = mMaxPacketLength - headerArray.length - 6; in sendReply()
477 byte[] body = mPrivateOutput.readBytes(bodyLength); in sendReply()
487 bodyLength += 3; in sendReply()
488 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.java122 int bodyLength = getEnvelopeBodyLength(scAddressLength, tpduLength); in handleDataDownload() local
126 int totalLength = bodyLength + 1 + (bodyLength > 127 ? 2 : 1); in handleDataDownload()
133 if (bodyLength > 127) { in handleDataDownload()
136 envelope[index++] = (byte) bodyLength; in handleDataDownload()
/frameworks/base/tests/CoreTests/android/core/
DRequestAPITest.java466 int bodyLength = mBody.length(); in testPostWithData() local
467 if (bodyLength > 0) { in testPostWithData()
473 … "http://localhost:8080/test1", "POST", null, testEventHandler, bodyProvider, bodyLength); in testPostWithData()
/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()