/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/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/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/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 | SntpClient.java | 73 DatagramSocket socket = null; 75 socket = new DatagramSocket(); 76 socket.setSoTimeout(timeout); 91 socket.send(request); 95 socket.receive(response); 125 if (socket != null) { 126 socket.close();
|
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 | 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 | 198 public static void tagSocket(Socket socket) throws SocketException { argument 199 SocketTagger.get().tag(socket); 205 public static void untagSocket(Socket socket) throws SocketException { argument 206 SocketTagger.get().untag(socket);
|
/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/com/android/internal/backup/ |
H A D | IBackupTransport.aidl | 240 int performFullBackup(in PackageInfo targetPackage, in ParcelFileDescriptor socket); 252 * The transport writes some data to the socket supplied to this call, and returns 264 * <p>The transport should always close this socket when returning from this method. 265 * Do not cache this socket across multiple calls or you may leak file descriptors. 267 * @param socket The file descriptor that the transport will use for delivering the 268 * streamed archive. The transport must close this socket in all cases when returning 276 int getNextFullRestoreDataChunk(in ParcelFileDescriptor socket);
|
/frameworks/base/core/java/android/app/backup/ |
H A D | BackupTransport.java | 367 * the socket file descriptor on which the transport will receive the data itself. 377 * read() from the socket except as instructed to via the {@link #sendBackupData(int)} 382 * its datastore, if appropriate, and close the socket that had been provided in 390 * @param socket The socket file descriptor through which the data will be provided. 400 public int performFullBackup(PackageInfo targetPackage, ParcelFileDescriptor socket) { argument 432 * Tells the transport to read {@code numBytes} bytes of data from the socket file 437 * socket. 474 * The transport writes some data to the socket supplied to this call, and returns 486 * <p>The transport should always close this socket whe 501 getNextFullRestoreDataChunk(ParcelFileDescriptor socket) argument 622 performFullBackup(PackageInfo targetPackage, ParcelFileDescriptor socket) argument 642 getNextFullRestoreDataChunk(ParcelFileDescriptor socket) argument [all...] |
/frameworks/base/cmds/interrupter/ |
H A D | interrupter.c | 31 #include <sys/socket.h>
|
/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;
|
H A D | gltrace_transport.h | 35 /** Create a TCP based communication channel over @socket */ 36 TCPStream(int socket); 82 * Utility method: start a server listening at @sockName (unix domain socket, 84 * Returns the connected client socket on success, or -1 on failure.
|
/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/java/android/bluetooth/ |
H A D | BluetoothAdapter.java | 460 * bluetooth socket. 1475 * Create a listening, secure RFCOMM Bluetooth socket. 1476 * <p>A remote device connecting to this socket will be authenticated and 1477 * communication on this socket will be encrypted. 1493 * Create a listening, secure RFCOMM Bluetooth socket. 1494 * <p>A remote device connecting to this socket will be authenticated and 1495 * communication on this socket will be encrypted. 1513 BluetoothServerSocket socket = new BluetoothServerSocket( 1515 int errno = socket.mSocket.bindListen(); 1517 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; 142 // If we're testing, set up a socket in a namespace that's accessible to test code. 144 // production devices, even if said native daemons ill-advisedly pick a socket name that 154 LocalSocket socket = null; 157 socket = new LocalSocket(); 160 socket.connect(address); 162 InputStream inputStream = socket [all...] |
/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/native/cmds/ip-up-vpn/ |
H A D | ip-up-vpn.c | 26 #include <sys/socket.h> 89 int s = socket(AF_INET, SOCK_DGRAM, 0);
|
/frameworks/base/core/jni/ |
H A D | android_server_NetworkManagementSocketTagger.cpp | 29 #include <sys/socket.h>
|
/frameworks/base/libs/common_time/ |
H A D | common_time_config_service.h | 19 #include <sys/socket.h>
|