/packages/apps/Nfc/src/com/android/nfc/snep/ |
D | SnepClient.java | 140 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()
|
D | SnepServer.java | 101 ConnectionThread(LlcpSocket socket, int fragmentLength) { in ConnectionThread() argument 103 mSock = socket; in ConnectionThread() 104 mMessager = new SnepMessenger(false, socket, fragmentLength); in ConnectionThread()
|
D | SnepMessenger.java | 41 public SnepMessenger(boolean isClient, LlcpSocket socket, int fragmentLength) { in SnepMessenger() argument 42 mSocket = socket; in SnepMessenger()
|
/packages/experimental/RpcPerformance/src/com/android/rpc_performance/ |
D | MiscService.java | 50 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()
|
D | ProviderPerfActivity.java | 498 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/ |
D | EchoServer.java | 180 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/ |
D | NativeNfcManager.java | 190 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()
|
D | NativeLlcpServiceSocket.java | 41 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/ |
D | DtaSnepClient.java | 279 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()
|
D | ExtDtaSnepServer.java | 78 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/ |
D | vhal_emulator.py | 81 import socket 146 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
D | SSLSocketFactoryWrapper.java | 115 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()
|
D | SSLUtils.java | 252 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
|
D | SSLSocketFactory.java | 378 final Socket socket, in createSocket() argument 384 socket, in createSocket()
|
/packages/apps/KeyChain/tests/src/com/android/keychain/tests/ |
D | KeyChainTestActivity.java | 221 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/ |
D | MnsService.java | 116 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/ |
D | BluetoothObexTransport.java | 35 public BluetoothObexTransport(BluetoothSocket socket) { in BluetoothObexTransport() argument 36 this.mSocket = socket; in BluetoothObexTransport()
|
D | ObexRejectServer.java | 52 public ObexRejectServer(int result, BluetoothSocket socket) { in ObexRejectServer() argument 55 mSocket = socket; in ObexRejectServer()
|
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/ |
D | GetCapabilitiesTask.java | 54 try (Socket socket = new Socket()) { in isDeviceOnline() argument 56 socket.connect(a, (int) mTimeout); in isDeviceOnline()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapService.java | 1017 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/ |
D | HandoverServer.java | 171 ConnectionThread(LlcpSocket socket) { in ConnectionThread() argument 173 mSock = socket; in ConnectionThread()
|
/packages/experimental/StrictModeTest/src/com/android/strictmodetest/ |
D | StrictModeActivity.java | 415 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/ |
D | MailTransport.java | 241 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/ |
D | MailTransport.java | 212 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/ |
D | BluetoothMapMasInstance.java | 458 public synchronized boolean onConnect(BluetoothDevice device, BluetoothSocket socket) { in onConnect() argument 465 mConnSocket = socket; in onConnect()
|