Home
last modified time | relevance | path

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

/frameworks/base/obex/javax/obex/
DHeaderSet.java292 public void setHeader(int headerID, Object headerValue) { in setHeader() argument
295 switch (headerID) { in setHeader()
442 if ((headerID >= 0x30) && (headerID <= 0x3F)) { in setHeader()
447 mUnicodeUserDefined[headerID - 0x30] = (String)headerValue; in setHeader()
452 if ((headerID >= 0x70) && (headerID <= 0x7F)) { in setHeader()
455 mSequenceUserDefined[headerID - 0x70] = null; in setHeader()
461 … mSequenceUserDefined[headerID - 0x70] = new byte[((byte[])headerValue).length]; in setHeader()
462 System.arraycopy(headerValue, 0, mSequenceUserDefined[headerID - 0x70], in setHeader()
463 0, mSequenceUserDefined[headerID - 0x70].length); in setHeader()
469 if ((headerID >= 0xB0) && (headerID <= 0xBF)) { in setHeader()
[all …]
DObexHelper.java189 int headerID; in updateHeaderSet() local
195 headerID = 0xFF & headerArray[index]; in updateHeaderSet()
196 switch (headerID & (0xC0)) { in updateHeaderSet()
225 switch (headerID) { in updateHeaderSet()
230 headerImpl.setHeader(headerID, new String(value, 0, in updateHeaderSet()
233 headerImpl.setHeader(headerID, new String(value, 0, in updateHeaderSet()
257 body[0] = (byte)headerID; in updateHeaderSet()
288 if ((headerID & 0xC0) == 0x00) { in updateHeaderSet()
289 headerImpl.setHeader(headerID, ObexHelper.convertToUnicode( in updateHeaderSet()
292 headerImpl.setHeader(headerID, value); in updateHeaderSet()
[all …]