/cts/tests/tests/net/src/android/net/cts/ |
LocalSocketTest.java | 40 LocalSocket clientSocket = new LocalSocket(); 44 assertFalse(clientSocket.isConnected()); 45 clientSocket.connect(locSockAddr); 46 assertTrue(clientSocket.isConnected()); 49 Credentials credent = clientSocket.getPeerCredentials(); 53 OutputStream clientOutStream = clientSocket.getOutputStream(); 61 InputStream clientInStream = clientSocket.getInputStream(); 65 clientSocket.setFileDescriptorsForSend(new FileDescriptor[]{FileDescriptor.in}); 71 FileDescriptor fd = clientSocket.getFileDescriptor(); 75 clientSocket.shutdownInput() [all...] |
LocalServerSocketTest.java | 35 LocalSocket clientSocket = new LocalSocket(); 38 clientSocket.connect(new LocalSocketAddress(address)); 42 OutputStream clientOutStream = clientSocket.getOutputStream(); 50 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 | 53 protected Socket clientSocket = null; 217 clientSocket = serverSocket.accept(); 220 clientSocket.setSoTimeout((int) timeout); 221 out = new DataOutputStream(clientSocket.getOutputStream()); 222 in = new DataInputStream(clientSocket.getInputStream()); 237 clientSocket = new Socket(serverAddress.getAddress(), serverAddress.getPort()); 240 clientSocket.setSoTimeout((int) timeout); 241 out = new DataOutputStream(clientSocket.getOutputStream()); 242 in = new DataInputStream(clientSocket.getInputStream()); 259 if (clientSocket != null [all...] |
/external/caliper/caliper/src/test/java/com/google/caliper/runner/ |
ServerSocketServiceTest.java | 61 OpenedSocket clientSocket = openConnectionAndIdentify(id); 63 assertEndsConnected(clientSocket, pendingServerConnection.get()); 68 OpenedSocket clientSocket = openConnectionAndIdentify(id); 73 assertEndsConnected(clientSocket, serverSocket); 109 OpenedSocket clientSocket = openClientConnection(); 110 OpenedSocket.Writer writer = clientSocket.writer(); 113 return clientSocket; 116 private void assertEndsConnected(OpenedSocket clientSocket, OpenedSocket serverSocket) 120 assertEquals("hello client!", clientSocket.reader().read()); 122 clientSocket.writer().write("hello server!") [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...] |
/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 | 79 jobject clientSocket = NULL; 146 if(nfc_jni_cache_object(e,"com/android/nfc/dhimpl/NativeLlcpSocket",&(clientSocket)) == -1) 153 clsNativeLlcpSocket.reset(e->GetObjectClass(clientSocket)); 162 e->SetIntField(clientSocket, f,(jint)hIncomingSocket); 166 e->SetIntField(clientSocket, f,(jint)miu); 170 e->SetIntField(clientSocket, f,(jint)rw); 176 return clientSocket;
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
BluetoothOppRfcommListener.java | 95 Socket clientSocket = mTcpServerSocket.accept(); 98 TestTcpTransport transport = new TestTcpTransport(clientSocket); 148 BluetoothSocket clientSocket; 160 clientSocket = sSocket.accept(); 162 + clientSocket.getRemoteDevice()); 164 clientSocket);
|
TestActivity.java | 402 Socket clientSocket = mServerSocket.accept(); 403 if (clientSocket == null) { 408 + clientSocket.getRemoteSocketAddress()); 409 TestTcpTransport transport = new TestTcpTransport(clientSocket);
|
/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;
|
/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);
|
/system/netd/tests/ |
binder_test.cpp | 87 static void fakeRemoteSocketPair(int *clientSocket, int *serverSocket, int *acceptedSocket); 377 void BinderTest::fakeRemoteSocketPair(int *clientSocket, int *serverSocket, int *acceptedSocket) { 386 *clientSocket = socket(AF_INET6, SOCK_STREAM, 0); 388 ASSERT_EQ(0, bind(*clientSocket, (struct sockaddr *) &client6, sizeof(client6))); 389 ASSERT_EQ(0, connect(*clientSocket, (struct sockaddr *) &server6, sizeof(server6))); 390 ASSERT_EQ(0, getsockname(*clientSocket, (struct sockaddr *) &client6, &addrlen)); 398 void checkSocketpairOpen(int clientSocket, int acceptedSocket) { 400 EXPECT_EQ(4, write(clientSocket, "foo", sizeof("foo"))); 405 void checkSocketpairClosed(int clientSocket, int acceptedSocket) { 407 int ret = write(clientSocket, "foo", sizeof("foo")) [all...] |
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/core/server/ |
AbstractFtpServer.java | 153 Socket clientSocket = serverSocket.accept();
154 LOG.info("Connection accepted from host " + clientSocket.getInetAddress());
156 Session session = createSession(clientSocket);
161 sessionInfo.socket = clientSocket;
342 * @param clientSocket - the Socket associated with the client
345 protected Session createSession(Socket clientSocket) {
346 return new DefaultSession(clientSocket, commandHandlers);
|
/cts/tests/tests/security/src/android/security/cts/ |
OpenSSLEarlyCCSTest.java | 327 Socket clientSocket = null; 332 clientSocket = listeningSocket.accept(); 333 setMitmClientSocket(clientSocket); 334 Log.i(TAG, "MiTM accepted connection from " + clientSocket.getRemoteSocketAddress()); 341 final OutputStream clientOutputStream = clientSocket.getOutputStream(); 358 clientSocket.getInputStream(), 368 OpenSSLHeartbleedTest.closeQuietly(clientSocket);
|
OpenSSLHeartbleedTest.java | 328 Socket clientSocket = null; 333 clientSocket = listeningSocket.accept(); 334 setMitmClientSocket(clientSocket); 335 Log.i(TAG, "MiTM accepted connection from " + clientSocket.getRemoteSocketAddress()); 342 final OutputStream clientOutputStream = clientSocket.getOutputStream(); 359 clientSocket.getInputStream(), 368 closeQuietly(clientSocket); [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
ServerSocketTest.java | 416 Socket clientSocket = new Socket(); 419 clientSocket.connect(clAddress); 422 assertEquals(clAddress, clientSocket.getRemoteSocketAddress()); 425 clientSocket.close(); 501 Socket clientSocket = new Socket(); 502 clientSocket.connect(localAddress); 505 assertTrue(clientSocket.getRemoteSocketAddress().equals(localAddress)); 508 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();
|
/external/mockftpserver/branches/1.x_Branch/src/main/java/org/mockftpserver/stub/ |
StubFtpServer.java | 246 Socket clientSocket = serverSocket.accept();
247 LOG.info("Connection accepted from host " + clientSocket.getInetAddress());
249 DefaultSession session = new DefaultSession(clientSocket, commandHandlers);
254 sessionInfo.socket = clientSocket;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
HandshakeCompletedEventTest.java | 425 SSLSocket clientSocket = (SSLSocket)serverSocket.accept(); 427 InputStream istream = clientSocket.getInputStream(); 436 OutputStream ostream = clientSocket.getOutputStream(); 445 clientSocket.close();
|
SSLSocketTest.java | 548 SSLSocket clientSocket = (SSLSocket)serverSocket.accept(); 551 InputStream stream = clientSocket.getInputStream(); 564 clientSocket.close();
|
SSLSessionTest.java | 538 SSLSocket clientSocket = (SSLSocket)serverSocket.accept(); 540 InputStream istream = clientSocket.getInputStream(); 544 OutputStream ostream = clientSocket.getOutputStream(); 552 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...] |