/frameworks/base/core/java/android/net/ |
H A D | LinkSocketNotifier.java | 32 * If the duplicate socket is accepted, the original will be marked invalid 53 * @param socket the LinkSocket that lost its link 60 public void onLinkLost(LinkSocket socket); argument 66 * @param socket the LinkSocket for which a new link was not found 73 public void onNewLinkUnavailable(LinkSocket socket); argument 78 * @param socket the linkSocet for which capabilities have changed 87 public void onCapabilitiesChanged(LinkSocket socket, LinkCapabilities changedCapabilities); argument
|
H A D | SSLCertificateSocketFactory.java | 53 * The handshake timeout does not apply to actual TCP socket connection. 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 checks 141 * for none. The socket timeout is reset to 0 after the handshake. 150 * Returns a socket factor 181 verifyHostname(Socket socket, String hostname) argument 329 getNpnSelectedProtocol(Socket socket) argument 343 getAlpnSelectedProtocol(Socket socket) argument 380 setUseSessionTickets(Socket socket, boolean useSessionTickets) argument 392 setHostname(Socket socket, String hostName) argument 407 setSoWriteTimeout(Socket socket, int writeTimeoutMilliseconds) argument 412 castToOpenSSLSocket(Socket socket) argument [all...] |
H A D | SntpClient.java | 74 DatagramSocket socket = null; 76 socket = new DatagramSocket(); 77 socket.setSoTimeout(timeout); 92 socket.send(request); 96 socket.receive(response); 126 if (socket != null) { 127 socket.close();
|
H A D | DnsPinger.java | 59 /** Short socket timeout so we don't block one any 'receive' call */ 90 * Send a new ping via a socket. arg1 is ID, arg2 is timeout, obj is InetAddress to ping 100 DatagramSocket socket; field in class:DnsPinger.ActivePing 148 newActivePing.socket = new DatagramSocket(); 149 // Set some socket properties 150 newActivePing.socket.setSoTimeout(SOCKET_TIMEOUT_MS); 154 newActivePing.socket.setNetworkInterface(NetworkInterface.getByName( 157 loge("sendDnsPing::Error binding to socket " + e); 174 newActivePing.socket.send(packet); 189 /** Each socket wil [all...] |
H A D | VpnService.java | 154 * Protect a socket from VPN connections. The socket will be bound to the 162 * <p class="note">The socket is NOT closed by this method. 166 public boolean protect(int socket) { argument 169 dup = ParcelFileDescriptor.fromFd(socket); 188 public boolean protect(Socket socket) { argument 189 return protect(socket.getFileDescriptor$().getInt$()); 199 public boolean protect(DatagramSocket socket) { argument 200 return protect(socket.getFileDescriptor$().getInt$());
|
H A D | IConnectivityManager.aidl | 42 void markSocketAsUser(in ParcelFileDescriptor socket, int uid); 118 boolean protectVpn(in ParcelFileDescriptor socket);
|
H A D | TrafficStats.java | 181 public static void tagSocket(Socket socket) throws SocketException { argument 182 SocketTagger.get().tag(socket); 188 public static void untagSocket(Socket socket) throws SocketException { argument 189 SocketTagger.get().untag(socket);
|
/frameworks/opt/net/voip/src/jni/rtp/ |
H A D | RtpStream.cpp | 22 #include <sys/socket.h> 48 int socket = ::socket(ss.ss_family, SOCK_DGRAM, 0); local 50 if (socket == -1 || bind(socket, (sockaddr *)&ss, sizeof(ss)) != 0 || 51 getsockname(socket, (sockaddr *)&ss, &len) != 0) { 53 ::close(socket); 61 env->SetIntField(thiz, gSocket, socket); 64 ::close(socket); 66 socket 91 int socket = env->GetIntField(thiz, gSocket); local [all...] |
/frameworks/support/v4/ics/android/support/v4/net/ |
H A D | TrafficStatsCompatIcs.java | 48 public static void tagSocket(Socket socket) throws SocketException { argument 49 TrafficStats.tagSocket(socket); 52 public static void untagSocket(Socket socket) throws SocketException { argument 53 TrafficStats.untagSocket(socket);
|
/frameworks/support/v4/java/android/support/v4/net/ |
H A D | TrafficStatsCompat.java | 36 void tagSocket(Socket socket) throws SocketException; argument 37 void untagSocket(Socket socket) throws SocketException; argument 76 public void tagSocket(Socket socket) { argument 80 public void untagSocket(Socket socket) { argument 111 public void tagSocket(Socket socket) throws SocketException { argument 112 TrafficStatsCompatIcs.tagSocket(socket); 116 public void untagSocket(Socket socket) throws SocketException { argument 117 TrafficStatsCompatIcs.untagSocket(socket); 193 public static void tagSocket(Socket socket) throws SocketException { argument 194 IMPL.tagSocket(socket); 200 untagSocket(Socket socket) argument [all...] |
/frameworks/base/core/java/android/net/http/ |
H A D | AndroidHttpClientConnection.java | 81 private Socket socket = null; field in class:AndroidHttpClientConnection 89 * Bind socket and set HttpParams to AndroidHttpClientConnection 90 * @param socket outgoing socket 95 final Socket socket, 97 if (socket == null) { 104 socket.setTcpNoDelay(HttpConnectionParams.getTcpNoDelay(params)); 105 socket.setSoTimeout(HttpConnectionParams.getSoTimeout(params)); 109 socket.setSoLinger(linger > 0, linger); 111 this.socket 94 bind( final Socket socket, final HttpParams params) argument [all...] |
H A D | CertificateChainValidator.java | 71 * @param sslSocket The secure connection socket 78 // get a valid SSLSession, close the socket if we fail 197 SSLSocket socket, String errorMessage, String defaultErrorMessage) 200 socket, errorMessage != null ? errorMessage : defaultErrorMessage); 203 private void closeSocketThrowException(SSLSocket socket, argument 209 if (socket != null) { 210 SSLSession session = socket.getSession(); 215 socket.close(); 196 closeSocketThrowException( SSLSocket socket, String errorMessage, String defaultErrorMessage) argument
|
/frameworks/av/media/common_time/ |
H A D | utils.h | 20 #include <linux/socket.h>
|
/frameworks/base/cmds/interrupter/ |
H A D | interrupter.c | 31 #include <sys/socket.h>
|
/frameworks/native/opengl/libs/GLES_trace/src/ |
H A D | gltrace_transport.cpp | 22 #include <sys/socket.h> 35 int serverSocket = socket(AF_LOCAL, SOCK_STREAM, 0); 37 ALOGE("Error (%d) while creating socket. Check if app has network permissions.", 53 ALOGE("Failed to bind the server socket"); 59 ALOGE("Failed to listen on server socket"); 94 TCPStream::TCPStream(int socket) { argument 95 mSocket = socket;
|
H A D | gltrace_transport.h | 35 /** Create a TCP based communication channel over @socket */ 36 TCPStream(int socket); 82 * Utility method: start a server listening at @sockName (unix domain socket, 84 * Returns the connected client socket on success, or -1 on failure.
|
/frameworks/base/tests/CoreTests/android/core/ |
H A D | SSLSocketTest.java | 85 Socket socket = secure ? socketFactory.createSocket() 88 socket.setKeepAlive(true); 89 socket.setSoTimeout(timeout * 1000); 91 socket.connect(address); 94 OutputStream output = socket.getOutputStream(); 98 DataInputStream input = new DataInputStream(socket.getInputStream()); 173 socket.close(); 178 * Invokes fetch() with the default socket factory. 337 final Socket socket = clientFactory.createSocket(); 338 socket [all...] |
/frameworks/base/tests/BandwidthTests/src/com/android/tests/bandwidthenforcement/ |
H A D | BandwidthEnforcementTestService.java | 155 final DatagramSocket socket = new DatagramSocket(); 157 socket.setSoTimeout(10000); 162 socket.send(queryPacket); 166 socket.receive(replyPacket); 170 socket.close();
|
/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/ |
H A D | ProxyServer.java | 177 private void sendLine(Socket socket, String line) throws IOException { argument 178 OutputStream os = socket.getOutputStream(); 202 Socket socket = serverSocket.accept(); 204 if (socket.getInetAddress().isLoopbackAddress()) { 205 ProxyConnection parser = new ProxyConnection(socket); 209 socket.close();
|
/frameworks/base/services/java/com/android/server/ |
H A D | NativeDaemonConnector.java | 72 NativeDaemonConnector(INativeDaemonConnectorCallbacks callbacks, String socket, argument 75 mSocket = socket; 110 // If we're testing, set up a socket in a namespace that's accessible to test code. 112 // production devices, even if said native daemons ill-advisedly pick a socket name that 122 LocalSocket socket = null; 125 socket = new LocalSocket(); 128 socket.connect(address); 130 InputStream inputStream = socket.getInputStream(); 132 mOutputStream = socket.getOutputStream(); 206 if (socket ! [all...] |
/frameworks/native/cmds/ip-up-vpn/ |
H A D | ip-up-vpn.c | 26 #include <sys/socket.h> 87 int s = socket(AF_INET, SOCK_DGRAM, 0);
|
/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothAdapter.java | 926 * Create a listening, secure RFCOMM Bluetooth socket. 927 * <p>A remote device connecting to this socket will be authenticated and 928 * communication on this socket will be encrypted. 940 BluetoothServerSocket socket = new BluetoothServerSocket( 942 int errno = socket.mSocket.bindListen(); 946 //socket.mSocket.throwErrnoNative(errno); 949 return socket; 953 * Create a listening, secure RFCOMM Bluetooth socket with Service Record. 954 * <p>A remote device connecting to this socket will be authenticated and 955 * communication on this socket wil [all...] |
/frameworks/base/core/jni/ |
H A D | android_server_NetworkManagementSocketTagger.cpp | 29 #include <sys/socket.h>
|
/frameworks/base/services/common_time/ |
H A D | common_time_config_service.h | 19 #include <sys/socket.h>
|
/frameworks/base/services/jni/ |
H A D | com_android_server_connectivity_Vpn.cpp | 27 #include <sys/socket.h> 305 static int bind_to_interface(int socket, const char *name) argument 307 if (setsockopt(socket, SOL_SOCKET, SO_BINDTODEVICE, name, strlen(name))) { 308 ALOGE("Cannot bind socket to %s: %s", name, strerror(errno)); 436 static void protect(JNIEnv *env, jobject thiz, jint socket, jstring jName) argument 443 if (bind_to_interface(socket, name) < 0) { 444 throwException(env, SYSTEM_ERROR, "Cannot protect socket"); 464 inet4 = socket(AF_INET, SOCK_DGRAM, 0); 467 inet6 = socket(AF_INET6, SOCK_DGRAM, 0);
|