/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 | 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 | Network.java | 141 Socket socket = createSocket(); 142 if (localAddress != null) socket.bind(localAddress); 143 socket.connect(new InetSocketAddress(hostAddresses[i], port)); 144 return socket; 160 Socket socket = createSocket(); 161 socket.bind(new InetSocketAddress(localAddress, localPort)); 162 socket.connect(new InetSocketAddress(address, port)); 163 return socket; 168 Socket socket = createSocket(); 169 socket 305 bindSocket(DatagramSocket socket) argument 321 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 187 verifyHostname(Socket socket, String hostname) argument 335 getNpnSelectedProtocol(Socket socket) argument 349 getAlpnSelectedProtocol(Socket socket) argument 386 setUseSessionTickets(Socket socket, boolean useSessionTickets) argument 398 setHostname(Socket socket, String hostName) argument 413 setSoWriteTimeout(Socket socket, int writeTimeoutMilliseconds) argument 418 castToOpenSSLSocket(Socket socket) argument [all...] |
H A D | VpnService.java | 195 * Protect a socket from VPN connections. After protecting, data sent 196 * through this socket will go directly to the underlying network, 204 * <p class="note">The socket is NOT closed by this method. 208 public boolean protect(int socket) { argument 209 return NetworkUtils.protectFromVpn(socket); 218 public boolean protect(Socket socket) { argument 219 return protect(socket.getFileDescriptor$().getInt$()); 229 public boolean protect(DatagramSocket socket) { argument 230 return protect(socket.getFileDescriptor$().getInt$()); 298 * communications channels — such as the socket( [all...] |
H A D | TrafficStats.java | 194 public static void tagSocket(Socket socket) throws SocketException { argument 195 SocketTagger.get().tag(socket); 201 public static void untagSocket(Socket socket) throws SocketException { argument 202 SocketTagger.get().untag(socket);
|
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/ |
H A D | BluetoothMapRfcommTransport.java | 32 public BluetoothMapRfcommTransport(BluetoothSocket socket) { argument 34 mSocket = socket;
|
H A D | BluetoothMasClient.java | 463 private BluetoothSocket socket = null; field in class:BluetoothMasClient.SocketConnectThread 472 socket = mDevice.createRfcommSocket(mMas.getChannel()); 473 socket.connect(); 476 transport = new BluetoothMapRfcommTransport(socket); 480 Log.e(TAG, "Error when creating/connecting socket", e); 494 if (socket != null) { 495 socket.close(); 498 Log.e(TAG, "Error when closing socket", e);
|
/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...] |
H A D | AudioGroup.cpp | 24 #include <sys/socket.h> 99 bool set(int mode, int socket, sockaddr_storage *remote, 165 bool AudioStream::set(int mode, int socket, sockaddr_storage *remote, argument 201 mSocket = socket; 583 // Create device socket. 600 // Give device socket a reasonable timeout. 824 // Give device socket a reasonable buffer size. 828 // Drain device socket. 940 jint socket, jstring jRemoteAddress, jint remotePort, 962 socket 939 add(JNIEnv *env, jobject thiz, jint mode, jint socket, jstring jRemoteAddress, jint remotePort, jstring jCodecSpec, jint dtmfType) argument [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/base/core/java/android/net/http/ |
H A D | CertificateChainValidator.java | 106 * @param sslSocket The secure connection socket 113 // get a valid SSLSession, close the socket if we fail 256 SSLSocket socket, String errorMessage, String defaultErrorMessage) 259 socket, errorMessage != null ? errorMessage : defaultErrorMessage); 262 private void closeSocketThrowException(SSLSocket socket, argument 268 if (socket != null) { 269 SSLSession session = socket.getSession(); 274 socket.close(); 255 closeSocketThrowException( SSLSocket socket, String errorMessage, String defaultErrorMessage) argument
|
H A D | AndroidHttpClientConnection.java | 77 private Socket socket = null; field in class:AndroidHttpClientConnection 85 * Bind socket and set HttpParams to AndroidHttpClientConnection 86 * @param socket outgoing socket 91 final Socket socket, 93 if (socket == null) { 100 socket.setTcpNoDelay(HttpConnectionParams.getTcpNoDelay(params)); 101 socket.setSoTimeout(HttpConnectionParams.getSoTimeout(params)); 105 socket.setSoLinger(linger > 0, linger); 107 this.socket 90 bind( final Socket socket, final HttpParams params) argument [all...] |
/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/ |
H A D | ProxyServer.java | 175 private void sendLine(Socket socket, String line) throws IOException { argument 176 OutputStream os = socket.getOutputStream(); 200 Socket socket = serverSocket.accept(); 202 if (socket.getInetAddress().isLoopbackAddress()) { 203 ProxyConnection parser = new ProxyConnection(socket); 207 socket.close();
|
/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/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;
|
/frameworks/opt/net/voip/src/java/android/net/rtp/ |
H A D | AudioGroup.java | 162 private native long nativeAdd(int mode, int socket, String remoteAddress, argument
|
/frameworks/base/core/java/android/app/backup/ |
H A D | BackupTransport.java | 358 * the socket file descriptor on which the transport will receive the data itself. 368 * read() from the socket except as instructed to via the {@link #sendBackupData(int)} 373 * its datastore, if appropriate, and close the socket that had been provided in 381 * @param socket The socket file descriptor through which the data will be provided. 391 public int performFullBackup(PackageInfo targetPackage, ParcelFileDescriptor socket) { argument 396 * Tells the transport to read {@code numBytes} bytes of data from the socket file 401 * socket. 438 * The transport writes some data to the socket supplied to this call, and returns 450 * <p>The transport should always close this socket whe 465 getNextFullRestoreDataChunk(ParcelFileDescriptor socket) argument 586 performFullBackup(PackageInfo targetPackage, ParcelFileDescriptor socket) argument 601 getNextFullRestoreDataChunk(ParcelFileDescriptor socket) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_net_NetUtils.cpp | 239 static jint android_net_utils_bindSocketToNetwork(JNIEnv *env, jobject thiz, jint socket, argument 242 return setNetworkForSocket(netId, socket); 245 static jboolean android_net_utils_protectFromVpn(JNIEnv *env, jobject thiz, jint socket) argument 247 return (jboolean) !protectFromVpn(socket);
|
/frameworks/base/core/java/com/android/internal/backup/ |
H A D | LocalTransport.java | 315 public int performFullBackup(PackageInfo targetPackage, ParcelFileDescriptor socket) { argument 326 // sure to dup() our own copy of the socket fd. Transports which run in 329 mSocket = ParcelFileDescriptor.dup(socket.getFileDescriptor()); 332 Log.e(TAG, "Unable to process socket for full backup"); 572 * transport then writes some data to the socket supplied to this call, and returns 584 * @param socket The file descriptor that the transport will use for delivering the 593 public int getNextFullRestoreDataChunk(ParcelFileDescriptor socket) { argument 611 mFullRestoreSocketStream = new FileOutputStream(socket.getFileDescriptor()); 636 // Most transports will need to explicitly close 'socket' here, but this transport 638 // to manage both socket fd [all...] |
/frameworks/base/core/java/com/android/internal/os/ |
H A D | ZygoteConnection.java | 65 * The command socket. 79 * Constructs instance from connected socket. 81 * @param socket non-null; connected socket 85 ZygoteConnection(LocalSocket socket, String abiList) throws IOException { argument 86 mSocket = socket; 90 = new DataOutputStream(socket.getOutputStream()); 93 new InputStreamReader(socket.getInputStream()), 256); 120 * Returns the file descriptor of the associated socket. 129 * Reads one start command from the command socket [all...] |
/frameworks/base/services/core/java/com/android/server/ |
H A D | NativeDaemonConnector.java | 80 NativeDaemonConnector(INativeDaemonConnectorCallbacks callbacks, String socket, argument 82 this(callbacks, socket, responseQueueSize, logTag, maxLogSize, wl, 86 NativeDaemonConnector(INativeDaemonConnectorCallbacks callbacks, String socket, argument 90 mSocket = socket; 134 // If we're testing, set up a socket in a namespace that's accessible to test code. 136 // production devices, even if said native daemons ill-advisedly pick a socket name that 146 LocalSocket socket = null; 149 socket = new LocalSocket(); 152 socket.connect(address); 154 InputStream inputStream = socket [all...] |
/frameworks/base/core/java/android/os/ |
H A D | ParcelFileDescriptor.java | 60 * Optional socket used to communicate close events, status at close, and 330 * @param socket The Socket whose FileDescriptor is used to create 336 public static ParcelFileDescriptor fromSocket(Socket socket) { argument 337 FileDescriptor fd = socket.getFileDescriptor$(); 756 * Detect and throw if the other end of a pipe or socket pair encountered an 1007 * requires that communication socket is <em>blocking</em>.
|
H A D | Process.java | 373 final LocalSocket socket; field in class:Process.ZygoteState 380 private ZygoteState(LocalSocket socket, DataInputStream inputStream, argument 382 this.socket = socket; 411 Log.i("Zygote", "Process: zygote socket opened, supported ABIS: " + abiListString); 423 socket.close(); 502 /** retry interval for opening a zygote socket */ 706 * Tries to open socket to Zygote process if not already open. If
|
/frameworks/av/media/libstagefright/foundation/ |
H A D | ANetworkSession.cpp | 31 #include <sys/socket.h> 90 int socket() const; 227 int ANetworkSession::Session::socket() const { function in class:android::ANetworkSession::Session 977 s = socket( 1063 ALOGI("connecting socket %d to %d.%d.%d.%d:%d", 1178 int s = session->socket(); 1265 int s = session->socket(); 1324 int s = session->socket(); 1346 ALOGE("Unable to make client socket non blocking, " 1356 "(socket [all...] |