HomeSort by relevance Sort by last modified time
    Searched full:socket (Results 126 - 150 of 4983) sorted by null

1 2 3 4 56 7 8 91011>>

  /sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/
ProfilesLoader.java 24 import java.net.Socket;
38 Socket socket = null; local
43 socket = new Socket();
44 socket.connect(new InetSocketAddress("127.0.0.1",
47 out = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));
48 in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
72 if (socket != null) {
73 socket.close()
    [all...]
WindowsLoader.java 29 import java.net.Socket;
34 Socket socket = null; local
42 socket = new Socket();
43 socket.connect(new InetSocketAddress("127.0.0.1",
46 out = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));
47 in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
86 if (socket != null) {
87 socket.close()
    [all...]
  /external/libnfc-nxp/src/
phFriNfc_LlcpTransport_Connection.h 43 * \brief <b>Get the local options of a socket</b>.
46 * for a given connection-oriented socket. This function shall not be used with connectionless
50 * \param[in] psLocalOptions A pointer to be filled with the local options of the socket.
55 * \retval NFCSTATUS_INVALID_STATE The socket is not in a valid state, or not of
66 * \brief <b>Get the local options of a socket</b>.
69 * for a given connection-oriented socket. This function shall not be used with connectionless
73 * \param[in] psRemoteOptions A pointer to be filled with the remote options of the socket.
78 * \retval NFCSTATUS_INVALID_STATE The socket is not in a valid state, or not of
89 * \brief <b>Close a socket on a LLCP-connected device</b>.
91 * This function closes a LLCP socket previously created using phFriNfc_LlcpTransport_Socket
    [all...]
phFriNfc_LlcpTransport.h 78 * \brief LLCP socket error notification callback definition
87 * \brief LLCP socket listen callback definition
95 * \brief LLCP socket connect callback definition
104 * \brief LLCP socket disconnect callback definition
112 * \brief LLCP socket accept callback definition
120 * \brief LLCP socket reject callback definition
128 * \brief LLCP socket reception callback definition
136 * \brief LLCP socket reception with SSAP callback definition
145 * \brief LLCP socket emission callback definition
154 * \brief Declaration of a SOCKET typ
    [all...]
  /cts/tests/tests/net/src/android/net/cts/
SSLCertificateSocketFactoryTest.java 21 import java.net.Socket;
76 Socket socket = new Socket(); local
77 mFactory.createSocket(socket, host, port, true);
82 Socket socket = null; local
83 socket = mFactory.createSocket(host, port);
84 assertNotNull(socket);
85 assertNotNull(socket.getOutputStream())
    [all...]
  /frameworks/base/core/java/org/apache/http/conn/scheme/
LayeredSocketFactory.java 35 import java.net.Socket;
40 * See there for things to consider when implementing a socket factory.
54 * Returns a socket connected to the given host that is layered over an
55 * existing socket. Used primarily for creating secure sockets through
58 * @param socket the existing socket
61 * @param autoClose a flag for closing the underling socket when the created
62 * socket is closed
64 * @return Socket a new socket
    [all...]
  /sdk/apps/SdkController/src/com/android/tools/sdkcontroller/lib/
Connection.java 34 * the device side, the connection is bound to the UNIX-domain socket named
37 * 'android.sdk.controller' socket on the device. Typically, the port forwarding
52 * 2. Channels are connected to emulator via separate socket instance (though all
53 * of the connections share the same socket address).
61 * 1. Bind to "android.sdk.controller" socket, listening to emulator connections.
79 /** Server socket used to listen to emulator connections. */
91 private List<Socket> mPendingSockets = new ArrayList<Socket>();
110 * Binds to the socket, and starts the listening thread.
124 * Stops the listener, and closes the socket
133 LocalServerSocket socket; local
269 LocalServerSocket socket = mServerSocket; local
    [all...]
  /external/conscrypt/src/test/java/org/conscrypt/
DuckTypedPSKKeyManagerTest.java 24 import java.net.Socket;
108 assertEquals(Arrays.asList(new Class[] {Socket.class}),
125 assertEquals(Arrays.asList(new Class[] {String.class, Socket.class}),
144 assertEquals(Arrays.asList(new Class[] {String.class, String.class, Socket.class}),
177 public String chooseServerKeyIdentityHint(Socket socket) {
185 public String chooseClientKeyIdentity(String identityHint, Socket socket) {
193 public SecretKey getKey(String identityHint, String identity, Socket socket) {
    [all...]
  /external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/
SocketPolicy.java 19 /** What should be done with the incoming socket. */
23 * Keep the socket open after the response. This is the default HTTP/1.1
29 * Close the socket after the response. This is the default HTTP/1.0
35 * Wrap the socket with SSL at the completion of this request/response pair.
57 * Shutdown the socket input after sending the response. For testing bad
63 * Shutdown the socket output after sending the response. For testing bad
69 * Don't response to the request but keep the socket open. For testing
  /libcore/luni/src/main/java/javax/net/ssl/
DefaultSSLSocketFactory.java 22 import java.net.Socket;
50 public Socket createSocket(Socket s, String host, int port, boolean autoClose)
56 public Socket createSocket(String host, int port) throws IOException, UnknownHostException {
61 public Socket createSocket(String host, int port, InetAddress localHost, int localPort)
67 public Socket createSocket(InetAddress host, int port) throws IOException {
72 public Socket createSocket(InetAddress address, int port, InetAddress localAddress,
  /libcore/support/src/test/java/libcore/javax/net/ssl/
ForwardingX509ExtendedKeyManager.java 19 import java.net.Socket;
38 public String chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket) {
39 return delegate.chooseClientAlias(keyType, issuers, socket);
43 public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket) {
44 return delegate.chooseServerAlias(keyType, issuers, socket);
  /system/core/libsysutils/src/
NetlinkListener.cpp 19 #include <sys/socket.h>
34 NetlinkListener::NetlinkListener(int socket) :
35 SocketListener(socket, false) {
40 NetlinkListener::NetlinkListener(int socket, int format) :
41 SocketListener(socket, false), mFormat(format) {
46 int socket = cli->getSocket(); local
55 count = TEMP_FAILURE_RETRY(uevent_kernel_recv(socket,
  /frameworks/base/core/java/android/net/
LocalSocketImpl.java 30 * Socket implementation used for android.net.LocalSocket and
60 if (myFd == null) throw new IOException("socket closed");
77 if (myFd == null) throw new IOException("socket closed");
95 if (myFd == null) throw new IOException("socket closed");
130 if (myFd == null) throw new IOException("socket closed");
144 if (myFd == null) throw new IOException("socket closed");
158 if (myFd == null) throw new IOException("socket closed");
196 * Accepts a connection on a server socket.
198 * @param fd file descriptor of server socket
199 * @param s socket implementation that will become the new socke
    [all...]
Network.java 31 import java.net.Socket;
51 * It is used to direct traffic to the given {@code Network}, either on a {@link Socket} basis
123 * A {@code SocketFactory} that produces {@code Socket}'s bound to this network.
133 private Socket connectToHost(String host, int port, SocketAddress localAddress)
140 Socket socket = createSocket(); local
141 if (localAddress != null) socket.bind(localAddress);
142 socket.connect(new InetSocketAddress(hostAddresses[i], port));
143 return socket;
152 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) throws IOException
159 Socket socket = createSocket(); local
167 Socket socket = createSocket(); local
179 Socket socket = new Socket(); local
    [all...]
  /development/samples/training/NsdChat/src/com/example/android/nsdchat/
ChatConnection.java 32 import java.net.Socket;
45 private Socket mSocket;
97 private synchronized void setSocket(Socket socket) {
99 if (socket == null) {
100 Log.d(TAG, "Setting a null socket.");
112 mSocket = socket;
115 private Socket getSocket() {
133 Log.e(TAG, "Error when closing server socket.");
199 setSocket(new Socket(mAddress, PORT))
265 Socket socket = getSocket(); local
    [all...]
  /external/conscrypt/src/main/java/org/conscrypt/
DuckTypedPSKKeyManager.java 20 import java.net.Socket;
71 public String chooseServerKeyIdentityHint(Socket socket) {
74 .getMethod("chooseServerKeyIdentityHint", Socket.class)
75 .invoke(mDelegate, socket);
93 public String chooseClientKeyIdentity(String identityHint, Socket socket) {
96 .getMethod("chooseClientKeyIdentity", String.class, Socket.class)
97 .invoke(mDelegate, identityHint, socket);
115 public SecretKey getKey(String identityHint, String identity, Socket socket)
    [all...]
  /external/deqp/framework/delibs/decpp/
deSocket.hpp 72 class Socket
75 Socket (void);
76 ~Socket (void);
84 Socket* accept (SocketAddress& clientAddress) { return accept(clientAddress.getPtr()); }
85 Socket* accept (void) { return accept(DE_NULL); }
102 Socket (deSocket* socket) : m_socket(socket) {}
103 Socket (const Socket& other)
    [all...]
  /external/mesa3d/src/gallium/auxiliary/rbug/
rbug_connection.c 32 int socket; member in struct:rbug_connection
39 * Create a rbug connection from a socket created with u_socket.
42 * A new allocated connection using socket as communication path
45 rbug_from_socket(int socket)
48 c->socket = socket;
53 * Free a connection, also closes socket.
58 u_socket_close(c->socket);
80 ret = u_socket_peek(c->socket, &header, sizeof(header));
94 ret = u_socket_recv(c->socket, ptr, length - read)
    [all...]
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
SocketConnector.java 35 import java.net.Socket;
53 * Helper that can establish a socket connection to a {@link com.squareup.okhttp.Route} using the
67 Socket socket = connectRawSocket(readTimeout, connectTimeout, route); local
68 return new ConnectedSocket(route, socket);
79 Socket socket = connectRawSocket(readTimeout, connectTimeout, route); local
81 createTunnel(readTimeout, writeTimeout, request, route, socket);
88 // Create the wrapper over the connected socket.
90 .createSocket(socket, address.getUriHost(), address.getUriPort(), true /* autoClose */)
153 Socket socket; local
259 public final Socket socket; field in class:SocketConnector.ConnectedSocket
    [all...]
  /external/apache-harmony/support/src/test/java/tests/support/
Support_HttpSocket.java 23 import java.net.Socket;
30 private final Socket instance;
34 Support_HttpSocket(Socket socket) {
35 instance = socket;
  /external/iptables/extensions/
libxt_socket.c 2 * Shared library add-on to iptables to add early socket matching support.
22 "socket match options:\n"
51 printf(" socket");
57 .name = "socket",
65 .name = "socket",
  /external/lldb/test/pexpect-2.4/examples/
bd_client.py 6 import socket namespace
22 s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
  /libcore/luni/src/test/java/libcore/java/nio/channels/
DatagramChannelTest.java 61 dc.socket().bind(null);
72 DatagramSocket socket = dc.socket(); local
73 assertFalse(socket.isBound());
74 assertFalse(socket.getBroadcast());
75 assertFalse(socket.isClosed());
76 assertFalse(socket.isConnected());
77 assertEquals(0, socket.getLocalPort());
78 assertTrue(socket.getLocalAddress().isAnyLocalAddress());
79 assertNull(socket.getLocalSocketAddress())
    [all...]
  /system/bt/btif/include/
btif_sock_thread.h 29 #define SOCK_THREAD_FD_RD 1 /* BT socket read signal */
30 #define SOCK_THREAD_FD_WR (1 << 1) /* BT socket write signal */
31 #define SOCK_THREAD_FD_EXCEPTION (1 << 2) /* BT socket exception singal */
32 #define SOCK_THREAD_ADD_FD_SYNC (1 << 3) /* Add BT socket fd in current socket
  /external/sepolicy/
access_vectors 34 # Define a common prefix for socket access vectors.
37 common socket
50 # socket-specific
222 class socket
223 inherits socket
226 inherits socket
236 inherits socket
242 inherits socket
277 inherits socket
280 inherits socket
    [all...]

Completed in 81 milliseconds

1 2 3 4 56 7 8 91011>>