/libcore/luni/src/test/java/libcore/java/net/ |
ConcurrentCloseTest.java | 24 import java.net.Socket; 36 * Test that Socket.close called on another thread interrupts a thread that's blocked doing 45 Socket s = ss.accept(); 48 assertEquals("Socket closed", expected.getMessage()); 54 Socket s = new Socket(); 61 assertEquals("Socket closed", expected.getMessage()); 69 Socket s = new Socket(); 76 assertEquals("Socket closed", expected.getMessage()) [all...] |
/frameworks/base/core/java/android/net/ |
SSLCertificateSocketFactory.java | 26 import java.net.Socket; 53 * The handshake timeout does not apply to actual TCP socket connection. 55 * and {@link Socket#connect(SocketAddress, int)}, after which you 62 * use {@link InetAddress} or which return an unconnected socket, you MUST 69 * <p>On development devices, "setprop socket.relaxsslcheck yes" bypasses all 110 * Returns a new socket factory instance with an optional handshake timeout. 113 * for none. The socket timeout is reset to 0 after the handshake. 121 * Returns a new socket factory instance with an optional handshake timeout 125 * for none. The socket timeout is reset to 0 after the handshake. 134 * Returns a new instance of a socket factory with all SSL security check [all...] |
/libcore/luni/src/main/java/java/net/ |
DatagramSocket.java | 30 * This class implements a UDP socket for sending and receiving {@code 58 * Constructs a UDP datagram socket which is bound to any available port on 62 * if an error occurs while creating or binding the socket. 69 * Constructs a UDP datagram socket which is bound to the specific port 76 * if an error occurs while creating or binding the socket. 84 * Constructs a UDP datagram socket which is bound to the specific local address {@code addr} on 86 * {@code addr} is {@code null} the socket will be bound to a wildcard address. 93 * if an error occurs while creating or binding the socket. 107 * Closes this UDP datagram socket and all possibly associated channels. 128 * Disconnects this UDP datagram socket from the remote host. This metho [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_timeout.py | 1 """Unit tests for socket timeout feature.""" 10 import socket namespace 14 """Test case for socket.gettimeout() and socket.settimeout()""" 17 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 23 # Test Socket creation 91 """Test case for socket.socket() timeout functions"" [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_timeout.py | 1 """Unit tests for socket timeout feature.""" 10 import socket namespace 14 """Test case for socket.gettimeout() and socket.settimeout()""" 17 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 23 # Test Socket creation 91 """Test case for socket.socket() timeout functions"" [all...] |
/external/bison/m4/ |
sys_socket_h.m4 | 21 of socket functions.]) 25 AC_CACHE_CHECK([whether <sys/socket.h> is self-contained], 28 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/socket.h>]], [[]])], 33 dnl If the shutdown function exists, <sys/socket.h> should define 37 AC_CACHE_CHECK([whether <sys/socket.h> defines the SHUT_* macros], 41 [AC_LANG_PROGRAM([[#include <sys/socket.h>]], 47 SYS_SOCKET_H='sys/socket.h' 55 sys/socket.h in i386-unknown-freebsd4.10 and 59 #include <sys/socket.h> 77 #include <sys/socket.h [all...] |
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/ |
CaptureLoader.java | 37 import java.net.Socket; 42 Socket socket = null; local 48 socket = new Socket(); 49 socket.connect(new InetSocketAddress("127.0.0.1", 52 out = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())); 53 in = new DataInputStream(new BufferedInputStream(socket.getInputStream())); 80 if (socket != null) { 81 socket.close() 130 Socket socket = null; local [all...] |
/bionic/libc/bionic/ |
socket.cpp | 19 #include <sys/socket.h> 21 int socket(int domain, int type, int protocol) { function 22 return __netdClientDispatch.socket(domain, type, protocol);
|
/cts/tests/tests/net/src/android/net/cts/ |
VpnServiceTest.java | 25 import java.net.Socket; 64 DatagramSocket socket = new DatagramSocket(); local 67 assertFalse(mVpnService.protect(socket)); 70 socket.close(); 78 Socket socket = new Socket(); local 81 assertFalse(mVpnService.protect(socket)); 84 socket.close(); 92 DatagramSocket socket = new DatagramSocket() local [all...] |
/device/generic/goldfish/libqemu/ |
test_util.c | 17 #include <sys/socket.h> 50 pipe->socket = -1; 52 fd = socket( AF_INET, SOCK_STREAM, 0 ); 54 fprintf(stderr, "%s: Can't create socket!!\n", __FUNCTION__); 70 pipe->socket = fd; 77 pipe->socket = qemu_pipe_open(pipename); 78 if (pipe->socket < 0) { 91 ret = write(pipe->socket, ptr, bufflen); 114 ret = read(pipe->socket, buff, bufflen); 133 if (pipe->socket >= 0) [all...] |
/external/apache-harmony/luni/src/test/api/unix/org/apache/harmony/luni/tests/java/net/ |
UnixSocketTest.java | 27 import java.net.Socket; 35 * @tests java.net.Socket#getInputStream() 40 Socket pingClient = new Socket(); 46 Socket worker = pingServer.accept(); 91 Socket theSocket = new Socket(); 110 Socket socket = new Socket("127.0.0.1", port, false) local [all...] |
/external/valgrind/none/tests/ |
fdleak_ipv4.stderr.exp | 4 Open AF_INET socket 4: 127.0.0.1:... <-> 127.0.0.1:... 7 Open AF_INET socket 3: 127.0.0.1:... <-> unbound 22 Open AF_INET socket 3: 127.0.0.1:... <-> 127.0.0.1:...
|
/libcore/luni/src/main/java/javax/net/ssl/ |
SSLSocketFactory.java | 21 import java.net.Socket; 33 // The default SSL socket factory 42 * @return the default ssl socket factory instance. 122 * Creates an {@code SSLSocket} over the specified socket that is connected 126 * the socket. 132 * {@code true} if socket {@code s} should be closed when the 133 * created socket is closed, {@code false} if the socket 135 * @return the creates ssl socket. 137 * if creating the socket fails [all...] |
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/debug/ |
socket.rb | 4 require 'socket' 12 A proxy debug event listener that forwards events over a socket to 14 one event per line. ANTLRWorks listens on server socket with a 16 be kept in sync. New events must be handled on both sides of socket. 30 @socket = nil 39 unless @socket 41 @socket = Socket.new( Socket::AF_INET, Socket::SOCK_STREAM, 0 [all...] |
/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/ |
ProxyServer.java | 32 import java.net.Socket; 64 private Socket connection; 66 private ProxyConnection(Socket connection) { 122 Socket server = null; 129 server = new Socket(inetSocketAddress.getHostName(), 133 server = new Socket(host, port); 154 server = new Socket(host, port); 189 private void sendRequestLineWithPath(Socket server, String requestType, 240 private void sendLine(Socket socket, String line) throws IOException 337 Socket socket = serverSocket.accept(); local [all...] |
/external/mockwebserver/src/main/java/com/google/mockwebserver/ |
SocketPolicy.java | 20 * What should be done with the incoming socket. 25 * Keep the socket open after the response. This is the default HTTP/1.1 31 * Close the socket after the response. This is the default HTTP/1.0 37 * Wrap the socket with SSL at the completion of this request/response 65 * Shutdown the socket input after sending the response. For testing bad 71 * Shutdown the socket output after sending the response. For testing bad
|
/external/okhttp/okio/okio/src/main/java/okio/ |
Okio.java | 26 import java.net.Socket; 108 * Returns a sink that writes to {@code socket}. Prefer this over {@link 109 * #sink(OutputStream)} because this method honors timeouts. When the socket 110 * write times out, the socket is asynchronously closed by a watchdog thread. 112 public static Sink sink(final Socket socket) throws IOException { 113 if (socket == null) throw new IllegalArgumentException("socket == null"); 114 AsyncTimeout timeout = timeout(socket); 115 Sink sink = sink(socket.getOutputStream(), timeout) [all...] |
/libcore/support/src/test/java/tests/http/ |
SocketPolicy.java | 20 * What should be done with the incoming socket. 25 * Keep the socket open after the response. This is the default HTTP/1.1 31 * Close the socket after the response. This is the default HTTP/1.0 37 * Wrap the socket with SSL at the completion of this request/response 54 * Shutdown the socket input after sending the response. For testing bad 60 * Shutdown the socket output after sending the response. For testing bad
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/sysroot/usr/include/linux/ |
if_pppol2tp.h | 2 * Linux PPP over L2TP (PPPoL2TP) Socket Implementation (RFC 2661) 21 /* Structure used to connect() the socket to a particular tunnel UDP 22 * socket. 28 int fd; /* FD of UDP socket to use */ 36 /* Socket options: 54 /* Debug message categories for the DEBUG socket option */
|
/device/asus/flo/sepolicy/ |
system_server.te | 5 # PowerManagerService access to sensors socket 11 # mpdecision socket access
|
/device/lge/hammerhead/sepolicy/ |
system_server.te | 5 # PowerManagerService access to sensors socket 11 # mpdecision socket access
|
/external/apache-harmony/x-net/src/test/impl/java.injected/javax/net/ssl/ |
DefaultSSLSocketFactoryTest.java | 23 import java.net.Socket; 36 * Class under test for Socket createSocket(String, int) 51 * Class under test for Socket createSocket(String, int, InetAddress, int) 65 * Class under test for Socket createSocket(InetAddress, int) 79 * Class under test for Socket createSocket(InetAddress, int, InetAddress, 111 * Class under test for Socket createSocket(Socket, String, int, boolean) 116 f.createSocket(new Socket(), "localhost", 1, true);
|
/external/compiler-rt/test/msan/ |
ioctl.cc | 7 #include <sys/socket.h> 11 int fd = socket(AF_INET, SOCK_DGRAM, 0);
|
/external/conscrypt/src/main/java/org/conscrypt/ |
OpenSSLSocketFactoryImpl.java | 21 import java.net.Socket; 59 public Socket createSocket() throws IOException { 67 public Socket createSocket(String hostname, int port) throws IOException, UnknownHostException { 72 public Socket createSocket(String hostname, int port, InetAddress localHost, int localPort) 82 public Socket createSocket(InetAddress address, int port) throws IOException { 87 public Socket createSocket(InetAddress address, 100 public Socket createSocket(Socket s, String hostname, int port, boolean autoClose)
|
/external/iproute2/include/linux/ |
unix_diag.h | 18 #define UDIAG_SHOW_PEER 0x00000004 /* show peer socket info */ 21 #define UDIAG_SHOW_MEMINFO 0x00000020 /* show memory info of a socket */
|