Searched refs:socket (Results 1 – 10 of 10) sorted by relevance
/sdk/apps/SdkController/src/com/android/tools/sdkcontroller/lib/ |
D | Socket.java | 50 public Socket(LocalSocket socket, String name, ByteOrder endian) { in Socket() argument 51 mSocket = socket; in Socket() 99 LocalSocket socket = mSocket; in send() local 100 if (socket == null) { in send() 104 socket.getOutputStream().write(data); in send() 116 LocalSocket socket = mSocket; in send() local 117 if (socket == null) { in send() 121 socket.getOutputStream().write(data, offset, len); in send() 132 public static void receive(LocalSocket socket, byte[] data, int len) throws IOException { in receive() argument 133 final InputStream is = socket.getInputStream(); in receive() [all …]
|
D | Channel.java | 305 Socket socket = mSocket; in isConnected() local 306 return socket != null && socket.isConnected(); in isConnected() 316 public void connect(Socket socket) { in connect() argument 317 mSocket = socket; in connect() 318 mEndian = socket.getEndian(); in connect() 348 Socket socket; in disconnect() local 350 socket = mSocket; in disconnect() 353 if (socket != null) { in disconnect() 357 sendMessage(socket, MSG_DISCONNECTED, null, 0); in disconnect() 363 socket.close(); in disconnect() [all …]
|
D | Connection.java | 133 LocalServerSocket socket; in disconnect() local 135 socket = mServerSocket; in disconnect() 138 if (socket != null) { in disconnect() 141 wakeIOLooper(socket); in disconnect() 143 socket.close(); in disconnect() 163 return socket != null; in disconnect() 236 for (Socket socket : mPendingSockets) { in getPendingSocket() 237 if (socket.getChannelName().equals(name)) { in getPendingSocket() 238 return socket; in getPendingSocket() 249 private void wakeIOLooper(LocalServerSocket socket) { in wakeIOLooper() argument [all …]
|
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/ |
D | CaptureLoader.java | 42 Socket socket = null; in saveLayers() local 48 socket = new Socket(); in saveLayers() 49 socket.connect(new InetSocketAddress("127.0.0.1", in saveLayers() 52 out = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())); in saveLayers() 53 in = new DataInputStream(new BufferedInputStream(socket.getInputStream())); in saveLayers() 80 if (socket != null) { in saveLayers() 81 socket.close(); in saveLayers() 130 Socket socket = null; in loadCapture() local 135 socket = new Socket(); in loadCapture() 136 socket.connect(new InetSocketAddress("127.0.0.1", in loadCapture() [all …]
|
D | VersionLoader.java | 41 Socket socket = null; in loadVersion() local 46 socket = new Socket(); in loadVersion() 47 socket.connect(new InetSocketAddress("127.0.0.1", in loadVersion() 50 out = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())); in loadVersion() 51 in = new BufferedReader(new InputStreamReader(socket.getInputStream())); in loadVersion() 68 if (socket != null) { in loadVersion() 69 socket.close(); in loadVersion()
|
D | ProfilesLoader.java | 38 Socket socket = null; in loadProfiles() local 43 socket = new Socket(); in loadProfiles() 44 socket.connect(new InetSocketAddress("127.0.0.1", in loadProfiles() 47 out = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())); in loadProfiles() 48 in = new BufferedReader(new InputStreamReader(socket.getInputStream())); in loadProfiles() 72 if (socket != null) { in loadProfiles() 73 socket.close(); in loadProfiles()
|
D | ViewManager.java | 43 Socket socket = null; in sendCommand() local 47 socket = new Socket(); in sendCommand() 48 socket.connect(new InetSocketAddress("127.0.0.1", in sendCommand() 51 out = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())); in sendCommand() 63 if (socket != null) { in sendCommand() 64 socket.close(); in sendCommand()
|
D | WindowsLoader.java | 34 Socket socket = null; in loadWindows() local 42 socket = new Socket(); in loadWindows() 43 socket.connect(new InetSocketAddress("127.0.0.1", in loadWindows() 46 out = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())); in loadWindows() 47 in = new BufferedReader(new InputStreamReader(socket.getInputStream())); in loadWindows() 86 if (socket != null) { in loadWindows() 87 socket.close(); in loadWindows()
|
D | ViewHierarchyLoader.java | 42 Socket socket = null; in loadScene() local 51 socket = new Socket(); in loadScene() 52 socket.connect(new InetSocketAddress("127.0.0.1", in loadScene() 55 out = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())); in loadScene() 56 in = new BufferedReader(new InputStreamReader(socket.getInputStream(), "utf-8")); in loadScene() 125 socket.close(); in loadScene()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/ |
D | CollectTraceAction.java | 227 Socket socket = new Socket(); in startTracing() local 231 socket.connect(new java.net.InetSocketAddress("127.0.0.1", port)); //$NON-NLS-1$ in startTracing() 232 socket.setTcpNoDelay(true); in startTracing() 233 traceDataStream = new DataInputStream(socket.getInputStream()); in startTracing() 234 traceCommandsStream = new DataOutputStream(socket.getOutputStream()); in startTracing() 252 closeSocket(socket); in startTracing() 275 closeSocket(socket); in startTracing() 278 private static void closeSocket(Socket socket) { in closeSocket() argument 280 socket.close(); in closeSocket()
|