Searched refs:sock (Results 1 – 5 of 5) sorted by relevance
/tools/test/connectivity/acts/tests/google/bt/power/ |
D | SetupBTPairingTest.py | 49 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/ |
D | SetupWifiNetworkTest.py | 34 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/ |
D | Alarm.java | 75 for (Socket sock : mInterruptSockets) { in run() 77 sock.close(); in run()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/net/ |
D | HttpHelperFuncTest.java | 150 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/ |
D | SideloadOtaStabilityTest.java | 533 try (ServerSocket sock = new ServerSocket(0)) { in getFreePort() argument 534 return sock.getLocalPort(); in getFreePort()
|