Home
last modified time | relevance | path

Searched refs:mSocket (Results 1 – 23 of 23) sorted by relevance

/packages/apps/TV/tuner/src/com/android/tv/tuner/hdhomerun/
DHdHomeRunControlSocket.java44 private Socket mSocket; field in HdHomeRunControlSocket
106 if (mSocket != null) { in connectAndUpdateDeviceInfo()
133 mSocket = new Socket(); in connectAndUpdateDeviceInfo()
135 mSocket.connect( in connectAndUpdateDeviceInfo()
141 if (DEBUG) Log.d(TAG, "Cannot connect to socket: " + mSocket); in connectAndUpdateDeviceInfo()
142 mSocket = null; in connectAndUpdateDeviceInfo()
147 Log.i(TAG, "Connected to socket: " + mSocket); in connectAndUpdateDeviceInfo()
154 if (mSocket == null && !connectAndUpdateDeviceInfo()) { in sendAndReceive()
176 OutputStream out = mSocket.getOutputStream(); in send()
177 mSocket.setSoTimeout(HdHomeRunUtils.HDHOMERUN_CONTROL_SEND_TIMEOUT_MS); in send()
[all …]
DHdHomeRunDiscover.java303 DatagramSocket mSocket; field in HdHomeRunDiscover.HdHomeRunDiscoverSocket
311 mSocket = socket; in HdHomeRunDiscoverSocket()
334 mSocket.send(packet); in send()
355 mSocket.setSoTimeout(HDHOMERUN_DISCOVER_RECEIVE_WAITE_TIME_MS); in receive()
356 mSocket.receive(packet); in receive()
436 if (mSocket != null) { in close()
437 mSocket.close(); in close()
/packages/apps/Bluetooth/src/com/android/bluetooth/
DBluetoothObexTransport.java33 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 …]
DObexRejectServer.java47 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/
DSnepMessenger.java37 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/
DBluetoothConnection.java38 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/
DPbapClientConnectionHandler.java129 private BluetoothSocket mSocket; field in PbapClientConnectionHandler
298 mSocket = in connectSocket()
302 mSocket = mDevice.createL2capSocket(mPseRec.getL2capPsm()); in connectSocket()
305 mSocket = mDevice.createRfcommSocket(mPseRec.getRfcommChannelNumber()); in connectSocket()
308 if (mSocket != null) { in connectSocket()
309 mSocket.connect(); in connectSocket()
329 BluetoothObexTransport transport = new BluetoothObexTransport(mSocket); in connectObexSession()
376 if (mSocket != null) { in closeSocket()
378 Log.d(TAG, "Closing socket" + mSocket); in closeSocket()
380 mSocket.close(); in closeSocket()
[all …]
DBluetoothPbapObexTransport.java31 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/modules/DnsResolver/
DDnsTlsTransport.cpp46 if (!mSocket) { in query()
63 const bool sent = mSocket->query(q.newId, netdutils::drop(netdutils::makeSlice(q.query), 2)); in sendQuery()
72 mSocket = mFactory->createDnsTlsSocket(mServer, mMark, this, &mCache); in doConnect()
75 if (mSocket) { in doConnect()
85 mSocket.reset(); in doConnect()
127 mSocket.reset(); in doReconnect()
149 mSocket.reset(); in ~DnsTlsTransport()
DDnsTlsTransport.h86 std::unique_ptr<IDnsTlsSocket> mSocket GUARDED_BY(mLock);
/packages/apps/Nfc/src/com/android/nfc/ndefpush/
DNdefPushClient.java45 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/
DHandoverClient.java42 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/
DMasClient.java80 private BluetoothSocket mSocket; field in MasClient
114 mSocket = mRemoteDevice.createL2capSocket(l2capSocket); in connect()
120 mSocket = mRemoteDevice.createRfcommSocket(mSdpMasRecord.getRfcommCannelNumber()); in connect()
122 if (DBG) Log.d(TAG, mRemoteDevice.toString() + "Socket: " + mSocket.toString()); in connect()
123 mSocket.connect(); in connect()
124 mTransport = new BluetoothObexTransport(mSocket); in connect()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DIkeUdpSocket.java42 protected final FileDescriptor mSocket; field in IkeUdpSocket
46 mSocket = socket; in IkeUdpSocket()
52 return mSocket; in getFd()
106 Os.sendto(mSocket, buffer, 0, serverAddress, getIkeServerPort()); in sendIkePacket()
125 Os.close(mSocket); in close()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DAvrcpBipClient.java83 private BluetoothSocket mSocket; field in AvrcpBipClient
257 mSocket = mDevice.createL2capSocket(mPsm); in connect()
258 mSocket.connect(); in connect()
260 mTransport = new BluetoothObexTransport(mSocket); in connect()
337 mSocket.close(); in disconnect()
345 mSocket = null; in disconnect()
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/
DGetCapabilitiesTask.java46 private volatile Socket mSocket; field in GetCapabilitiesTask
57 mSocket = socket; in isDeviceOnline()
64 mSocket = null; in isDeviceOnline()
71 Socket socket = mSocket; in forceCancel()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpServer.java122 private FileDescriptor mSocket; field in DhcpServer
756 mDeps.sendPacket(mSocket, buf, dst); in transmitPacket()
766 mDeps.addArpEntry(inetAddr, macAddr, mIfName, mSocket); in addArpEntry()
851 mSocket = Os.socket(AF_INET, SOCK_DGRAM | SOCK_NONBLOCK, IPPROTO_UDP); in createFd()
852 SocketUtils.bindSocketToInterface(mSocket, mIfName); in createFd()
853 Os.setsockoptInt(mSocket, SOL_SOCKET, SO_REUSEADDR, 1); in createFd()
854 Os.setsockoptInt(mSocket, SOL_SOCKET, SO_BROADCAST, 1); in createFd()
855 Os.bind(mSocket, IPV4_ADDR_ANY, DHCP_SERVER); in createFd()
857 return mSocket; in createFd()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DTestActivity.java630 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/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/keepalive/
DSoftwareKeepaliveImpl.java44 private final UdpEncapsulationSocket mSocket; field in SoftwareKeepaliveImpl
61 mSocket = socket; in SoftwareKeepaliveImpl()
88 mSocket.getFileDescriptor(), in sendKeepaliveAndScheduleNext()
DIkeNattKeepalive.java99 private final UdpEncapsulationSocket mSocket; field in IkeNattKeepalive.HardwareKeepaliveCb
111 mSocket = socket; in HardwareKeepaliveCb()
125 mSocket, in onHardwareOffloadError()
/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/
DCaptivePortalLoginActivityTest.java520 private final ServerSocket mSocket; field in CaptivePortalLoginActivityTest.HttpServer
543 mSocket = socket; in HttpServer()
548 return () -> mSocket; in getServerSocketFactory()
554 .encodedAuthority("localhost:" + mSocket.getLocalPort()) in makeUrl()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/pbap/
DPbapStateMachineTest.java59 private BluetoothSocket mSocket; field in PbapStateMachineTest
82 mTestDevice, mSocket, mBluetoothPbapService, mHandler, TEST_NOTIFICATION_ID); in setUp()
/packages/modules/NetworkStack/src/android/net/apf/
DApfFilter.java193 private final FileDescriptor mSocket; field in ApfFilter.ReceiveThread
206 mSocket = socket; in ReceiveThread()
212 NetworkStackUtils.closeSocketQuietly(mSocket); in halt()
220 int length = Os.read(mSocket, mPacket, 0, mPacket.length); in run()