Lines Matching refs:head

80         byte[] head = null;
88 head = ObexHelper.createHeader(header, false);
89 totalLength += head.length;
107 if (head != null) {
108 System.arraycopy(head, 0, requestPacket, 4, head.length);
145 HeaderSet head;
147 head = new HeaderSet();
149 head = header;
150 if (head.nonce != null) {
152 System.arraycopy(head.nonce, 0, mChallengeDigest, 0, 16);
157 head.mConnectionID = new byte[4];
158 System.arraycopy(mConnectionId, 0, head.mConnectionID, 0, 4);
161 return new ClientOperation(maxPacketSize, this, head, true);
192 byte[] head = null;
203 head = ObexHelper.createHeader(header, false);
205 if ((head.length + 3) > maxPacketSize) {
211 head = new byte[5];
212 head[0] = (byte)HeaderSet.CONNECTION_ID;
213 System.arraycopy(mConnectionId, 0, head, 1, 4);
218 sendRequest(ObexHelper.OBEX_OPCODE_DISCONNECT, head, returnHeaderSet, null);
253 HeaderSet head;
255 head = new HeaderSet();
257 head = header;
259 if (head.nonce != null) {
261 System.arraycopy(head.nonce, 0, mChallengeDigest, 0, 16);
268 head.mConnectionID = new byte[4];
269 System.arraycopy(mConnectionId, 0, head.mConnectionID, 0, 4);
272 return new ClientOperation(maxPacketSize, this, head, false);
290 byte[] head = null;
314 head = ObexHelper.createHeader(headset, false);
315 totalLength += head.length;
347 System.arraycopy(head, 0, packet, 2, head.length);
400 * @param head the headers to send to the client
408 public boolean sendRequest(int opCode, byte[] head, HeaderSet header,
411 if (head != null) {
412 if ((head.length + 3) > ObexHelper.MAX_PACKET_SIZE_INT) {
422 if (head == null) {
426 out.write((byte)((head.length + 3) >> 8));
427 out.write((byte)(head.length + 3));
428 out.write(head);