Provide Spatializer in BluetoothFeatureProvider for Spatial Audio toggle

BUG: 316490612
Test: atest BluetoothDetailsSpatialAudioControllerTest
Change-Id: I7fdb671d5395e08c517af58e88b4aeb48f193e5d
This commit is contained in:
Haijie Hong
2023-12-15 16:13:33 +08:00
parent dd2cc366a6
commit cce5ff810d
3 changed files with 22 additions and 3 deletions

View File

@@ -18,6 +18,8 @@ package com.android.settings.bluetooth;
import android.bluetooth.BluetoothDevice;
import android.content.ComponentName;
import android.content.Context;
import android.media.Spatializer;
import android.net.Uri;
import java.util.List;
@@ -50,4 +52,12 @@ public interface BluetoothFeatureProvider {
* @return list of {@link ComponentName}
*/
List<ComponentName> getRelatedTools();
/**
* Gets the instance of {@link Spatializer}.
*
* @param context Context
* @return the Spatializer instance
*/
Spatializer getSpatializer(Context context);
}