Searched refs:socket (Results 51 - 64 of 64) sorted by relevance

123

/frameworks/base/services/common_time/
H A Dcommon_time_server.h22 #include <sys/socket.h>
199 // UDP socket for the time sync protocol
H A Dcommon_time_server.cpp38 #include <sys/socket.h>
220 // If we have a valid socket, then we are interested in what it has to
260 // Is out bind address dirty? If so, clean up our socket (if any).
261 // Alternatively, do we have an active socket but should be auto
262 // disabled? If so, release the socket and enter the proper sync state.
270 // Do we not have a socket but should have one? If so, try to set one
316 // That's odd... we failed to set up our socket. This could be
323 // point (since we just tried to bulid a new socket). Loop back
327 // We just lost our socket, and for whatever reason (either no
329 // one at this time. We are not going to rebuild our socket unti
[all...]
/frameworks/base/voip/java/com/android/server/sip/
H A DSipSessionGroup.java173 DatagramSocket socket = new DatagramSocket();
174 socket.connect(remote, port);
175 if (socket.isConnected()) {
176 local = socket.getLocalAddress().getHostAddress();
177 port = socket.getLocalPort();
178 socket.close();
181 socket.close();
/frameworks/base/core/jni/
H A Dandroid_net_LocalSocketImpl.cpp27 #include <sys/socket.h>
57 ret = socket(PF_LOCAL, stream ? SOCK_STREAM : SOCK_DGRAM, 0);
390 // If this were a non-socket fd, there would be other cases to worry
511 * Reads data from a socket into buf, processing any ancillary data
571 * Writes all the data in the specified buffer to the specified socket.
/frameworks/av/media/common_time/
H A DICommonClock.cpp17 #include <sys/socket.h>
H A DICommonTimeConfig.cpp17 #include <sys/socket.h>
/frameworks/base/services/jni/
H A Dcom_android_server_BatteryService.cpp28 #include <sys/socket.h>
/frameworks/av/media/libstagefright/rtsp/
H A DARTSPConnection.cpp35 #include <sys/socket.h>
58 ALOGE("Connection is still open, closing the socket.");
191 // Make socket non-blocking.
262 mSocket = socket(AF_INET, SOCK_STREAM, 0);
H A DARTPWriter.cpp58 mSocket = socket(AF_INET, SOCK_DGRAM, 0);
H A DMyTransmitter.h24 #include <sys/socket.h>
H A DMyHandler.h40 #include <sys/socket.h>
/frameworks/base/services/java/com/android/server/
H A DConnectivityService.java3215 * Protect a socket from VPN routing rules. This method is used by
3221 public boolean protectVpn(ParcelFileDescriptor socket) { argument
3226 mVpn.protect(socket, mNetTrackers[type].getLinkProperties().getInterfaceName());
3233 socket.close();
H A DBackupManagerService.java2309 // ----- Full backup to a file/socket -----
2871 // ----- Full restore from a file/socket -----
2955 ParcelFileDescriptor socket, int token) throws IOException {
2965 mSocket = ParcelFileDescriptor.dup(socket.getFileDescriptor());
3325 // fire up the app's agent listening on the socket. If
3340 // couldn't dup the socket for a process-local restore
3415 if (DEBUG) Slog.w(TAG, "io exception on restore socket read", e);
2954 RestoreFileRunnable(IBackupAgent agent, FileMetadata info, ParcelFileDescriptor socket, int token) argument
/frameworks/base/libs/androidfw/
H A DInputTransport.cpp30 #include <sys/socket.h>
105 LOG_ALWAYS_FATAL_IF(result != 0, "channel '%s' ~ Could not make socket "
123 ALOGE("channel '%s' ~ Could not create socket pair. errno=%d",

Completed in 280 milliseconds

123