Home
last modified time | relevance | path

Searched refs:mServerSocket (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Nfc/src/com/android/nfc/ndefpush/
DNdefPushServer.java122 LlcpServerSocket mServerSocket; field in NdefPushServer.ServerThread
134 mServerSocket = mService.createLlcpServerSocket(mSap, SERVICE_NAME, in run()
137 if (mServerSocket == null) { in run()
149 serverSocket = mServerSocket; in run()
171 if (mServerSocket != null) { in run()
174 mServerSocket.close(); in run()
178 mServerSocket = null; in run()
192 if (mServerSocket != null) { in shutdown()
194 mServerSocket.close(); in shutdown()
198 mServerSocket = null; in shutdown()
/packages/apps/Nfc/src/com/android/nfc/handover/
DHandoverServer.java83 LlcpServerSocket mServerSocket; field in HandoverServer.ServerThread
95 mServerSocket = NfcService.getInstance().createLlcpServerSocket(mSap, in run()
98 if (mServerSocket == null) { in run()
110 serverSocket = mServerSocket; in run()
135 if (mServerSocket != null) { in run()
138 mServerSocket.close(); in run()
142 mServerSocket = null; in run()
156 if (mServerSocket != null) { in shutdown()
158 mServerSocket.close(); in shutdown()
162 mServerSocket = null; in shutdown()
/packages/apps/Nfc/src/com/android/nfc/snep/
DSnepServer.java179 LlcpServerSocket mServerSocket; field in SnepServer.ServerThread
192 mServerSocket = NfcService.getInstance().createLlcpServerSocket(mServiceSap, in run()
195 if (mServerSocket == null) { in run()
207 serverSocket = mServerSocket; in run()
234 if (mServerSocket != null) { in run()
237 mServerSocket.close(); in run()
241 mServerSocket = null; in run()
255 if (mServerSocket != null) { in shutdown()
257 mServerSocket.close(); in shutdown()
261 mServerSocket = null; in shutdown()
/packages/apps/Nfc/src/com/android/nfc/sneptest/
DExtDtaSnepServer.java152 LlcpServerSocket mServerSocket; field in ExtDtaSnepServer.ServerThread
165mServerSocket = NfcService.getInstance().createLlcpServerSocket(mDtaServiceSap, in run()
168 if (mServerSocket == null) { in run()
180 serverSocket = mServerSocket; in run()
207 if (mServerSocket != null) { in run()
210 mServerSocket.close(); in run()
212 mServerSocket = null; in run()
226 if (mServerSocket != null) { in shutdown()
228 mServerSocket.close(); in shutdown()
230 mServerSocket = null; in shutdown()
/packages/apps/Bluetooth/src/com/android/bluetooth/
DObexServerSockets.java290 private final BluetoothServerSocket mServerSocket; field in ObexServerSockets.SocketAcceptThread
302 mServerSocket = serverSocket; in SocketAcceptThread()
321 connSocket = mServerSocket.accept(); in run()
323 Log.d(mTag, "Accepted socket connection from: " + mServerSocket); in run()
367 Log.w(mTag, "Accept exception for " + mServerSocket, ex); in run()
375 Log.d(mTag, "AcceptThread ended for: " + mServerSocket); in run()
392 mServerSocket.close(); in shutdown()
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapService.java86 private BluetoothServerSocket mServerSocket = null; field in SapService
163 mServerSocket = BluetoothAdapter.getDefaultAdapter().listenUsingRfcommOn( in initSocket()
167 .createSapsRecord(SDP_SAP_SERVICE_NAME, mServerSocket.getChannel(), in initSocket()
211 if (mServerSocket != null) { in closeServerSocket()
214 mServerSocket.close(); in closeServerSocket()
215 mServerSocket = null; in closeServerSocket()
336 if (mServerSocket == null) { in run()
347 serverSocket = mServerSocket; in run()
352 mConnSocket = mServerSocket.accept(); in run()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppService.java435 if (mServerSocket != null) {
453 private ObexServerSockets mServerSocket; field in BluetoothOppService
460 mServerSocket = ObexServerSockets.createInsecure(this); in startSocketListener()
463 if (sdpManager == null || mServerSocket == null) { in startSocketListener()
465 + " mServerSocket:" + mServerSocket); in startSocketListener()
469 sdpManager.createOppOpsRecord("OBEX Object Push", mServerSocket.getRfcommChannel(), in startSocketListener()
470 mServerSocket.getL2capPsm(), 0x0102, SUPPORTED_OPP_FORMAT); in startSocketListener()
1172 if (mServerSocket != null) { in stopListeners()
1173 mServerSocket.shutdown(false); in stopListeners()
1174 mServerSocket = null; in stopListeners()
DTestActivity.java393 ServerSocket mServerSocket; in start()
405 mServerSocket = new ServerSocket(6500, 1); in start()
412 mServerSocket.setSoTimeout(ACCEPT_WAIT_TIMEOUT); in start()
413 Socket clientSocket = mServerSocket.accept(); in start()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DPacProxyManagerTest.java74 private ServerSocket mServerSocket; field in PacProxyManagerTest