Home
last modified time | relevance | path

Searched refs:sock (Results 1 – 7 of 7) sorted by relevance

/tools/test/connectivity/acts_tests/tests/google/bt/power/
DSetupBTPairingTest.py48 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
49 sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
53 sock.bind(('localhost', port))
54 sock.settimeout(timeout)
55 sock.listen(1)
58 connection, client_address = sock.accept()
66 if sock is not None:
67 sock.shutdown(socket.SHUT_RDWR)
68 sock.close()
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/net/
Dsocket_test_utils.py72 sock = server.droid.acceptSocket(server_fd)
73 asserts.assert_true(sock, "Failed to accept socket")
74 return sock
172 sock = server.droid.acceptTcpSocket(server_sock)
173 server.log.info("Server socket: %s" % sock)
174 q.put(sock)
179 sock = client.droid.openTcpSocket(server_ip, server_port, client_ip,
181 client.log.info("Client socket: %s" % sock)
182 q.put(sock)
229 sock = server.droid.openTcpServerSocket(server_ip, server_port)
[all …]
/tools/test/connectivity/acts_tests/tests/google/wifi/
DSetupWifiNetworkTest.py33 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
34 sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
38 sock.bind(('localhost', port))
39 sock.settimeout(timeout)
40 sock.listen(1)
43 connection, client_address = sock.accept()
50 sock.shutdown(socket.SHUT_RDWR)
51 sock.close()
/tools/test/connectivity/acts_tests/tests/google/net/
DSocketKeepaliveTest.py129 for sock in self.tcp_sockets:
130 sutils.shutdown_socket(self.dut, sock)
313 sock = self.dut.droid.openTcpSocket(server_ip,
317 asserts.assert_true(sock, "Failed to open TCP socket")
318 self.log.info("Socket key: %s" % sock)
319 self.tcp_sockets.append(sock)
320 cport_server = self.dut.droid.tcpSocketRecv(sock)
323 return sock, cport_server
325 def _start_tcp_keepalive(self, sock, time_interval, expect_ka_start=True): argument
337 sock,
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/util/net/
DHttpHelperFuncTest.java150 Socket sock = mSS.accept(); in run() local
152 OutputStream oStream = sock.getOutputStream(); in run()
156 sock.close(); in run()
/tools/treble/hacksaw/scripts/
Dhacksaw.socket2 ListenStream=/var/run/hacksaw.sock
/tools/tradefederation/core/javatests/res/testtype/
Dpython_output1.txt36 sock.sendall(b"%04x%s" % (len(command), command))