Merge "Expose isCISCentralSupported() and isLePeriodicAdvertisingSyncTransferSenderSupported() API"
diff --git a/src/com/android/bluetooth/btservice/AdapterService.java b/src/com/android/bluetooth/btservice/AdapterService.java
index 84efadd..1997451 100644
--- a/src/com/android/bluetooth/btservice/AdapterService.java
+++ b/src/com/android/bluetooth/btservice/AdapterService.java
@@ -2376,6 +2376,34 @@
}
@Override
+ public int isCisCentralSupported() {
+ AdapterService service = getService();
+ if (service == null) {
+ return BluetoothStatusCodes.ERROR_BLUETOOTH_NOT_ENABLED;
+ }
+
+ if (service.mAdapterProperties.isLeConnectedIsochronousStreamCentralSupported()) {
+ return BluetoothStatusCodes.SUCCESS;
+ }
+
+ return BluetoothStatusCodes.ERROR_FEATURE_NOT_SUPPORTED;
+ }
+
+ @Override
+ public int isLePeriodicAdvertisingSyncTransferSenderSupported() {
+ AdapterService service = getService();
+ if (service == null) {
+ return BluetoothStatusCodes.ERROR_BLUETOOTH_NOT_ENABLED;
+ }
+
+ if (service.mAdapterProperties.isLePeriodicAdvertisingSyncTransferSenderSupported()) {
+ return BluetoothStatusCodes.SUCCESS;
+ }
+
+ return BluetoothStatusCodes.ERROR_FEATURE_NOT_SUPPORTED;
+ }
+
+ @Override
public int getLeMaximumAdvertisingDataLength() {
AdapterService service = getService();
if (service == null) {