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

Commit 7c31bfe2 authored by Grzegorz Kołodziejczyk's avatar Grzegorz Kołodziejczyk
Browse files

le_audio: Remove temporary LE audio profile info getter

This removes temporary getter for LE Audio output profile.

Bug: 236618595
Tag: #feature
Test: atest GoogleBluetoothInstrumentationTests
Change-Id: I6fbbc06a144f5ffec4aa1356b23062925e8fca99
parent 70bee993
Loading
Loading
Loading
Loading
+4 −18
Original line number Diff line number Diff line
@@ -1238,7 +1238,8 @@ public class LeAudioService extends ProfileService {
                    == BluetoothProfile.STATE_CONNECTED);

            mAudioManager.handleBluetoothActiveDeviceChanged(mActiveAudioOutDevice,
                    previousActiveOutDevice, getLeAudioOutputProfile(suppressNoisyIntent, volume));
                    previousActiveOutDevice, BluetoothProfileConnectionInfo.createLeAudioOutputInfo(
                            suppressNoisyIntent, volume));
        }

        if (isNewActiveInDevice) {
@@ -1435,22 +1436,6 @@ public class LeAudioService extends ProfileService {
        }
    }

    BluetoothProfileConnectionInfo getLeAudioOutputProfile(boolean suppressNoisyIntent,
            int volume) {
        /* TODO - b/236618595 */
        Parcel parcel = Parcel.obtain();
        parcel.writeInt(BluetoothProfile.LE_AUDIO);
        parcel.writeBoolean(suppressNoisyIntent);
        parcel.writeInt(volume);
        parcel.writeBoolean(true /* isLeOutput */);
        parcel.setDataPosition(0);

        BluetoothProfileConnectionInfo profileInfo =
                BluetoothProfileConnectionInfo.CREATOR.createFromParcel(parcel);
        parcel.recycle();
        return profileInfo;
    }

    BluetoothProfileConnectionInfo getBroadcastProfile(boolean suppressNoisyIntent) {
        Parcel parcel = Parcel.obtain();
        parcel.writeInt(BluetoothProfile.LE_AUDIO_BROADCAST);
@@ -2848,7 +2833,8 @@ public class LeAudioService extends ProfileService {
                    + "change with volume=" + volume + " and suppressNoisyIntent="
                    + suppressNoisyIntent);
            mAudioManager.handleBluetoothActiveDeviceChanged(mActiveAudioOutDevice,
                    mActiveAudioOutDevice, getLeAudioOutputProfile(suppressNoisyIntent, volume));
                    mActiveAudioOutDevice, BluetoothProfileConnectionInfo.createLeAudioOutputInfo(
                            suppressNoisyIntent, volume));
            audioFrameworkCalls++;
        }