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

Commit 4f33ab6c authored by William Escande's avatar William Escande
Browse files

Add SystemApi to AudioManager method

getHwOffloadFormatsSupportedForBluetoothMedia is convert to a SystemApi
for module only (only use in BT)

Test: Build
Bug: 190422401
Tag: #refactor
Change-Id: Id46331b300a53a2ca69d02c5508f2f9d508337b9
parent bbf5511c
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -64,8 +64,7 @@ class A2dpCodecConfig {
          Log.w(TAG, "Can't obtain the codec offloading prefernece from null AudioManager");
          return;
        }
        mCodecConfigOffloading = audioManager.getHwOffloadFormatsSupportedForBluetoothMedia(
                                                    AudioManager.DEVICE_OUT_BLUETOOTH_A2DP)
        mCodecConfigOffloading = audioManager.getHwOffloadFormatsSupportedForA2dp()
                                             .toArray(mCodecConfigOffloading);
    }

+1 −2
Original line number Diff line number Diff line
@@ -41,8 +41,7 @@ class LeAudioCodecConfig {
            return;
        }

        mCodecConfigOffloading = audioManager.getHwOffloadFormatsSupportedForBluetoothMedia(
                                                    AudioManager.DEVICE_OUT_BLE_HEADSET)
        mCodecConfigOffloading = audioManager.getHwOffloadFormatsSupportedForLeAudio()
                                             .toArray(mCodecConfigOffloading);

        if (DBG) {