Add BT extra options in device details page

Bug: 319562236
Test: make RunSettingsRoboTests ROBOTEST_FILTER=BluetoothDetailsExtraOptionsControllerTest
Change-Id: Ifab39d2bd19044d60f090f4a0419d1e20b2ad925
This commit is contained in:
Haijie Hong
2024-01-15 17:30:04 +08:00
parent dea44ebf7b
commit 76d8145f15
6 changed files with 207 additions and 0 deletions

View File

@@ -22,6 +22,10 @@ import android.content.Context;
import android.media.Spatializer;
import android.net.Uri;
import androidx.preference.Preference;
import com.android.settingslib.bluetooth.CachedBluetoothDevice;
import java.util.List;
/**
@@ -60,4 +64,13 @@ public interface BluetoothFeatureProvider {
* @return the Spatializer instance
*/
Spatializer getSpatializer(Context context);
/**
* Gets bluetooth device extra options
*
* @param context Context
* @param device the bluetooth device
* @return the extra bluetooth preference list
*/
List<Preference> getBluetoothExtraOptions(Context context, CachedBluetoothDevice device);
}