summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothLeAudioCodecConfig.java
diff options
context:
space:
mode:
authorPatty <plhuang@google.com>2022-02-22 20:25:56 +0800
committerPatty <plhuang@google.com>2022-02-23 11:31:37 +0800
commit79b5ad968a59df558d96bfd0dfe2c353d3c637d8 (patch)
treebc8a8e6a655f1ee4057c0663c1e777d2781c49db /framework/java/android/bluetooth/BluetoothLeAudioCodecConfig.java
parent9f25f10e0992417bf831ede9ea1dd4ee01146ae4 (diff)
Removed getMaxCodecType from BluetoothLeAudioCodecConfig, rename functions in BluetoothLeAudioCodecStatus
1. Remove function getMaxCodecType() 2. Rename getCodecsLocalCapabilities() to getCodecLocalCapabilities() 3. Rename getCodecsSelectableCapabilities() to getCodecSelectableCapabilities() 4. Change BluetoothLeAudio.getCodecStatus() and BluetoothLeAudio.setCodecConfigPreference() to system API Tag: #refactor Bug: 219875113 Test: atest BluetoothInstrumentationTests Change-Id: If6fa69802c0210e77dd50303b4a286514f3cffb5
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothLeAudioCodecConfig.java')
-rw-r--r--framework/java/android/bluetooth/BluetoothLeAudioCodecConfig.java13
1 files changed, 0 insertions, 13 deletions
diff --git a/framework/java/android/bluetooth/BluetoothLeAudioCodecConfig.java b/framework/java/android/bluetooth/BluetoothLeAudioCodecConfig.java
index 8377c2c7d2..004bf6b84f 100644
--- a/framework/java/android/bluetooth/BluetoothLeAudioCodecConfig.java
+++ b/framework/java/android/bluetooth/BluetoothLeAudioCodecConfig.java
@@ -47,12 +47,6 @@ public final class BluetoothLeAudioCodecConfig implements Parcelable {
public static final int SOURCE_CODEC_TYPE_LC3 = 0;
public static final int SOURCE_CODEC_TYPE_INVALID = 1000 * 1000;
- /**
- * Represents the count of valid source codec types. Can be accessed via
- * {@link #getMaxCodecType}.
- */
- private static final int SOURCE_CODEC_TYPE_MAX = 1;
-
/** @hide */
@IntDef(prefix = "CODEC_PRIORITY_",
value = {CODEC_PRIORITY_DISABLED, CODEC_PRIORITY_DEFAULT, CODEC_PRIORITY_HIGHEST})
@@ -280,13 +274,6 @@ public final class BluetoothLeAudioCodecConfig implements Parcelable {
}
/**
- * Returns the valid codec types count.
- */
- public static int getMaxCodecType() {
- return SOURCE_CODEC_TYPE_MAX;
- }
-
- /**
* Gets the codec name.
*
* @return the codec name