summaryrefslogtreecommitdiff
path: root/core/java/android/bluetooth/BluetoothAdapter.java
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2022-01-12 07:54:39 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-01-12 07:54:39 +0000
commitab91a34e7c091d6abf539dd2cb9e4124d32f89db (patch)
tree99d531da3ad4c10ab7781534bd109a9a0b85f237 /core/java/android/bluetooth/BluetoothAdapter.java
parent00429ea8094a50cf1f2cc29e40397f2d6a7db453 (diff)
parent8ef0cb74f7578adc534d511bdd47b811fa097abe (diff)
Merge "gtbs: Add Generic Telephone Bearer Service support" am: ddcee937c1 am: 66a9d57579 am: 8ef0cb74f7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1942955 Change-Id: I42f0e6c218a33e642207b46bc58a1b53cb6eee2a
Diffstat (limited to 'core/java/android/bluetooth/BluetoothAdapter.java')
-rw-r--r--core/java/android/bluetooth/BluetoothAdapter.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/bluetooth/BluetoothAdapter.java b/core/java/android/bluetooth/BluetoothAdapter.java
index 70d0ccaeee11..97c97f2748dd 100644
--- a/core/java/android/bluetooth/BluetoothAdapter.java
+++ b/core/java/android/bluetooth/BluetoothAdapter.java
@@ -3083,6 +3083,9 @@ public final class BluetoothAdapter {
BluetoothCsipSetCoordinator csipSetCoordinator =
new BluetoothCsipSetCoordinator(context, listener, this);
return true;
+ } else if (profile == BluetoothProfile.LE_CALL_CONTROL) {
+ BluetoothLeCallControl tbs = new BluetoothLeCallControl(context, listener);
+ return true;
} else {
return false;
}
@@ -3181,6 +3184,10 @@ public final class BluetoothAdapter {
(BluetoothCsipSetCoordinator) proxy;
csipSetCoordinator.close();
break;
+ case BluetoothProfile.LE_CALL_CONTROL:
+ BluetoothLeCallControl tbs = (BluetoothLeCallControl) proxy;
+ tbs.close();
+ break;
}
}