/frameworks/base/core/java/android/net/ |
H A D | LinkSocketNotifier.java | 32 * 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 D | VpnService.java | 154 * Protect a socket from VPN connections. The socket will be bound to the 162 * <p class="note">The socket is NOT closed by this method. 166 public boolean protect(int socket) { argument 169 dup = ParcelFileDescriptor.fromFd(socket); 188 public boolean protect(Socket socket) { argument 189 return protect(socket.getFileDescriptor$().getInt$()); 199 public boolean protect(DatagramSocket socket) { argument 200 return protect(socket.getFileDescriptor$().getInt$());
|
H A D | DnsPinger.java | 59 /** 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 D | SSLCertificateSocketFactory.java | 53 * 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 D | TrafficStats.java | 181 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 D | RtpStream.cpp | 22 #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 D | AudioGroup.cpp | 24 #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. 824 // Give device socket a reasonable buffer size. 828 // Drain device socket. 940 jint socket, jstring jRemoteAddress, jint remotePort, 962 socket 939 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 D | TrafficStatsCompatIcs.java | 48 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/core/java/android/net/http/ |
H A D | CertificateChainValidator.java | 71 * @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
|
H A D | AndroidHttpClientConnection.java | 81 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/base/packages/services/Proxy/src/com/android/proxyhandler/ |
H A D | ProxyServer.java | 177 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/support/v4/java/android/support/v4/net/ |
H A D | TrafficStatsCompat.java | 36 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/native/opengl/libs/GLES_trace/src/ |
H A D | gltrace_transport.cpp | 22 #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/opt/net/voip/src/java/android/net/rtp/ |
H A D | AudioGroup.java | 162 private native int nativeAdd(int mode, int socket, String remoteAddress, argument
|
/frameworks/base/core/java/com/android/internal/os/ |
H A D | ZygoteConnection.java | 66 * The command socket. 79 * Constructs instance from connected socket. 81 * @param socket non-null; connected socket 84 ZygoteConnection(LocalSocket socket) throws IOException { argument 85 mSocket = socket; 88 = new DataOutputStream(socket.getOutputStream()); 91 new InputStreamReader(socket.getInputStream()), 256); 106 * Returns the file descriptor of the associated socket. 115 * Reads start commands from an open command socket [all...] |
/frameworks/base/core/jni/ |
H A D | android_net_NetUtils.cpp | 246 static void android_net_utils_markSocket(JNIEnv *env, jobject thiz, jint socket, jint mark) argument 248 if (setsockopt(socket, SOL_SOCKET, SO_MARK, &mark, sizeof(mark)) < 0) { 249 jniThrowException(env, "java/lang/IllegalStateException", "Error marking socket");
|
/frameworks/base/services/jni/ |
H A D | com_android_server_connectivity_Vpn.cpp | 27 #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 D | NativeDaemonConnector.java | 72 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...] |
H A D | NetworkManagementService.java | 192 private NetworkManagementService(Context context, String socket) { argument 200 new NetdCallbackReceiver(), socket, 10, NETD_TAG, 160); 208 String socket) throws InterruptedException { 209 final NetworkManagementService service = new NetworkManagementService(context, socket); 213 if (DBG) Slog.d(TAG, "Awaiting socket connection"); 207 create(Context context, String socket) argument
|
H A D | ConnectivityService.java | 197 // aggregate this timer with other timers (specially the socket keep alive timers) 3583 * Protect a socket from VPN routing rules. This method is used by 3589 public boolean protectVpn(ParcelFileDescriptor socket) { argument 3596 mVpns.get(user).protect(socket, 3605 socket.close(); 3629 public void markSocketAsUser(ParcelFileDescriptor socket, int uid) { argument 3634 // Clear the mark on the socket if no mark is needed to prevent socket reuse issues 3638 NetworkUtils.markSocket(socket.getFd(), mark); 3780 public void protect(ParcelFileDescriptor socket) { argument [all...] |
H A D | BackupManagerService.java | 2422 // ----- Full backup/restore to a file/socket ----- 3105 // ----- Full restore from a file/socket ----- 3191 ParcelFileDescriptor socket, int token) throws IOException { 3201 mSocket = ParcelFileDescriptor.dup(socket.getFileDescriptor()); 3570 // fire up the app's agent listening on the socket. If 3586 // couldn't dup the socket for a process-local restore 3661 if (DEBUG) Slog.w(TAG, "io exception on restore socket read", e); 3190 RestoreFileRunnable(IBackupAgent agent, FileMetadata info, ParcelFileDescriptor socket, int token) argument
|
/frameworks/base/core/java/android/os/ |
H A D | ParcelFileDescriptor.java | 59 * Optional socket used to communicate close events, status at close, and 329 * @param socket The Socket whose FileDescriptor is used to create 335 public static ParcelFileDescriptor fromSocket(Socket socket) { argument 336 FileDescriptor fd = socket.getFileDescriptor$(); 749 * Detect and throw if the other end of a pipe or socket pair encountered an 996 * requires that communication socket is <em>blocking</em>.
|
/frameworks/base/services/java/com/android/server/connectivity/ |
H A D | Vpn.java | 285 * Protect a socket from routing changes by binding it to the given 286 * interface. The socket is NOT closed by this method. 288 * @param socket The socket to be bound. 291 public void protect(ParcelFileDescriptor socket, String interfaze) throws Exception { argument 298 // protect the socket from routing rules 301 mCallback.protect(socket); 305 // bind the socket to the interface 306 jniProtect(socket.getFd(), interfaze); 673 private native void jniProtect(int socket, Strin argument [all...] |
/frameworks/av/media/libstagefright/foundation/ |
H A D | ANetworkSession.cpp | 31 #include <sys/socket.h> 90 int socket() const; 227 int ANetworkSession::Session::socket() const { function in class:android::ANetworkSession::Session 977 s = socket( 1063 ALOGI("connecting socket %d to %d.%d.%d.%d:%d", 1178 int s = session->socket(); 1265 int s = session->socket(); 1324 int s = session->socket(); 1346 ALOGE("Unable to make client socket non blocking, " 1356 "(socket [all...] |