Home
last modified time | relevance | path

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

/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/test/connectivity/acts/framework/acts/test_utils/net/
Dsocket_test_utils.py74 sock = server.droid.acceptSocket(server_fd)
75 asserts.assert_true(sock, "Failed to accept socket")
76 return sock
175 sock = server.droid.acceptTcpSocket(server_sock)
176 server.log.info("Server socket: %s" % sock)
177 q.put(sock)
181 sock = client.droid.openTcpSocket(server_ip,
185 client.log.info("Client socket: %s" % sock)
186 q.put(sock)
236 sock = server.droid.openTcpServerSocket(server_ip, server_port)
[all …]
/tools/test/connectivity/acts_tests/tests/google/bt/power/
DSetupBTPairingTest.py49 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
50 sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
54 sock.bind(('localhost', port))
55 sock.settimeout(timeout)
56 sock.listen(1)
59 connection, client_address = sock.accept()
67 if sock is not None:
68 sock.shutdown(socket.SHUT_RDWR)
69 sock.close()
/tools/test/connectivity/acts/tests/google/wifi/
DSetupWifiNetworkTest.py34 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
35 sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
39 sock.bind(('localhost', port))
40 sock.settimeout(timeout)
41 sock.listen(1)
44 connection, client_address = sock.accept()
51 sock.shutdown(socket.SHUT_RDWR)
52 sock.close()
/tools/tradefederation/core/tests/src/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/tradefederation/core/tests/res/testtype/
Dpython_output1.txt36 sock.sendall(b"%04x%s" % (len(command), command))