Make BluetoothCodecConfig and BluetoothCodecStatus public.

Added SystemApi annotation, made constructors private,
added builder to BluetoothCodecConfig so AudioManager
and development Settings can use it normally.

Tag: #feature
Bug: 200202780
Test: BluetoothCodecConfigTest & BluetoothCodecStatusTest
Change-Id: I2b88b6f7682209ac0ee3929347bbf0fb67868167
diff --git a/tests/tests/bluetooth/src/android/bluetooth/cts/BufferConstraintsTest.java b/tests/tests/bluetooth/src/android/bluetooth/cts/BufferConstraintsTest.java
index a7bc8a3..cc29ccf 100644
--- a/tests/tests/bluetooth/src/android/bluetooth/cts/BufferConstraintsTest.java
+++ b/tests/tests/bluetooth/src/android/bluetooth/cts/BufferConstraintsTest.java
@@ -60,7 +60,7 @@
         }
         mBufferConstraints = new BufferConstraints(mBufferConstraintList);
 
-        for (int i = 0; i < BluetoothCodecConfig.SOURCE_CODEC_TYPE_MAX; i++) {
+        for (int i = 0; i < BluetoothCodecConfig.getMaxCodecType(); i++) {
             assertEquals(DEFAULT_BUFFER_TIME, mBufferConstraints.forCodec(i).getDefaultMillis());
             assertEquals(MAXIMUM_BUFFER_TIME, mBufferConstraints.forCodec(i).getMaxMillis());
             assertEquals(MINIMUM_BUFFER_TIME, mBufferConstraints.forCodec(i).getMinMillis());