Searched defs:socket (Results 1 - 25 of 33) sorted by relevance

12

/frameworks/base/core/java/org/apache/http/conn/scheme/
H A DLayeredSocketFactory.java40 * 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
66 * @throws IOException if an I/O error occurs while creating the socket
71 Socket socket,
70 createSocket( Socket socket, String host, int port, boolean autoClose ) argument
[all...]
/frameworks/support/v4/api24/android/support/v4/net/
H A DTrafficStatsCompatApi24.java26 public static void tagDatagramSocket(DatagramSocket socket) throws SocketException { argument
27 TrafficStats.tagDatagramSocket(socket);
30 public static void untagDatagramSocket(DatagramSocket socket) throws SocketException { argument
31 TrafficStats.untagDatagramSocket(socket);
/frameworks/base/core/java/android/net/
H A DPskKeyManager.java129 * socket.
137 public String chooseServerKeyIdentityHint(Socket socket) { argument
157 * socket.
168 public String chooseClientKeyIdentity(String identityHint, Socket socket) { argument
190 * Gets the PSK to use for the provided socket.
203 public SecretKey getKey(String identityHint, String identity, Socket socket) { argument
H A DNetwork.java140 Socket socket = createSocket();
141 if (localAddress != null) socket.bind(localAddress);
142 socket.connect(new InetSocketAddress(hostAddresses[i], port));
143 return socket;
159 Socket socket = createSocket();
160 socket.bind(new InetSocketAddress(localAddress, localPort));
161 socket.connect(new InetSocketAddress(address, port));
162 return socket;
167 Socket socket = createSocket();
168 socket
304 bindSocket(DatagramSocket socket) argument
316 bindSocket(Socket socket) argument
[all...]
H A DSSLCertificateSocketFactory.java53 * 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
189 verifyHostname(Socket socket, String hostname) argument
337 getNpnSelectedProtocol(Socket socket) argument
351 getAlpnSelectedProtocol(Socket socket) argument
388 setUseSessionTickets(Socket socket, boolean useSessionTickets) argument
400 setHostname(Socket socket, String hostName) argument
415 setSoWriteTimeout(Socket socket, int writeTimeoutMilliseconds) argument
420 castToOpenSSLSocket(Socket socket) argument
[all...]
H A DVpnService.java196 * Protect a socket from VPN connections. After protecting, data sent
197 * through this socket will go directly to the underlying network,
205 * <p class="note">The socket is NOT closed by this method.
209 public boolean protect(int socket) { argument
210 return NetworkUtils.protectFromVpn(socket);
219 public boolean protect(Socket socket) { argument
220 return protect(socket.getFileDescriptor$().getInt$());
230 public boolean protect(DatagramSocket socket) { argument
231 return protect(socket.getFileDescriptor$().getInt$());
299 * communications channels &mdash; such as the socket(
[all...]
H A DTrafficStats.java232 public static void tagSocket(Socket socket) throws SocketException { argument
233 SocketTagger.get().tag(socket);
239 public static void untagSocket(Socket socket) throws SocketException { argument
240 SocketTagger.get().untag(socket);
252 public static void tagDatagramSocket(DatagramSocket socket) throws SocketException { argument
253 SocketTagger.get().tag(socket);
259 public static void untagDatagramSocket(DatagramSocket socket) throws SocketException { argument
260 SocketTagger.get().untag(socket);
/frameworks/opt/net/voip/src/jni/rtp/
H A DRtpStream.cpp22 #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 DTrafficStatsCompatIcs.java50 public static void tagSocket(Socket socket) throws SocketException { argument
51 TrafficStats.tagSocket(socket);
54 public static void untagSocket(Socket socket) throws SocketException { argument
55 TrafficStats.untagSocket(socket);
58 public static void tagDatagramSocket(DatagramSocket socket) throws SocketException { argument
59 final ParcelFileDescriptor pfd = ParcelFileDescriptor.fromDatagramSocket(socket);
60 TrafficStats.tagSocket(new DatagramSocketWrapper(socket, pfd.getFileDescriptor()));
68 public static void untagDatagramSocket(DatagramSocket socket) throws SocketException { argument
69 final ParcelFileDescriptor pfd = ParcelFileDescriptor.fromDatagramSocket(socket);
70 TrafficStats.untagSocket(new DatagramSocketWrapper(socket, pf
[all...]
H A DDatagramSocketWrapper.java32 public DatagramSocketWrapper(DatagramSocket socket, FileDescriptor fd) throws SocketException { argument
33 super(new DatagramSocketImplWrapper(socket, fd));
40 public DatagramSocketImplWrapper(DatagramSocket socket, FileDescriptor fd) { argument
42 this.localport = socket.getLocalPort();
/frameworks/base/core/java/android/security/net/config/
H A DRootTrustManager.java60 public void checkClientTrusted(X509Certificate[] certs, String authType, Socket socket) argument
65 config.getTrustManager().checkClientTrusted(certs, authType, socket);
78 public void checkServerTrusted(X509Certificate[] certs, String authType, Socket socket) argument
80 if (socket instanceof SSLSocket) {
81 SSLSocket sslSocket = (SSLSocket) socket;
88 config.getTrustManager().checkServerTrusted(certs, authType, socket);
H A DNetworkSecurityTrustManager.java73 public void checkClientTrusted(X509Certificate[] certs, String authType, Socket socket) argument
75 mDelegate.checkClientTrusted(certs, authType, socket);
91 public void checkServerTrusted(X509Certificate[] certs, String authType, Socket socket) argument
94 mDelegate.getTrustedChainForServer(certs, authType, socket);
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/
H A DBluetoothMapRfcommTransport.java32 public BluetoothMapRfcommTransport(BluetoothSocket socket) { argument
34 mSocket = socket;
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
H A DClientKeyManager.java52 public String chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket) { argument
71 public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket) { argument
H A DWiFiKeyManager.java84 public String chooseClientAlias(String[] keyTypes, Principal[] issuers, Socket socket) { argument
138 public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket) { argument
/frameworks/support/v4/java/android/support/v4/net/
H A DTrafficStatsCompat.java37 void tagSocket(Socket socket) throws SocketException; argument
38 void untagSocket(Socket socket) throws SocketException; argument
39 void tagDatagramSocket(DatagramSocket socket) throws SocketException; argument
40 void untagDatagramSocket(DatagramSocket socket) throws SocketException; argument
79 public void tagSocket(Socket socket) { argument
83 public void untagSocket(Socket socket) { argument
87 public void tagDatagramSocket(DatagramSocket socket) { argument
91 public void untagDatagramSocket(DatagramSocket socket) { argument
122 public void tagSocket(Socket socket) throws SocketException { argument
123 TrafficStatsCompatIcs.tagSocket(socket);
127 untagSocket(Socket socket) argument
132 tagDatagramSocket(DatagramSocket socket) argument
137 untagDatagramSocket(DatagramSocket socket) argument
144 tagDatagramSocket(DatagramSocket socket) argument
149 untagDatagramSocket(DatagramSocket socket) argument
228 tagSocket(Socket socket) argument
235 untagSocket(Socket socket) argument
248 tagDatagramSocket(DatagramSocket socket) argument
255 untagDatagramSocket(DatagramSocket socket) argument
[all...]
/frameworks/base/core/java/org/apache/http/conn/ssl/
H A DSSLSocketFactory.java59 * Layered socket factory for TLS/SSL connections, based on JSSE.
70 * certificates. The client secure socket will reject the connection during
85 * pair. The client secure socket will use the private key to authenticate
244 * Creates the default SSL socket factory.
343 // close the socket before re-throwing the exception
353 * Checks whether a socket connection is secure.
354 * This factory creates TLS/SSL socket connections
360 * @param sock the connected socket
389 final Socket socket,
395 socket,
388 createSocket( final Socket socket, final String host, final int port, final boolean autoClose ) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_net_NetUtils.cpp144 static jint android_net_utils_bindSocketToNetwork(JNIEnv *env, jobject thiz, jint socket, argument
147 return setNetworkForSocket(netId, socket);
150 static jboolean android_net_utils_protectFromVpn(JNIEnv *env, jobject thiz, jint socket) argument
152 return (jboolean) !protectFromVpn(socket);
/frameworks/opt/net/voip/src/java/android/net/rtp/
H A DAudioGroup.java164 private native long nativeAdd(int mode, int socket, String remoteAddress, argument
/frameworks/base/core/java/android/app/backup/
H A DBackupTransport.java377 * the socket file descriptor on which the transport will receive the data itself.
387 * read() from the socket except as instructed to via the {@link #sendBackupData(int)}
392 * its datastore, if appropriate, and close the socket that had been provided in
400 * @param socket The socket file descriptor through which the data will be provided.
411 public int performFullBackup(PackageInfo targetPackage, ParcelFileDescriptor socket, argument
413 return performFullBackup(targetPackage, socket);
420 public int performFullBackup(PackageInfo targetPackage, ParcelFileDescriptor socket) { argument
452 * Tells the transport to read {@code numBytes} bytes of data from the socket file
457 * socket
545 getNextFullRestoreDataChunk(ParcelFileDescriptor socket) argument
666 performFullBackup(PackageInfo targetPackage, ParcelFileDescriptor socket, int flags) argument
698 getNextFullRestoreDataChunk(ParcelFileDescriptor socket) argument
[all...]
/frameworks/base/core/java/com/android/internal/os/
H A DZygoteConnection.java70 * The command socket.
83 * Constructs instance from connected socket.
85 * @param socket non-null; connected socket
89 ZygoteConnection(LocalSocket socket, String abiList) throws IOException { argument
90 mSocket = socket;
94 = new DataOutputStream(socket.getOutputStream());
97 new InputStreamReader(socket.getInputStream()), 256);
110 * Returns the file descriptor of the associated socket.
119 * Reads one start command from the command socket
[all...]
/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/
H A DProxyServer.java240 private void sendLine(Socket socket, String line) throws IOException { argument
241 OutputStream os = socket.getOutputStream();
249 * Reads from socket until an empty line is read which indicates the end of HTTP headers.
251 * @param socket socket to read from.
252 * @throws IOException if an exception took place during the socket read.
254 private void skipToRequestBody(Socket socket) throws IOException { argument
255 while (getLine(socket.getInputStream()).length() != 0);
261 * @param src socket to read HTTP headers from.The socket curren
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DNativeDaemonConnector.java83 NativeDaemonConnector(INativeDaemonConnectorCallbacks callbacks, String socket, argument
85 this(callbacks, socket, responseQueueSize, logTag, maxLogSize, wl,
89 NativeDaemonConnector(INativeDaemonConnectorCallbacks callbacks, String socket, argument
93 mSocket = socket;
171 // If we're testing, set up a socket in a namespace that's accessible to test code.
173 // production devices, even if said native daemons ill-advisedly pick a socket name that
183 LocalSocket socket = null;
186 socket = new LocalSocket();
189 socket.connect(address);
191 InputStream inputStream = socket
[all...]
/frameworks/base/core/java/android/os/
H A DParcelFileDescriptor.java61 * Optional socket used to communicate close events, status at close, and
360 * @param socket The Socket whose FileDescriptor is used to create
366 public static ParcelFileDescriptor fromSocket(Socket socket) { argument
367 FileDescriptor fd = socket.getFileDescriptor$();
808 * Detect and throw if the other end of a pipe or socket pair encountered an
/frameworks/base/core/java/com/android/internal/backup/
H A DLocalTransport.java333 public int performFullBackup(PackageInfo targetPackage, ParcelFileDescriptor socket) { argument
344 // sure to dup() our own copy of the socket fd. Transports which run in
348 mSocket = ParcelFileDescriptor.dup(socket.getFileDescriptor());
351 Log.e(TAG, "Unable to process socket for full backup");
618 * transport then writes some data to the socket supplied to this call, and returns
630 * @param socket The file descriptor that the transport will use for delivering the
639 public int getNextFullRestoreDataChunk(ParcelFileDescriptor socket) { argument
657 mFullRestoreSocketStream = new FileOutputStream(socket.getFileDescriptor());
682 // Most transports will need to explicitly close 'socket' here, but this transport
684 // to manage both socket fd
[all...]

Completed in 463 milliseconds

12