Home
last modified time | relevance | path

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

123

/packages/apps/Dialer/java/com/android/voicemail/impl/mail/
DMailTransport.java60 private Socket socket; field in MailTransport
130 socket = createSocket(); in open()
133 socket.connect(address, SOCKET_CONNECT_TIMEOUT); in open()
143 in = new BufferedInputStream(socket.getInputStream(), 1024); in open()
144 out = new BufferedOutputStream(socket.getOutputStream(), 512); in open()
145 socket.setSoTimeout(SOCKET_READ_TIMEOUT); in open()
159 socket.close(); in open()
160 socket = null; in open()
207 socket = in reopenTls()
209 .createSocket(socket, address.getHostName(), address.getPort(), true); in reopenTls()
[all …]
/packages/apps/Nfc/src/com/android/nfc/snep/
DSnepClient.java140 LlcpSocket socket = null; in connect() local
145 socket = NfcService.getInstance().createLlcpSocket(0, mMiu, mRwSize, 1024); in connect()
146 if (socket == null) { in connect()
151 socket.connectToService(mServiceName); in connect()
154 socket.connectToSap(mPort); in connect()
156 int miu = socket.getRemoteMiu(); in connect()
158 messenger = new SnepMessenger(true, socket, fragmentLength); in connect()
165 if (socket != null) { in connect()
167 socket.close(); in connect()
DSnepServer.java101 ConnectionThread(LlcpSocket socket, int fragmentLength) { in ConnectionThread() argument
103 mSock = socket; in ConnectionThread()
104 mMessager = new SnepMessenger(false, socket, fragmentLength); in ConnectionThread()
/packages/apps/Nfc/src/com/android/nfc/echoserver/
DEchoServer.java180 private void handleClient(LlcpSocket socket) { in handleClient() argument
187 int size = socket.receive(dataUnit); in handleClient()
279 LlcpConnectionlessSocket socket; field in EchoServer.ConnectionlessServerThread
294 socket = mService.createLlcpConnectionLessSocket( in run()
296 if (socket == null) { in run()
303 packet = socket.receive(); in run()
329 if (socket != null) { in run()
331 socket.close(); in run()
346 socket.send(mRemoteSap, data); in write()
/packages/apps/Nfc/src/com/android/nfc/sneptest/
DDtaSnepClient.java279 LlcpSocket socket = null; in connect() local
284 socket = NfcService.getInstance().createLlcpSocket(0, mMiu, mRwSize, 1024); in connect()
285 if (socket == null) { in connect()
290 socket.connectToService(mServiceName); in connect()
293 socket.connectToSap(mPort); in connect()
295 int miu = socket.getRemoteMiu(); in connect()
297 messenger = new SnepMessenger(true, socket, fragmentLength); in connect()
304 if (socket != null) { in connect()
306 socket.close(); in connect()
DExtDtaSnepServer.java78 ConnectionThread(LlcpSocket socket, int fragmentLength) { in ConnectionThread() argument
80 mSock = socket; in ConnectionThread()
81 mMessager = new SnepMessenger(false, socket, fragmentLength); in ConnectionThread()
/packages/apps/Nfc/nci/src/com/android/nfc/dhimpl/
DNativeNfcManager.java209 LlcpConnectionlessSocket socket = doCreateLlcpConnectionlessSocket(nSap, sn); in createLlcpConnectionlessSocket() local
210 if (socket != null) { in createLlcpConnectionlessSocket()
211 return socket; in createLlcpConnectionlessSocket()
233 LlcpServerSocket socket = doCreateLlcpServiceSocket(nSap, sn, miu, rw, linearBufferLength); in createLlcpServerSocket() local
234 if (socket != null) { in createLlcpServerSocket()
235 return socket; in createLlcpServerSocket()
257 LlcpSocket socket = doCreateLlcpSocket(sap, miu, rw, linearBufferLength); in createLlcpSocket() local
258 if (socket != null) { in createLlcpSocket()
259 return socket; in createLlcpSocket()
DNativeLlcpServiceSocket.java41 LlcpSocket socket = doAccept(mLocalMiu, mLocalRw, mLocalLinearBufferLength); in accept() local
42 if (socket == null) throw new IOException(); in accept()
43 return socket; in accept()
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/
DGetCapabilitiesTask.java56 try (Socket socket = new Socket()) { in isDeviceOnline() argument
57 mSocket = socket; in isDeviceOnline()
59 socket.connect(a, (int) mTimeout); in isDeviceOnline()
71 Socket socket = mSocket; in forceCancel() local
72 if (socket != null) { in forceCancel()
74 socket.close(); in forceCancel()
/packages/services/Car/car-bugreportd/
Dcar-bugreportd.rc2 socket car_br_progress_socket stream 0660 shell log
3 socket car_br_output_socket stream 0660 shell log
4 socket car_br_extra_output_socket stream 0660 shell log
11 # car-dumpstatez generates a zipped bugreport but also uses a socket to print the file location once
15 socket dumpstate stream 0660 shell log
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/keepalive/
DIkeNattKeepalive.java46 UdpEncapsulationSocket socket, in IkeNattKeepalive() argument
56 socket, in IkeNattKeepalive()
62 socket, in IkeNattKeepalive()
106 UdpEncapsulationSocket socket, in HardwareKeepaliveCb() argument
111 mSocket = socket; in HardwareKeepaliveCb()
DSoftwareKeepaliveImpl.java58 UdpEncapsulationSocket socket, in SoftwareKeepaliveImpl() argument
61 mSocket = socket; in SoftwareKeepaliveImpl()
/packages/modules/DnsResolver/
DREADME-DoT.md28 `DnsTlsSocket` interleaves all queries onto a single socket, and reports all
45 This code creates O(1) threads per socket, and does not create a new thread for each
53 from its thread, and the loop thread (which owns the SSL socket)
56 socket thread can read the datagram off the other end.
59 or a thread-safe queue, because the socket thread has to be blocked
62 threads have to arrive on a socket, so that `poll()` can listen for them.
69 a single socket. To avoid confusion at the server, `DnsTlsQueryMap` assigns each
82 `DnsTlsSocket` imposes a 20-second inactivity timeout. A socket that has been idle for
122 substitute a test factory that returns a fake socket, so that the unit tests can
DDnsTlsSocketFactory.h38 auto socket = std::make_unique<DnsTlsSocket>(server, mark, observer, cache); in createDnsTlsSocket() local
39 if (!socket->initialize()) { in createDnsTlsSocket()
42 return std::move(socket); in createDnsTlsSocket()
/packages/services/Car/tools/emulator/
Dvhal_emulator.py81 import socket
146 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
/packages/apps/TV/tuner/src/com/android/tv/tuner/hdhomerun/
DHdHomeRunDiscover.java126 DatagramSocket socket; in addSocket() local
128 socket = new DatagramSocket(0, HdHomeRunUtils.intToAddress(localIp)); in addSocket()
129 socket.setBroadcast(true); in addSocket()
135 mSockets.add(new HdHomeRunDiscoverSocket(socket, true, localIp, subnetMask)); in addSocket()
310 DatagramSocket socket, boolean detected, int localIp, int subnetMask) { in HdHomeRunDiscoverSocket() argument
311 mSocket = socket; in HdHomeRunDiscoverSocket()
/packages/apps/Car/Cluster/src/android/car/cluster/
DNetworkedVirtualDisplay.java394 Socket socket = serverSocket.accept(); in tryNetworkConnect() local
395 socket.setTcpNoDelay(true); in tryNetworkConnect()
396 socket.setKeepAlive(true); in tryNetworkConnect()
397 socket.setSoLinger(true, 0); in tryNetworkConnect()
399 InputStream inputStream = socket.getInputStream(); in tryNetworkConnect()
400 OutputStream outputStream = socket.getOutputStream(); in tryNetworkConnect()
/packages/services/Car/car_product/sepolicy/private/
Dfile_contexts7 /dev/socket/car_br_progress_socket u:object_r:dumpstate_socket:s0
8 /dev/socket/car_br_output_socket u:object_r:dumpstate_socket:s0
9 /dev/socket/car_br_extra_output_socket u:object_r:dumpstate_socket:s0
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DIkeUdp6Socket.java54 private IkeUdp6Socket(FileDescriptor socket, Network network, Handler handler) { in IkeUdp6Socket() argument
55 super(socket, network, handler == null ? new Handler() : handler); in IkeUdp6Socket()
80 FileDescriptor sock = Os.socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP); in getInstance()
DIkeUdp4Socket.java54 private IkeUdp4Socket(FileDescriptor socket, Network network, Handler handler) { in IkeUdp4Socket() argument
55 super(socket, network, handler == null ? new Handler() : handler); in IkeUdp4Socket()
80 FileDescriptor sock = Os.socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in getInstance()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/
DMnsService.java123 public synchronized boolean onConnect(BluetoothDevice device, BluetoothSocket socket) { in onConnect() argument
125 Log.d(TAG, "onConnect" + device + " SOCKET: " + socket); in onConnect()
140 BluetoothObexTransport transport = new BluetoothObexTransport(socket); in onConnect()
/packages/apps/KeyChain/tests/src/com/android/keychain/tests/
DKeyChainTestActivity.java221 Socket socket) { in chooseClientAlias() argument
226 socket.getInetAddress().getHostName(), socket.getPort(), in chooseClientAlias()
242 Socket socket) { in chooseServerAlias() argument
/packages/apps/Bluetooth/src/com/android/bluetooth/
DBluetoothObexTransport.java35 public BluetoothObexTransport(BluetoothSocket socket) { in BluetoothObexTransport() argument
36 this.mSocket = socket; in BluetoothObexTransport()
DObexRejectServer.java52 public ObexRejectServer(int result, BluetoothSocket socket) { in ObexRejectServer() argument
55 mSocket = socket; in ObexRejectServer()
/packages/services/Car/service/src/com/android/car/
DCarBugreportManagerService.java299 LocalSocket socket = new LocalSocket(); in connectSocket() local
315 socket.connect(new LocalSocketAddress(socketName, in connectSocket()
317 return socket; in connectSocket()

123