Move connectSocket into IBluetoothSocketManager (3/3)
Bug: 68359837 Test: none Merged-In: I1161a5fe74b034fba0112fd3a78bdf1fbace6e12 Change-Id: I1161a5fe74b034fba0112fd3a78bdf1fbace6e12
This commit is contained in:
@@ -375,7 +375,7 @@ public final class BluetoothSocket implements Closeable {
|
||||
IBluetooth bluetoothProxy =
|
||||
BluetoothAdapter.getDefaultAdapter().getBluetoothService(null);
|
||||
if (bluetoothProxy == null) throw new IOException("Bluetooth is off");
|
||||
mPfd = bluetoothProxy.connectSocket(mDevice, mType,
|
||||
mPfd = bluetoothProxy.getSocketManager().connectSocket(mDevice, mType,
|
||||
mUuid, mPort, getSecurityFlags());
|
||||
synchronized (this) {
|
||||
if (DBG) Log.d(TAG, "connect(), SocketState: " + mSocketState + ", mPfd: " + mPfd);
|
||||
|
||||
Reference in New Issue
Block a user