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

Commit 83b6a135 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Change isCISCentralSupported() to isLeAudioSupported() API"

parents d33c6217 6b5ee1f4
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")