/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/base/core/java/android/net/ |
H A D | PskKeyManager.java | 131 * socket. 139 public String chooseServerKeyIdentityHint(Socket socket) { argument 159 * socket. 170 public String chooseClientKeyIdentity(String identityHint, Socket socket) { argument 192 * Gets the PSK to use for the provided socket. 205 public SecretKey getKey(String identityHint, String identity, Socket socket) { argument
|
H A D | IpSecManager.java | 37 * encryption and decryption of socket or Network traffic. 96 * Indicates that the requested system resource for IPsec, such as a socket or other system 239 * Apply an active Transport Mode IPsec Transform to a stream socket to perform IPsec 240 * encapsulation of the traffic flowing between the socket and the remote InetAddress of that 243 * IpSecTransform is later deactivated, the socket will throw an IOException on any calls to 244 * send() or receive() until the transform is removed from the socket by calling {@link 247 * @param socket a stream socket 251 public void applyTransportModeTransform(Socket socket, IpSecTransform transform) argument 253 applyTransportModeTransform(ParcelFileDescriptor.fromSocket(socket), transfor 269 applyTransportModeTransform(DatagramSocket socket, IpSecTransform transform) argument 295 applyTransportModeTransform(FileDescriptor socket, IpSecTransform transform) argument 324 removeTransportModeTransform(Socket socket, IpSecTransform transform) argument 340 removeTransportModeTransform(DatagramSocket socket, IpSecTransform transform) argument 355 removeTransportModeTransform(FileDescriptor socket, IpSecTransform transform) argument [all...] |
H A D | Network.java | 144 Socket socket = createSocket(); 145 if (localAddress != null) socket.bind(localAddress); 146 socket.connect(new InetSocketAddress(hostAddresses[i], port)); 147 return socket; 163 Socket socket = createSocket(); 164 socket.bind(new InetSocketAddress(localAddress, localPort)); 165 socket.connect(new InetSocketAddress(address, port)); 166 return socket; 171 Socket socket = createSocket(); 172 socket 307 bindSocket(DatagramSocket socket) argument 319 bindSocket(Socket socket) argument [all...] |
H A D | SSLCertificateSocketFactory.java | 55 * The handshake timeout does not apply to actual TCP socket connection. 64 * use {@link InetAddress} or which return an unconnected socket, you MUST 71 * <p>On development devices, "setprop socket.relaxsslcheck yes" bypasses all 112 * Returns a new socket factory instance with an optional handshake timeout. 115 * for none. The socket timeout is reset to 0 after the handshake. 123 * Returns a new socket factory instance with an optional handshake timeout 127 * for none. The socket timeout is reset to 0 after the handshake. 136 * Returns a new instance of a socket factory with all SSL security checks 143 * for none. The socket timeout is reset to 0 after the handshake. 152 * Returns a socket factor 191 verifyHostname(Socket socket, String hostname) argument 339 getNpnSelectedProtocol(Socket socket) argument 353 getAlpnSelectedProtocol(Socket socket) argument 390 setUseSessionTickets(Socket socket, boolean useSessionTickets) argument 402 setHostname(Socket socket, String hostName) argument 417 setSoWriteTimeout(Socket socket, int writeTimeoutMilliseconds) argument 422 castToOpenSSLSocket(Socket socket) argument [all...] |
H A D | VpnService.java | 198 * Protect a socket from VPN connections. After protecting, data sent 199 * through this socket will go directly to the underlying network, 207 * <p class="note">The socket is NOT closed by this method. 211 public boolean protect(int socket) { argument 212 return NetworkUtils.protectFromVpn(socket); 221 public boolean protect(Socket socket) { argument 222 return protect(socket.getFileDescriptor$().getInt$()); 232 public boolean protect(DatagramSocket socket) { argument 233 return protect(socket.getFileDescriptor$().getInt$()); 301 * communications channels — such as the socket( [all...] |
/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/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/base/core/java/com/android/internal/os/ |
H A D | WebViewZygoteInit.java | 47 protected ZygoteConnection createNewConnection(LocalSocket socket, String abiList) argument 49 return new WebViewZygoteConnection(socket, abiList); 54 WebViewZygoteConnection(LocalSocket socket, String abiList) throws IOException { argument 55 super(socket, abiList);
|
H A D | ZygoteServer.java | 33 * Server socket class for zygote processes. 35 * Provides functions to wait for commands on a UNIX domain socket, and fork 52 * Registers a server socket for zygote command connections 73 "Error binding to local socket '" + fileDesc + "'", ex); 91 protected ZygoteConnection createNewConnection(LocalSocket socket, String abiList) argument 93 return new ZygoteConnection(socket, abiList); 119 * Return the server socket's underlying file descriptor, so that
|
H A D | ZygoteConnection.java | 72 * The command socket. 85 * Constructs instance from connected socket. 87 * @param socket non-null; connected socket 91 ZygoteConnection(LocalSocket socket, String abiList) throws IOException { argument 92 mSocket = socket; 96 = new DataOutputStream(socket.getOutputStream()); 99 new InputStreamReader(socket.getInputStream()), 256); 112 * Returns the file descriptor of the associated socket. 121 * Reads one start command from the command socket [all...] |
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/ |
H A D | BluetoothMapRfcommTransport.java | 32 public BluetoothMapRfcommTransport(BluetoothSocket socket) { argument 34 mSocket = socket;
|
/frameworks/support/compat/java/android/support/v4/net/ |
H A D | TrafficStatsCompat.java | 34 public void tagDatagramSocket(DatagramSocket socket) throws SocketException { argument 35 final ParcelFileDescriptor pfd = ParcelFileDescriptor.fromDatagramSocket(socket); 36 TrafficStats.tagSocket(new DatagramSocketWrapper(socket, pfd.getFileDescriptor())); 44 public void untagDatagramSocket(DatagramSocket socket) throws SocketException { argument 45 final ParcelFileDescriptor pfd = ParcelFileDescriptor.fromDatagramSocket(socket); 46 TrafficStats.untagSocket(new DatagramSocketWrapper(socket, pfd.getFileDescriptor())); 58 public void tagDatagramSocket(DatagramSocket socket) throws SocketException { argument 59 TrafficStats.tagDatagramSocket(socket); 63 public void untagDatagramSocket(DatagramSocket socket) throws SocketException { argument 64 TrafficStats.untagDatagramSocket(socket); 158 tagSocket(Socket socket) argument 168 untagSocket(Socket socket) argument 181 tagDatagramSocket(DatagramSocket socket) argument 188 untagDatagramSocket(DatagramSocket socket) argument [all...] |
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/ |
H A D | ClientKeyManager.java | 53 public String chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket) { argument 72 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/native/libs/vr/libpdx_uds/ |
H A D | client_channel_factory.cpp | 5 #include <sys/socket.h> 24 return "/dev/socket/pdx"; 42 ClientChannelFactory::ClientChannelFactory(LocalHandle socket) argument 43 : socket_{std::move(socket)} {} 52 LocalHandle socket) { 54 new ClientChannelFactory{std::move(socket)}}; 63 socket_.Reset(socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0)); 66 "ClientChannelFactory::Connect: unspecified socket path"); 70 ALOGE("ClientChannelFactory::Connect: socket error: %s", strerror(errno)); 107 // too early (the service socket i 51 Create( LocalHandle 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/support/compat/ics/android/support/v4/net/ |
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/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/android/os/ |
H A D | ZygoteProcess.java | 59 * The name of the socket used to communicate with the primary zygote. 64 * The name of the secondary (alternate ABI) zygote socket. 77 final LocalSocket socket; field in class:ZygoteProcess.ZygoteState 84 private ZygoteState(LocalSocket socket, DataInputStream inputStream, argument 86 this.socket = socket; 115 Log.i("Zygote", "Process: zygote socket " + socketAddress + " opened, supported ABIS: " 128 socket.close(); 143 * acquired while communicating over the ZygoteState's socket, to prevent 218 /** retry interval for opening a zygote socket */ [all...] |
/frameworks/base/core/jni/ |
H A D | android_net_NetUtils.cpp | 310 static jint android_net_utils_bindSocketToNetwork(JNIEnv *env, jobject thiz, jint socket, argument 313 return setNetworkForSocket(netId, socket); 316 static jboolean android_net_utils_protectFromVpn(JNIEnv *env, jobject thiz, jint socket) argument 318 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 | IpSecService.java | 320 * Open a socket via the system server and bind it to the specified port (random if port=0). 321 * This will return a PFD to the user that represent a bound UDP socket. The system server will 322 * cache the socket and a record of its owner so that it can and must be freed when no longer 330 /** close a socket that has been been allocated by and registered with the system server */ 332 public void closeUdpEncapsulationSocket(ParcelFileDescriptor socket) {} argument 428 * Apply an active transport mode transform to a socket, which will apply the IPsec security 429 * association as a correspondent policy to the provided socket 432 public void applyTransportModeTransform(ParcelFileDescriptor socket, int resourceId) argument 454 socket.getFileDescriptor(), 471 * Remove a transport mode transform from a socket, applyin 477 removeTransportModeTransform(ParcelFileDescriptor socket, int resourceId) argument [all...] |