Home
last modified time | relevance | path

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

/tools/test/connectivity/acts/framework/acts/controllers/utils_lib/
Dhost_utils.py15 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/
Dacts_host_utils_test.py17 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/google/bt/power/
DSetupBTPairingTest.py25 import socket
49 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
50 sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
60 except socket.timeout:
62 except socket.error:
68 sock.shutdown(socket.SHUT_RDWR)
/tools/test/connectivity/acts/tests/google/wifi/
DSetupWifiNetworkTest.py18 import socket
34 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
35 sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
45 except socket.timeout:
47 except socket.error:
51 sock.shutdown(socket.SHUT_RDWR)
DWifiTetheringTest.py18 import socket
88 socket.inet_pton(socket.AF_INET6, ip_address)
90 except socket.error:
260 socket = sutils.open_datagram_socket(ad, local_ip, port)
262 ad, ad, socket, socket, remote_ip, port)
263 sutils.close_datagram_socket(ad, socket)
/tools/test/connectivity/acts/framework/acts/controllers/sl4a_lib/
Dsl4a_session.py16 import socket
156 client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
158 client_socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
161 client_socket.bind((socket.gethostname(), ports.client_port))
176 except socket.timeout:
180 except socket.error as e:
Drpc_connection.py17 import socket
85 except socket.timeout as e:
/tools/test/connectivity/acts/framework/tests/controllers/sl4a_lib/
Dsl4a_session_test.py18 from socket import timeout
19 from socket import error as socket_error
81 with mock.patch('socket.socket') as socket:
88 socket.return_value = socket_instance
107 with mock.patch('socket.socket') as socket:
112 socket.return_value = socket_instance
128 with mock.patch('socket.socket') as socket:
133 socket.return_value = socket_instance
155 with mock.patch('socket.socket') as socket:
160 socket.return_value = socket_instance
/tools/test/connectivity/acts/framework/acts/test_utils/net/
Dipsec_test_utils.py148 def apply_transport_mode_transforms_datagram_socket(ad, socket, transforms): argument
157 socket, cconst.DIRECTION_IN, transforms[0])
159 socket, cconst.DIRECTION_OUT, transforms[1])
166 def remove_transport_mode_transforms_datagram_socket(ad, socket): argument
173 status = ad.droid.ipSecRemoveTransportModeTransformsDatagramSocket(socket)
176 def apply_transport_mode_transforms_socket(ad, socket, transforms): argument
185 socket, cconst.DIRECTION_IN, transforms[0])
187 socket, cconst.DIRECTION_OUT, transforms[1])
194 def remove_transport_mode_transforms_socket(ad, socket): argument
201 status = ad.droid.ipSecRemoveTransportModeTransformsSocket(socket)
/tools/test/connectivity/acts/framework/acts/controllers/anritsu_lib/
Dmg3710a.py21 import socket
56 self._sock = socket.create_connection(
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/
Dpacket_sender.py21 import socket
174 except socket.error as excpt:
196 except socket.error as excpt:
438 ndst_ip = socket.inet_pton(socket.AF_INET6, target_ip6)
440 node_mcast = socket.inet_ntop(socket.AF_INET6, nnode_mcast)
Dnative.py20 import socket
Dandroid_device.py26 import socket
1205 socket.inet_aton(ip_address)
1207 except socket.error:
1228 socket.inet_aton(ipv4_gateway)
1230 except socket.error:
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DSubprocessTestResultsParserTest.java280 Socket socket = null; in testParser_receiveFromSocket() local
284 socket = new Socket("localhost", resultParser.getSocketServerPort()); in testParser_receiveFromSocket()
285 if (!socket.isConnected()) { in testParser_receiveFromSocket()
288 PrintWriter out = new PrintWriter(socket.getOutputStream(), true); in testParser_receiveFromSocket()
300 StreamUtil.close(socket); in testParser_receiveFromSocket()
305 StreamUtil.close(socket); in testParser_receiveFromSocket()
/tools/acloud/internal/lib/
Dbase_cloud_client.py24 import socket
60 socket.error, ssl.SSLError)
/tools/test/connectivity/acts/tests/google/net/
DDataCostTest.py19 import socket
DDnsOverTlsTest.py19 import socket
/tools/test/connectivity/acts/tests/google/tel/live/
DTelLiveMobilityStressTest.py72 import socket
/tools/tradefederation/core/res/jacoco/
Djacocoagent.jarMETA-INF/MANIFEST.MF META-INF/MTNMINDS.SF META-INF/MTNMINDS ...
Djacocoant.jarMETA-INF/MANIFEST.MF META-INF/MTNMINDS.SF META-INF/MTNMINDS ...