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

12345

/frameworks/support/compat/java/android/support/v4/net/
H A DTrafficStatsCompat.java34 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/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/base/cmds/webview_zygote/
H A Dwebview_zygote32.rc19 socket webview_zygote stream 660 webview_zygote system
H A Dwebview_zygote64.rc19 socket webview_zygote stream 660 webview_zygote system
/frameworks/base/core/java/android/net/
H A DIIpSecService.aidl37 void closeUdpEncapsulationSocket(in ParcelFileDescriptor socket);
43 void applyTransportModeTransform(in ParcelFileDescriptor socket, int transformId);
45 void removeTransportModeTransform(in ParcelFileDescriptor socket, int transformId);
H A DNetwork.java144 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 DPskKeyManager.java131 * 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 DSSLCertificateSocketFactory.java55 * 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 DIpSecManager.java37 * 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 DTrafficStats.java273 public static void tagSocket(Socket socket) throws SocketException { argument
274 SocketTagger.get().tag(socket);
280 public static void untagSocket(Socket socket) throws SocketException { argument
281 SocketTagger.get().untag(socket);
293 public static void tagDatagramSocket(DatagramSocket socket) throws SocketException { argument
294 SocketTagger.get().tag(socket);
300 public static void untagDatagramSocket(DatagramSocket socket) throws SocketException { argument
301 SocketTagger.get().untag(socket);
H A DLocalSocket.java27 * Creates a (non-server) socket in the UNIX-domain namespace. The interface
41 /** unknown socket type (used for constructor with existing file descriptor) */
43 /** Datagram socket type */
45 /** Stream socket type */
47 /** Sequential packet socket type */
51 * Creates a AF_LOCAL/UNIX domain stream socket.
58 * Creates a AF_LOCAL/UNIX domain stream socket with given socket type
76 * AF_LOCAL/UNIX domain stream socket. Note: the FileDescriptor must be closed by the caller:
96 LocalSocket socket
[all...]
/frameworks/av/media/common_time/
H A Dutils.h20 #include <linux/socket.h>
/frameworks/base/core/java/org/apache/http/conn/scheme/
H A DLayeredSocketFactory.java40 * 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/services/core/java/com/android/server/
H A DRecoverySystemService.java51 // The socket at /dev/socket/uncrypt to communicate with uncrypt.
104 // Connect to the uncrypt service socket.
105 LocalSocket socket = connectService();
106 if (socket == null) {
107 Slog.e(TAG, "Failed to connect to uncrypt socket");
111 // Read the status from the socket.
115 dis = new DataInputStream(socket.getInputStream());
116 dos = new DataOutputStream(socket.getOutputStream());
139 // waits for the ack so the socket wo
[all...]
/frameworks/native/libs/vr/libpdx_uds/private/uds/
H A Dclient_channel_factory.h16 static std::unique_ptr<pdx::ClientChannelFactory> Create(LocalHandle socket);
26 explicit ClientChannelFactory(LocalHandle socket);
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/
H A DBluetoothMapRfcommTransport.java32 public BluetoothMapRfcommTransport(BluetoothSocket socket) { argument
34 mSocket = socket;
/frameworks/support/compat/ics/android/support/v4/net/
H A DDatagramSocketWrapper.java31 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/opt/net/wifi/libwifi_system/
H A Dinterface_tool.cpp20 #include <sys/socket.h>
22 struct sockaddr and must be included after sys/socket.h. */
54 base::unique_fd sock(socket(PF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0));
56 LOG(ERROR) << "Failed to open socket to set up/down state ("
70 base::unique_fd sock(socket(PF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0));
72 LOG(ERROR) << "Failed to open socket to set up/down state ("
/frameworks/base/core/java/android/security/net/config/
H A DRootTrustManager.java60 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/native/libs/vr/libpdx_uds/
H A Dclient_channel_factory.cpp5 #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/cmds/interrupter/
H A Dinterrupter.c31 #include <sys/socket.h>
/frameworks/base/core/java/com/android/internal/backup/
H A DIBackupTransport.aidl237 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/com/android/internal/os/
H A DWebViewZygoteInit.java47 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);
/frameworks/base/core/java/android/app/backup/
H A DBackupTransport.java377 * 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 DBandwidthEnforcementTestService.java155 final DatagramSocket socket = new DatagramSocket();
157 socket.setSoTimeout(10000);
162 socket.send(queryPacket);
166 socket.receive(replyPacket);
170 socket.close();

Completed in 1332 milliseconds

12345