Searched refs:socket (Results 1 - 25 of 62) sorted by relevance

123

/frameworks/base/core/java/android/net/
H A DLinkSocketNotifier.java32 * If the duplicate socket is accepted, the original will be marked invalid
53 * @param socket the LinkSocket that lost its link
60 public void onLinkLost(LinkSocket socket); argument
66 * @param socket the LinkSocket for which a new link was not found
73 public void onNewLinkUnavailable(LinkSocket socket); argument
78 * @param socket the linkSocet for which capabilities have changed
87 public void onCapabilitiesChanged(LinkSocket socket, LinkCapabilities changedCapabilities); argument
H A DSSLCertificateSocketFactory.java53 * 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
181 verifyHostname(Socket socket, String hostname) argument
329 getNpnSelectedProtocol(Socket socket) argument
343 getAlpnSelectedProtocol(Socket socket) argument
380 setUseSessionTickets(Socket socket, boolean useSessionTickets) argument
392 setHostname(Socket socket, String hostName) argument
407 setSoWriteTimeout(Socket socket, int writeTimeoutMilliseconds) argument
412 castToOpenSSLSocket(Socket socket) argument
[all...]
H A DSntpClient.java74 DatagramSocket socket = null;
76 socket = new DatagramSocket();
77 socket.setSoTimeout(timeout);
92 socket.send(request);
96 socket.receive(response);
126 if (socket != null) {
127 socket.close();
H A DDnsPinger.java59 /** 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 DVpnService.java154 * Protect a socket from VPN connections. After protecting, data sent
155 * through this socket will go directly to the underlying network,
163 * <p class="note">The socket is NOT closed by this method.
167 public boolean protect(int socket) { argument
170 dup = ParcelFileDescriptor.fromFd(socket);
189 public boolean protect(Socket socket) { argument
190 return protect(socket.getFileDescriptor$().getInt$());
200 public boolean protect(DatagramSocket socket) { argument
201 return protect(socket.getFileDescriptor$().getInt$());
H A DIConnectivityManager.aidl42 void markSocketAsUser(in ParcelFileDescriptor socket, int uid);
118 boolean protectVpn(in ParcelFileDescriptor socket);
H A DTrafficStats.java181 public static void tagSocket(Socket socket) throws SocketException { argument
182 SocketTagger.get().tag(socket);
188 public static void untagSocket(Socket socket) throws SocketException { argument
189 SocketTagger.get().untag(socket);
/frameworks/opt/net/voip/src/jni/rtp/
H A DRtpStream.cpp22 #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 DTrafficStatsCompatIcs.java48 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 DTrafficStatsCompat.java36 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/http/
H A DAndroidHttpClientConnection.java81 private Socket socket = null; field in class:AndroidHttpClientConnection
89 * Bind socket and set HttpParams to AndroidHttpClientConnection
90 * @param socket outgoing socket
95 final Socket socket,
97 if (socket == null) {
104 socket.setTcpNoDelay(HttpConnectionParams.getTcpNoDelay(params));
105 socket.setSoTimeout(HttpConnectionParams.getSoTimeout(params));
109 socket.setSoLinger(linger > 0, linger);
111 this.socket
94 bind( final Socket socket, final HttpParams params) argument
[all...]
H A DCertificateChainValidator.java71 * @param sslSocket The secure connection socket
78 // get a valid SSLSession, close the socket if we fail
197 SSLSocket socket, String errorMessage, String defaultErrorMessage)
200 socket, errorMessage != null ? errorMessage : defaultErrorMessage);
203 private void closeSocketThrowException(SSLSocket socket, argument
209 if (socket != null) {
210 SSLSession session = socket.getSession();
215 socket.close();
196 closeSocketThrowException( SSLSocket socket, String errorMessage, String defaultErrorMessage) argument
/frameworks/av/media/common_time/
H A Dutils.h20 #include <linux/socket.h>
/frameworks/base/cmds/interrupter/
H A Dinterrupter.c31 #include <sys/socket.h>
/frameworks/native/opengl/libs/GLES_trace/src/
H A Dgltrace_transport.cpp22 #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 Dgltrace_transport.h35 /** 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/CoreTests/android/core/
H A DSSLSocketTest.java85 Socket socket = secure ? socketFactory.createSocket()
88 socket.setKeepAlive(true);
89 socket.setSoTimeout(timeout * 1000);
91 socket.connect(address);
94 OutputStream output = socket.getOutputStream();
98 DataInputStream input = new DataInputStream(socket.getInputStream());
173 socket.close();
178 * Invokes fetch() with the default socket factory.
337 final Socket socket = clientFactory.createSocket();
338 socket
[all...]
/frameworks/base/tests/BandwidthTests/src/com/android/tests/bandwidthenforcement/
H A DBandwidthEnforcementTestService.java155 final DatagramSocket socket = new DatagramSocket();
157 socket.setSoTimeout(10000);
162 socket.send(queryPacket);
166 socket.receive(replyPacket);
170 socket.close();
/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/
H A DProxyServer.java177 private void sendLine(Socket socket, String line) throws IOException { argument
178 OutputStream os = socket.getOutputStream();
202 Socket socket = serverSocket.accept();
204 if (socket.getInetAddress().isLoopbackAddress()) {
205 ProxyConnection parser = new ProxyConnection(socket);
209 socket.close();
/frameworks/base/services/java/com/android/server/
H A DNativeDaemonConnector.java72 NativeDaemonConnector(INativeDaemonConnectorCallbacks callbacks, String socket, argument
75 mSocket = socket;
110 // If we're testing, set up a socket in a namespace that's accessible to test code.
112 // production devices, even if said native daemons ill-advisedly pick a socket name that
122 LocalSocket socket = null;
125 socket = new LocalSocket();
128 socket.connect(address);
130 InputStream inputStream = socket.getInputStream();
132 mOutputStream = socket.getOutputStream();
206 if (socket !
[all...]
/frameworks/native/cmds/ip-up-vpn/
H A Dip-up-vpn.c26 #include <sys/socket.h>
87 int s = socket(AF_INET, SOCK_DGRAM, 0);
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothAdapter.java1106 * Create a listening, secure RFCOMM Bluetooth socket.
1107 * <p>A remote device connecting to this socket will be authenticated and
1108 * communication on this socket will be encrypted.
1120 BluetoothServerSocket socket = new BluetoothServerSocket(
1122 int errno = socket.mSocket.bindListen();
1126 //socket.mSocket.throwErrnoNative(errno);
1129 return socket;
1133 * Create a listening, secure RFCOMM Bluetooth socket with Service Record.
1134 * <p>A remote device connecting to this socket will be authenticated and
1135 * communication on this socket wil
[all...]
/frameworks/base/core/jni/
H A Dandroid_server_NetworkManagementSocketTagger.cpp29 #include <sys/socket.h>
/frameworks/base/services/common_time/
H A Dcommon_time_config_service.h19 #include <sys/socket.h>
/frameworks/av/media/libstagefright/rtsp/
H A DUDPPusher.cpp28 #include <sys/socket.h>
38 mSocket = socket(AF_INET, SOCK_DGRAM, 0);

Completed in 578 milliseconds

123