Loading android/app/src/com/android/bluetooth/btservice/AdapterService.java +6 −2 Original line number Diff line number Diff line Loading @@ -2422,13 +2422,17 @@ public class AdapterService extends Service { } @Override public int isCisCentralSupported() { public int isLeAudioSupported() { AdapterService service = getService(); if (service == null) { return BluetoothStatusCodes.ERROR_BLUETOOTH_NOT_ENABLED; } if (service.mAdapterProperties.isLeConnectedIsochronousStreamCentralSupported()) { HashSet<Class> supportedProfileServices = new HashSet<Class>(Arrays.asList(Config.getSupportedProfiles())); HashSet<Class> leAudioUnicastProfiles = Config.geLeAudioUnicastProfiles(); if (supportedProfileServices.containsAll(leAudioUnicastProfiles)) { return BluetoothStatusCodes.SUCCESS; } Loading system/binder/android/bluetooth/IBluetooth.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -196,7 +196,7 @@ interface IBluetooth @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission") boolean isLePeriodicAdvertisingSupported(); @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission") int isCisCentralSupported(); int isLeAudioSupported(); @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission") int isLePeriodicAdvertisingSyncTransferSenderSupported(); @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission") Loading Loading
android/app/src/com/android/bluetooth/btservice/AdapterService.java +6 −2 Original line number Diff line number Diff line Loading @@ -2422,13 +2422,17 @@ public class AdapterService extends Service { } @Override public int isCisCentralSupported() { public int isLeAudioSupported() { AdapterService service = getService(); if (service == null) { return BluetoothStatusCodes.ERROR_BLUETOOTH_NOT_ENABLED; } if (service.mAdapterProperties.isLeConnectedIsochronousStreamCentralSupported()) { HashSet<Class> supportedProfileServices = new HashSet<Class>(Arrays.asList(Config.getSupportedProfiles())); HashSet<Class> leAudioUnicastProfiles = Config.geLeAudioUnicastProfiles(); if (supportedProfileServices.containsAll(leAudioUnicastProfiles)) { return BluetoothStatusCodes.SUCCESS; } Loading
system/binder/android/bluetooth/IBluetooth.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -196,7 +196,7 @@ interface IBluetooth @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission") boolean isLePeriodicAdvertisingSupported(); @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission") int isCisCentralSupported(); int isLeAudioSupported(); @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission") int isLePeriodicAdvertisingSyncTransferSenderSupported(); @JavaPassthrough(annotation="@android.annotation.RequiresNoPermission") Loading