Home
last modified time | relevance | path

Searched refs:mSocket (Results 1 – 15 of 15) sorted by relevance

/cts/suite/audio_quality/lib/src/
DClientSocket.cpp29 : mSocket(-1), in ClientSocket()
43 mSocket = socket(AF_INET, SOCK_STREAM, 0); in init()
44 if (mSocket < 0) { in init()
49 if (setsockopt(mSocket, SOL_SOCKET, SO_REUSEADDR, &reuse, sizeof(reuse)) == -1) { in init()
64 if (connect(mSocket, (struct sockaddr *)&serverAddr, sizeof(serverAddr)) < 0) { in init()
83 flOriginal = fcntl(mSocket, F_GETFL,0); in readData()
88 if (fcntl(mSocket, F_SETFL, flOriginal | O_NONBLOCK) == -1) { in readData()
105 FD_SET(mSocket, &rfds); in readData()
106 if (select(mSocket + 1, &rfds, NULL, NULL, &tv) == -1) { in readData()
111 if (!FD_ISSET(mSocket, &rfds)) { in readData()
[all …]
DSignalProcessingImpl.cpp54 if (mSocket.get() != NULL) { in ~SignalProcessingImpl()
57 mSocket->release(); in ~SignalProcessingImpl()
91 mSocket.reset(new ClientSocket()); in init()
92 if (mSocket.get() == NULL) { in init()
96 if (mSocket->init("127.0.0.1", SCRIPT_PORT, true)) { in init()
104 mSocket.reset(NULL); in init()
244 return mSocket->sendData(data, len); in send()
251 return mSocket->readData(data, len, READ_TIMEOUT_MS); in read()
DClientImpl.h35 return mSocket; in getSocket()
43 ClientSocket mSocket;
DClientImpl.cpp24 : mAudio(new RemoteAudio(mSocket)) in ClientImpl()
DSignalProcessingImpl.h49 std::unique_ptr<ClientSocket> mSocket; variable
/cts/tests/tests/net/src/android/net/cts/
DIpSecBaseTest.java209 public final DatagramSocket mSocket; field in IpSecBaseTest.JavaUdpSocket
213 mSocket = new DatagramSocket(port, localAddr); in JavaUdpSocket()
214 mSocket.setSoTimeout(SOCK_TIMEOUT); in JavaUdpSocket()
224 mSocket = new DatagramSocket(0, localAddr); in JavaUdpSocket()
225 mSocket.setSoTimeout(SOCK_TIMEOUT); in JavaUdpSocket()
235 mSocket.send(new DatagramPacket(data, data.length)); in send()
240 mSocket.send(new DatagramPacket(data, data.length, dstAddr, port)); in sendTo()
245 return mSocket.getLocalPort(); in getPort()
250 mSocket.close(); in close()
256 mSocket.receive(data); in receive()
[all …]
DIpSecManagerTunnelTest.java271 ipsecNetwork.bindSocket(socket.mSocket); in getIpSecTunnelTestRunnable()
277 socket.mSocket, IpSecManager.DIRECTION_IN, inTransportTransform); in getIpSecTunnelTestRunnable()
279 socket.mSocket, IpSecManager.DIRECTION_OUT, outTransportTransform); in getIpSecTunnelTestRunnable()
318 ipsecNetwork.bindSocket(socket.mSocket);
323 socket.mSocket, IpSecManager.DIRECTION_IN, outTransportTransform);
325 socket.mSocket, IpSecManager.DIRECTION_OUT, inTransportTransform);
361 ipsecNetwork.bindSocket(socket.mSocket);
366 socket.mSocket, IpSecManager.DIRECTION_IN, outTransportTransform);
368 socket.mSocket, IpSecManager.DIRECTION_OUT, inTransportTransform);
/cts/suite/audio_quality/lib/include/audio/
DAudioProtocol.h84 mSocket(socket) {}; in AudioProtocol()
87 return mSocket.sendData(data, len); in sendData()
92 return mSocket.readData(data, len); in readData()
99 ClientSocket& mSocket; variable
DRemoteAudio.h102 ClientSocket& mSocket; variable
/cts/suite/audio_quality/lib/include/
DClientSocket.h32 return mSocket; in getFD()
36 int mSocket;
/cts/suite/audio_quality/lib/src/audio/
DRemoteAudio.cpp31 mSocket(socket), in RemoteAudio()
84 if (!mSocket.init("127.0.0.1", mPort)) { in threadLoop()
88 LOGD("adding fd %d to polling", mSocket.getFD()); in threadLoop()
89 … mLooper->addFd(mSocket.getFD(), EIdSocket, android::Looper::EVENT_INPUT, socketRxCallback, this); in threadLoop()
107 if (!AudioProtocol::handleReplyHeader(mSocket, data, id)) { in handlePacket()
334 mSocket.release(); in release()
/cts/libs/testserver/src/android/webkit/cts/
DCtsTestServer.java215 mServerUri += "//localhost:" + mServerThread.mSocket.getLocalPort(); in CtsTestServer()
858 private ServerSocket mSocket; field in CtsTestServer.ServerThread
927 mSocket = new ServerSocket(0); in ServerThread()
931 mSocket = mSslContext.getServerSocketFactory().createServerSocket(0); in ServerThread()
942 ((SSLServerSocket) mSocket).setWantClientAuth(true); in ServerThread()
944 ((SSLServerSocket) mSocket).setNeedClientAuth(true); in ServerThread()
961 Socket socket = mSocket.accept(); in run()
1006 mSocket.close(); in shutDownOnClientThread()
1028 private Socket mSocket; field in CtsTestServer.ServerThread.HandleResponseTask
1034 this.mSocket = socket; in HandleResponseTask()
[all …]
DTestWebServer.java126 mServerUri += "//localhost:" + mServerThread.mSocket.getLocalPort(); in TestWebServer()
491 private ServerSocket mSocket; field in TestWebServer.ServerThread
558 mSocket = mSslContext.getServerSocketFactory().createServerSocket(0); in ServerThread()
560 mSocket = new ServerSocket(0); in ServerThread()
580 Socket socket = mSocket.accept(); in run()
611 mSocket.close(); in run()
/cts/suite/audio_quality/test/
DRemoteAudioFakeTcpTest.cpp53 close(mSocket); in ~ClientSocketForTest()
65 mSocket = pipefd[0]; in init()
72 read(mSocket, data, len); in readData()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsService.java175 private volatile ServerSocket mSocket = null; field in ItsService
318 while (!mThreadExitFlag && mSocket==null) { in onStartCommand()
572 mSocket = new ServerSocket(SERVERPORT); in run()
584 mOpenSocket = mSocket.accept(); in run()
654 if (mSocket != null) { in run()
655 mSocket.close(); in run()
656 mSocket = null; in run()