Merge "Support PBAP for get/close profile proxy"

am: 3e3f8bc09f

Change-Id: I816c0cf96fbe59b74c94ecfb4221cc92067ba537
This commit is contained in:
Chienyuan
2020-01-09 18:25:35 -08:00
committed by android-build-merger

View File

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