Home
last modified time | relevance | path

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

/frameworks/base/obex/javax/obex/
DClientOperation.java420 int bodyLength = -1; in sendRequest() local
423 bodyLength = mPrivateOutput.size(); in sendRequest()
473 if (bodyLength > 0) { in sendRequest()
482 if (bodyLength > 0) { in sendRequest()
488 if (bodyLength > (mMaxPacketSize - headerArray.length - 6)) { in sendRequest()
491 bodyLength = mMaxPacketSize - headerArray.length - 6; in sendRequest()
494 byte[] body = mPrivateOutput.readBytes(bodyLength); in sendRequest()
509 bodyLength += 3; in sendRequest()
510 out.write((byte)(bodyLength >> 8)); in sendRequest()
511 out.write((byte)bodyLength); in sendRequest()
[all …]
DServerOperation.java297 int bodyLength = -1; in sendReply() local
301 bodyLength = mPrivateOutput.size(); in sendReply()
302 orginalBodyLength = bodyLength; in sendReply()
334 if (bodyLength > 0) { in sendReply()
351 if (bodyLength > 0) { in sendReply()
357 if (bodyLength > (mMaxPacketLength - headerArray.length - 6)) { in sendReply()
358 bodyLength = mMaxPacketLength - headerArray.length - 6; in sendReply()
361 byte[] body = mPrivateOutput.readBytes(bodyLength); in sendReply()
371 bodyLength += 3; in sendReply()
372 out.write((byte)(bodyLength >> 8)); in sendReply()
[all …]
/frameworks/base/core/java/android/net/http/
DRequestQueue.java295 InputStream bodyProvider, int bodyLength) { in queueRequest() argument
298 bodyProvider, bodyLength); in queueRequest()
315 InputStream bodyProvider, int bodyLength) { in queueRequest() argument
330 bodyLength, eventHandler, headers); in queueRequest()
340 this, url, uri, method, headers, bodyProvider, bodyLength, in queueRequest()
369 int bodyLength) { in queueSynchronousRequest() argument
377 bodyProvider, bodyLength, eventHandler, headers); in queueSynchronousRequest()
388 bodyLength, req, conn); in queueSynchronousRequest()
DRequest.java109 InputStream bodyProvider, int bodyLength, in Request() argument
117 mBodyLength = bodyLength; in Request()
128 setBodyProvider(bodyProvider, bodyLength); in Request()
491 private void setBodyProvider(InputStream bodyProvider, int bodyLength) { in setBodyProvider() argument
500 new InputStreamEntity(bodyProvider, bodyLength)); in setBodyProvider()
DRequestHandle.java64 InputStream bodyProvider, int bodyLength, Request request) { in RequestHandle() argument
71 mBodyLength = bodyLength; in RequestHandle()
88 InputStream bodyProvider, int bodyLength, Request request, in RequestHandle() argument
90 this(requestQueue, url, uri, method, headers, bodyProvider, bodyLength, in RequestHandle()
/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()