/packages/apps/Email/provider_src/com/android/email/mail/transport/ |
D | MailTransport.java | 61 private Socket mSocket; field in MailTransport 115 mSocket = SSLUtils.getSSLSocketFactory( in open() 118 mSocket = new Socket(); in open() 120 mSocket.connect(socketAddress, SOCKET_CONNECT_TIMEOUT); in open() 123 verifyHostname(mSocket, getHost()); in open() 127 if (mSocket instanceof SSLSocket) { in open() 128 final SSLSocket sslSocket = (SSLSocket) mSocket; in open() 135 mIn = new BufferedInputStream(mSocket.getInputStream(), 1024); in open() 136 mOut = new BufferedOutputStream(mSocket.getOutputStream(), 512); in open() 137 mSocket.setSoTimeout(SOCKET_READ_TIMEOUT); in open() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/ |
D | BluetoothObexTransport.java | 33 private BluetoothSocket mSocket = null; field in BluetoothObexTransport 36 this.mSocket = socket; in BluetoothObexTransport() 41 mSocket.close(); in close() 56 return mSocket.getInputStream(); in openInputStream() 61 return mSocket.getOutputStream(); in openOutputStream() 86 if (mSocket.getConnectionType() != BluetoothSocket.TYPE_L2CAP) { in getMaxTransmitPacketSize() 89 return mSocket.getMaxTransmitPacketSize(); in getMaxTransmitPacketSize() 94 if (mSocket.getConnectionType() != BluetoothSocket.TYPE_L2CAP) { in getMaxReceivePacketSize() 97 return mSocket.getMaxReceivePacketSize(); in getMaxReceivePacketSize() 101 if (mSocket == null) { in getRemoteAddress() [all …]
|
D | ObexRejectServer.java | 47 private final BluetoothSocket mSocket; field in ObexRejectServer 55 mSocket = socket; in ObexRejectServer() 79 mSocket.close(); in shutdown()
|
/packages/apps/Nfc/src/com/android/nfc/snep/ |
D | SnepMessenger.java | 37 final LlcpSocket mSocket; field in SnepMessenger 42 mSocket = socket; in SnepMessenger() 61 mSocket.send(tmpBuffer); in sendMessage() 70 mSocket.receive(responseBytes); in sendMessage() 89 mSocket.send(tmpBuffer); in sendMessage() 92 mSocket.receive(responseBytes); in sendMessage() 112 mSocket.send(tmpBuffer); in sendMessage() 116 mSocket.receive(responseBytes); in sendMessage() 153 size = mSocket.receive(partial); in getMessage() 157 mSocket.send(SnepMessage.getMessage(fieldReject).toByteArray()); in getMessage() [all …]
|
/packages/services/Car/obd2-lib/src/com/android/car/obd2/connections/ |
D | BluetoothConnection.java | 38 private BluetoothSocket mSocket = null; field in BluetoothConnection 68 mSocket = mDevice.createRfcommSocketToServiceRecord(SERIAL_PORT_PROFILE); in connect() 69 mSocket.connect(); in connect() 72 mSocket = null; in connect() 75 return mSocket.isConnected(); in connect() 80 return mSocket != null && mSocket.isConnected(); in isConnected() 86 mSocket.close(); in close() 91 mSocket = null; in close() 106 return mSocket.getInputStream(); in getInputStream() 118 return mSocket.getOutputStream(); in getOutputStream()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/ |
D | PbapClientConnectionHandler.java | 108 private BluetoothSocket mSocket; field in PbapClientConnectionHandler 281 mSocket = in connectSocket() 285 mSocket = mDevice.createL2capSocket(mPseRec.getL2capPsm()); in connectSocket() 288 mSocket = mDevice.createRfcommSocket(mPseRec.getRfcommChannelNumber()); in connectSocket() 291 if (mSocket != null) { in connectSocket() 292 mSocket.connect(); in connectSocket() 312 BluetoothObexTransport transport = new BluetoothObexTransport(mSocket); in connectObexSession() 356 if (mSocket != null) { in closeSocket() 358 Log.d(TAG, "Closing socket" + mSocket); in closeSocket() 360 mSocket.close(); in closeSocket() [all …]
|
D | BluetoothPbapObexTransport.java | 31 private BluetoothSocket mSocket = null; field in BluetoothPbapObexTransport 35 mSocket = rfs; in BluetoothPbapObexTransport() 40 mSocket.close(); in close() 55 return mSocket.getInputStream(); in openInputStream() 60 return mSocket.getOutputStream(); in openOutputStream() 81 return mSocket.isConnected(); in isConnected()
|
/packages/apps/Nfc/src/com/android/nfc/ndefpush/ |
D | NdefPushClient.java | 45 private LlcpSocket mSocket; field in NdefPushClient 83 mSocket = sock; in connect() 95 sock = mSocket; in push() 132 if (mSocket != null) { in close() 135 mSocket.close(); in close() 139 mSocket = null; in close()
|
/packages/apps/Nfc/src/com/android/nfc/handover/ |
D | HandoverClient.java | 42 LlcpSocket mSocket; field in HandoverClient 80 mSocket = sock; in connect() 87 if (mSocket != null) { in close() 89 mSocket.close(); in close() 93 mSocket = null; in close() 106 sock = mSocket; in sendHandoverRequest()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/ |
D | MasClient.java | 74 private BluetoothSocket mSocket; field in MasClient 106 mSocket = mRemoteDevice.createRfcommSocket(mSdpMasRecord.getRfcommCannelNumber()); in connect() 107 if (DBG) Log.d(TAG, mRemoteDevice.toString() + "Socket: " + mSocket.toString()); in connect() 108 mSocket.connect(); in connect() 109 mTransport = new BluetoothObexTransport(mSocket); in connect()
|
/packages/modules/NetworkStack/src/android/net/dhcp/ |
D | DhcpServer.java | 115 private FileDescriptor mSocket; field in DhcpServer 545 mDeps.sendPacket(mSocket, buf, dst); in transmitPacket() 555 mDeps.addArpEntry(inetAddr, macAddr, mIfName, mSocket); in addArpEntry() 634 mSocket = Os.socket(AF_INET, SOCK_DGRAM | SOCK_NONBLOCK, IPPROTO_UDP); in createFd() 635 SocketUtils.bindSocketToInterface(mSocket, mIfName); in createFd() 636 Os.setsockoptInt(mSocket, SOL_SOCKET, SO_REUSEADDR, 1); in createFd() 637 Os.setsockoptInt(mSocket, SOL_SOCKET, SO_BROADCAST, 1); in createFd() 638 Os.bind(mSocket, IPV4_ADDR_ANY, DHCP_SERVER); in createFd() 640 return mSocket; in createFd()
|
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/ |
D | GetCapabilitiesTask.java | 46 private volatile Socket mSocket; field in GetCapabilitiesTask 57 mSocket = socket; in isDeviceOnline() 64 mSocket = null; in isDeviceOnline() 71 Socket socket = mSocket; in forceCancel()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | TestActivity.java | 630 Socket mSocket = null; field in TestTcpTransport 634 this.mSocket = s; in TestTcpTransport() 639 mSocket.close(); in close() 654 return mSocket.getInputStream(); in openInputStream() 659 return mSocket.getOutputStream(); in openOutputStream() 687 return mSocket.isConnected(); in isConnected()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/pbap/ |
D | PbapStateMachineTest.java | 59 private BluetoothSocket mSocket; field in PbapStateMachineTest 82 mTestDevice, mSocket, mBluetoothPbapService, mHandler, TEST_NOTIFICATION_ID); in setUp()
|
/packages/modules/NetworkStack/src/android/net/apf/ |
D | ApfFilter.java | 191 private final FileDescriptor mSocket; field in ApfFilter.ReceiveThread 204 mSocket = socket; in ReceiveThread() 210 NetworkStackUtils.closeSocketQuietly(mSocket); in halt() 218 int length = Os.read(mSocket, mPacket, 0, mPacket.length); in run()
|