/cts/tests/tests/net/src/android/net/cts/ |
D | LocalSocketTest.java | 115 LocalSocket socket = new LocalSocket(); in testAccessors() local 118 assertFalse(socket.isBound()); in testAccessors() 119 socket.bind(addr); in testAccessors() 120 assertTrue(socket.isBound()); in testAccessors() 121 assertEquals(addr, socket.getLocalSocketAddress()); in testAccessors() 123 String str = socket.toString(); in testAccessors() 126 socket.setReceiveBufferSize(1999); in testAccessors() 127 assertEquals(1999 << 1, socket.getReceiveBufferSize()); in testAccessors() 129 socket.setSendBufferSize(3998); in testAccessors() 130 assertEquals(3998 << 1, socket.getSendBufferSize()); in testAccessors() [all …]
|
D | VpnServiceTest.java | 64 DatagramSocket socket = new DatagramSocket(); in testProtect_DatagramSocket() local 67 assertFalse(mVpnService.protect(socket)); in testProtect_DatagramSocket() 70 socket.close(); in testProtect_DatagramSocket() 78 Socket socket = new Socket(); in testProtect_Socket() local 81 assertFalse(mVpnService.protect(socket)); in testProtect_Socket() 84 socket.close(); in testProtect_Socket() 92 DatagramSocket socket = new DatagramSocket(); in testProtect_int() local 93 ParcelFileDescriptor descriptor = ParcelFileDescriptor.fromDatagramSocket(socket); in testProtect_int() 104 socket.close(); in testProtect_int()
|
D | SSLCertificateSocketFactoryTest.java | 76 Socket socket = new Socket(); in testCreateSocket() local 77 mFactory.createSocket(socket, host, port, true); in testCreateSocket() 82 Socket socket = null; in testCreateSocket() local 83 socket = mFactory.createSocket(host, port); in testCreateSocket() 84 assertNotNull(socket); in testCreateSocket() 85 assertNotNull(socket.getOutputStream()); in testCreateSocket() 86 assertNotNull(socket.getInputStream()); in testCreateSocket()
|
D | TrafficStatsTest.java | 127 Socket socket = new Socket("localhost", server.getLocalPort()); in testTrafficStatsForLocalhost() local 130 socket.setTcpNoDelay(true); in testTrafficStatsForLocalhost() 131 OutputStream out = socket.getOutputStream(); in testTrafficStatsForLocalhost() 134 TrafficStats.tagSocket(socket); in testTrafficStatsForLocalhost() 147 socket.close(); in testTrafficStatsForLocalhost() 157 Socket socket = server.accept(); in testTrafficStatsForLocalhost() local 158 socket.setTcpNoDelay(true); in testTrafficStatsForLocalhost() 160 TrafficStats.tagSocket(socket); in testTrafficStatsForLocalhost() 161 InputStream in = socket.getInputStream(); in testTrafficStatsForLocalhost()
|
/cts/suite/audio_quality/lib/include/audio/ |
D | AudioProtocol.h | 79 static bool handleReplyHeader(ClientSocket& socket, uint32_t* data, CommandId& id); 82 AudioProtocol(ClientSocket& socket, uint32_t command) in AudioProtocol() argument 84 mSocket(socket) {}; in AudioProtocol() 105 CmdDownload(ClientSocket& socket) in CmdDownload() argument 106 : AudioProtocol(socket, ECmdDownload) {}; in CmdDownload() 114 CmdStartPlayback(ClientSocket& socket) in CmdStartPlayback() argument 115 : AudioProtocol(socket, ECmdStartPlayback) {}; in CmdStartPlayback() 122 CmdStopPlayback(ClientSocket& socket) in CmdStopPlayback() argument 123 : AudioProtocol(socket, ECmdStopPlayback) {}; in CmdStopPlayback() 129 CmdStartRecording(ClientSocket& socket) in CmdStartRecording() argument [all …]
|
D | RemoteAudio.h | 43 RemoteAudio(ClientSocket& socket);
|
/cts/tests/tests/security/src/android/security/cts/ |
D | OpenSSLEarlyCCSTest.java | 241 SSLSocket socket = (SSLSocket) sslContext.getSocketFactory().createSocket(); in clientConnectAndHandshake() local 242 setClientSocket(socket); in clientConnectAndHandshake() 245 socket.connect(serverAddress); in clientConnectAndHandshake() 246 Log.i(TAG, "Client connected to server from " + socket.getLocalSocketAddress()); in clientConnectAndHandshake() 248 socket.getOutputStream().write("client".getBytes()); in clientConnectAndHandshake() 249 socket.getOutputStream().flush(); in clientConnectAndHandshake() 251 int b = socket.getInputStream().read(); in clientConnectAndHandshake() 258 socket.close(); in clientConnectAndHandshake() 288 SSLSocket socket = null; in serverAcceptAndHandshake() local 292 socket = (SSLSocket) serverSocket.accept(); in serverAcceptAndHandshake() [all …]
|
D | OpenSSLHeartbleedTest.java | 244 SSLSocket socket = (SSLSocket) sslContext.getSocketFactory().createSocket(); in clientConnectAndHandshake() local 245 setClientSocket(socket); in clientConnectAndHandshake() 248 socket.connect(serverAddress); in clientConnectAndHandshake() 249 Log.i(TAG, "Client connected to server from " + socket.getLocalSocketAddress()); in clientConnectAndHandshake() 251 socket.getOutputStream().write("client".getBytes()); in clientConnectAndHandshake() 252 socket.getOutputStream().flush(); in clientConnectAndHandshake() 254 int b = socket.getInputStream().read(); in clientConnectAndHandshake() 260 socket.close(); in clientConnectAndHandshake() 290 SSLSocket socket = null; in serverAcceptAndHandshake() local 294 socket = (SSLSocket) serverSocket.accept(); in serverAcceptAndHandshake() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | BluetoothChatService.java | 165 public synchronized void connected(BluetoothSocket socket, BluetoothDevice in connected() argument 186 mConnectedThread = new ConnectedThread(socket, socketType); in connected() 300 BluetoothSocket socket = null; in run() local 307 socket = mmServerSocket.accept(); in run() 314 if (socket != null) { in run() 320 connected(socket, socket.getRemoteDevice(), in run() 327 socket.close(); in run() 434 public ConnectedThread(BluetoothSocket socket, String socketType) { in ConnectedThread() argument 436 mmSocket = socket; in ConnectedThread() 442 tmpIn = socket.getInputStream(); in ConnectedThread() [all …]
|
/cts/tests/tests/net/src/android/net/rtp/cts/ |
D | AudioGroupTest.java | 77 private void assertPacket(DatagramSocket socket, int length) throws Exception { in assertPacket() argument 79 socket.setSoTimeout(3000); in assertPacket() 80 socket.receive(packet); in assertPacket() 84 private void drain(DatagramSocket socket) throws Exception { in drain() argument 86 socket.setSoTimeout(1); in drain() 91 socket.receive(packet); in drain()
|
/cts/suite/audio_quality/test_description/ |
D | processing_main.py | 20 import socket 208 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 209 s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
/cts/hostsidetests/appsecurity/test-apps/AppWithData/src/com/android/cts/appwithdata/ |
D | CreatePrivateDataTest.java | 209 Socket socket = new Socket("localhost", server.getLocalPort()); in createTrafficStatsWithTags() local 212 socket.setTcpNoDelay(true); in createTrafficStatsWithTags() 213 OutputStream out = socket.getOutputStream(); in createTrafficStatsWithTags() 217 TrafficStats.tagSocket(socket); in createTrafficStatsWithTags() 222 socket.close(); in createTrafficStatsWithTags() 230 Socket socket = server.accept(); in createTrafficStatsWithTags() local 231 InputStream in = socket.getInputStream(); in createTrafficStatsWithTags()
|
/cts/suite/audio_quality/lib/src/audio/ |
D | RemoteAudio.cpp | 29 RemoteAudio::RemoteAudio(ClientSocket& socket) in RemoteAudio() argument 31 mSocket(socket), in RemoteAudio() 38 mCmds[AudioProtocol::ECmdDownload - AudioProtocol::ECmdStart] = new CmdDownload(socket); in RemoteAudio() 40 new CmdStartPlayback(socket); in RemoteAudio() 42 new CmdStopPlayback(socket); in RemoteAudio() 44 new CmdStartRecording(socket); in RemoteAudio() 46 new CmdStopRecording(socket); in RemoteAudio() 48 new CmdGetDeviceInfo(socket); in RemoteAudio()
|
D | AudioProtocol.cpp | 52 bool AudioProtocol::handleReplyHeader(ClientSocket& socket, uint32_t* data, CommandId& id) in handleReplyHeader() argument 54 if (!socket.readData((char*)data, REPLY_HEADER_SIZE)) { in handleReplyHeader()
|
/cts/apps/CameraITS/pymodules/its/ |
D | device.py | 23 import socket 95 socket_lock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 100 except socket.error: 157 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | BluetoothTest.java | 85 BluetoothServerSocket socket = mAdapter.listenUsingRfcommWithServiceRecord( in testListenUsingRfcommWithServiceRecord() local 87 assertNotNull(socket); in testListenUsingRfcommWithServiceRecord() 88 socket.close(); in testListenUsingRfcommWithServiceRecord()
|
/cts/apps/CtsVerifier/assets/scripts/ |
D | execute_power_tests.py | 23 import socket 193 dummysocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 210 link = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 216 except socket.error as serr: 776 except socket.error:
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaPlayerFlakyNetworkTest.java | 293 Socket socket, int buffersize, HttpParams params) throws IOException { in createHttpDataTransmitter() argument 294 return createSessionOutputBuffer(socket, buffersize, params); in createHttpDataTransmitter() 298 Socket socket, int buffersize, HttpParams params) throws IOException { in createSessionOutputBuffer() argument 299 return new SocketOutputBuffer(socket, buffersize, params) { in createSessionOutputBuffer()
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | BasicAdapterTest.java | 215 BluetoothServerSocket socket = adapter.listenUsingRfcommWithServiceRecord( in test_listenUsingRfcommWithServiceRecord() local 217 assertNotNull(socket); in test_listenUsingRfcommWithServiceRecord() 218 socket.close(); in test_listenUsingRfcommWithServiceRecord()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | ParcelFileDescriptorTest.java | 102 Socket socket; in testFromSocket() local 103 socket = new Socket(InetAddress.getLocalHost(), PORT); in testFromSocket() 104 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromSocket(socket); in testFromSocket() 108 socket.close(); in testFromSocket()
|
/cts/tests/tests/net/jni/ |
D | NativeMultinetworkJni.c | 76 int fd = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP); in Java_android_net_cts_MultinetworkApiTest_runSetsocknetwork() 136 int fd = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | KeyChainTest.java | 356 public String chooseClientAlias(String[] keyTypes, Principal[] issuers, Socket socket) { in chooseClientAlias() argument 361 socket.getInetAddress().getHostName(), socket.getPort(), in chooseClientAlias() 375 Socket socket) { in chooseServerAlias() argument
|
/cts/libs/testserver/src/android/webkit/cts/ |
D | CtsTestServer.java | 235 Socket socket = null; in shutdown() local 237 socket = new Socket(url.getHost(), url.getPort()); in shutdown() 238 socket.getOutputStream().write( in shutdown() 240 socket.getOutputStream().flush(); in shutdown() 242 if (socket != null) { in shutdown() 244 socket.close(); in shutdown() 1017 Socket socket = mSocket.accept(); in run() local 1022 conn.bind(socket, params); in run()
|
/cts/tests/tests/net/src/android/net/wifi/cts/ |
D | NsdManagerTest.java | 266 ServerSocket socket; in runTest() local 270 socket = new ServerSocket(0); in runTest() 271 localPort = socket.getLocalPort(); in runTest()
|
/cts/suite/audio_quality/lib/src/ |
D | ClientSocket.cpp | 43 mSocket = socket(AF_INET, SOCK_STREAM, 0); in init()
|