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.java286 private final BluetoothServerSocket mServerSocket; field in ObexServerSockets.SocketAcceptThread
298 mServerSocket = serverSocket; in SocketAcceptThread()
317 connSocket = mServerSocket.accept(); in run()
319 Log.d(mTag, "Accepted socket connection from: " + mServerSocket); in run()
363 Log.w(mTag, "Accept exception for " + mServerSocket, ex); in run()
371 Log.d(mTag, "AcceptThread ended for: " + mServerSocket); in run()
388 mServerSocket.close(); in shutdown()
/packages/apps/Car/Cluster/src/android/car/cluster/
DSocketThread.java30 private ServerSocket mServerSocket; field in SocketThread
45 mServerSocket = serverSocket; in SocketThread()
74 if (mServerSocket != null) { in close()
76 mServerSocket.close(); in close()
80 mServerSocket = null; in close()
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapService.java81 private BluetoothServerSocket mServerSocket = null; field in SapService
158 mServerSocket = mAdapter.listenUsingRfcommOn( in initSocket()
162 .createSapsRecord(SDP_SAP_SERVICE_NAME, mServerSocket.getChannel(), in initSocket()
206 if (mServerSocket != null) { in closeServerSocket()
209 mServerSocket.close(); in closeServerSocket()
210 mServerSocket = null; in closeServerSocket()
331 if (mServerSocket == null) { in run()
342 serverSocket = mServerSocket; in run()
347 mConnSocket = mServerSocket.accept(); in run()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppService.java439 if (mServerSocket != null) {
457 private ObexServerSockets mServerSocket; field in BluetoothOppService
464 mServerSocket = ObexServerSockets.createInsecure(this); in startSocketListener()
467 if (sdpManager == null || mServerSocket == null) { in startSocketListener()
469 + " mServerSocket:" + mServerSocket); in startSocketListener()
473 sdpManager.createOppOpsRecord("OBEX Object Push", mServerSocket.getRfcommChannel(), in startSocketListener()
474 mServerSocket.getL2capPsm(), 0x0102, SUPPORTED_OPP_FORMAT); in startSocketListener()
1173 if (mServerSocket != null) { in stopListeners()
1174 mServerSocket.shutdown(false); in stopListeners()
1175 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()