/cts/tests/tests/net/src/android/net/cts/ |
LocalSocketTest.java | 35 LocalSocket clientSocket = new LocalSocket(); 39 assertFalse(clientSocket.isConnected()); 40 clientSocket.connect(locSockAddr); 41 assertTrue(clientSocket.isConnected()); 44 Credentials credent = clientSocket.getPeerCredentials(); 48 OutputStream clientOutStream = clientSocket.getOutputStream(); 56 InputStream clientInStream = clientSocket.getInputStream(); 60 clientSocket.setFileDescriptorsForSend(new FileDescriptor[]{FileDescriptor.in}); 66 FileDescriptor fd = clientSocket.getFileDescriptor(); 70 clientSocket.shutdownInput() [all...] |
LocalServerSocketTest.java | 36 LocalSocket clientSocket = new LocalSocket(); 39 clientSocket.connect(new LocalSocketAddress(LocalSocketTest.mSockAddr)); 43 OutputStream clientOutStream = clientSocket.getOutputStream(); 51 InputStream clientInStream = clientSocket.getInputStream();
|
/packages/apps/Nfc/nci/jni/ |
NativeLlcpServiceSocket.cpp | 52 jobject clientSocket = NULL; 72 if (nfc_jni_cache_object_local(e, gNativeLlcpSocketClassName, &(clientSocket)) == -1) 79 clsNativeLlcpSocket = e->GetObjectClass (clientSocket); 89 e->SetIntField (clientSocket, f, (jint) connHandle); 93 e->SetIntField (clientSocket, f, (jint)miu); 97 e->SetIntField (clientSocket, f, (jint)rw); 101 return clientSocket;
|
NativeNfcManager.cpp | [all...] |
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/share/ |
JPDADebuggeeSynchronizer.java | 50 protected Socket clientSocket = null; 195 clientSocket = serverSocket.accept(); 198 clientSocket.setSoTimeout((int) timeout); 199 out = new DataOutputStream(clientSocket.getOutputStream()); 200 in = new DataInputStream(clientSocket.getInputStream()); 216 clientSocket = new Socket(host, port); 219 clientSocket.setSoTimeout((int) timeout); 220 out = new DataOutputStream(clientSocket.getOutputStream()); 221 in = new DataInputStream(clientSocket.getInputStream()); 238 if (clientSocket != null [all...] |
/packages/apps/Nfc/tests/src/com/android/nfc/snep/ |
SnepBasicTests.java | 37 MockLlcpSocket clientSocket = new MockLlcpSocket(); 39 MockLlcpSocket.bind(clientSocket, serverSocket); 41 final SnepMessenger client = new SnepMessenger(true, clientSocket, MIU); 68 MockLlcpSocket clientSocket = new MockLlcpSocket(); 70 MockLlcpSocket.bind(clientSocket, serverSocket); 72 final SnepMessenger client = new SnepMessenger(true, clientSocket, MIU); 99 MockLlcpSocket clientSocket = new MockLlcpSocket(); 101 MockLlcpSocket.bind(clientSocket, serverSocket); 103 final SnepMessenger client = new SnepMessenger(true, clientSocket, MIU); 130 MockLlcpSocket clientSocket = new MockLlcpSocket() [all...] |
/libcore/luni/src/main/java/java/nio/ |
ServerSocketChannelImpl.java | 136 Socket clientSocket = clientSocketChannel.socket(); 140 super.implAccept(clientSocket); 145 clientSocket.getInetAddress(), clientSocket.getPort()); 151 clientSocket.close(); 154 return clientSocket;
|
/external/deqp/framework/delibs/decpp/ |
deSocket.cpp | 134 deSocket* clientSocket = deSocket_accept(m_socket, clientAddress); 135 if (!clientSocket) 140 return new Socket(clientSocket); 144 deSocket_destroy(clientSocket);
|
/packages/apps/Nfc/nxp/jni/ |
com_android_nfc_NativeLlcpServiceSocket.cpp | 78 jobject clientSocket = NULL; 145 if(nfc_jni_cache_object(e,"com/android/nfc/dhimpl/NativeLlcpSocket",&(clientSocket)) == -1) 152 clsNativeLlcpSocket.reset(e->GetObjectClass(clientSocket)); 161 e->SetIntField(clientSocket, f,(jint)hIncomingSocket); 165 e->SetIntField(clientSocket, f,(jint)miu); 169 e->SetIntField(clientSocket, f,(jint)rw); 175 return clientSocket;
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
BluetoothOppRfcommListener.java | 93 Socket clientSocket = mTcpServerSocket.accept(); 96 TestTcpTransport transport = new TestTcpTransport(clientSocket); 146 BluetoothSocket clientSocket; 158 clientSocket = sSocket.accept(); 160 + clientSocket.getRemoteDevice()); 162 clientSocket);
|
TestActivity.java | 402 Socket clientSocket = mServerSocket.accept(); 403 if (clientSocket == null) { 408 + clientSocket.getRemoteSocketAddress()); 409 TestTcpTransport transport = new TestTcpTransport(clientSocket);
|
/external/chromium_org/third_party/libaddressinput/src/java/test/com/android/i18n/addressinput/ |
JsonpRequestBuilderTest.java | 124 Socket clientSocket = serverSocket.accept(); 132 InputStream inputStream = clientSocket.getInputStream(); 134 OutputStream outputStream = clientSocket.getOutputStream(); 138 clientSocket.close();
|
/external/deqp/execserver/ |
xsTcpServer.cpp | 48 de::Socket* clientSocket = DE_NULL; 51 while ((clientSocket = m_socket.accept(clientAddr)) != DE_NULL) 57 handler = createHandler(clientSocket, clientAddr); 61 delete clientSocket;
|
/frameworks/native/opengl/libs/GLES_trace/src/ |
gltrace_transport.cpp | 65 int clientSocket = accept(serverSocket, (struct sockaddr *)&client, &sockaddr_len); 66 if (clientSocket < 0) { 74 if (getsockopt(clientSocket, SOL_SOCKET, SO_PEERCRED, &cr, &cr_len) != 0) { 91 return clientSocket;
|
gltrace_eglapi.cpp | 117 int clientSocket = -1; 128 clientSocket = gltrace::acceptClientConnection(udsName); 129 if (clientSocket < 0) { 138 stream = new TCPStream(clientSocket);
|
/packages/apps/Nfc/src/com/android/nfc/echoserver/ |
EchoServer.java | 173 LlcpSocket clientSocket; 222 clientSocket = serverSocket.accept(); 223 if (DBG) Log.d(TAG, "accept returned " + clientSocket); 224 handleClient(clientSocket); 237 clientSocket.close(); 241 clientSocket = null; 253 if (clientSocket != null) { 255 clientSocket.send(data);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
ServerSocketTest.java | 402 Socket clientSocket = new Socket(); 405 clientSocket.connect(clAddress); 408 assertEquals(clAddress, clientSocket.getRemoteSocketAddress()); 411 clientSocket.close(); 487 Socket clientSocket = new Socket(); 488 clientSocket.connect(localAddress); 491 assertTrue(clientSocket.getRemoteSocketAddress().equals(localAddress)); 494 clientSocket.close(); [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
OldServerSocketTest.java | 75 Socket clientSocket = new Socket(); 78 clientSocket.connect(clAddress); 81 assertEquals(clAddress, clientSocket.getRemoteSocketAddress()); 84 clientSocket.close();
|
/cts/tests/tests/security/src/android/security/cts/ |
OpenSSLEarlyCCSTest.java | 329 Socket clientSocket = null; 334 clientSocket = listeningSocket.accept(); 335 setMitmClientSocket(clientSocket); 336 Log.i(TAG, "MiTM accepted connection from " + clientSocket.getRemoteSocketAddress()); 343 final OutputStream clientOutputStream = clientSocket.getOutputStream(); 360 clientSocket.getInputStream(), 370 OpenSSLHeartbleedTest.closeQuietly(clientSocket);
|
OpenSSLHeartbleedTest.java | 330 Socket clientSocket = null; 335 clientSocket = listeningSocket.accept(); 336 setMitmClientSocket(clientSocket); 337 Log.i(TAG, "MiTM accepted connection from " + clientSocket.getRemoteSocketAddress()); 344 final OutputStream clientOutputStream = clientSocket.getOutputStream(); 361 clientSocket.getInputStream(), 370 closeQuietly(clientSocket); [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
HandshakeCompletedEventTest.java | 427 SSLSocket clientSocket = (SSLSocket)serverSocket.accept(); 429 InputStream istream = clientSocket.getInputStream(); 438 OutputStream ostream = clientSocket.getOutputStream(); 447 clientSocket.close();
|
SSLSessionTest.java | 527 SSLSocket clientSocket = (SSLSocket)serverSocket.accept(); 529 InputStream istream = clientSocket.getInputStream(); 533 OutputStream ostream = clientSocket.getOutputStream(); 541 clientSocket.close();
|
SSLSocketTest.java | 549 SSLSocket clientSocket = (SSLSocket)serverSocket.accept(); 552 InputStream stream = clientSocket.getInputStream(); 565 clientSocket.close();
|
/development/cmds/monkey/src/com/android/commands/monkey/ |
MonkeySourceNetwork.java | 554 private Socket clientSocket; 572 clientSocket = serverSocket.accept(); 581 input = new BufferedReader(new InputStreamReader(clientSocket.getInputStream())); 583 output = new PrintWriter(clientSocket.getOutputStream(), true); 590 clientSocket.close();
|
/frameworks/av/media/libstagefright/foundation/ |
ANetworkSession.cpp | [all...] |