Home
last modified time | relevance | path

Searched refs:socket (Results 1 – 16 of 16) sorted by relevance

/development/tools/axl/
DudpEater.py24 import time, socket, string
29 svrsocket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
30 svrsocket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
33 hostname = socket.gethostname()
34 ip = socket.gethostbyname(hostname)
DudpServer.py2 import time, socket, string
9 svrsocket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
10 svrsocket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
15 ip = socket.gethostbyname(hostname)
/development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/
DFileTransferService.java50 Socket socket = new Socket(); in onHandleIntent() local
55 socket.bind(null); in onHandleIntent()
56 socket.connect((new InetSocketAddress(host, port)), SOCKET_TIMEOUT); in onHandleIntent()
58 Log.d(WiFiDirectActivity.TAG, "Client socket - " + socket.isConnected()); in onHandleIntent()
59 OutputStream stream = socket.getOutputStream(); in onHandleIntent()
72 if (socket != null) { in onHandleIntent()
73 if (socket.isConnected()) { in onHandleIntent()
75 socket.close(); in onHandleIntent()
/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/
DChatManager.java18 private Socket socket = null; field in ChatManager
21 public ChatManager(Socket socket, Handler handler) { in ChatManager() argument
22 this.socket = socket; in ChatManager()
34 iStream = socket.getInputStream(); in run()
35 oStream = socket.getOutputStream(); in run()
61 socket.close(); in run()
DGroupOwnerSocketHandler.java19 ServerSocket socket = null; field in GroupOwnerSocketHandler
26 socket = new ServerSocket(4545); in GroupOwnerSocketHandler()
50 pool.execute(new ChatManager(socket.accept(), handler)); in run()
55 if (socket != null && !socket.isClosed()) in run()
56 socket.close(); in run()
DClientSocketHandler.java26 Socket socket = new Socket(); in run() local
28 socket.bind(null); in run()
29 socket.connect(new InetSocketAddress(mAddress.getHostAddress(), in run()
32 chat = new ChatManager(socket, handler); in run()
37 socket.close(); in run()
/development/samples/USB/AdbTest/src/com/android/adb/
DAdbDevice.java118 AdbSocket socket; in openSocket() local
121 socket = new AdbSocket(this, id); in openSocket()
122 mSockets.put(id, socket); in openSocket()
124 if (socket.open(destination)) { in openSocket()
125 return socket; in openSocket()
137 public void socketClosed(AdbSocket socket) { in socketClosed() argument
139 mSockets.remove(socket.getId()); in socketClosed()
178 AdbSocket socket = getSocket(message.getArg1()); in dispatchMessage() local
179 if (socket == null) { in dispatchMessage()
182 socket.handleMessage(message); in dispatchMessage()
/development/samples/browseable/BluetoothChat/src/com.example.android.bluetoothchat/
DBluetoothChatService.java171 public synchronized void connected(BluetoothSocket socket, BluetoothDevice in connected() argument
198 mConnectedThread = new ConnectedThread(socket, socketType); in connected()
332 BluetoothSocket socket = null; in run() local
339 socket = mmServerSocket.accept(); in run()
346 if (socket != null) { in run()
352 connected(socket, socket.getRemoteDevice(), in run()
359 socket.close(); in run()
466 public ConnectedThread(BluetoothSocket socket, String socketType) { in ConnectedThread() argument
468 mmSocket = socket; in ConnectedThread()
474 tmpIn = socket.getInputStream(); in ConnectedThread()
[all …]
/development/samples/BluetoothChat/src/com/example/android/BluetoothChat/
DBluetoothChatService.java151 public synchronized void connected(BluetoothSocket socket, BluetoothDevice in connected() argument
172 mConnectedThread = new ConnectedThread(socket, socketType); in connected()
294 BluetoothSocket socket = null; in run() local
301 socket = mmServerSocket.accept(); in run()
308 if (socket != null) { in run()
314 connected(socket, socket.getRemoteDevice(), in run()
321 socket.close(); in run()
427 public ConnectedThread(BluetoothSocket socket, String socketType) { in ConnectedThread() argument
429 mmSocket = socket; in ConnectedThread()
435 tmpIn = socket.getInputStream(); in ConnectedThread()
[all …]
/development/samples/browseable/PermissionRequest/src/com.example.android.permissionrequest/
DSimpleWebServer.java102 Socket socket = mServerSocket.accept(); in run() local
103 handle(socket); in run()
104 socket.close(); in run()
119 private void handle(Socket socket) throws IOException { in handle() argument
126 reader = new BufferedReader(new InputStreamReader(socket.getInputStream())); in handle()
138 output = new PrintStream(socket.getOutputStream()); in handle()
/development/apps/Development/src/com/android/development/
DLogViewer.java77 final Socket socket; field in LogViewer.LogReader
85 this.socket = new Socket("127.0.0.1", 5040); in LogReader()
86 this.in = new DataInputStream(this.socket.getInputStream()); in LogReader()
88 this.socket.getOutputStream().write('\n'); in LogReader()
89 this.socket.getOutputStream().write('\n'); in LogReader()
/development/samples/training/NsdChat/src/com/example/android/nsdchat/
DChatConnection.java97 private synchronized void setSocket(Socket socket) { in setSocket() argument
99 if (socket == null) { in setSocket()
112 mSocket = socket; in setSocket()
265 Socket socket = getSocket(); in sendMessage() local
266 if (socket == null) { in sendMessage()
268 } else if (socket.getOutputStream() == null) { in sendMessage()
/development/samples/KeyChainDemo/src/com/example/android/keychain/
DSecureWebServer.java110 Socket socket = sss.accept(); in start()
116 new InputStreamReader(socket.getInputStream())); in start()
117 PrintWriter out = new PrintWriter(socket in start()
137 socket.close(); in start()
/development/samples/ToyVpn/server/linux/
DToyVpnServer.cpp87 int tunnel = socket(AF_INET6, SOCK_DGRAM, 0); in get_tunnel()
/development/samples/ToyVpn/src/com/example/android/toyvpn/
DToyVpnConnection.java169 if (!mService.protect(tunnel.socket())) { in run()
/development/tools/repo_diff/service/repodiff/persistence/filesystem/testdata/
Dcommit.csv1723 …b,platform/cts,fake_RbxZHO0QQ_mTcefdD3jXfw@fakeemail.com,CameraITS: retry tests with socket failure
1788 …f0a30d61,platform/cts,fake_h42tfGhiQFGeS0pEX3KQUA@fakeemail.com,CameraITS: add socket timeout value
1920 …8919c,platform/cts,fake_UsTEOWG4Tcid6IezENuNKg@fakeemail.com,Add UDP encap socket test to CTS tests
3217 …,platform/cts,fake_Ct_fEv-JS0mKpM2j9VzS8w@fakeemail.com,Test more transforms and more socket types.
3301 …,platform/cts,fake_h42tfGhiQFGeS0pEX3KQUA@fakeemail.com,CameraITS: allow socket writer thread reco…
3653 …orm/cts,fake_7mCjMhzgQ6idL2bPzH5OEA@fakeemail.com,Added CTS to test dual stack socket for TCP & UDP
3991 …ake_eF-hIwXCRg--jb-UVoJdSw@fakeemail.com,Assert no exemptions from core <-> vendor socket comms ban
5489 …system/core,fake_TKtbFpDGTEGasvBhGDq5XA@fakeemail.com,logd: validate and fill in socket credentials
5505 …ore,fake_U8_RiShlTXajKpLsEJoiRA@fakeemail.com,libcutils: write trace event into socket in container
5719 …orm/system/core,fake_oFs5hl70SEqpTt4nMPAFbw@fakeemail.com,libcutils: fix socket type in SocketsTes…
[all …]