Home
last modified time | relevance | path

Searched refs:mSocket (Results 1 – 8 of 8) 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/services/Telephony/src/com/android/phone/common/mail/
DMailTransport.java61 private Socket mSocket; field in MailTransport
101 mSocket = HttpsURLConnection.getDefaultSSLSocketFactory().createSocket(); in open()
105 mSocket = new Socket(); in open()
112 mSocket = mNetwork.getSocketFactory().createSocket(); in open()
122 mSocket.connect(socketAddresses.remove(0), SOCKET_CONNECT_TIMEOUT); in open()
127 verifyHostname(mSocket, mHost); in open()
130 mIn = new BufferedInputStream(mSocket.getInputStream(), 1024); in open()
131 mOut = new BufferedOutputStream(mSocket.getOutputStream(), 512); in open()
132 mSocket.setSoTimeout(SOCKET_READ_TIMEOUT); in open()
183 mSocket != null && mSocket.isConnected() && !mSocket.isClosed()); in isOpen()
[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.java46 private final BluetoothSocket mSocket; field in ObexRejectServer
54 mSocket = socket; in ObexRejectServer()
76 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/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapRilReceiver.java28 LocalSocket mSocket = null; field in SapRilReceiver
107 if (mSocket != null) sendShutdownMessage(); in notifyShutdown()
124 if (mSocket != null) { in shutdown()
126 mSocket.shutdownOutput(); in shutdown()
129 mSocket.shutdownInput(); in shutdown()
132 mSocket.close(); in shutdown()
136 mSocket = null; in shutdown()
204 mSocket = openRilBtSocket(); in run()
205 mRilBtInStream = mSocket.getInputStream(); in run()
206 mRilBtOutStream = CodedOutputStreamMicro.newInstance(mSocket.getOutputStream()); in run()
/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()