/tools/test/connectivity/acts/framework/acts/controllers/utils_lib/ |
D | host_utils.py | 15 import socket 31 port = _try_bind(0, socket.SOCK_STREAM, socket.IPPROTO_TCP) 33 if port and _try_bind(port, socket.SOCK_DGRAM, socket.IPPROTO_UDP): 46 return (_try_bind(port, socket.SOCK_STREAM, socket.IPPROTO_TCP) and 47 _try_bind(port, socket.SOCK_DGRAM, socket.IPPROTO_UDP)) 51 s = socket.socket(socket.AF_INET, socket_type, socket_proto) 58 except socket.error:
|
/tools/test/connectivity/acts/framework/tests/ |
D | acts_host_utils_test.py | 17 import socket 29 test_s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) 38 test_s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
/tools/test/connectivity/acts_tests/tests/google/bt/power/ |
D | SetupBTPairingTest.py | 24 import socket 48 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 49 sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) 59 except socket.timeout: 61 except socket.error: 67 sock.shutdown(socket.SHUT_RDWR)
|
/tools/test/connectivity/acts_tests/tests/google/wifi/ |
D | SetupWifiNetworkTest.py | 18 import socket 33 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 34 sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) 44 except socket.timeout: 46 except socket.error: 50 sock.shutdown(socket.SHUT_RDWR)
|
D | WifiTetheringTest.py | 17 import socket 86 socket.inet_pton(socket.AF_INET6, ip_address) 88 except socket.error: 263 socket = sutils.open_datagram_socket(ad, local_ip, port) 264 sutils.send_recv_data_datagram_sockets(ad, ad, socket, socket, 266 sutils.close_datagram_socket(ad, socket)
|
/tools/test/connectivity/acts/framework/tests/controllers/rohdeschwarz_lib/ |
D | contest_test.py | 21 import socket 36 with closing(socket.socket(socket.AF_INET, socket.SOCK_STREAM)) as s: 38 s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) 81 with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
|
/tools/test/connectivity/acts/framework/acts/controllers/sl4a_lib/ |
D | sl4a_session.py | 16 import socket 196 client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 198 client_socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) 201 client_socket.bind((socket.gethostname(), ports.client_port)) 216 except socket.timeout: 220 except socket.error as e:
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/net/ |
D | ipsec_test_utils.py | 153 def apply_transport_mode_transforms_datagram_socket(ad, socket, transforms): argument 162 socket, cconst.DIRECTION_IN, transforms[0]) 164 socket, cconst.DIRECTION_OUT, transforms[1]) 172 def remove_transport_mode_transforms_datagram_socket(ad, socket): argument 179 status = ad.droid.ipSecRemoveTransportModeTransformsDatagramSocket(socket) 183 def apply_transport_mode_transforms_socket(ad, socket, transforms): argument 192 socket, cconst.DIRECTION_IN, transforms[0]) 194 socket, cconst.DIRECTION_OUT, transforms[1]) 202 def remove_transport_mode_transforms_socket(ad, socket): argument 209 status = ad.droid.ipSecRemoveTransportModeTransformsSocket(socket)
|
D | socket_test_utils.py | 235 def close_socket(ad, socket): argument 242 status = ad.droid.closeTcpSocket(socket) 246 def close_server_socket(ad, socket): argument 253 status = ad.droid.closeTcpServerSocket(socket) 257 def shutdown_socket(ad, socket): argument 264 fd = ad.droid.getFileDescriptorOfSocket(socket)
|
/tools/test/connectivity/acts/framework/acts/controllers/ |
D | abstract_inst.py | 18 import socket 74 self._socket = socket.create_connection( 81 except socket.timeout: 86 except socket.error: 109 except socket.timeout: 115 except socket.error: 148 except socket.timeout: 153 except socket.error: 177 self._socket.shutdown(socket.SHUT_RDWR)
|
D | packet_sender.py | 21 import socket 182 except socket.error as excpt: 204 except socket.error as excpt: 455 ndst_ip = socket.inet_pton(socket.AF_INET6, target_ip6) 457 node_mcast = socket.inet_ntop(socket.AF_INET6, nnode_mcast)
|
/tools/test/connectivity/acts/framework/tests/controllers/ |
D | abstract_inst_test.py | 18 import socket 41 mock_connect.side_effect = socket.timeout 51 mock_connect.side_effect = socket.error 73 test_inst._socket.sendall.side_effect = socket.timeout 83 test_inst._socket.sendall.side_effect = socket.error 104 test_inst._socket.recv.side_effect = socket.timeout 114 test_inst._socket.recv.side_effect = socket.error 128 mock_connect.return_value.shutdown.assert_called_with(socket.SHUT_RDWR)
|
/tools/test/connectivity/acts/framework/tests/controllers/sl4a_lib/ |
D | sl4a_session_test.py | 18 from socket import timeout 19 from socket import error as socket_error 83 with mock.patch('socket.socket') as socket: 90 socket.return_value = socket_instance 109 with mock.patch('socket.socket') as socket: 114 socket.return_value = socket_instance 130 with mock.patch('socket.socket') as socket: 135 socket.return_value = socket_instance 157 with mock.patch('socket.socket') as socket: 162 socket.return_value = socket_instance
|
/tools/test/connectivity/acts/framework/acts/controllers/uxm_lib/ |
D | uxm_cellular_simulator.py | 18 import socket 53 self._socket = socket.create_connection( 79 except socket.timeout as e: 181 self.socket = self._socket_connect(self.uxm_ip, self.UXM_SOCKET_PORT) 190 self.socket = self._socket_connect(self.uxm_ip, self.UXM_SOCKET_PORT) 272 self.socket.close() 296 self.socket = self._socket_connect(self.uxm_ip, self.UXM_SOCKET_PORT) 474 self.socket.sendall(self.SCPI_CHECK_CONNECTION_CMD.encode()) 475 response = self.socket.recv(1024).decode() 492 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) [all …]
|
/tools/netsim/scripts/ |
D | server_config.py | 24 import socket 49 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
D | utils.py | 23 import socket 138 st = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) 148 hostname = socket.gethostname()
|
/tools/treble/hacksaw/scripts/ |
D | install-service.sh | 14 cp ${SCRIPT_DIR}/hacksaw.socket /lib/systemd/system/hacksaw.socket 17 systemctl enable hacksaw.socket 21 systemctl start hacksaw.socket
|
D | uninstall-service.sh | 9 systemctl stop hacksaw.socket 12 systemctl disable hacksaw.socket 14 rm /lib/systemd/system/hacksaw.socket
|
/tools/test/connectivity/acts/framework/acts/controllers/anritsu_lib/ |
D | mg3710a.py | 21 import socket 56 self._sock = socket.create_connection((self._ipaddr, 49158), 62 except socket.timeout: 65 except socket.error: 98 except socket.timeout: 100 except socket.error: 122 except socket.timeout: 124 except socket.error:
|
/tools/test/connectivity/acts/framework/acts/controllers/fuchsia_lib/ |
D | base_lib.py | 18 import socket 83 except (TimeoutError, socket.timeout) as e: 88 if type(e) == socket.timeout:
|
D | package_server.py | 20 import socket 47 s = socket.socket()
|
/tools/acloud/internal/lib/ |
D | emulator_console.py | 21 import socket 73 self._socket = socket.create_connection( 100 self._socket = socket.create_connection(
|
D | utils.py | 32 import socket 784 tcp_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 800 tcp_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 803 except socket.error as port_error:
|
/tools/test/connectivity/acts/framework/acts/ |
D | utils.py | 32 import socket 1364 socket.inet_pton(socket.AF_INET, address) 1367 socket.inet_aton(address) 1368 except socket.error: 1371 except socket.error: # not a valid address 1381 socket.inet_pton(socket.AF_INET6, address) 1382 except socket.error: # not a valid address 1872 if addr.family == socket.AF_INET6 and ipaddress.ip_address(
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | SubprocessTestResultsParserTest.java | 282 Socket socket = null; in testParser_receiveFromSocket() local 286 socket = new Socket("localhost", resultParser.getSocketServerPort()); in testParser_receiveFromSocket() 287 if (!socket.isConnected()) { in testParser_receiveFromSocket() 290 PrintWriter out = new PrintWriter(socket.getOutputStream(), true); in testParser_receiveFromSocket() 302 StreamUtil.close(socket); in testParser_receiveFromSocket() 317 StreamUtil.close(socket); in testParser_receiveFromSocket()
|