Home
last modified time | relevance | path

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

/cts/apps/CameraITS/pymodules/its/
Ddevice.py177 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
178 self.sock.connect((self.IPADDR, port))
179 self.sock.settimeout(self.SOCK_TIMEOUT)
232 if hasattr(self, 'sock') and self.sock:
234 self.sock.close()
241 ch = self.sock.recv(1)
255 nbytes = self.sock.recv_into(view, n)
268 self.sock.send(json.dumps(cmd) + "\n")
275 self.sock.send(json.dumps(cmd) + "\n")
298 self.sock.send(json.dumps(cmd) + "\n")
[all …]
/cts/tests/tests/net/src/android/net/cts/
DIpSecBaseTest.java90 protected static int getPort(FileDescriptor sock) throws Exception { in getPort() argument
91 return ((InetSocketAddress) Os.getsockname(sock)).getPort(); in getPort()
320 for (NativeUdpSocket sock : new NativeUdpSocket[] {leftSock, rightSock}) { in getNativeUdpSocketPair()
321 applyTransformBidirectionally(ism, transform, sock); in getNativeUdpSocketPair()
322 Os.bind(sock.mFd, localAddr, 0); in getNativeUdpSocketPair()
DIpSecManagerTest.java124 FileDescriptor sock = in getBoundUdpSocket() local
130 Os.bind(sock, address, port); in getBoundUdpSocket()
144 return sock; in getBoundUdpSocket()