Home
last modified time | relevance | path

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

/frameworks/base/obex/javax/obex/
DHeaderSet.java272 public void setHeader(int headerID, Object headerValue) { in setHeader() argument
275 switch (headerID) { in setHeader()
398 if ((headerID >= 0x30) && (headerID <= 0x3F)) { in setHeader()
403 mUnicodeUserDefined[headerID - 0x30] = (String)headerValue; in setHeader()
408 if ((headerID >= 0x70) && (headerID <= 0x7F)) { in setHeader()
411 mSequenceUserDefined[headerID - 0x70] = null; in setHeader()
417 … mSequenceUserDefined[headerID - 0x70] = new byte[((byte[])headerValue).length]; in setHeader()
418 System.arraycopy(headerValue, 0, mSequenceUserDefined[headerID - 0x70], in setHeader()
419 0, mSequenceUserDefined[headerID - 0x70].length); in setHeader()
425 if ((headerID >= 0xB0) && (headerID <= 0xBF)) { in setHeader()
[all …]
DObexHelper.java169 int headerID; in updateHeaderSet() local
175 headerID = 0xFF & headerArray[index]; in updateHeaderSet()
176 switch (headerID & (0xC0)) { in updateHeaderSet()
202 switch (headerID) { in updateHeaderSet()
207 headerImpl.setHeader(headerID, new String(value, 0, in updateHeaderSet()
210 headerImpl.setHeader(headerID, new String(value, 0, in updateHeaderSet()
234 body[0] = (byte)headerID; in updateHeaderSet()
265 if ((headerID & 0xC0) == 0x00) { in updateHeaderSet()
266 headerImpl.setHeader(headerID, ObexHelper.convertToUnicode( in updateHeaderSet()
269 headerImpl.setHeader(headerID, value); in updateHeaderSet()
[all …]
DServerOperation.java402 int headerID = mInput.read(); in sendReply() local
405 if ((headerID != ObexHelper.OBEX_OPCODE_PUT) in sendReply()
406 && (headerID != ObexHelper.OBEX_OPCODE_PUT_FINAL) in sendReply()
407 && (headerID != ObexHelper.OBEX_OPCODE_GET) in sendReply()
408 && (headerID != ObexHelper.OBEX_OPCODE_GET_FINAL)) { in sendReply()
424 if (headerID == ObexHelper.OBEX_OPCODE_ABORT) { in sendReply()
438 if ((headerID == ObexHelper.OBEX_OPCODE_PUT_FINAL)) { in sendReply()
440 } else if (headerID == ObexHelper.OBEX_OPCODE_GET_FINAL) { in sendReply()