Searched refs:headerArray (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/obex/javax/obex/ |
D | ObexHelper.java | 186 public static byte[] updateHeaderSet(HeaderSet header, byte[] headerArray) throws IOException { in updateHeaderSet() argument 194 while (index < headerArray.length) { in updateHeaderSet() 195 headerID = 0xFF & headerArray[index]; in updateHeaderSet() 211 length = ((0xFF & headerArray[index]) << 8) + in updateHeaderSet() 212 (0xFF & headerArray[index + 1]); in updateHeaderSet() 221 System.arraycopy(headerArray, index, value, 0, length); in updateHeaderSet() 243 System.arraycopy(headerArray, index, headerImpl.mAuthChall, 0, in updateHeaderSet() 249 System.arraycopy(headerArray, index, headerImpl.mAuthResp, 0, in updateHeaderSet() 258 System.arraycopy(headerArray, index, body, 1, length); in updateHeaderSet() 306 headerImpl.setHeader(headerID, Byte.valueOf(headerArray[index])); in updateHeaderSet() [all …]
|
D | ClientOperation.java | 327 byte[] headerArray = ObexHelper.createHeader(mRequestHeader, false); in getHeaderLength() 328 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 …]
|
D | ServerOperation.java | 400 byte[] headerArray = ObexHelper.createHeader(replyHeader, true); // This clears the headers in sendReply() 409 if ((ObexHelper.BASE_PACKET_LENGTH + headerArray.length) > mMaxPacketLength) { in sendReply() 414 while (end != headerArray.length) { in sendReply() 415 end = ObexHelper.findHeaderEnd(headerArray, start, mMaxPacketLength in sendReply() 432 System.arraycopy(headerArray, start, sendHeader, 0, sendHeader.length); in sendReply() 445 out.write(headerArray); in sendReply() 476 if ((finalBitSet) || (headerArray.length < (mMaxPacketLength - 20))) { in sendReply() 483 if (bodyLength > (mMaxPacketLength - headerArray.length - 6)) { in sendReply() 484 bodyLength = mMaxPacketLength - headerArray.length - 6; in sendReply() 756 byte[] headerArray = ObexHelper.createHeader(replyHeader, false); in getHeaderLength() [all …]
|