Home
last modified time | relevance | path

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

/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DLocalSocketTest.java54 LocalSocket serverSocket = localServerSocket.accept(); in testLocalConnections() local
55 assertTrue(serverSocket.isConnected()); in testLocalConnections()
56 assertTrue(serverSocket.isBound()); in testLocalConnections()
58 serverSocket.bind(localServerSocket.getLocalSocketAddress()); in testLocalConnections()
63 serverSocket.connect(locSockAddr); in testLocalConnections()
74 InputStream serverInStream = serverSocket.getInputStream(); in testLocalConnections()
78 OutputStream serverOutStream = serverSocket.getOutputStream(); in testLocalConnections()
88 FileDescriptor[] out = serverSocket.getAncillaryFileDescriptors(); in testLocalConnections()
107 serverSocket.shutdownInput(); in testLocalConnections()
111 serverSocket.shutdownOutput(); in testLocalConnections()
[all …]
DLocalServerSocketTest.java39 LocalSocket serverSocket = localServerSocket.accept(); in testLocalServerSocket() local
41 assertTrue(serverSocket.isConnected()); in testLocalServerSocket()
42 assertTrue(serverSocket.isBound()); in testLocalServerSocket()
47 InputStream serverInStream = serverSocket.getInputStream(); in testLocalServerSocket()
51 OutputStream serverOutStream = serverSocket.getOutputStream(); in testLocalServerSocket()
/packages/apps/Nfc/src/com/android/nfc/echoserver/
DEchoServer.java172 LlcpServerSocket serverSocket; field in EchoServer.ServerThread
207 serverSocket = mService.createLlcpServerSocket(DEFAULT_CO_SAP, in run()
212 if (serverSocket == null) { in run()
222 clientSocket = serverSocket.accept(); in run()
244 serverSocket.close(); in run()
248 serverSocket = null; in run()
265 if (serverSocket != null) { in shutdown()
267 serverSocket.close(); in shutdown()
271 serverSocket = null; in shutdown()
/packages/modules/Connectivity/Tethering/tests/privileged/src/com/android/networkstack/tethering/
DConntrackSocketTest.java88 final ServerSocket serverSocket = new ServerSocket(); in testIpv4ConntrackSocket() local
89 serverSocket.bind(anyAddress); in testIpv4ConntrackSocket()
90 final SocketAddress theAddress = serverSocket.getLocalSocketAddress(); in testIpv4ConntrackSocket()
95 final Socket acceptedSocket = serverSocket.accept(); in testIpv4ConntrackSocket()
125 serverSocket.close(); in testIpv4ConntrackSocket()
/packages/apps/Nfc/src/com/android/nfc/ndefpush/
DNdefPushServer.java147 LlcpServerSocket serverSocket; in run() local
149 serverSocket = mServerSocket; in run()
151 if (serverSocket == null) return; in run()
154 LlcpSocket communicationSocket = serverSocket.accept(); in run()
/packages/apps/Nfc/src/com/android/nfc/handover/
DHandoverServer.java108 LlcpServerSocket serverSocket; in run() local
110 serverSocket = mServerSocket; in run()
113 if (serverSocket == null) { in run()
118 LlcpSocket communicationSocket = serverSocket.accept(); in run()
/packages/apps/Nfc/src/com/android/nfc/snep/
DSnepServer.java205 LlcpServerSocket serverSocket; in run() local
207 serverSocket = mServerSocket; in run()
210 if (serverSocket == null) { in run()
215 LlcpSocket communicationSocket = serverSocket.accept(); in run()
/packages/apps/Nfc/src/com/android/nfc/sneptest/
DExtDtaSnepServer.java178 LlcpServerSocket serverSocket; in run() local
180 serverSocket = mServerSocket; in run()
183 if (serverSocket == null) { in run()
188 LlcpSocket communicationSocket = serverSocket.accept(); in run()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/soap/
DRedirectListener.java92 ServerSocket serverSocket = new ServerSocket(0, 1, InetAddress.getLocalHost()); in createInstance() local
93 redirectListener = new RedirectListener(looper, serverSocket.getLocalPort()); in createInstance()
97 serverSocket.close(); in createInstance()
/packages/apps/Bluetooth/src/com/android/bluetooth/
DObexServerSockets.java298 SocketAcceptThread(BluetoothServerSocket serverSocket) { in SocketAcceptThread() argument
299 if (serverSocket == null) { in SocketAcceptThread()
302 mServerSocket = serverSocket; in SocketAcceptThread()
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapService.java335 BluetoothServerSocket serverSocket; in run() local
347 serverSocket = mServerSocket; in run()
348 if (serverSocket == null) { in run()