/packages/apps/Nfc/nci/src/com/android/nfc/dhimpl/ |
H A D | NativeLlcpServiceSocket.java | 41 LlcpSocket socket = doAccept(mLocalMiu, mLocalRw, mLocalLinearBufferLength); 42 if (socket == null) throw new IOException(); 43 return socket;
|
H A D | NativeNfcManager.java | 190 LlcpConnectionlessSocket socket = doCreateLlcpConnectionlessSocket(nSap, sn); 191 if (socket != null) { 192 return socket; 197 Log.d(TAG, "failed to create llcp socket: " + ErrorCodes.asString(error)); 214 LlcpServerSocket socket = doCreateLlcpServiceSocket(nSap, sn, miu, rw, linearBufferLength); 215 if (socket != null) { 216 return socket; 221 Log.d(TAG, "failed to create llcp socket: " + ErrorCodes.asString(error)); 238 LlcpSocket socket = doCreateLlcpSocket(sap, miu, rw, linearBufferLength); 239 if (socket ! [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/ |
H A D | IObexConnectionHandler.java | 30 public boolean onConnect(BluetoothDevice device, BluetoothSocket socket); argument
|
H A D | BluetoothObexTransport.java | 35 public BluetoothObexTransport(BluetoothSocket socket) { argument 36 this.mSocket = socket;
|
H A D | ObexRejectServer.java | 36 * Will reject the OBEX connection, start a timer, and at timeout close the socket. 52 public ObexRejectServer(int result, BluetoothSocket socket) { argument 55 mSocket = socket; 79 Log.w(TAG, "Unable to close socket - ignoring", e);
|
/packages/experimental/RpcPerformance/src/com/android/rpc_performance/ |
H A D | MiscService.java | 44 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...] |
H A D | ProviderPerfActivity.java | 498 LocalSocket socket = null; 500 socket = new LocalSocket(); 501 Log.v(TAG, "Connecting to socket..."); 502 socket.connect(new LocalSocketAddress(MiscService.SOCKET_NAME)); 503 Log.v(TAG, "Connected to socket."); 504 InputStream is = socket.getInputStream(); 505 OutputStream os = socket.getOutputStream(); 530 if (socket != null) { 531 try { socket.close(); } catch (IOException e) {}
|
/packages/apps/Nfc/src/com/android/nfc/snep/ |
H A D | SnepClient.java | 140 LlcpSocket socket = null; 143 if (DBG) Log.d(TAG, "about to create socket"); 145 socket = NfcService.getInstance().createLlcpSocket(0, mMiu, mRwSize, 1024); 146 if (socket == null) { 147 throw new IOException("Could not connect to socket."); 151 socket.connectToService(mServiceName); 154 socket.connectToSap(mPort); 156 int miu = socket.getRemoteMiu(); 158 messenger = new SnepMessenger(true, socket, fragmentLength); 163 throw new IOException("Could not connect to socket"); [all...] |
H A D | SnepServer.java | 101 ConnectionThread(LlcpSocket socket, int fragmentLength) { argument 103 mSock = socket; 104 mMessager = new SnepMessenger(false, socket, fragmentLength); 189 if (DBG) Log.d(TAG, "about create LLCP service socket"); 196 if (DBG) Log.d(TAG, "failed to create LLCP service socket"); 199 if (DBG) Log.d(TAG, "created LLCP service socket"); 211 if (DBG) Log.d(TAG, "Server socket shut down.");
|
H A D | SnepMessenger.java | 41 public SnepMessenger(boolean isClient, LlcpSocket socket, int fragmentLength) { argument 42 mSocket = socket;
|
/packages/apps/Nfc/src/com/android/nfc/echoserver/ |
H A D | EchoServer.java | 180 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/Nfc/src/com/android/nfc/sneptest/ |
H A D | DtaSnepClient.java | 279 LlcpSocket socket = null; 282 if (DBG) Log.d(TAG, "about to create socket"); 284 socket = NfcService.getInstance().createLlcpSocket(0, mMiu, mRwSize, 1024); 285 if (socket == null) { 286 throw new IOException("Could not connect to socket."); 290 socket.connectToService(mServiceName); 293 socket.connectToSap(mPort); 295 int miu = socket.getRemoteMiu(); 297 messenger = new SnepMessenger(true, socket, fragmentLength); 302 throw new IOException("Could not connect to socket"); [all...] |
H A D | ExtDtaSnepServer.java | 78 ConnectionThread(LlcpSocket socket, int fragmentLength) { argument 80 mSock = socket; 81 mMessager = new SnepMessenger(false, socket, fragmentLength); 162 if (DBG) Log.d(TAG, "about create LLCP service socket"); 169 if (DBG) Log.d(TAG, "failed to create LLCP service socket"); 172 if (DBG) Log.d(TAG, "created LLCP service socket"); 184 if (DBG) Log.d(TAG, "Server socket shut down.");
|
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/ |
H A D | MnsService.java | 52 private volatile boolean mShutdown = false; // Used to interrupt socket accept thread 103 * Close down the server socket, and restart. 116 public synchronized boolean onConnect(BluetoothDevice device, BluetoothSocket socket) { argument 117 if (DBG) Log.d(TAG, "onConnect" + device + " SOCKET: " + socket); 121 BluetoothObexTransport transport = new BluetoothObexTransport(socket);
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
H A D | SSLSocketFactoryWrapper.java | 115 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 D | SSLUtils.java | 252 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
|
H A D | SSLSocketFactory.java | 65 * 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...] |
/packages/services/Car/tools/emulator/ |
H A D | vhal_emulator.py | 81 import socket namespace 136 # Hard-coded socket port needs to match the one in DefaultVehicleHal 145 # Open the socket and connect 146 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 151 Receive a message over the socket. This function blocks if a message is not available. 260 # Open the socket
|
/packages/apps/Test/connectivity/sl4n/ |
H A D | main.cpp | 31 #include <sys/socket.h> 36 // TODO: Set to a lower buffer size and read socket data until termination 52 listen_fd = socket(AF_INET, SOCK_STREAM, 0); 62 ": Failed to assign the address to the socket." 69 LOG(ERROR) << sl4n::kTagStr << ": Failed to setup the passive socket." 76 LOG(ERROR) << sl4n::kTagStr << ": Failed to accept the socket." 85 LOG(FATAL) << sl4n::kTagStr << ": Failed to write to the socket." 98 LOG(FATAL) << sl4n::kTagStr << ": Failed to write to the socket."
|
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/ |
H A D | GetCapabilitiesTask.java | 54 try (Socket socket = new Socket()) { 56 socket.connect(a, (int) mTimeout);
|
/packages/apps/KeyChain/tests/src/com/android/keychain/tests/ |
H A D | KeyChainTestActivity.java | 221 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/Email/provider_src/com/android/email/mail/transport/ |
H A D | MailTransport.java | 121 // 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/Nfc/src/com/android/nfc/handover/ |
H A D | HandoverServer.java | 99 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/BuiltInPrintService/jni/lib/ |
H A D | printer.c | 24 #include <sys/socket.h> 65 // open a socket to the printer:port 183 psock = socket(PF_INET, SOCK_STREAM, 0); 205 // temporarily set the socket to NONBLOCK'ing mode to catch timeout 217 /* check if the socket is connected and available for write within 226 // restore the socket back to normal blocking mode
|
/packages/apps/Test/connectivity/sl4n/facades/wifi/ |
H A D | wifi_facade.cpp | 21 #include <sys/socket.h>
|