Home
last modified time | relevance | path

Searched refs:mSocket (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Email/provider_src/com/android/email/mail/transport/
DMailTransport.java61 private Socket mSocket; field in MailTransport
115 mSocket = SSLUtils.getSSLSocketFactory( in open()
118 mSocket = new Socket(); in open()
120 mSocket.connect(socketAddress, SOCKET_CONNECT_TIMEOUT); in open()
123 verifyHostname(mSocket, getHost()); in open()
127 if (mSocket instanceof SSLSocket) { in open()
128 final SSLSocket sslSocket = (SSLSocket) mSocket; in open()
135 mIn = new BufferedInputStream(mSocket.getInputStream(), 1024); in open()
136 mOut = new BufferedOutputStream(mSocket.getOutputStream(), 512); in open()
137 mSocket.setSoTimeout(SOCKET_READ_TIMEOUT); in open()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/
DMailTransport.java58 private Socket mSocket; field in MailTransport
128 mSocket = createSocket(); in open()
131 mSocket.connect(mAddress, SOCKET_CONNECT_TIMEOUT); in open()
141 mIn = new BufferedInputStream(mSocket.getInputStream(), 1024); in open()
142 mOut = new BufferedOutputStream(mSocket.getOutputStream(), 512); in open()
143 mSocket.setSoTimeout(SOCKET_READ_TIMEOUT); in open()
157 mSocket.close(); in open()
158 mSocket = null; in open()
202 mSocket = in reopenTls()
204 .createSocket(mSocket, mAddress.getHostName(), mAddress.getPort(), true); in reopenTls()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/
DBluetoothObexTransport.java33 private BluetoothSocket mSocket = null; field in BluetoothObexTransport
36 this.mSocket = socket; in BluetoothObexTransport()
40 mSocket.close(); in close()
52 return mSocket.getInputStream(); in openInputStream()
56 return mSocket.getOutputStream(); in openOutputStream()
76 if (mSocket.getConnectionType() != BluetoothSocket.TYPE_L2CAP) { in getMaxTransmitPacketSize()
79 return mSocket.getMaxTransmitPacketSize(); in getMaxTransmitPacketSize()
83 if (mSocket.getConnectionType() != BluetoothSocket.TYPE_L2CAP) { in getMaxReceivePacketSize()
86 return mSocket.getMaxReceivePacketSize(); in getMaxReceivePacketSize()
90 if (mSocket == null) in getRemoteAddress()
[all …]
DObexRejectServer.java47 private final BluetoothSocket mSocket; field in ObexRejectServer
55 mSocket = socket; in ObexRejectServer()
77 mSocket.close(); in shutdown()
/packages/apps/Nfc/src/com/android/nfc/snep/
DSnepMessenger.java34 final LlcpSocket mSocket; field in SnepMessenger
39 mSocket = socket; in SnepMessenger()
58 mSocket.send(tmpBuffer); in sendMessage()
67 mSocket.receive(responseBytes); in sendMessage()
86 mSocket.send(tmpBuffer); in sendMessage()
109 size = mSocket.receive(partial); in getMessage()
113 mSocket.send(SnepMessage.getMessage(fieldReject).toByteArray()); in getMessage()
120 mSocket.send(SnepMessage.getMessage(fieldReject).toByteArray()); in getMessage()
144 mSocket.send(SnepMessage.getMessage(fieldContinue).toByteArray()); in getMessage()
152 size = mSocket.receive(partial); in getMessage()
[all …]
/packages/services/Car/obd2-lib/src/com/android/car/obd2/connections/
DBluetoothConnection.java38 private BluetoothSocket mSocket = null; field in BluetoothConnection
68 mSocket = mDevice.createRfcommSocketToServiceRecord(SERIAL_PORT_PROFILE); in connect()
69 mSocket.connect(); in connect()
72 mSocket = null; in connect()
75 return mSocket.isConnected(); in connect()
80 return mSocket != null && mSocket.isConnected(); in isConnected()
86 mSocket.close(); in close()
91 mSocket = null; in close()
106 return mSocket.getInputStream(); in getInputStream()
118 return mSocket.getOutputStream(); in getOutputStream()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DPbapClientConnectionHandler.java90 private BluetoothSocket mSocket; field in PbapClientConnectionHandler
252 mSocket = mDevice.createRfcommSocketToServiceRecord( in connectSocket()
256 mSocket = mDevice.createL2capSocket(mPseRec.getL2capPsm()); in connectSocket()
259 mSocket = mDevice.createRfcommSocket(mPseRec.getRfcommChannelNumber()); in connectSocket()
262 if (mSocket != null) { in connectSocket()
263 mSocket.connect(); in connectSocket()
281 BluetoothObexTransport transport = new BluetoothObexTransport(mSocket); in connectObexSession()
324 if (mSocket != null) { in closeSocket()
325 if (DBG) Log.d(TAG, "Closing socket" + mSocket); in closeSocket()
326 mSocket.close(); in closeSocket()
[all …]
DBluetoothPbapObexTransport.java31 private BluetoothSocket mSocket = null; field in BluetoothPbapObexTransport
35 mSocket = rfs; in BluetoothPbapObexTransport()
40 mSocket.close(); in close()
55 return mSocket.getInputStream(); in openInputStream()
60 return mSocket.getOutputStream(); in openOutputStream()
81 return mSocket.isConnected(); in isConnected()
/packages/apps/Nfc/src/com/android/nfc/ndefpush/
DNdefPushClient.java45 private LlcpSocket mSocket; field in NdefPushClient
83 mSocket = sock; in connect()
95 sock = mSocket; in push()
132 if (mSocket != null) { in close()
135 mSocket.close(); in close()
139 mSocket = null; in close()
/packages/apps/Nfc/src/com/android/nfc/handover/
DHandoverClient.java42 LlcpSocket mSocket; field in HandoverClient
80 mSocket = sock; in connect()
87 if (mSocket != null) { in close()
89 mSocket.close(); in close()
93 mSocket = null; in close()
106 sock = mSocket; in sendHandoverRequest()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/
DMasClient.java57 private BluetoothSocket mSocket; field in MasClient
89 mSocket = mRemoteDevice.createRfcommSocket(mSdpMasRecord.getRfcommCannelNumber()); in connect()
90 Log.d(TAG, mRemoteDevice.toString() + "Socket: " + mSocket.toString()); in connect()
91 mSocket.connect(); in connect()
92 mTransport = new BluetoothObexTransport(mSocket); in connect()