Loading android/app/src/com/android/bluetooth/btservice/AdapterService.java +28 −0 Original line number Diff line number Diff line Loading @@ -2375,6 +2375,34 @@ public class AdapterService extends Service { return service.isLePeriodicAdvertisingSupported(); } @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(); Loading Loading
android/app/src/com/android/bluetooth/btservice/AdapterService.java +28 −0 Original line number Diff line number Diff line Loading @@ -2375,6 +2375,34 @@ public class AdapterService extends Service { return service.isLePeriodicAdvertisingSupported(); } @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(); Loading