/frameworks/support/v4/api24/android/support/v4/net/ |
H A D | TrafficStatsCompatApi24.java | 26 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/support/v4/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 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/support/v4/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 | 32 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/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/services/core/java/com/android/server/ |
H A D | RecoverySystemService.java | 50 // The socket at /dev/socket/uncrypt to communicate with uncrypt. 89 // Connect to the uncrypt service socket. 90 LocalSocket socket = connectService(); 91 if (socket == null) { 92 Slog.e(TAG, "Failed to connect to uncrypt socket"); 96 // Read the status from the socket. 100 dis = new DataInputStream(socket.getInputStream()); 101 dos = new DataOutputStream(socket.getOutputStream()); 124 // waits for the ack so the socket wo [all...] |
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/net/ |
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 | 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 | 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 | 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);
|
H A D | SntpClient.java | 98 DatagramSocket socket = null; 100 socket = new DatagramSocket(); 101 socket.setSoTimeout(timeout); 115 socket.send(request); 119 socket.receive(response); 159 if (socket != null) { 160 socket.close();
|
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...] |
/frameworks/av/media/common_time/ |
H A D | utils.h | 20 #include <linux/socket.h>
|
/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/opt/bluetooth/src/android/bluetooth/client/map/ |
H A D | BluetoothMapRfcommTransport.java | 32 public BluetoothMapRfcommTransport(BluetoothSocket socket) { argument 34 mSocket = socket;
|
/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);
|
/frameworks/base/cmds/interrupter/ |
H A D | interrupter.c | 31 #include <sys/socket.h>
|
/frameworks/base/core/java/com/android/internal/backup/ |
H A D | IBackupTransport.aidl | 237 int performFullBackup(in PackageInfo targetPackage, in ParcelFileDescriptor socket, int flags); 269 * The transport writes some data to the socket supplied to this call, and returns 281 * <p>The transport should always close this socket when returning from this method. 282 * Do not cache this socket across multiple calls or you may leak file descriptors. 284 * @param socket The file descriptor that the transport will use for delivering the 285 * streamed archive. The transport must close this socket in all cases when returning 293 int getNextFullRestoreDataChunk(in ParcelFileDescriptor socket);
|
/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/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/core/tests/BTtraffic/src/com/android/google/experimental/bttraffic/ |
H A D | BTtraffic.java | 182 Log.d(TAG, "getting server socket"); 187 Log.d(TAG, "error creating server socket, stopping thread"); 192 Log.d(TAG, "got server socket, starting accept loop"); 193 BluetoothSocket socket = null; 196 socket = serverSocket.accept(); 200 doListening(socket.getInputStream(), socket.getOutputStream()); 207 Log.d(TAG, "closing socket and stopping service"); 209 safeClose(socket); 280 BluetoothSocket socket [all...] |
/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothAdapter.java | 466 * bluetooth socket. 1553 * Create a listening, secure RFCOMM Bluetooth socket. 1554 * <p>A remote device connecting to this socket will be authenticated and 1555 * communication on this socket will be encrypted. 1571 * Create a listening, secure RFCOMM Bluetooth socket. 1572 * <p>A remote device connecting to this socket will be authenticated and 1573 * communication on this socket will be encrypted. 1591 BluetoothServerSocket socket = new BluetoothServerSocket( 1593 int errno = socket.mSocket.bindListen(); 1595 socket [all...] |
/frameworks/base/core/jni/ |
H A D | android_net_NetUtils.cpp | 144 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/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...] |