/frameworks/base/services/core/jni/ |
H A D | com_android_server_connectivity_Vpn.cpp | 32 #include <sys/socket.h> 367 inet4 = socket(AF_INET, SOCK_DGRAM, 0); 370 inet6 = socket(AF_INET6, SOCK_DGRAM, 0);
|
/frameworks/av/include/common_time/ |
H A D | ICommonClock.h | 21 #include <linux/socket.h>
|
/frameworks/av/media/libstagefright/rtsp/ |
H A D | ARTPWriter.h | 28 #include <sys/socket.h>
|
H A D | ARTPSession.cpp | 30 #include <sys/socket.h> 101 int s = socket(AF_INET, SOCK_DGRAM, 0);
|
H A D | ARTPConnection.cpp | 34 #include <sys/socket.h> 86 msg->setInt32("rtp-socket", rtpSocket); 87 msg->setInt32("rtcp-socket", rtcpSocket); 97 msg->setInt32("rtp-socket", rtpSocket); 98 msg->setInt32("rtcp-socket", rtcpSocket); 110 *rtpSocket = socket(AF_INET, SOCK_DGRAM, 0); 115 *rtcpSocket = socket(AF_INET, SOCK_DGRAM, 0); 187 CHECK(msg->findInt32("rtp-socket", &s)); 189 CHECK(msg->findInt32("rtcp-socket", &s)); 215 CHECK(msg->findInt32("rtp-socket", [all...] |
/frameworks/base/core/java/org/apache/http/conn/ssl/ |
H A D | SSLSocketFactory.java | 59 * Layered socket factory for TLS/SSL connections, based on JSSE. 70 * certificates. The client secure socket will reject the connection during 85 * pair. The client secure socket will use the private key to authenticate 244 * Creates the default SSL socket factory. 343 // close the socket before re-throwing the exception 353 * Checks whether a socket connection is secure. 354 * This factory creates TLS/SSL socket connections 360 * @param sock the connected socket 389 final Socket socket, 395 socket, 388 createSocket( final Socket socket, final String host, final int port, final boolean autoClose ) argument [all...] |
/frameworks/base/libs/common_time/ |
H A D | diag_thread.cpp | 24 #include <sys/socket.h> 41 ALOGE("Failed to set socket (%d) to non-blocking mode (errno %d)", 52 ALOGE("Failed to set socket (%d) to no-delay mode (errno %d)", 97 if ((listen_fd_ = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) < 0) { 205 ALOGE("Failed to open listen socket"); 235 ALOGW("Failed accept on socket %d with err %d",
|
H A D | common_time_server.h | 22 #include <sys/socket.h> 199 // UDP socket for the time sync protocol
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | IpSecService.java | 589 int resourceId, IpSecConfig config, SpiRecord spi, EncapSocketRecord socket) { 593 mSocket = socket; 906 * Tracks a UDP encap socket, and manages cleanup paths 908 * <p>While this class does not manage non-kernel resources, race conditions around socket 909 * binding require that the service creates the encap socket, binds it and applies the socket 916 EncapSocketRecord(int resourceId, FileDescriptor socket, int port) { argument 918 mSocket = socket; 1133 * <p>A socket cannot be un-bound from a port if it was bound to that port by number. To select 1134 * a random open port and then bind by number, this function creates a temp socket, bind 588 TransformRecord( int resourceId, IpSecConfig config, SpiRecord spi, EncapSocketRecord socket) argument 1613 applyTransportModeTransform( ParcelFileDescriptor socket, int direction, int resourceId) argument 1649 removeTransportModeTransforms(ParcelFileDescriptor socket) argument [all...] |
/frameworks/base/core/java/com/android/internal/backup/ |
H A D | LocalTransport.java | 471 public int performFullBackup(PackageInfo targetPackage, ParcelFileDescriptor socket) { argument 482 // sure to dup() our own copy of the socket fd. Transports which run in 486 mSocket = ParcelFileDescriptor.dup(socket.getFileDescriptor()); 489 Log.e(TAG, "Unable to process socket for full backup"); 756 * transport then writes some data to the socket supplied to this call, and returns 768 * @param socket The file descriptor that the transport will use for delivering the 777 public int getNextFullRestoreDataChunk(ParcelFileDescriptor socket) { argument 795 mFullRestoreSocketStream = new FileOutputStream(socket.getFileDescriptor()); 820 // Most transports will need to explicitly close 'socket' here, but this transport 822 // to manage both socket fd [all...] |
/frameworks/base/core/java/com/android/internal/os/ |
H A D | ZygoteConnection.java | 64 * The command socket. 78 * Constructs instance from connected socket. 80 * @param socket non-null; connected socket 84 ZygoteConnection(LocalSocket socket, String abiList) throws IOException { argument 85 mSocket = socket; 89 = new DataOutputStream(socket.getOutputStream()); 92 new InputStreamReader(socket.getInputStream()), 256); 107 * Returns the file descriptor of the associated socket. 116 * Reads one start command from the command socket [all...] |
/frameworks/base/services/net/java/android/net/ip/ |
H A D | ConnectivityPacketTracker.java | 104 s = Os.socket(AF_PACKET, SOCK_RAW, 0); 108 logError("Failed to create packet tracking socket: ", e);
|
/frameworks/base/services/net/java/android/net/netlink/ |
H A D | NetlinkSocket.java | 48 * A small static class to assist with AF_NETLINK socket operations. 105 final FileDescriptor fd = Os.socket(AF_NETLINK, SOCK_DGRAM, nlProto); 121 * Wait up to |timeoutMs| (or until underlying socket error) for a 144 * Send a message to a peer to which this socket has previously connected,
|
/frameworks/native/libs/gui/ |
H A D | BitTube.cpp | 20 #include <sys/socket.h>
|
/frameworks/native/libs/sensor/ |
H A D | BitTube.cpp | 21 #include <sys/socket.h>
|
H A D | SensorEventQueue.cpp | 22 #include <sys/socket.h>
|
/frameworks/rs/ |
H A D | rsThreadIO.cpp | 23 #include <sys/socket.h>
|
/frameworks/base/services/net/java/android/net/apf/ |
H A D | ApfFilter.java | 180 public ReceiveThread(FileDescriptor socket) { argument 181 mSocket = socket; 428 FileDescriptor socket; 443 socket = Os.socket(AF_PACKET, SOCK_RAW, ETH_P_IPV6); 446 Os.bind(socket, addr); 447 NetworkUtils.attachRaFilter(socket, mApfCapabilities.apfPacketFormat); 452 mReceiveThread = new ReceiveThread(socket); 625 // to our packet socket. b/29586253 1395 // 2. the packet filter attached to our packet socket wil [all...] |
/frameworks/av/media/libstagefright/foundation/ |
H A D | ANetworkSession.cpp | 31 #include <sys/socket.h> 79 int socket() const; 216 int ANetworkSession::Session::socket() const { function in class:android::ANetworkSession::Session 966 s = socket( 1052 ALOGI("connecting socket %d to %d.%d.%d.%d:%d", 1167 int s = session->socket(); 1254 int s = session->socket(); 1314 int s = session->socket(); 1336 ALOGE("Unable to make client socket non blocking, " 1346 "(socket [all...] |
/frameworks/base/tests/net/java/com/android/server/ |
H A D | IpSecServiceTest.java | 217 FileDescriptor newSocket = Os.socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); 224 * closeUdpEncapsulationSocket is not called, the socket cleanup should not be complete. 237 FileDescriptor newSocket = Os.socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); 453 * This function checks if the number of encap UDP socket that one UID can reserve has a 470 assertTrue("No UDP encap socket was open", !openUdpEncapSockets.isEmpty()); 475 // Try to reserve one more UDP encapsulation socket, and should fail. 486 // Try to reserve one more UDP encapsulation socket, and should be successful. 564 FileDescriptor sockFd = Os.socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); 566 // Has to be done after socket creation because BlockGuardOS calls tag on new sockets
|
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | NativeCrashListener.java | 35 * Set up a Unix domain socket that debuggerd will connect() to in 50 // Use a short timeout on socket operations and abandon the connection 94 * Daemon thread that accept()s incoming domain socket connections from debuggerd 107 // The file system entity for this socket is created with 0777 perms, owned 118 FileDescriptor serverFd = Os.socket(AF_UNIX, SOCK_STREAM, 0); 130 if (MORE_DEBUG) Slog.v(TAG, "Got debuggerd socket " + peerFd); 154 Slog.d(TAG, "Exception closing socket: " + e.getMessage()); 161 Slog.e(TAG, "Unable to init native debug socket!", e); 203 // The socket is guarded by an selinux neverallow rule that only
|
/frameworks/base/tests/net/java/android/net/util/ |
H A D | PacketReaderTest.java | 83 s = Os.socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP);
|
/frameworks/native/libs/vr/libpdx_uds/ |
H A D | client_channel_tests.cpp | 3 #include <sys/socket.h>
|
/frameworks/opt/net/voip/src/java/com/android/server/sip/ |
H A D | SipSessionGroup.java | 166 DatagramSocket socket = new DatagramSocket(); 167 socket.connect(remote, port); 168 if (socket.isConnected()) { 169 local = socket.getLocalAddress().getHostAddress(); 170 port = socket.getLocalPort(); 171 socket.close(); 174 socket.close();
|
/frameworks/base/core/java/android/os/ |
H A D | ParcelFileDescriptor.java | 72 * Optional socket used to communicate close events, status at close, and 391 * @param socket The Socket whose FileDescriptor is used to create 397 public static ParcelFileDescriptor fromSocket(Socket socket) { argument 398 FileDescriptor fd = socket.getFileDescriptor$(); 861 * Detect and throw if the other end of a pipe or socket pair encountered an
|