/frameworks/base/core/java/org/apache/http/conn/scheme/ |
H A D | LayeredSocketFactory.java | 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 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/compat/api24/android/support/v4/net/ |
H A D | TrafficStatsCompatApi24.java | 30 public static void tagDatagramSocket(DatagramSocket socket) throws SocketException { argument 31 TrafficStats.tagDatagramSocket(socket); 34 public static void untagDatagramSocket(DatagramSocket socket) throws SocketException { argument 35 TrafficStats.untagDatagramSocket(socket);
|
/frameworks/base/core/java/android/net/ |
H A D | PskKeyManager.java | 129 * 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 D | Network.java | 140 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 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 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 D | VpnService.java | 196 * 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 — such as the socket( [all...] |
H A D | TrafficStats.java | 232 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 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/compat/ics/android/support/v4/net/ |
H A D | TrafficStatsCompatIcs.java | 50 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 D | DatagramSocketWrapper.java | 31 public DatagramSocketWrapper(DatagramSocket socket, FileDescriptor fd) throws SocketException { argument 32 super(new DatagramSocketImplWrapper(socket, fd)); 39 public DatagramSocketImplWrapper(DatagramSocket socket, FileDescriptor fd) { argument 41 this.localport = socket.getLocalPort();
|
/frameworks/base/core/java/android/security/net/config/ |
H A D | RootTrustManager.java | 60 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 D | NetworkSecurityTrustManager.java | 73 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 D | BluetoothMapRfcommTransport.java | 32 public BluetoothMapRfcommTransport(BluetoothSocket socket) { argument 34 mSocket = socket;
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/ |
H A D | ClientKeyManager.java | 52 public String chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket) { argument 71 public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket) { argument
|
H A D | WiFiKeyManager.java | 84 public String chooseClientAlias(String[] keyTypes, Principal[] issuers, Socket socket) { argument 138 public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket) { argument
|
/frameworks/support/compat/java/android/support/v4/net/ |
H A D | TrafficStatsCompat.java | 37 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 82 public void tagSocket(Socket socket) { argument 86 public void untagSocket(Socket socket) { argument 90 public void tagDatagramSocket(DatagramSocket socket) { argument 94 public void untagDatagramSocket(DatagramSocket socket) { argument 125 public void tagSocket(Socket socket) throws SocketException { argument 126 TrafficStatsCompatIcs.tagSocket(socket); 130 untagSocket(Socket socket) argument 135 tagDatagramSocket(DatagramSocket socket) argument 140 untagDatagramSocket(DatagramSocket socket) argument 147 tagDatagramSocket(DatagramSocket socket) argument 152 untagDatagramSocket(DatagramSocket socket) argument 231 tagSocket(Socket socket) argument 238 untagSocket(Socket socket) argument 251 tagDatagramSocket(DatagramSocket socket) argument 258 untagDatagramSocket(DatagramSocket socket) argument [all...] |
/frameworks/base/core/java/org/apache/http/conn/ssl/ |
H A D | SSLSocketFactory.java | 59 * 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/opt/net/voip/src/java/android/net/rtp/ |
H A D | AudioGroup.java | 164 private native long nativeAdd(int mode, int socket, String remoteAddress, argument
|
/frameworks/base/core/java/android/app/backup/ |
H A D | BackupTransport.java | 377 * 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 D | ZygoteConnection.java | 70 * 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/core/jni/ |
H A D | android_net_NetUtils.cpp | 313 static jint android_net_utils_bindSocketToNetwork(JNIEnv *env, jobject thiz, jint socket, argument 316 return setNetworkForSocket(netId, socket); 319 static jboolean android_net_utils_protectFromVpn(JNIEnv *env, jobject thiz, jint socket) argument 321 return (jboolean) !protectFromVpn(socket);
|
/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/ |
H A D | ProxyServer.java | 240 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 D | NativeDaemonConnector.java | 83 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 D | ParcelFileDescriptor.java | 61 * 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 D | LocalTransport.java | 333 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...] |