Home
last modified time | relevance | path

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

12

/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()
DSnepMessenger.java41 public SnepMessenger(boolean isClient, LlcpSocket socket, int fragmentLength) { in SnepMessenger() argument
42 mSocket = socket; in SnepMessenger()
/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/services/Car/tools/emulator/
Dvhal_emulator.py81 import socket
146 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DSSLSocketFactoryWrapper.java115 public Socket createSocket(final Socket socket, final String host, final int port, in createSocket() argument
117 final SSLSocket sslSocket = (SSLSocket)mFactory.createSocket(socket, host, port, autoClose); in createSocket()
226 public static void verifyHostname(Socket socket, String hostname) throws IOException { in verifyHostname() argument
227 if (!(socket instanceof SSLSocket)) { in verifyHostname()
233 SSLSocket ssl = (SSLSocket) socket; in verifyHostname()
DSSLUtils.java252 String[] keyTypes, Principal[] issuers, Socket socket); in chooseClientAlias() argument
263 String keyType, Principal[] issuers, Socket socket) { in chooseServerAlias() argument
289 public String chooseClientAlias(String[] keyTypes, Principal[] issuers, Socket socket) { in chooseClientAlias() argument
291 InetAddress address = socket.getInetAddress(); in chooseClientAlias()
386 public String chooseClientAlias(String[] keyTypes, Principal[] issuers, Socket socket) { in chooseClientAlias() argument
DSSLSocketFactory.java378 final Socket socket, in createSocket() argument
384 socket, in createSocket()
/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/apps/Bluetooth/src/com/android/bluetooth/mapclient/
DMnsService.java122 public synchronized boolean onConnect(BluetoothDevice device, BluetoothSocket socket) { in onConnect() argument
124 Log.d(TAG, "onConnect" + device + " SOCKET: " + socket); in onConnect()
134 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()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapService.java661 public boolean onConnect(BluetoothDevice remoteDevice, BluetoothSocket socket) { in onConnect() argument
662 if (remoteDevice == null || socket == null) { in onConnect()
664 + " socket=" + socket); in onConnect()
669 socket, this, mSessionStatusHandler, mNextNotificationId); in onConnect()
/packages/modules/NetworkStack/src/android/net/apf/
DApfFilter.java203 public ReceiveThread(FileDescriptor socket) { in ReceiveThread() argument
204 mSocket = socket; in ReceiveThread()
463 FileDescriptor socket; in maybeStartFilter() local
478 socket = Os.socket(AF_PACKET, SOCK_RAW, ETH_P_IPV6); in maybeStartFilter()
481 Os.bind(socket, addr); in maybeStartFilter()
482 NetworkStackUtils.attachRaFilter(socket, mApfCapabilities.apfPacketFormat); in maybeStartFilter()
487 mReceiveThread = new ReceiveThread(socket); in maybeStartFilter()
/packages/apps/Nfc/src/com/android/nfc/handover/
DHandoverServer.java171 ConnectionThread(LlcpSocket socket) { in ConnectionThread() argument
173 mSock = socket; in ConnectionThread()

12