diff options
| author | Chienyuan <chienyuanhuang@google.com> | 2020-01-08 17:50:08 +0800 |
|---|---|---|
| committer | Chienyuan <chienyuanhuang@google.com> | 2020-01-08 19:43:27 +0800 |
| commit | 2fca55dee2b20357a4bbadeeeca03965e306d359 (patch) | |
| tree | a7b92e5273835b06091b7189458943c2ec9abdb4 /core/java/android/bluetooth/BluetoothAdapter.java | |
| parent | b5b0b321f67c58af57d88cff3a6c78673489e8b3 (diff) | |
Support PBAP for get/close profile proxy
Bug: 147078847
Test: manual
Change-Id: Iabcf9ab81b052be8f6f7388843681450a1cd7da4
Diffstat (limited to 'core/java/android/bluetooth/BluetoothAdapter.java')
| -rw-r--r-- | core/java/android/bluetooth/BluetoothAdapter.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/bluetooth/BluetoothAdapter.java b/core/java/android/bluetooth/BluetoothAdapter.java index 291d1d99fdc9..220b77b299a4 100644 --- a/core/java/android/bluetooth/BluetoothAdapter.java +++ b/core/java/android/bluetooth/BluetoothAdapter.java @@ -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(); |
