Loading core/java/android/bluetooth/BluetoothAdapter.java +7 −0 Original line number Original line Diff line number Diff line Loading @@ -2670,6 +2670,9 @@ public final class BluetoothAdapter { } else if (profile == BluetoothProfile.PAN) { } else if (profile == BluetoothProfile.PAN) { BluetoothPan pan = new BluetoothPan(context, listener); BluetoothPan pan = new BluetoothPan(context, listener); return true; return true; } else if (profile == BluetoothProfile.PBAP) { BluetoothPbap pbap = new BluetoothPbap(context, listener); return true; } else if (profile == BluetoothProfile.HEALTH) { } else if (profile == BluetoothProfile.HEALTH) { Log.e(TAG, "getProfileProxy(): BluetoothHealth is deprecated"); Log.e(TAG, "getProfileProxy(): BluetoothHealth is deprecated"); return false; return false; Loading Loading @@ -2742,6 +2745,10 @@ public final class BluetoothAdapter { BluetoothPan pan = (BluetoothPan) proxy; BluetoothPan pan = (BluetoothPan) proxy; pan.close(); pan.close(); break; break; case BluetoothProfile.PBAP: BluetoothPbap pbap = (BluetoothPbap) proxy; pbap.close(); break; case BluetoothProfile.GATT: case BluetoothProfile.GATT: BluetoothGatt gatt = (BluetoothGatt) proxy; BluetoothGatt gatt = (BluetoothGatt) proxy; gatt.close(); gatt.close(); Loading Loading
core/java/android/bluetooth/BluetoothAdapter.java +7 −0 Original line number Original line Diff line number Diff line Loading @@ -2670,6 +2670,9 @@ public final class BluetoothAdapter { } else if (profile == BluetoothProfile.PAN) { } else if (profile == BluetoothProfile.PAN) { BluetoothPan pan = new BluetoothPan(context, listener); BluetoothPan pan = new BluetoothPan(context, listener); return true; return true; } else if (profile == BluetoothProfile.PBAP) { BluetoothPbap pbap = new BluetoothPbap(context, listener); return true; } else if (profile == BluetoothProfile.HEALTH) { } else if (profile == BluetoothProfile.HEALTH) { Log.e(TAG, "getProfileProxy(): BluetoothHealth is deprecated"); Log.e(TAG, "getProfileProxy(): BluetoothHealth is deprecated"); return false; return false; Loading Loading @@ -2742,6 +2745,10 @@ public final class BluetoothAdapter { BluetoothPan pan = (BluetoothPan) proxy; BluetoothPan pan = (BluetoothPan) proxy; pan.close(); pan.close(); break; break; case BluetoothProfile.PBAP: BluetoothPbap pbap = (BluetoothPbap) proxy; pbap.close(); break; case BluetoothProfile.GATT: case BluetoothProfile.GATT: BluetoothGatt gatt = (BluetoothGatt) proxy; BluetoothGatt gatt = (BluetoothGatt) proxy; gatt.close(); gatt.close(); Loading