HomeSort by relevance Sort by last modified time
    Searched refs:Socket (Results 226 - 250 of 617) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /libcore/ojluni/src/main/java/jdk/net/
Sockets.java 41 * Defines static methods to set and get socket options defined by the
43 * by {@link java.net.Socket}, {@link java.net.ServerSocket}, and
45 * or platform specific options supported by each socket type.
48 * the complete set of options available (per socket type) on the
51 * When a security manager is installed, some non-standard socket options
112 Method method, Object socket,
116 method.invoke(null, socket, option, value);
131 Method method, Object socket, SocketOption<T> option) throws IOException
134 return (T)method.invoke(null, socket, option);
151 * Sets the value of a socket option on a {@link java.net.Socket
    [all...]
  /cts/hostsidetests/appsecurity/test-apps/AppAccessData/src/com/android/cts/appaccessdata/
AccessPrivateDataTest.java 36 import java.net.Socket;
149 final Socket socket = new Socket(); local
150 socket.setTcpNoDelay(true);
153 extras.putParcelable("fd", ParcelFileDescriptor.fromSocket(socket));
156 socket.connect(new InetSocketAddress("localhost", port));
158 socket.getOutputStream().write(42);
159 socket.getOutputStream().flush();
160 final int val = socket.getInputStream().read()
    [all...]
  /cts/tests/tests/networksecurityconfig/src/android/security/net/config/cts/
TestUtils.java 24 import java.net.Socket;
94 Socket s = SSLContext.getDefault().getSocketFactory().createSocket(host, port);
103 Socket s = SSLContext.getDefault().getSocketFactory().createSocket(host, port);
  /developers/build/prebuilts/gradle/PermissionRequest/Application/src/main/java/com/example/android/permissionrequest/
SimpleWebServer.java 31 import java.net.Socket;
89 Log.e(TAG, "Error closing the server socket.", e);
102 Socket socket = mServerSocket.accept(); local
103 handle(socket);
104 socket.close();
116 * @param socket The client socket.
119 private void handle(Socket socket) throws IOException
    [all...]
  /developers/samples/android/content/webview/PermissionRequest/Application/src/main/java/com/example/android/permissionrequest/
SimpleWebServer.java 31 import java.net.Socket;
89 Log.e(TAG, "Error closing the server socket.", e);
102 Socket socket = mServerSocket.accept(); local
103 handle(socket);
104 socket.close();
116 * @param socket The client socket.
119 private void handle(Socket socket) throws IOException
    [all...]
  /development/apps/Development/src/com/android/development/
LogViewer.java 24 import java.net.Socket;
77 final Socket socket; field in class:LogViewer.LogReader
85 this.socket = new Socket("127.0.0.1", 5040);
86 this.in = new DataInputStream(this.socket.getInputStream());
88 this.socket.getOutputStream().write('\n');
89 this.socket.getOutputStream().write('\n');
  /development/samples/browseable/PermissionRequest/src/com.example.android.permissionrequest/
SimpleWebServer.java 31 import java.net.Socket;
89 Log.e(TAG, "Error closing the server socket.", e);
102 Socket socket = mServerSocket.accept(); local
103 handle(socket);
104 socket.close();
116 * @param socket The client socket.
119 private void handle(Socket socket) throws IOException
    [all...]
  /device/google/cuttlefish_common/tests/ril/src/com/android/cuttlefish/ril/tests/
RilE2eTests.java 40 import java.net.Socket;
128 try (Socket s = new Socket("google.com", 80)) {
  /device/google/cuttlefish_common/tests/wifi/src/com/android/cuttlefish/wifi/tests/
WifiE2eTests.java 36 import java.net.Socket;
176 try (Socket s = new Socket("google.com", 80)) {
  /external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/share/
JPDADebuggeeSynchronizer.java 34 import java.net.Socket;
53 protected Socket clientSocket = null;
166 * Returns socket address for connecting to the server.
170 * a port will automatically be chosen by the OS when the server is bound to a socket.
172 * @return socket address
184 "[SYNC] Exception in binding for socket sync connection", e);
189 * Binds server to listen socket port.
193 * the OS will choose a port automatically for this server socket.
200 logWriter.println("[SYNC] Binding socket on: " + serverAddress);
203 logWriter.println("[SYNC] Bound socket on: " + serverAddres
    [all...]
  /external/apache-http/src/org/apache/http/impl/conn/tsccm/
ThreadSafeClientConnManager.java 34 import java.net.Socket;
183 // When using a recycled Socket, we need to re-tag it with any
186 final Socket socket = entry.getConnection().getSocket(); local
187 if (socket != null) {
188 TrafficStats.tagSocket(socket);
191 log.debug("Problem tagging socket.", iox);
218 // When recycling a Socket, we un-tag it to avoid collecting
221 final Socket socket = entry.getConnection().getSocket()
    [all...]
  /external/jacoco/org.jacoco.agent.rt.test/src/org/jacoco/agent/rt/internal/output/
TcpServerOutputTest.java 10 * Marc R. Hoffmann - migration to mock socket
23 import java.net.Socket;
90 final Socket socket = serverSocket.connect(); local
92 socket.getOutputStream());
94 socket.getInputStream());
121 final Socket socket = serverSocket.connect(); local
122 final OutputStream out = socket.getOutputStream();
  /external/jacoco/org.jacoco.core.test/src/org/jacoco/core/tools/
ExecDumpClientTest.java 24 import java.net.Socket;
139 exception.expectMessage("Socket closed unexpectedly.");
167 private void handleConnection(Socket socket) throws IOException {
169 socket.getOutputStream());
171 socket.getInputStream());
192 Socket socket = server.accept();
193 InputStream in = socket.getInputStream();
205 socket.close()
    [all...]
  /frameworks/base/core/java/android/security/net/config/
RootTrustManager.java 19 import java.net.Socket;
60 public void checkClientTrusted(X509Certificate[] certs, String authType, Socket socket)
65 config.getTrustManager().checkClientTrusted(certs, authType, socket);
78 public void checkServerTrusted(X509Certificate[] certs, String authType, Socket socket)
80 if (socket instanceof SSLSocket) {
81 SSLSocket sslSocket = (SSLSocket) socket;
88 config.getTrustManager().checkServerTrusted(certs, authType, socket);
  /libcore/ojluni/src/main/java/java/net/
SocketImpl.java 39 * A "plain" socket implements these methods exactly as
47 * The actual Socket object.
49 Socket socket = null; field in class:SocketImpl
53 * The file descriptor object for this socket.
58 * The IP address of the remote end of this socket.
63 * The port number on the remote host to which this socket is connected.
68 * The local port number to which this socket is connected.
73 * Creates either a stream or a datagram socket.
75 * @param stream if {@code true}, create a stream socket;
    [all...]
  /libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
X509KeyManagerImpl.java 12 import java.net.Socket;
140 public String chooseClientAlias(String[] as, Principal[] aprincipal, Socket socket) {
147 if (socket == null) {
184 public String chooseServerAlias(String as, Principal[] aprincipal, Socket socket) {
190 if (as.equals(server) && socket != null) {
  /tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/
RemoteClient.java 27 import java.net.Socket;
43 private final Socket mSocket;
68 mSocket = new Socket(hostName, port);
256 Log.w(TAG, String.format("exception closing socket: %s", e.toString()));
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
_ssl.c 1 /* SSL socket module
104 /* SSL socket object */
117 PySocketSockObject *Socket; /* Socket on which we're layered */
196 if (ret == 0 || !obj->Socket) {
202 return obj->Socket->errorhandler();
283 self->Socket = NULL;
386 SSL_set_fd(self->ssl, Sock->sock_fd); /* Set the socket for SSL */
391 /* If the socket is in non-blocking mode or timeout mode, set the BIO
407 self->Socket = Sock;
    [all...]
  /packages/apps/Dialer/java/com/android/voicemail/impl/mail/
MailTransport.java 34 import java.net.Socket;
60 private Socket socket; field in class:MailTransport
130 socket = createSocket();
133 socket.connect(address, SOCKET_CONNECT_TIMEOUT);
143 in = new BufferedInputStream(socket.getInputStream(), 1024);
144 out = new BufferedOutputStream(socket.getOutputStream(), 512);
145 socket.setSoTimeout(SOCKET_READ_TIMEOUT);
159 socket.close();
160 socket = null
    [all...]
  /cts/hostsidetests/appsecurity/test-apps/AppWithData/src/com/android/cts/appwithdata/
MyProvider.java 31 import java.net.Socket;
132 final Socket socket = server.accept(); local
133 socket.setTcpNoDelay(true);
134 final int val = socket.getInputStream().read();
135 socket.getOutputStream().write(val);
136 socket.getOutputStream().flush();
137 socket.close();
  /development/samples/KeyChainDemo/src/com/example/android/keychain/
SecureWebServer.java 25 import java.net.Socket;
77 // Create the SSL server socket factory
99 // Create the secure server socket
110 Socket socket = sss.accept();
116 new InputStreamReader(socket.getInputStream()));
117 PrintWriter out = new PrintWriter(socket
137 socket.close();
155 // Close the socket
  /device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Tcp4Dxe/
SockInterface.c 2 Interface function of the Socket.
56 in the related socket's lists.
58 @param Sock Pointer to the instance's socket.
61 @retval TRUE The Event exists in related socket's lists.
62 @retval FALSE The Event is not in related socket's lists.
67 IN SOCKET *Sock,
95 Buffer a token into the specific list of socket Sock.
97 @param Sock Pointer to the instance's socket.
107 IN SOCKET *Sock,
134 Destroy the socket Sock and its associated protocol control block.
    [all...]
Tcp4Dxe.inf 51 Socket.h
  /device/linaro/bootloader/edk2/NetworkPkg/TcpDxe/
TcpDxe.inf 53 Socket.h
  /external/conscrypt/common/src/main/java/org/conscrypt/
OpenSSLSocketImpl.java 22 import java.net.Socket;
30 * Conscrypt's extended socket API before the introduction of the {@link Conscrypt} class.
58 OpenSSLSocketImpl(Socket socket, String hostname, int port, boolean autoClose)
60 super(socket, hostname, port, autoClose);

Completed in 626 milliseconds

1 2 3 4 5 6 7 8 91011>>