Loading framework/java/android/bluetooth/BluetoothSocket.java +2 −2 Original line number Diff line number Diff line Loading @@ -455,7 +455,7 @@ public final class BluetoothSocket implements Closeable { } mPfd = socketManager.connectSocket(mDevice, mType, mUuid, mPort, getSecurityFlags()); synchronized (this) { if (DBG) Log.d(TAG, "connect(), SocketState: " + mSocketState + ", mPfd: " + mPfd); Log.i(TAG, "connect(), SocketState: " + mSocketState + ", mPfd: " + mPfd); if (mSocketState == SocketState.CLOSED) { throw new BluetoothSocketException( BluetoothSocketException.SOCKET_CLOSED); Loading Loading @@ -485,7 +485,7 @@ public final class BluetoothSocket implements Closeable { throw new BluetoothSocketException(BluetoothSocketException.SOCKET_CLOSED); } mSocketState = SocketState.CONNECTED; if (DBG) Log.d(TAG, "connect(), socket connected"); Log.i(TAG, "connect(), socket connected. mPort=" + mPort); } } catch (BluetoothSocketException e) { SocketMetrics.logSocketConnect( Loading Loading
framework/java/android/bluetooth/BluetoothSocket.java +2 −2 Original line number Diff line number Diff line Loading @@ -455,7 +455,7 @@ public final class BluetoothSocket implements Closeable { } mPfd = socketManager.connectSocket(mDevice, mType, mUuid, mPort, getSecurityFlags()); synchronized (this) { if (DBG) Log.d(TAG, "connect(), SocketState: " + mSocketState + ", mPfd: " + mPfd); Log.i(TAG, "connect(), SocketState: " + mSocketState + ", mPfd: " + mPfd); if (mSocketState == SocketState.CLOSED) { throw new BluetoothSocketException( BluetoothSocketException.SOCKET_CLOSED); Loading Loading @@ -485,7 +485,7 @@ public final class BluetoothSocket implements Closeable { throw new BluetoothSocketException(BluetoothSocketException.SOCKET_CLOSED); } mSocketState = SocketState.CONNECTED; if (DBG) Log.d(TAG, "connect(), socket connected"); Log.i(TAG, "connect(), socket connected. mPort=" + mPort); } } catch (BluetoothSocketException e) { SocketMetrics.logSocketConnect( Loading