/frameworks/opt/net/voip/src/jni/rtp/ |
D | RtpStream.cpp | 48 int socket = ::socket(ss.ss_family, SOCK_DGRAM, 0); in create() local 50 if (socket == -1 || bind(socket, (sockaddr *)&ss, sizeof(ss)) != 0 || in create() 51 getsockname(socket, (sockaddr *)&ss, &len) != 0) { in create() 53 ::close(socket); in create() 61 env->SetIntField(thiz, gSocket, socket); in create() 64 ::close(socket); in create() 66 socket = ::socket(ss.ss_family, SOCK_DGRAM, 0); in create() 67 if (socket != -1) { in create() 77 if (bind(socket, (sockaddr *)&ss, sizeof(ss)) == 0) { in create() 78 env->SetIntField(thiz, gSocket, socket); in create() [all …]
|
D | AudioGroup.cpp | 99 bool set(int mode, int socket, sockaddr_storage *remote, 165 bool AudioStream::set(int mode, int socket, sockaddr_storage *remote, in set() argument 201 mSocket = socket; in set() 940 jint socket, jstring jRemoteAddress, jint remotePort, in add() argument 962 socket = dup(socket); in add() 963 if (socket == -1) { in add() 985 if (!stream->set(mode, socket, &remote, codec, sampleRate, sampleCount, in add() 991 socket = -1; in add() 1021 close(socket); in add()
|
/frameworks/base/core/java/android/net/http/ |
D | AndroidHttpClientConnection.java | 81 private Socket socket = null; field in AndroidHttpClientConnection 95 final Socket socket, in bind() argument 97 if (socket == null) { in bind() 104 socket.setTcpNoDelay(HttpConnectionParams.getTcpNoDelay(params)); in bind() 105 socket.setSoTimeout(HttpConnectionParams.getSoTimeout(params)); in bind() 109 socket.setSoLinger(linger > 0, linger); in bind() 111 this.socket = socket; in bind() 114 this.inbuffer = new SocketInputBuffer(socket, buffersize, params); in bind() 115 this.outbuffer = new SocketOutputBuffer(socket, buffersize, params); in bind() 159 return (this.open && this.socket != null && this.socket.isConnected()); in isOpen() [all …]
|
D | CertificateChainValidator.java | 197 SSLSocket socket, String errorMessage, String defaultErrorMessage) in closeSocketThrowException() argument 200 socket, errorMessage != null ? errorMessage : defaultErrorMessage); in closeSocketThrowException() 203 private void closeSocketThrowException(SSLSocket socket, in closeSocketThrowException() argument 209 if (socket != null) { in closeSocketThrowException() 210 SSLSession session = socket.getSession(); in closeSocketThrowException() 215 socket.close(); in closeSocketThrowException()
|
/frameworks/support/v4/java/android/support/v4/net/ |
D | TrafficStatsCompat.java | 36 void tagSocket(Socket socket) throws SocketException; in tagSocket() argument 37 void untagSocket(Socket socket) throws SocketException; in untagSocket() argument 76 public void tagSocket(Socket socket) { in tagSocket() argument 80 public void untagSocket(Socket socket) { in untagSocket() argument 111 public void tagSocket(Socket socket) throws SocketException { in tagSocket() argument 112 TrafficStatsCompatIcs.tagSocket(socket); in tagSocket() 116 public void untagSocket(Socket socket) throws SocketException { in untagSocket() argument 117 TrafficStatsCompatIcs.untagSocket(socket); in untagSocket() 193 public static void tagSocket(Socket socket) throws SocketException { in tagSocket() argument 194 IMPL.tagSocket(socket); in tagSocket() [all …]
|
/frameworks/base/core/java/android/net/ |
D | SSLCertificateSocketFactory.java | 181 public static void verifyHostname(Socket socket, String hostname) throws IOException { in verifyHostname() argument 182 if (!(socket instanceof SSLSocket)) { in verifyHostname() 189 SSLSocket ssl = (SSLSocket) socket; in verifyHostname() 329 public byte[] getNpnSelectedProtocol(Socket socket) { in getNpnSelectedProtocol() argument 330 return castToOpenSSLSocket(socket).getNpnSelectedProtocol(); in getNpnSelectedProtocol() 343 public byte[] getAlpnSelectedProtocol(Socket socket) { in getAlpnSelectedProtocol() argument 344 return castToOpenSSLSocket(socket).getAlpnSelectedProtocol(); in getAlpnSelectedProtocol() 380 public void setUseSessionTickets(Socket socket, boolean useSessionTickets) { in setUseSessionTickets() argument 381 castToOpenSSLSocket(socket).setUseSessionTickets(useSessionTickets); in setUseSessionTickets() 392 public void setHostname(Socket socket, String hostName) { in setHostname() argument [all …]
|
D | SntpClient.java | 74 DatagramSocket socket = null; in requestTime() local 76 socket = new DatagramSocket(); in requestTime() 77 socket.setSoTimeout(timeout); in requestTime() 92 socket.send(request); in requestTime() 96 socket.receive(response); in requestTime() 126 if (socket != null) { in requestTime() 127 socket.close(); in requestTime()
|
D | LinkSocketNotifier.java | 60 public void onLinkLost(LinkSocket socket); in onLinkLost() argument 73 public void onNewLinkUnavailable(LinkSocket socket); in onNewLinkUnavailable() argument 87 public void onCapabilitiesChanged(LinkSocket socket, LinkCapabilities changedCapabilities); in onCapabilitiesChanged() argument
|
D | DnsPinger.java | 100 DatagramSocket socket; field in DnsPinger.ActivePing 148 newActivePing.socket = new DatagramSocket(); in handleMessage() 150 newActivePing.socket.setSoTimeout(SOCKET_TIMEOUT_MS); in handleMessage() 154 newActivePing.socket.setNetworkInterface(NetworkInterface.getByName( in handleMessage() 174 newActivePing.socket.send(packet); in handleMessage() 192 curPing.socket.receive(replyPacket); in handleMessage() 217 curPing.socket.close(); in handleMessage() 222 curPing.socket.close(); in handleMessage() 233 activePing.socket.close(); in handleMessage()
|
D | VpnService.java | 167 public boolean protect(int socket) { in protect() argument 170 dup = ParcelFileDescriptor.fromFd(socket); in protect() 189 public boolean protect(Socket socket) { in protect() argument 190 return protect(socket.getFileDescriptor$().getInt$()); in protect() 200 public boolean protect(DatagramSocket socket) { in protect() argument 201 return protect(socket.getFileDescriptor$().getInt$()); in protect()
|
D | TrafficStats.java | 181 public static void tagSocket(Socket socket) throws SocketException { in tagSocket() argument 182 SocketTagger.get().tag(socket); in tagSocket() 188 public static void untagSocket(Socket socket) throws SocketException { in untagSocket() argument 189 SocketTagger.get().untag(socket); in untagSocket()
|
D | IConnectivityManager.aidl | 42 void markSocketAsUser(in ParcelFileDescriptor socket, int uid); in markSocketAsUser() argument 118 boolean protectVpn(in ParcelFileDescriptor socket); in protectVpn() argument
|
/frameworks/support/v4/ics/android/support/v4/net/ |
D | TrafficStatsCompatIcs.java | 48 public static void tagSocket(Socket socket) throws SocketException { in tagSocket() argument 49 TrafficStats.tagSocket(socket); in tagSocket() 52 public static void untagSocket(Socket socket) throws SocketException { in untagSocket() argument 53 TrafficStats.untagSocket(socket); in untagSocket()
|
/frameworks/base/tests/CoreTests/android/core/ |
D | SSLSocketTest.java | 85 Socket socket = secure ? socketFactory.createSocket() in fetch() local 88 socket.setKeepAlive(true); in fetch() 89 socket.setSoTimeout(timeout * 1000); in fetch() 91 socket.connect(address); in fetch() 94 OutputStream output = socket.getOutputStream(); in fetch() 98 DataInputStream input = new DataInputStream(socket.getInputStream()); in fetch() 173 socket.close(); in fetch() 337 final Socket socket = clientFactory.createSocket(); in testMultithreadedClose() local 338 socket.connect(address); in testMultithreadedClose() 345 InputStream stream = socket.getInputStream(); in testMultithreadedClose() [all …]
|
/frameworks/base/tests/BandwidthTests/src/com/android/tests/bandwidthenforcement/ |
D | BandwidthEnforcementTestService.java | 155 final DatagramSocket socket = new DatagramSocket(); in testDns() local 157 socket.setSoTimeout(10000); in testDns() 162 socket.send(queryPacket); in testDns() 166 socket.receive(replyPacket); in testDns() 170 socket.close(); in testDns()
|
/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/ |
D | ProxyServer.java | 177 private void sendLine(Socket socket, String line) throws IOException { in sendLine() argument 178 OutputStream os = socket.getOutputStream(); in sendLine() 202 Socket socket = serverSocket.accept(); in run() local 204 if (socket.getInetAddress().isLoopbackAddress()) { in run() 205 ProxyConnection parser = new ProxyConnection(socket); in run() 209 socket.close(); in run()
|
/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothAdapter.java | 1120 BluetoothServerSocket socket = new BluetoothServerSocket( in listenUsingRfcommOn() local 1122 int errno = socket.mSocket.bindListen(); in listenUsingRfcommOn() 1129 return socket; in listenUsingRfcommOn() 1231 BluetoothServerSocket socket; in createNewRfcommSocketAndRecord() local 1232 socket = new BluetoothServerSocket(BluetoothSocket.TYPE_RFCOMM, auth, in createNewRfcommSocketAndRecord() 1234 socket.setServiceName(name); in createNewRfcommSocketAndRecord() 1235 int errno = socket.mSocket.bindListen(); in createNewRfcommSocketAndRecord() 1242 return socket; in createNewRfcommSocketAndRecord() 1254 BluetoothServerSocket socket = new BluetoothServerSocket( in listenUsingInsecureRfcommOn() local 1256 int errno = socket.mSocket.bindListen(); in listenUsingInsecureRfcommOn() [all …]
|
/frameworks/base/services/java/com/android/server/ |
D | NativeDaemonConnector.java | 72 NativeDaemonConnector(INativeDaemonConnectorCallbacks callbacks, String socket, in NativeDaemonConnector() argument 75 mSocket = socket; in NativeDaemonConnector() 122 LocalSocket socket = null; in listenToSocket() local 125 socket = new LocalSocket(); in listenToSocket() 128 socket.connect(address); in listenToSocket() 130 InputStream inputStream = socket.getInputStream(); in listenToSocket() 132 mOutputStream = socket.getOutputStream(); in listenToSocket() 206 if (socket != null) { in listenToSocket() 207 socket.close(); in listenToSocket()
|
/frameworks/native/opengl/libs/GLES_trace/src/ |
D | gltrace_transport.cpp | 35 int serverSocket = socket(AF_LOCAL, SOCK_STREAM, 0); in acceptClientConnection() 94 TCPStream::TCPStream(int socket) { in TCPStream() argument 95 mSocket = socket; in TCPStream()
|
D | gltrace_transport.h | 36 TCPStream(int socket);
|
/frameworks/base/docs/html/guide/topics/connectivity/ |
D | wifip2p.jd | 481 …<li>Create a {@link java.net.ServerSocket}. This socket waits for a connection from a client on a … 485 the server socket to connect to the server device.</li> 488 … socket successfully connects to the server socket, you can send data from the client to the server 491 …<li>The server socket waits for a client connection (with the {@link java.net.ServerSocket#accept(… 499 to create this client-server socket communication and transfer JPEG images from a client 518 * Create a server socket and wait for client connections. This 562 …<p>On the client, connect to the server socket with a client socket and transfer data. This example 570 Socket socket = new Socket(); 575 * Create a client socket with the host, 578 socket.bind(null); [all …]
|
D | bluetooth.jd | 102 <dd>Represents the interface for a Bluetooth socket (similar to a TCP 108 <dd>Represents an open server socket that listens for incoming requests 110 Android devices, one device must open a server socket with this class. When a 464 you want your application to host a server socket that will accept incoming 474 device must open a server socket and the other one must initiate the connection 494 server, so that each one has a server socket open and listening for connections. 497 a server socket on demand and the other device can simply initiate the 513 socket is to listen for incoming connection requests and when one is accepted, 534 <p>Here's the basic procedure to set up a server socket and accept a 557 registered with this listening server socket. When successful, {@link [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | ZygoteConnection.java | 84 ZygoteConnection(LocalSocket socket) throws IOException { in ZygoteConnection() argument 85 mSocket = socket; in ZygoteConnection() 88 = new DataOutputStream(socket.getOutputStream()); in ZygoteConnection() 91 new InputStreamReader(socket.getInputStream()), 256); in ZygoteConnection()
|
/frameworks/opt/net/voip/src/java/android/net/rtp/ |
D | AudioGroup.java | 162 private native int nativeAdd(int mode, int socket, String remoteAddress, in nativeAdd() argument
|
/frameworks/base/core/jni/ |
D | android_net_NetUtils.cpp | 246 static void android_net_utils_markSocket(JNIEnv *env, jobject thiz, jint socket, jint mark) in android_net_utils_markSocket() argument 248 if (setsockopt(socket, SOL_SOCKET, SO_MARK, &mark, sizeof(mark)) < 0) { in android_net_utils_markSocket()
|