Home
last modified time | relevance | path

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

/frameworks/base/obex/javax/obex/
DObexHelper.java183 public static byte[] updateHeaderSet(HeaderSet header, byte[] headerArray) throws IOException { in updateHeaderSet() argument
191 while (index < headerArray.length) { in updateHeaderSet()
192 headerID = 0xFF & headerArray[index]; in updateHeaderSet()
208 length = 0xFF & headerArray[index]; in updateHeaderSet()
211 length += 0xFF & headerArray[index]; in updateHeaderSet()
215 System.arraycopy(headerArray, index, value, 0, length); in updateHeaderSet()
237 System.arraycopy(headerArray, index, headerImpl.mAuthChall, 0, in updateHeaderSet()
243 System.arraycopy(headerArray, index, headerImpl.mAuthResp, 0, in updateHeaderSet()
252 System.arraycopy(headerArray, index, body, 1, length); in updateHeaderSet()
300 headerImpl.setHeader(headerID, Byte.valueOf(headerArray[index])); in updateHeaderSet()
[all …]
DClientOperation.java328 byte[] headerArray = ObexHelper.createHeader(mRequestHeader, false); in getHeaderLength()
329 return headerArray.length; in getHeaderLength()
445 byte[] headerArray = ObexHelper.createHeader(mRequestHeader, true); in sendRequest()
459 if ((ObexHelper.BASE_PACKET_LENGTH + headerArray.length + MINIMUM_BODY_LENGTH) in sendRequest()
465 while (end != headerArray.length) { in sendRequest()
468 end = ObexHelper.findHeaderEnd(headerArray, start, mMaxPacketSize in sendRequest()
488 System.arraycopy(headerArray, start, sendHeader, 0, sendHeader.length); in sendRequest()
514 out.write(headerArray); in sendRequest()
523 if (bodyLength > (mMaxPacketSize - headerArray.length - 6)) { in sendRequest()
526 bodyLength = mMaxPacketSize - headerArray.length - 6; in sendRequest()
[all …]
DServerOperation.java390 byte[] headerArray = ObexHelper.createHeader(replyHeader, true); // This clears the headers in sendReply()
399 if ((ObexHelper.BASE_PACKET_LENGTH + headerArray.length) > mMaxPacketLength) { in sendReply()
404 while (end != headerArray.length) { in sendReply()
405 end = ObexHelper.findHeaderEnd(headerArray, start, mMaxPacketLength in sendReply()
422 System.arraycopy(headerArray, start, sendHeader, 0, sendHeader.length); in sendReply()
435 out.write(headerArray); in sendReply()
466 if ((finalBitSet) || (headerArray.length < (mMaxPacketLength - 20))) { in sendReply()
473 if (bodyLength > (mMaxPacketLength - headerArray.length - 6)) { in sendReply()
474 bodyLength = mMaxPacketLength - headerArray.length - 6; in sendReply()
746 byte[] headerArray = ObexHelper.createHeader(replyHeader, false); in getHeaderLength()
[all …]