Searched defs:socket (Results 1 - 15 of 15) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/
H A DIObexConnectionHandler.java30 public boolean onConnect(BluetoothDevice device, BluetoothSocket socket); argument
H A DBluetoothObexTransport.java35 public BluetoothObexTransport(BluetoothSocket socket) { argument
36 this.mSocket = socket;
H A DObexRejectServer.java35 * Will reject the OBEX connection, start a timer, and at timeout close the socket.
51 public ObexRejectServer(int result, BluetoothSocket socket) { argument
54 mSocket = socket;
78 Log.w(TAG, "Unable to close socket - ignoring", e);
/packages/experimental/RpcPerformance/src/com/android/rpc_performance/
H A DMiscService.java44 Log.v(TAG, "in onCreate, making server socket: " + e);
50 LocalSocket socket = null;
54 socket = mServerSocket.accept();
55 Log.v(TAG, "Got socket: " + socket);
56 if (socket != null) {
57 startEchoThread(socket);
59 return; // socket shutdown?
70 private void startEchoThread(final LocalSocket socket) { argument
74 InputStream is = socket
[all...]
/packages/apps/Nfc/src/com/android/nfc/snep/
H A DSnepMessenger.java38 public SnepMessenger(boolean isClient, LlcpSocket socket, int fragmentLength) { argument
39 mSocket = socket;
H A DSnepServer.java101 ConnectionThread(LlcpSocket socket, int fragmentLength) { argument
103 mSock = socket;
104 mMessager = new SnepMessenger(false, socket, fragmentLength);
185 if (DBG) Log.d(TAG, "about create LLCP service socket");
192 if (DBG) Log.d(TAG, "failed to create LLCP service socket");
195 if (DBG) Log.d(TAG, "created LLCP service socket");
207 if (DBG) Log.d(TAG, "Server socket shut down.");
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
H A DSSLSocketFactory.java65 * Layered socket factory for TLS/SSL connections, based on JSSE.
76 * certificates. The client secure socket will reject the connection during
91 * pair. The client secure socket will use the private key to authenticate
237 * Creates the default SSL socket factory.
330 // close the socket before re-throwing the exception
340 * Checks whether a socket connection is secure.
341 * This factory creates TLS/SSL socket connections
347 * @param sock the connected socket
378 final Socket socket,
384 socket,
377 createSocket( final Socket socket, final String host, final int port, final boolean autoClose ) argument
[all...]
H A DSSLSocketFactoryWrapper.java115 public Socket createSocket(final Socket socket, final String host, final int port, argument
117 final SSLSocket sslSocket = (SSLSocket)mFactory.createSocket(socket, host, port, autoClose);
176 * Attempt to set the hostname of the socket.
215 * connected socket. You MUST call this if you did not supply a hostname
219 * @param socket An SSL socket which has been connected to a server
226 public static void verifyHostname(Socket socket, String hostname) throws IOException { argument
227 if (!(socket instanceof SSLSocket)) {
228 throw new IllegalArgumentException("Attempt to verify non-SSL socket");
233 SSLSocket ssl = (SSLSocket) socket;
[all...]
H A DSSLUtils.java252 String[] keyTypes, Principal[] issuers, Socket socket);
263 String keyType, Principal[] issuers, Socket socket) {
289 public String chooseClientAlias(String[] keyTypes, Principal[] issuers, Socket socket) { argument
291 InetAddress address = socket.getInetAddress();
386 public String chooseClientAlias(String[] keyTypes, Principal[] issuers, Socket socket) { argument
251 chooseClientAlias( String[] keyTypes, Principal[] issuers, Socket socket) argument
262 chooseServerAlias( String keyType, Principal[] issuers, Socket socket) argument
/packages/apps/Nfc/src/com/android/nfc/handover/
H A DHandoverServer.java99 if (DBG) Log.d(TAG, "failed to create LLCP service socket");
102 if (DBG) Log.d(TAG, "created LLCP service socket");
114 if (DBG) Log.d(TAG, "Server socket shut down.");
171 ConnectionThread(LlcpSocket socket) { argument
173 mSock = socket;
/packages/services/Telephony/src/com/android/phone/common/mail/
H A DMailTransport.java124 // After the socket connects to an SSL server, confirm that the hostname is as
149 * connected socket. It is harmless to call this method redundantly if the hostname has already
156 * @param socket An SSL socket which has been connected to a server
161 private static void verifyHostname(Socket socket, String hostname) throws IOException { argument
164 SSLSocket ssl = (SSLSocket) socket;
169 throw new SSLException("Cannot verify SSL socket without session");
/packages/apps/Email/provider_src/com/android/email/mail/transport/
H A DMailTransport.java121 // After the socket connects to an SSL server, confirm that the hostname is as expected
162 * TODO should we explicitly close the old socket? This seems funky to abandon it.
199 * connected socket. You MUST call this if you did not supply a hostname
207 * @param socket An SSL socket which has been connected to a server
212 private static void verifyHostname(Socket socket, String hostname) throws IOException { argument
215 SSLSocket ssl = (SSLSocket) socket;
220 throw new SSLException("Cannot verify SSL socket without session");
233 * Get the socket timeout.
242 * Set the socket timeou
[all...]
/packages/apps/KeyChain/tests/src/com/android/keychain/tests/
H A DKeyChainTestActivity.java221 Socket socket) {
226 socket.getInetAddress().getHostName(), socket.getPort(),
242 Socket socket) {
219 chooseClientAlias(String[] keyTypes, Principal[] issuers, Socket socket) argument
240 chooseServerAlias(String keyType, Principal[] issuers, Socket socket) argument
/packages/apps/Nfc/src/com/android/nfc/echoserver/
H A DEchoServer.java180 private void handleClient(LlcpSocket socket) { argument
187 int size = socket.receive(dataUnit);
205 if (DBG) Log.d(TAG, "about create LLCP service socket");
213 if (DBG) Log.d(TAG, "failed to create LLCP service socket");
216 if (DBG) Log.d(TAG, "created LLCP service socket");
279 LlcpConnectionlessSocket socket; field in class:EchoServer.ConnectionlessServerThread
292 if (DBG) Log.d(TAG, "about create LLCP connectionless socket");
294 socket = mService.createLlcpConnectionLessSocket(
296 if (socket == null) {
297 if (DBG) Log.d(TAG, "failed to create LLCP connectionless socket");
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
H A DBluetoothMapMasInstance.java62 // The handle to the socket registration with SDP
72 private volatile boolean mInterrupted; // Used to interrupt socket accept thread
73 private volatile boolean mShutdown = false; // Used to interrupt socket accept thread
446 public synchronized boolean onConnect(BluetoothDevice device, BluetoothSocket socket) { argument
453 mConnSocket = socket;
461 * Close down the server socket, and restart.

Completed in 367 milliseconds