Home
last modified time | relevance | path

Searched refs:socket (Results 1 – 25 of 38) sorted by relevance

12

/cts/suite/audio_quality/lib/include/audio/
DAudioProtocol.h79 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/
DSuplTcpClient.java38 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/
DUpdateStatsPermissionTest.java55 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/
DVpnTestHelper.java184 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/
DMyProvider.java132 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/
DAccessPrivateDataTest.java186 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/
DBluetoothChatService.java219 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/
DBaseNetworkService.java104 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/
Dprocessing_main.py20 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/
Davd.py20 import socket
29 s = socket.socket()
/cts/tests/tests/os/assets/minijail/
Disolated-common-not-i386.policy33 # socket: domain==AF_UNIX && protocol == 0
34 socket: arg0 == 1 && arg2 == 0
/cts/suite/audio_quality/lib/src/audio/
DRemoteAudio.cpp29 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()
DAudioProtocol.cpp52 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/
DBluetoothTest.java84 BluetoothServerSocket socket = mAdapter.listenUsingRfcommWithServiceRecord( in testListenUsingRfcommWithServiceRecord() local
86 assertNotNull(socket); in testListenUsingRfcommWithServiceRecord()
87 socket.close(); in testListenUsingRfcommWithServiceRecord()
/cts/apps/CtsVerifier/assets/scripts/
Dexecute_power_tests.py23 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/
Dandroid_security_SELinuxTargetSdkTest.cpp43 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/
Dpoc.c33 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/
DInternetPermissionTest.java44 Socket socket = new Socket("example.com", 80); in testCreateSocket() local
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifiaware/testcase/
DDataPathInBandTestCase.java252 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/
Dits_session_utils.py23 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/
DMediaPlayerFlakyNetworkTest.java292 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/
DBasicAdapterTest.java246 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/
Dconnector.cpp46 if ((fd = socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0)) == -1) { in main()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-0844/
Dpoc.c72 if ((sockfd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { in main()
/cts/hostsidetests/appsecurity/test-apps/ListeningPortsApp/src/android/appsecurity/cts/listeningports/
DListeningPortsTest.java149 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()

12