Merge "Move connectSocket into IBluetoothSocketManager (3/3)"

am: 8d742759cc

Change-Id: Id850f587e6ee58b18ffbe1651c0526a7fd39491f
This commit is contained in:
Jakub Pawlowski
2017-11-11 00:22:27 +00:00
committed by android-build-merger

View File

@@ -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);