Home
last modified time | relevance | path

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

/tools/test/connectivity/acts/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/src/com/android/tradefed/util/
DAlarm.java75 for (Socket sock : mInterruptSockets) { in run()
77 sock.close(); in run()
/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/prod-tests/src/com/android/ota/tests/
DSideloadOtaStabilityTest.java533 try (ServerSocket sock = new ServerSocket(0)) { in getFreePort() argument
534 return sock.getLocalPort(); in getFreePort()