Home
last modified time | relevance | path

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

12

/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/experimental/RpcPerformance/src/com/android/rpc_performance/
DMiscService.java50 LocalSocket socket = null; in onCreate()
54 socket = mServerSocket.accept(); in onCreate()
55 Log.v(TAG, "Got socket: " + socket); in onCreate()
56 if (socket != null) { in onCreate()
57 startEchoThread(socket); in onCreate()
70 private void startEchoThread(final LocalSocket socket) { in startEchoThread() argument
74 InputStream is = socket.getInputStream(); in startEchoThread()
75 OutputStream os = socket.getOutputStream(); in startEchoThread()
DProviderPerfActivity.java498 LocalSocket socket = null; in localSocketLoop() local
500 socket = new LocalSocket(); in localSocketLoop()
502 socket.connect(new LocalSocketAddress(MiscService.SOCKET_NAME)); in localSocketLoop()
504 InputStream is = socket.getInputStream(); in localSocketLoop()
505 OutputStream os = socket.getOutputStream(); in localSocketLoop()
530 if (socket != null) { in localSocketLoop()
531 try { socket.close(); } catch (IOException e) {} in localSocketLoop()
/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/nci/src/com/android/nfc/dhimpl/
DNativeNfcManager.java190 LlcpConnectionlessSocket socket = doCreateLlcpConnectionlessSocket(nSap, sn); in createLlcpConnectionlessSocket() local
191 if (socket != null) { in createLlcpConnectionlessSocket()
192 return socket; in createLlcpConnectionlessSocket()
214 LlcpServerSocket socket = doCreateLlcpServiceSocket(nSap, sn, miu, rw, linearBufferLength); in createLlcpServerSocket() local
215 if (socket != null) { in createLlcpServerSocket()
216 return socket; in createLlcpServerSocket()
238 LlcpSocket socket = doCreateLlcpSocket(sap, miu, rw, linearBufferLength); in createLlcpSocket() local
239 if (socket != null) { in createLlcpSocket()
240 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/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/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/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/mapclient/
DMnsService.java116 public synchronized boolean onConnect(BluetoothDevice device, BluetoothSocket socket) { in onConnect() argument
117 if (DBG) Log.d(TAG, "onConnect" + device + " SOCKET: " + socket); in onConnect()
121 BluetoothObexTransport transport = new BluetoothObexTransport(socket); in onConnect()
/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/BuiltInPrintService/src/com/android/bips/ipp/
DGetCapabilitiesTask.java54 try (Socket socket = new Socket()) { in isDeviceOnline() argument
56 socket.connect(a, (int) mTimeout); in isDeviceOnline()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapService.java1017 public boolean onConnect(BluetoothDevice remoteDevice, BluetoothSocket socket) { in onConnect() argument
1019 if (mRemoteDevice == null || socket == null) { in onConnect()
1020 Log.i(TAG, "mRemoteDevice :" + mRemoteDevice + " socket :" + socket); in onConnect()
1023 mConnSocket = socket; in onConnect()
/packages/apps/Nfc/src/com/android/nfc/handover/
DHandoverServer.java171 ConnectionThread(LlcpSocket socket) { in ConnectionThread() argument
173 mSock = socket; in ConnectionThread()
/packages/experimental/StrictModeTest/src/com/android/strictmodetest/
DStrictModeActivity.java415 Socket socket = new Socket(); in closeWithLinger() local
416 socket.setSoLinger(linger, 5); in closeWithLinger()
417 socket.close(); in closeWithLinger()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/
DMailTransport.java241 private void verifyHostname(Socket socket, String hostname) throws IOException { in verifyHostname() argument
244 SSLSocket ssl = (SSLSocket) socket; in verifyHostname()
/packages/apps/Email/provider_src/com/android/email/mail/transport/
DMailTransport.java212 private static void verifyHostname(Socket socket, String hostname) throws IOException { in verifyHostname() argument
215 SSLSocket ssl = (SSLSocket) socket; in verifyHostname()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapMasInstance.java458 public synchronized boolean onConnect(BluetoothDevice device, BluetoothSocket socket) { in onConnect() argument
465 mConnSocket = socket; in onConnect()

12