Searched defs:socket (Results 1 - 24 of 24) sorted by relevance

/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 DVpnService.java153 * Protect a socket from VPN connections. The socket will be bound to the
161 * <p class="note">The socket is NOT closed by this method.
165 public boolean protect(int socket) { argument
168 dup = ParcelFileDescriptor.fromFd(socket);
187 public boolean protect(Socket socket) { argument
188 return protect(socket.getFileDescriptor$().getInt$());
198 public boolean protect(DatagramSocket socket) { argument
199 return protect(socket.getFileDescriptor$().getInt$());
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 DSSLCertificateSocketFactory.java52 * The handshake timeout does not apply to actual TCP socket connection.
61 * use {@link InetAddress} or which return an unconnected socket, you MUST
68 * <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
306 getNpnSelectedProtocol(Socket socket) argument
329 setUseSessionTickets(Socket socket, boolean useSessionTickets) argument
341 setHostname(Socket socket, String hostName) argument
356 setSoWriteTimeout(Socket socket, int writeTimeoutMilliseconds) argument
361 castToOpenSSLSocket(Socket socket) argument
[all...]
H A DTrafficStats.java171 public static void tagSocket(Socket socket) throws SocketException { argument
172 SocketTagger.get().tag(socket);
178 public static void untagSocket(Socket socket) throws SocketException { argument
179 SocketTagger.get().untag(socket);
/frameworks/base/voip/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...]
H A DAudioGroup.cpp24 #include <sys/socket.h>
99 bool set(int mode, int socket, sockaddr_storage *remote,
165 bool AudioStream::set(int mode, int socket, sockaddr_storage *remote, argument
201 mSocket = socket;
583 // Create device socket.
600 // Give device socket a reasonable timeout.
819 // Give device socket a reasonable buffer size.
823 // Drain device socket.
934 jint socket, jstring jRemoteAddress, jint remotePort,
956 socket
933 add(JNIEnv *env, jobject thiz, jint mode, jint socket, jstring jRemoteAddress, jint remotePort, jstring jCodecSpec, jint dtmfType) argument
[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/base/tests/DumpRenderTree/src/com/android/dumprendertree/forwarder/
H A DForwarder.java62 private void shutdown(Socket socket) { argument
64 socket.shutdownInput();
69 socket.shutdownOutput();
74 socket.close();
H A DForwardServer.java86 private ServerSocket socket; field in class:ForwardServer.ServerRunner
88 public ServerRunner(ServerSocket socket) { argument
89 this.socket = socket;
95 Socket localSocket = socket.accept();
101 Log.w(LOGTAG, "error while closing socket", ioe);
/frameworks/base/core/java/android/net/http/
H A DCertificateChainValidator.java70 * @param sslSocket The secure connection socket
77 // get a valid SSLSession, close the socket if we fail
190 SSLSocket socket, String errorMessage, String defaultErrorMessage)
193 socket, errorMessage != null ? errorMessage : defaultErrorMessage);
196 private void closeSocketThrowException(SSLSocket socket, argument
202 if (socket != null) {
203 SSLSession session = socket.getSession();
208 socket.close();
189 closeSocketThrowException( SSLSocket socket, String errorMessage, String defaultErrorMessage) argument
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...]
/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/tests/DumpRenderTree2/src/com/android/dumprendertree2/forwarder/
H A DConnectionHandler.java144 private void shutdown(Socket socket) { argument
149 if (!socket.isInputShutdown()) {
150 socket.shutdownInput();
156 if (!socket.isOutputShutdown()) {
157 socket.shutdownOutput();
163 if (!socket.isClosed()) {
164 socket.close();
/frameworks/base/voip/java/android/net/rtp/
H A DAudioGroup.java161 private native int nativeAdd(int mode, int socket, String remoteAddress, argument
/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;
/frameworks/base/core/java/android/os/
H A DParcelFileDescriptor.java164 // Extracts the file descriptor from the specified socket and returns it untouched
182 // Extracts the file descriptor from the specified socket and returns it untouched
191 * @param socket The Socket whose FileDescriptor is used to create
197 public static ParcelFileDescriptor fromSocket(Socket socket) { argument
198 FileDescriptor fd = socket.getFileDescriptor$();
/frameworks/base/core/java/com/android/internal/os/
H A DZygoteConnection.java66 * The command socket.
79 * A long-lived reference to the original command socket used to launch
82 * via the command socket. In this case, the command socket is closed
91 * Constructs instance from connected socket.
93 * @param socket non-null; connected socket
96 ZygoteConnection(LocalSocket socket) throws IOException { argument
97 mSocket = socket;
100 = new DataOutputStream(socket
[all...]
/frameworks/base/services/jni/
H A Dcom_android_server_connectivity_Vpn.cpp27 #include <sys/socket.h>
305 static int bind_to_interface(int socket, const char *name) argument
307 if (setsockopt(socket, SOL_SOCKET, SO_BINDTODEVICE, name, strlen(name))) {
308 ALOGE("Cannot bind socket to %s: %s", name, strerror(errno));
436 static void protect(JNIEnv *env, jobject thiz, jint socket, jstring jName) argument
443 if (bind_to_interface(socket, name) < 0) {
444 throwException(env, SYSTEM_ERROR, "Cannot protect socket");
464 inet4 = socket(AF_INET, SOCK_DGRAM, 0);
467 inet6 = socket(AF_INET6, SOCK_DGRAM, 0);
/frameworks/base/services/java/com/android/server/
H A DNativeDaemonConnector.java72 NativeDaemonConnector(INativeDaemonConnectorCallbacks callbacks, String socket, argument
75 mSocket = socket;
112 LocalSocket socket = null;
115 socket = new LocalSocket();
119 socket.connect(address);
121 InputStream inputStream = socket.getInputStream();
123 mOutputStream = socket.getOutputStream();
197 if (socket != null) {
198 socket.close();
201 loge("Failed closing socket
[all...]
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/av/media/libstagefright/wifi-display/
H A DANetworkSession.cpp29 #include <sys/socket.h>
70 int socket() const;
192 int ANetworkSession::Session::socket() const { function in class:android::ANetworkSession::Session
736 s = socket(
806 ALOGI("connecting socket %d to %d.%d.%d.%d:%d",
921 int s = session->socket();
994 int s = session->socket();
1053 int s = session->socket();
1075 ALOGE("Unable to make client socket non blocking, "
1085 "(socket
[all...]
/frameworks/base/services/java/com/android/server/connectivity/
H A DVpn.java212 * Protect a socket from routing changes by binding it to the given
213 * interface. The socket is NOT closed by this method.
215 * @param socket The socket to be bound.
218 public void protect(ParcelFileDescriptor socket, String interfaze) throws Exception { argument
224 jniProtect(socket.getFd(), interfaze);
447 private native void jniProtect(int socket, String interfaze); argument
659 for (LocalSocket socket : mSockets) {
660 IoUtils.closeQuietly(socket);
739 // Create the control socket
[all...]

Completed in 8761 milliseconds