Loading core/java/android/bluetooth/BluetoothDevice.java +1 −1 Original line number Diff line number Diff line Loading @@ -1596,7 +1596,7 @@ public final class BluetoothDevice implements Parcelable { // BLE is not supported return null; } BluetoothGatt gatt = new BluetoothGatt(context, iGatt, this, transport); BluetoothGatt gatt = new BluetoothGatt(iGatt, this, transport); gatt.connect(autoConnect, callback); return gatt; } catch (RemoteException e) {Log.e(TAG, "", e);} Loading core/java/android/bluetooth/BluetoothGatt.java +1 −3 Original line number Diff line number Diff line Loading @@ -41,7 +41,6 @@ public final class BluetoothGatt implements BluetoothProfile { private static final boolean DBG = true; private static final boolean VDBG = false; private final Context mContext; private IBluetoothGatt mService; private BluetoothGattCallback mCallback; private int mClientIf; Loading Loading @@ -492,9 +491,8 @@ public final class BluetoothGatt implements BluetoothProfile { } }; /*package*/ BluetoothGatt(Context context, IBluetoothGatt iGatt, BluetoothDevice device, /*package*/ BluetoothGatt(IBluetoothGatt iGatt, BluetoothDevice device, int transport) { mContext = context; mService = iGatt; mDevice = device; mTransport = transport; Loading core/java/android/bluetooth/BluetoothGattServer.java +1 −3 Original line number Diff line number Diff line Loading @@ -44,7 +44,6 @@ public final class BluetoothGattServer implements BluetoothProfile { private static final boolean DBG = true; private static final boolean VDBG = false; private final Context mContext; private BluetoothAdapter mAdapter; private IBluetoothGatt mService; private BluetoothGattServerCallback mCallback; Loading Loading @@ -298,8 +297,7 @@ public final class BluetoothGattServer implements BluetoothProfile { /** * Create a BluetoothGattServer proxy object. */ /*package*/ BluetoothGattServer(Context context, IBluetoothGatt iGatt, int transport) { mContext = context; /*package*/ BluetoothGattServer(IBluetoothGatt iGatt, int transport) { mService = iGatt; mAdapter = BluetoothAdapter.getDefaultAdapter(); mCallback = null; Loading core/java/android/bluetooth/BluetoothManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -236,7 +236,7 @@ public final class BluetoothManager { Log.e(TAG, "Fail to get GATT Server connection"); return null; } BluetoothGattServer mGattServer = new BluetoothGattServer(context, iGatt,transport); BluetoothGattServer mGattServer = new BluetoothGattServer(iGatt,transport); Boolean regStatus = mGattServer.registerCallback(callback); return regStatus? mGattServer : null; } catch (RemoteException e) { Loading Loading
core/java/android/bluetooth/BluetoothDevice.java +1 −1 Original line number Diff line number Diff line Loading @@ -1596,7 +1596,7 @@ public final class BluetoothDevice implements Parcelable { // BLE is not supported return null; } BluetoothGatt gatt = new BluetoothGatt(context, iGatt, this, transport); BluetoothGatt gatt = new BluetoothGatt(iGatt, this, transport); gatt.connect(autoConnect, callback); return gatt; } catch (RemoteException e) {Log.e(TAG, "", e);} Loading
core/java/android/bluetooth/BluetoothGatt.java +1 −3 Original line number Diff line number Diff line Loading @@ -41,7 +41,6 @@ public final class BluetoothGatt implements BluetoothProfile { private static final boolean DBG = true; private static final boolean VDBG = false; private final Context mContext; private IBluetoothGatt mService; private BluetoothGattCallback mCallback; private int mClientIf; Loading Loading @@ -492,9 +491,8 @@ public final class BluetoothGatt implements BluetoothProfile { } }; /*package*/ BluetoothGatt(Context context, IBluetoothGatt iGatt, BluetoothDevice device, /*package*/ BluetoothGatt(IBluetoothGatt iGatt, BluetoothDevice device, int transport) { mContext = context; mService = iGatt; mDevice = device; mTransport = transport; Loading
core/java/android/bluetooth/BluetoothGattServer.java +1 −3 Original line number Diff line number Diff line Loading @@ -44,7 +44,6 @@ public final class BluetoothGattServer implements BluetoothProfile { private static final boolean DBG = true; private static final boolean VDBG = false; private final Context mContext; private BluetoothAdapter mAdapter; private IBluetoothGatt mService; private BluetoothGattServerCallback mCallback; Loading Loading @@ -298,8 +297,7 @@ public final class BluetoothGattServer implements BluetoothProfile { /** * Create a BluetoothGattServer proxy object. */ /*package*/ BluetoothGattServer(Context context, IBluetoothGatt iGatt, int transport) { mContext = context; /*package*/ BluetoothGattServer(IBluetoothGatt iGatt, int transport) { mService = iGatt; mAdapter = BluetoothAdapter.getDefaultAdapter(); mCallback = null; Loading
core/java/android/bluetooth/BluetoothManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -236,7 +236,7 @@ public final class BluetoothManager { Log.e(TAG, "Fail to get GATT Server connection"); return null; } BluetoothGattServer mGattServer = new BluetoothGattServer(context, iGatt,transport); BluetoothGattServer mGattServer = new BluetoothGattServer(iGatt,transport); Boolean regStatus = mGattServer.registerCallback(callback); return regStatus? mGattServer : null; } catch (RemoteException e) { Loading