Hide Bluetooth codec classes constructors
Added BluetoothCodecStatus Builder and hid constructor.
Hid BluetoothCodecConfig constructor.
Bug: 222540543
Bug: 222539659
Test: atest BluetoothCodecsTest
Tag: #feature
Change-Id: I6836e31ed4a689fb327b3ad94ab5df7d144da06a
diff --git a/framework/api/current.txt b/framework/api/current.txt
index 2f858e1..81f2d88 100644
--- a/framework/api/current.txt
+++ b/framework/api/current.txt
@@ -412,7 +412,6 @@
}
public final class BluetoothCodecConfig implements android.os.Parcelable {
- ctor public BluetoothCodecConfig(int);
method public int describeContents();
method public int getBitsPerSample();
method public int getChannelMode();
@@ -467,7 +466,6 @@
}
public final class BluetoothCodecStatus implements android.os.Parcelable {
- ctor public BluetoothCodecStatus(@Nullable android.bluetooth.BluetoothCodecConfig, @Nullable java.util.List<android.bluetooth.BluetoothCodecConfig>, @Nullable java.util.List<android.bluetooth.BluetoothCodecConfig>);
method public int describeContents();
method @Nullable public android.bluetooth.BluetoothCodecConfig getCodecConfig();
method @NonNull public java.util.List<android.bluetooth.BluetoothCodecConfig> getCodecsLocalCapabilities();
@@ -478,6 +476,14 @@
field public static final String EXTRA_CODEC_STATUS = "android.bluetooth.extra.CODEC_STATUS";
}
+ public static final class BluetoothCodecStatus.Builder {
+ ctor public BluetoothCodecStatus.Builder();
+ method @NonNull public android.bluetooth.BluetoothCodecStatus build();
+ method @NonNull public android.bluetooth.BluetoothCodecStatus.Builder setCodecConfig(@NonNull android.bluetooth.BluetoothCodecConfig);
+ method @NonNull public android.bluetooth.BluetoothCodecStatus.Builder setCodecsLocalCapabilities(@NonNull java.util.List<android.bluetooth.BluetoothCodecConfig>);
+ method @NonNull public android.bluetooth.BluetoothCodecStatus.Builder setCodecsSelectableCapabilities(@NonNull java.util.List<android.bluetooth.BluetoothCodecConfig>);
+ }
+
public final class BluetoothCsipSetCoordinator implements java.lang.AutoCloseable android.bluetooth.BluetoothProfile {
method public void close();
method protected void finalize();