diff options
author | Etienne Ruffieux <eruffieux@google.com> | 2022-02-08 13:11:27 +0000 |
---|---|---|
committer | Etienne Ruffieux <eruffieux@google.com> | 2022-02-08 13:11:27 +0000 |
commit | 4d1eabb0c7bbd3daec9fb794b689390dbc208c77 (patch) | |
tree | faa2d39d9b354043d53c669c4a5d56cdb351e13c /framework/tests/src/android/bluetooth/BluetoothCodecConfigTest.java | |
parent | 0b3fcdf1a5b7d965c324229421457b4149e7abc8 (diff) |
Removed getMaxCodecType and made getcodecName static
Bug: 218311980
Test: manual
Tag: #feature
Change-Id: Ic587d1838bed51bb6d758b14faf0a334ec24e444
Diffstat (limited to 'framework/tests/src/android/bluetooth/BluetoothCodecConfigTest.java')
-rw-r--r-- | framework/tests/src/android/bluetooth/BluetoothCodecConfigTest.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/framework/tests/src/android/bluetooth/BluetoothCodecConfigTest.java b/framework/tests/src/android/bluetooth/BluetoothCodecConfigTest.java index 824ac5362f..53623b809c 100644 --- a/framework/tests/src/android/bluetooth/BluetoothCodecConfigTest.java +++ b/framework/tests/src/android/bluetooth/BluetoothCodecConfigTest.java @@ -200,25 +200,25 @@ public class BluetoothCodecConfigTest extends TestCase { } if (codec_type == BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC) { - assertEquals("SBC", bcc.getCodecName()); + assertEquals("SBC", BluetoothCodecConfig.getCodecName(codec_type)); } if (codec_type == BluetoothCodecConfig.SOURCE_CODEC_TYPE_AAC) { - assertEquals("AAC", bcc.getCodecName()); + assertEquals("AAC", BluetoothCodecConfig.getCodecName(codec_type)); } if (codec_type == BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX) { - assertEquals("aptX", bcc.getCodecName()); + assertEquals("aptX", BluetoothCodecConfig.getCodecName(codec_type)); } if (codec_type == BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX_HD) { - assertEquals("aptX HD", bcc.getCodecName()); + assertEquals("aptX HD", BluetoothCodecConfig.getCodecName(codec_type)); } if (codec_type == BluetoothCodecConfig.SOURCE_CODEC_TYPE_LDAC) { - assertEquals("LDAC", bcc.getCodecName()); + assertEquals("LDAC", BluetoothCodecConfig.getCodecName(codec_type)); } if (codec_type == BluetoothCodecConfig.SOURCE_CODEC_TYPE_LC3) { - assertEquals("LC3", bcc.getCodecName()); + assertEquals("LC3", BluetoothCodecConfig.getCodecName(codec_type)); } if (codec_type == BluetoothCodecConfig.SOURCE_CODEC_TYPE_INVALID) { - assertEquals("INVALID CODEC", bcc.getCodecName()); + assertEquals("INVALID CODEC", BluetoothCodecConfig.getCodecName(codec_type)); } assertEquals(codec_type, bcc.getCodecType()); |