Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6b5ee1f4 authored by Patty's avatar Patty
Browse files

Change isCISCentralSupported() to isLeAudioSupported() API

Tag: #feature
Bug: 200749925
Bug: 150670922
Test: atest BasicAdapterTest
Change-Id: Id975d975e061ab948d12bde3fe395e7e6181e5b1
parent 2d332406
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -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;
            }

+1 −1
Original line number Diff line number Diff line
@@ -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")