Lines Matching refs:length

133                         int length = mInput.read();
134 length = (length << 8) + mInput.read();
135 for (int i = 3; i < length; i++) {
164 int length = mInput.read();
165 length = (length << 8) + mInput.read();
166 if (length > ObexHelper.MAX_PACKET_SIZE_INT) {
169 for (int i = 3; i < length; i++) {
261 totalLength += header.length;
266 System.arraycopy(header, 0, data, 3, header.length);
287 int length;
298 length = mInput.read();
299 length = (length << 8) + mInput.read();
303 if (length > ObexHelper.MAX_PACKET_SIZE_INT) {
307 if (length > 5) {
308 byte[] headers = new byte[length - 5];
311 while (bytesReceived != headers.length) {
312 bytesReceived += mInput.read(headers, bytesReceived, headers.length
339 reply.mAuthResp = new byte[request.mAuthResp.length];
341 reply.mAuthResp.length);
378 totalLength += head.length;
394 System.arraycopy(head, 0, replyData, 3, head.length);
413 int length;
421 length = mInput.read();
422 length = (length << 8) + mInput.read();
424 if (length > ObexHelper.MAX_PACKET_SIZE_INT) {
428 if (length > 3) {
429 byte[] headers = new byte[length - 3];
432 while (bytesReceived != headers.length) {
433 bytesReceived += mInput.read(headers, bytesReceived, headers.length
477 totalLength += head.length;
490 replyData = new byte[3 + head.length];
498 System.arraycopy(head, 0, replyData, 3, head.length);
531 * Read in the length of the OBEX packet, OBEX version, flags, and max
532 * packet length
554 while (bytesReceived != headers.length) {
555 bytesReceived += mInput.read(headers, bytesReceived, headers.length
580 reply.mAuthResp = new byte[request.mAuthResp.length];
582 reply.mAuthResp.length);
605 totalLength += head.length;
623 byte[] length = ObexHelper.convertToByteArray(totalLength);
633 sendData[1] = length[2];
634 sendData[2] = length[3];
641 System.arraycopy(head, 0, sendData, 7, head.length);