Searched refs:ObexHelper (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/obex/javax/obex/ |
D | ServerOperation.java | 62 private static final boolean V = ObexHelper.VDBG; // Verbose debugging 147 if ((request == ObexHelper.OBEX_OPCODE_PUT) || in ServerOperation() 148 (request == ObexHelper.OBEX_OPCODE_PUT_FINAL)) { in ServerOperation() 157 if ((request & ObexHelper.OBEX_OPCODE_FINAL_BIT_MASK) == 0) { in ServerOperation() 163 } else if ((request == ObexHelper.OBEX_OPCODE_GET) || in ServerOperation() 164 (request == ObexHelper.OBEX_OPCODE_GET_FINAL)) { in ServerOperation() 173 if (request == ObexHelper.OBEX_OPCODE_GET_FINAL) { in ServerOperation() 185 if (packet.mLength > ObexHelper.getMaxRxPacketSize(mTransport)) { in ServerOperation() 188 + packet.mLength + " maxLength: " + ObexHelper.getMaxRxPacketSize(mTransport)); in ServerOperation() 235 mListener.setConnectionId(ObexHelper in handleObexPacket() [all …]
|
D | ClientSession.java | 63 private int mMaxTxPacketSize = ObexHelper.LOWER_LIMIT_MAX_PACKET_SIZE; 116 head = ObexHelper.createHeader(header, false); in connect() 129 int maxRxPacketSize = ObexHelper.getMaxRxPacketSize(mTransport); in connect() 142 if ((requestPacket.length + 3) > ObexHelper.MAX_PACKET_SIZE_INT) { in connect() 147 sendRequest(ObexHelper.OBEX_OPCODE_CONNECT, requestPacket, returnHeaderSet, null, false); in connect() 192 head.setHeader(HeaderSet.SINGLE_RESPONSE_MODE, ObexHelper.OBEX_SRM_ENABLE); in get() 212 mConnectionId = ObexHelper.convertToByteArray(id); in setConnectionID() 244 head = ObexHelper.createHeader(header, false); in disconnect() 259 sendRequest(ObexHelper.OBEX_OPCODE_DISCONNECT, head, returnHeaderSet, null, false); in disconnect() 284 return ObexHelper.convertToLong(mConnectionId); in getConnectionID() [all …]
|
D | ServerSession.java | 50 private static final boolean V = ObexHelper.VDBG; 101 case ObexHelper.OBEX_OPCODE_CONNECT: in run() 105 case ObexHelper.OBEX_OPCODE_DISCONNECT: in run() 110 case ObexHelper.OBEX_OPCODE_GET: in run() 111 case ObexHelper.OBEX_OPCODE_GET_FINAL: in run() 115 case ObexHelper.OBEX_OPCODE_PUT: in run() 116 case ObexHelper.OBEX_OPCODE_PUT_FINAL: in run() 120 case ObexHelper.OBEX_OPCODE_SETPATH: in run() 123 case ObexHelper.OBEX_OPCODE_ABORT: in run() 171 if (length > ObexHelper.getMaxRxPacketSize(mTransport)) { in handleAbortRequest() [all …]
|
D | ClientOperation.java | 55 private static final boolean V = ObexHelper.VDBG; 187 mParent.sendRequest(ObexHelper.OBEX_OPCODE_ABORT, null, mReplyHeader, null, false); in abort() 328 byte[] headerArray = ObexHelper.createHeader(mRequestHeader, false); in getHeaderLength() 445 byte[] headerArray = ObexHelper.createHeader(mRequestHeader, true); in sendRequest() 459 if ((ObexHelper.BASE_PACKET_LENGTH + headerArray.length + MINIMUM_BODY_LENGTH) in sendRequest() 468 end = ObexHelper.findHeaderEnd(headerArray, start, mMaxPacketSize in sendRequest() 469 - ObexHelper.BASE_PACKET_LENGTH); in sendRequest() 512 opCode |= ObexHelper.OBEX_OPCODE_FINAL_BIT_MASK; in sendRequest() 537 && ((opCode & ObexHelper.OBEX_OPCODE_FINAL_BIT_MASK) != 0)) { in sendRequest() 555 if ((opCode & ObexHelper.OBEX_OPCODE_FINAL_BIT_MASK) == 0) { in sendRequest() [all …]
|
D | ObexSession.java | 53 private static final boolean V = ObexHelper.VDBG; 81 byte[] challenge = ObexHelper.getTagValue((byte)0x00, header.mAuthChall); in handleAuthChall() 82 byte[] option = ObexHelper.getTagValue((byte)0x01, header.mAuthChall); in handleAuthChall() 83 byte[] description = ObexHelper.getTagValue((byte)0x02, header.mAuthChall); in handleAuthChall() 92 case ObexHelper.OBEX_AUTH_REALM_CHARSET_ASCII: in handleAuthChall() 95 case ObexHelper.OBEX_AUTH_REALM_CHARSET_ISO_8859_1: in handleAuthChall() 104 case ObexHelper.OBEX_AUTH_REALM_CHARSET_UNICODE: in handleAuthChall() 106 realm = ObexHelper.convertToUnicode(realmString, false); in handleAuthChall() 179 System.arraycopy(ObexHelper.computeMd5Hash(digest), 0, header.mAuthResp, 2, 16); in handleAuthChall() 201 byte[] correctPassword = mAuthenticator.onAuthenticationResponse(ObexHelper.getTagValue( in handleAuthResp() [all …]
|
D | ObexHelper.java | 52 public final class ObexHelper { class 64 private ObexHelper() { in ObexHelper() method in ObexHelper 283 headerImpl.setHeader(headerID, ObexHelper.convertToUnicode( in updateHeaderSet() 388 value = ObexHelper.convertToByteArray(intHeader.longValue()); in createHeader() 399 value = ObexHelper.convertToUnicodeByteArray(stringHeader); in createHeader() 440 value = ObexHelper.convertToByteArray(intHeader.longValue()); in createHeader() 521 value = ObexHelper.convertToByteArray(dateHeader.getTime().getTime() / 1000L); in createHeader() 532 value = ObexHelper.convertToUnicodeByteArray(stringHeader); in createHeader() 620 value = ObexHelper.convertToUnicodeByteArray(stringHeader); in createHeader() 659 out.write(ObexHelper.convertToByteArray(intHeader.longValue())); in createHeader()
|
D | HeaderSet.java | 689 mAuthChall = ObexHelper.computeAuthenticationChallenge(nonce, realm, access, userID); in createAuthenticationChallenge()
|