/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 explicit CmdDownload(ClientSocket& socket) in CmdDownload() argument 106 : AudioProtocol(socket, ECmdDownload) {}; in CmdDownload() 114 explicit CmdStartPlayback(ClientSocket& socket) in CmdStartPlayback() argument 115 : AudioProtocol(socket, ECmdStartPlayback) {}; in CmdStartPlayback() 122 explicit CmdStopPlayback(ClientSocket& socket) in CmdStopPlayback() argument 123 : AudioProtocol(socket, ECmdStopPlayback) {}; in CmdStopPlayback() 129 explicit CmdStartRecording(ClientSocket& socket) in CmdStartRecording() argument [all …]
|
/cts/tests/location/location_gnss/src/android/location/cts/gnss/suplClient/ |
D | SuplTcpClient.java | 38 private Socket socket; field in SuplTcpClient 44 socket = new Socket(suplServerName, suplServerPort); in SuplTcpClient() 45 socket.setSoTimeout(READ_TIMEOUT_MILLIS); in SuplTcpClient() 46 System.out.println("Connection established to " + socket.getOutputStream()); in SuplTcpClient() 47 bufferedInputStream = new BufferedInputStream(socket.getInputStream()); in SuplTcpClient() 53 socket.getOutputStream().write(data); in sendSuplRequest() 76 socket.close(); in closeSocket()
|
/cts/tests/tests/netpermission/updatestatspermission/src/android/net/cts/network/permission/ |
D | UpdateStatsPermissionTest.java | 55 Socket socket = new Socket("example.com", 80); in testUpdateDeviceStatsPermission() local 56 TrafficStats.tagSocket(socket); in testUpdateDeviceStatsPermission() 62 socket.setTcpNoDelay(true); in testUpdateDeviceStatsPermission() 63 socket.setSoLinger(true, 0); in testUpdateDeviceStatsPermission() 64 OutputStream out = socket.getOutputStream(); in testUpdateDeviceStatsPermission() 69 socket.close(); in testUpdateDeviceStatsPermission()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/vpn/ |
D | VpnTestHelper.java | 184 FileDescriptor socket = Os.socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP); in checkPing() local 193 Os.connect(socket, InetAddress.getByName(host), port); in checkPing() 194 Os.write(socket, echo, 0, echo.length); in checkPing() 199 pollfd.fd = socket; in checkPing() 204 int read = Os.read(socket, reply, 0, echo.length); in checkPing() 214 InetSocketAddress local = (InetSocketAddress) Os.getsockname(socket); in checkPing() 228 Os.close(socket); in checkPing() 232 FileDescriptor socket = null; in tryPosixConnect() local 234 socket = Os.socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP); in tryPosixConnect() 236 Os.connect(socket, InetAddress.getByName(host), port); in tryPosixConnect() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/AppWithData/src/com/android/cts/appwithdata/ |
D | MyProvider.java | 132 final Socket socket = server.accept(); in run() local 133 socket.setTcpNoDelay(true); in run() 134 final int val = socket.getInputStream().read(); in run() 135 socket.getOutputStream().write(val); in run() 136 socket.getOutputStream().flush(); in run() 137 socket.close(); in run()
|
/cts/hostsidetests/appsecurity/test-apps/AppAccessData/src/com/android/cts/appaccessdata/ |
D | AccessPrivateDataTest.java | 186 final Socket socket = new Socket(); in testTrafficStatsStatsUidSelf() local 187 socket.setTcpNoDelay(true); in testTrafficStatsStatsUidSelf() 190 extras.putParcelable("fd", ParcelFileDescriptor.fromSocket(socket)); in testTrafficStatsStatsUidSelf() 193 socket.connect(new InetSocketAddress("localhost", port)); in testTrafficStatsStatsUidSelf() 195 socket.getOutputStream().write(42); in testTrafficStatsStatsUidSelf() 196 socket.getOutputStream().flush(); in testTrafficStatsStatsUidSelf() 197 final int val = socket.getInputStream().read(); in testTrafficStatsStatsUidSelf() 199 socket.close(); in testTrafficStatsStatsUidSelf()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | BluetoothChatService.java | 219 public synchronized void connected(BluetoothSocket socket, BluetoothDevice in connected() argument 240 mConnectedThread = new ConnectedThread(socket, socketType); in connected() 370 BluetoothSocket socket = null; in run() local 377 socket = mmServerSocket.accept(); in run() 384 if (socket != null) { in run() 390 mSocketConnectionType = socket.getConnectionType(); in run() 391 connected(socket, socket.getRemoteDevice(), in run() 398 socket.close(); in run() 531 public ConnectedThread(BluetoothSocket socket, String socketType) { in ConnectedThread() argument 533 mmSocket = socket; in ConnectedThread() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/UseProcessSuccess/src/com/android/cts/useprocess/ |
D | BaseNetworkService.java | 104 Socket socket = new Socket("example.com", 80); 105 socket.close(); 172 Socket socket = new Socket("localhost", server.getLocalPort()); 173 OutputStream out = socket.getOutputStream(); 180 socket.close(); 190 Socket socket = server.accept(); 191 InputStream in = socket.getInputStream();
|
/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/theme/ |
D | avd.py | 20 import socket 29 s = socket.socket()
|
/cts/tests/tests/os/assets/minijail/ |
D | isolated-common-not-i386.policy | 33 # socket: domain==AF_UNIX && protocol == 0 34 socket: arg0 == 1 && arg2 == 0
|
/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/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | BluetoothTest.java | 84 BluetoothServerSocket socket = mAdapter.listenUsingRfcommWithServiceRecord( in testListenUsingRfcommWithServiceRecord() local 86 assertNotNull(socket); in testListenUsingRfcommWithServiceRecord() 87 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/selinux/common/jni/ |
D | android_security_SELinuxTargetSdkTest.cpp | 43 int sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in checkNetlinkRouteGetlink() 74 int sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in checkNetlinkRouteBind()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-10229/ |
D | poc.c | 33 s = socket(AF_INET6, SOCK_DGRAM, IPPROTO_IP); in udp_send() 53 s = socket(AF_INET6, SOCK_DGRAM, IPPROTO_IP); in udp_recv()
|
/cts/tests/tests/netpermission/internetpermission/src/android/net/cts/network/permission/ |
D | InternetPermissionTest.java | 44 Socket socket = new Socket("example.com", 80); in testCreateSocket() local
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifiaware/testcase/ |
D | DataPathInBandTestCase.java | 252 Socket socket = info.first.getSocketFactory().createSocket(peerIpv6, peerPort); in executeTestSubscriber() local 256 OutputStream os = socket.getOutputStream(); in executeTestSubscriber() 262 InputStream is = socket.getInputStream(); in executeTestSubscriber() 326 Socket socket = server.accept(); in executeTestPublisher() 328 InputStream is = socket.getInputStream(); in executeTestPublisher() 355 OutputStream os = socket.getOutputStream(); in executeTestPublisher()
|
/cts/apps/CameraITS/utils/ |
D | its_session_utils.py | 23 import socket 128 socket_lock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 133 except (socket.error, socket.timeout): 179 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaPlayerFlakyNetworkTest.java | 292 Socket socket, int buffersize, HttpParams params) throws IOException { in createHttpDataTransmitter() argument 293 return createSessionOutputBuffer(socket, buffersize, params); in createHttpDataTransmitter() 297 Socket socket, int buffersize, HttpParams params) throws IOException { in createSessionOutputBuffer() argument 298 return new SocketOutputBuffer(socket, buffersize, params) { in createSessionOutputBuffer()
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | BasicAdapterTest.java | 246 BluetoothServerSocket socket = adapter.listenUsingRfcommWithServiceRecord( in test_listenUsingRfcommWithServiceRecord() local 248 assertNotNull(socket); in test_listenUsingRfcommWithServiceRecord() 249 socket.close(); in test_listenUsingRfcommWithServiceRecord()
|
/cts/hostsidetests/cpptools/test-apps/ConnectorNativeProgram/ |
D | connector.cpp | 46 if ((fd = socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0)) == -1) { in main()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-0844/ |
D | poc.c | 72 if ((sockfd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { in main()
|
/cts/hostsidetests/appsecurity/test-apps/ListeningPortsApp/src/android/appsecurity/cts/listeningports/ |
D | ListeningPortsTest.java | 149 Socket socket = new Socket(); in isTcpConnectable() local 155 socket.connect(new InetSocketAddress(address, port), CONN_TIMEOUT_IN_MS); in isTcpConnectable() 163 socket.close(); in isTcpConnectable()
|