Home
last modified time | relevance | path

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

/tools/tradefederation/core/src/com/android/tradefed/util/sl4a/
DSl4aClient.java59 private Socket mSocket; field in Sl4aClient
191 mSocket = new Socket("localhost", mHostPort); in open()
192 CLog.i("is sl4a socket connected: %s", mSocket.isConnected()); in open()
223 PrintWriter out = new PrintWriter(mSocket.getOutputStream(), true); in sendCommand()
229 BufferedReader in = new BufferedReader(new InputStreamReader(mSocket.getInputStream())); in sendCommand()
244 PrintWriter out = new PrintWriter(mSocket.getOutputStream(), false); in sendThroughSocket()
248 BufferedReader in = new BufferedReader(new InputStreamReader(mSocket.getInputStream())); in sendThroughSocket()
276 if (mSocket != null) { in close()
277 mSocket.close(); in close()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/sl4a/
DFakeSocketServerHelper.java31 private ServerSocket mSocket; field in FakeSocketServerHelper
36 mSocket = new ServerSocket(0); in FakeSocketServerHelper()
40 return mSocket.getLocalPort(); in getPort()
45 if (mSocket != null) { in close()
46 mSocket.close(); in close()
56 client = mSocket.accept(); in run()
/tools/tradefederation/core/src/com/android/tradefed/result/proto/
DStreamProtoReceiver.java109 private ServerSocket mSocket; field in StreamProtoReceiver.EventReceiverThread
115 mSocket = new ServerSocket(DEFAULT_AVAILABLE_PORT); in EventReceiverThread()
120 return mSocket.getLocalPort(); in getLocalPort()
128 if (mSocket != null) { in cancel()
129 mSocket.close(); in cancel()
138 client = mSocket.accept(); in run()
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/
DRemoteClient.java43 private final Socket mSocket; field in RemoteClient
68 mSocket = new Socket(hostName, port); in RemoteClient()
69 mWriter = new PrintWriter(mSocket.getOutputStream(), true); in RemoteClient()
70 mReader = new BufferedReader(new InputStreamReader(mSocket.getInputStream())); in RemoteClient()
252 if (mSocket != null) { in close()
254 mSocket.close(); in close()
/tools/tradefederation/core/src/com/android/tradefed/util/
DSubprocessTestResultsParser.java103 private ServerSocket mSocket; field in SubprocessTestResultsParser.EventReceiverThread
109 mSocket = new ServerSocket(0); in EventReceiverThread()
114 return mSocket.getLocalPort(); in getLocalPort()
122 if (mSocket != null) { in cancel()
123 mSocket.close(); in cancel()
140 client = mSocket.accept(); in run()