/packages/apps/Nfc/src/com/android/nfc/ndefpush/ |
D | NdefPushServer.java | 122 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/ |
D | HandoverServer.java | 79 LlcpServerSocket mServerSocket; field in HandoverServer.ServerThread 91 mServerSocket = NfcService.getInstance().createLlcpServerSocket(mSap, in run() 94 if (mServerSocket == null) { in run() 106 serverSocket = mServerSocket; in run() 131 if (mServerSocket != null) { in run() 134 mServerSocket.close(); in run() 138 mServerSocket = null; in run() 152 if (mServerSocket != null) { in shutdown() 154 mServerSocket.close(); in shutdown() 158 mServerSocket = null; in shutdown()
|
/packages/apps/Nfc/src/com/android/nfc/snep/ |
D | SnepServer.java | 181 LlcpServerSocket mServerSocket; field in SnepServer.ServerThread 194 mServerSocket = NfcService.getInstance().createLlcpServerSocket(mServiceSap, in run() 197 if (mServerSocket == null) { in run() 209 serverSocket = mServerSocket; in run() 236 if (mServerSocket != null) { in run() 239 mServerSocket.close(); in run() 243 mServerSocket = null; in run() 257 if (mServerSocket != null) { in shutdown() 259 mServerSocket.close(); in shutdown() 263 mServerSocket = null; in shutdown()
|
/packages/apps/Nfc/src/com/android/nfc/sneptest/ |
D | ExtDtaSnepServer.java | 152 LlcpServerSocket mServerSocket; field in ExtDtaSnepServer.ServerThread 165 … mServerSocket = 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/modules/Bluetooth/android/app/src/com/android/bluetooth/ |
D | ObexServerSockets.java | 290 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/modules/Connectivity/nearby/tests/robotests/src/com/android/libraries/testing/deviceshadower/helpers/bluetooth/ |
D | BluetoothRfcommAcceptor.java | 68 private BluetoothServerSocket mServerSocket; field in BluetoothRfcommAcceptor 180 mServerSocket = BluetoothAdapter.getDefaultAdapter() 192 mSocket = mServerSocket.accept(); 195 mServerSocket.close();
|
/packages/modules/Connectivity/nearby/tests/multidevices/clients/test_support/fastpair_provider/src/android/nearby/fastpair/provider/bluetooth/ |
D | RfcommServer.java | 63 private BluetoothServerSocket mServerSocket; field in RfcommServer 131 mServerSocket = in startAccept() 142 new Thread(() -> accept(mServerSocket)).start(); in startAccept() 306 closeServerSocket(mServerSocket); in stop() 406 closeServerSocket(mServerSocket); in simulateAcceptIOException()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/sap/ |
D | SapService.java | 86 private BluetoothServerSocket mServerSocket = null; field in SapService 167 mServerSocket = BluetoothAdapter.getDefaultAdapter().listenUsingRfcommOn( in initSocket() 171 .createSapsRecord(SDP_SAP_SERVICE_NAME, mServerSocket.getChannel(), in initSocket() 218 if (mServerSocket != null) { in closeServerSocket() 221 mServerSocket.close(); in closeServerSocket() 222 mServerSocket = null; in closeServerSocket() 343 if (mServerSocket == null) { in run() 354 serverSocket = mServerSocket; in run() 359 mConnSocket = mServerSocket.accept(); in run()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/opp/ |
D | BluetoothOppService.java | 484 if (mServerSocket != null) { 502 private ObexServerSockets mServerSocket; field in BluetoothOppService 509 mServerSocket = ObexServerSockets.createInsecure(this); in startSocketListener() 512 if (sdpManager == null || mServerSocket == null) { in startSocketListener() 514 + " mServerSocket:" + mServerSocket); in startSocketListener() 518 sdpManager.createOppOpsRecord("OBEX Object Push", mServerSocket.getRfcommChannel(), in startSocketListener() 519 mServerSocket.getL2capPsm(), 0x0102, SUPPORTED_OPP_FORMAT); in startSocketListener() 1221 if (mServerSocket != null) { in stopListeners() 1222 mServerSocket.shutdown(false); in stopListeners() 1223 mServerSocket = null; in stopListeners()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/opp/ |
D | TestActivity.java | 392 ServerSocket mServerSocket; in start() 404 mServerSocket = new ServerSocket(6500, 1); in start() 411 mServerSocket.setSoTimeout(ACCEPT_WAIT_TIMEOUT); in start() 412 Socket clientSocket = mServerSocket.accept(); in start()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | PacProxyManagerTest.java | 74 private ServerSocket mServerSocket; field in PacProxyManagerTest
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/ |
D | AdapterService.java | 1430 socket = listenerData.mServerSocket.accept(); in handleIncomingRfcommConnections() 1435 Log.e(TAG, "Failed to accept socket on " + listenerData.mServerSocket, e); in handleIncomingRfcommConnections() 1512 final BluetoothServerSocket mServerSocket; field in AdapterService.RfcommListenerData 1530 mServerSocket = serverSocket; in RfcommListenerData() 1539 mServerSocket.close(); in closeServerAndPendingSockets()
|