/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 | SSLCertificateSocketFactory.java | 52 * 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 D | SntpClient.java | 74 DatagramSocket socket = null; 76 socket = new DatagramSocket(); 77 socket.setSoTimeout(timeout); 92 socket.send(request); 96 socket.receive(response); 126 if (socket != null) { 127 socket.close();
|
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 | TrafficStats.java | 171 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);
|
H A D | VpnService.java | 153 * 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$());
|
/frameworks/base/voip/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...] |
/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/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/base/core/java/android/net/http/ |
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...] |
H A D | CertificateChainValidator.java | 70 * @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
|
/frameworks/av/media/common_time/ |
H A D | utils.h | 20 #include <linux/socket.h>
|
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/forwarder/ |
H A D | ConnectionHandler.java | 144 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/tests/DumpRenderTree/src/com/android/dumprendertree/forwarder/ |
H A D | AdbUtils.java | 78 * Send an ADB command using existing socket connection 80 * the streams provided must be from a socket connected to adbd already 82 * @param is input stream of the socket connection 83 * @param os output stream of the socket 104 * Get a tcp socket connection to specified IP address and port proxied by adb 106 * The proxying is transparent, e.g. if a socket is returned, then it can be written to and 115 Socket socket = new Socket(ADB_HOST, ADB_PORT); 117 if(!sendAdbCmd(socket.getInputStream(), socket.getOutputStream(), cmd)) { 118 socket [all...] |
H A D | ForwardServer.java | 86 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);
|
H A D | Forwarder.java | 62 private void shutdown(Socket socket) { argument 64 socket.shutdownInput(); 69 socket.shutdownOutput(); 74 socket.close();
|
/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;
|
H A D | gltrace_transport.h | 35 /** Create a TCP based communication channel over @socket */ 36 TCPStream(int socket); 82 * Utility method: start a server listening at @sockName (unix domain socket, 84 * Returns the connected client socket on success, or -1 on failure.
|
/frameworks/base/tests/CoreTests/android/core/ |
H A D | SSLSocketTest.java | 85 Socket socket = secure ? socketFactory.createSocket() 88 socket.setKeepAlive(true); 89 socket.setSoTimeout(timeout * 1000); 91 socket.connect(address); 94 OutputStream output = socket.getOutputStream(); 98 DataInputStream input = new DataInputStream(socket.getInputStream()); 173 socket.close(); 178 * Invokes fetch() with the default socket factory. 337 final Socket socket = clientFactory.createSocket(); 338 socket [all...] |
/frameworks/base/tests/BandwidthTests/src/com/android/tests/bandwidthenforcement/ |
H A D | BandwidthEnforcementTestService.java | 155 final DatagramSocket socket = new DatagramSocket(); 157 socket.setSoTimeout(10000); 162 socket.send(queryPacket); 166 socket.receive(replyPacket); 170 socket.close();
|
/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothAdapter.java | 901 * Create a listening, secure RFCOMM Bluetooth socket. 902 * <p>A remote device connecting to this socket will be authenticated and 903 * communication on this socket will be encrypted. 915 BluetoothServerSocket socket = new BluetoothServerSocket( 917 int errno = socket.mSocket.bindListen(); 921 //socket.mSocket.throwErrnoNative(errno); 924 return socket; 928 * Create a listening, secure RFCOMM Bluetooth socket with Service Record. 929 * <p>A remote device connecting to this socket will be authenticated and 930 * communication on this socket wil [all...] |
/frameworks/base/services/java/com/android/server/ |
H A D | NativeDaemonConnector.java | 71 NativeDaemonConnector(INativeDaemonConnectorCallbacks callbacks, String socket, argument 74 mSocket = socket; 111 LocalSocket socket = null; 114 socket = new LocalSocket(); 118 socket.connect(address); 120 InputStream inputStream = socket.getInputStream(); 122 mOutputStream = socket.getOutputStream(); 196 if (socket != null) { 197 socket.close(); 200 loge("Failed closing socket [all...] |
/frameworks/base/keystore/java/android/security/ |
H A D | KeyStore.java | 262 LocalSocket socket = new LocalSocket(); 264 socket.connect(sAddress); 266 OutputStream out = socket.getOutputStream(); 274 socket.shutdownOutput(); 276 InputStream in = socket.getInputStream(); 307 socket.close();
|
/frameworks/base/cmds/ip-up-vpn/ |
H A D | ip-up-vpn.c | 26 #include <sys/socket.h> 87 int s = socket(AF_INET, SOCK_DGRAM, 0);
|
/frameworks/base/core/jni/ |
H A D | android_server_NetworkManagementSocketTagger.cpp | 29 #include <sys/socket.h>
|