diff options
| author | Pavlin Radoslavov <pavlin@google.com> | 2017-01-04 16:10:09 -0800 |
|---|---|---|
| committer | Pavlin Radoslavov <pavlin@google.com> | 2017-01-04 16:30:35 -0800 |
| commit | feeb9b245c7aa04ba8f729048bac78efabf9e801 (patch) | |
| tree | 1e4af4947e96a07b233e749ee0ef5a5369d7ecb1 /core/java/android/bluetooth/BluetoothCodecConfig.java | |
| parent | a54d76a81f2d16c3e9d35fa87abc6f6d725d8bd2 (diff) | |
Integration of the aptX and aptX-HD codecs for A2DP source
Each of the codecs can be used if the corresponding encoding
shared library is installed on the device:
- aptX: libaptX.so
- aptX-HD: libaptXHD.so
Test: A2DP streaming to aptX and aptX-HD headsets
Bug: 30958229
Change-Id: I24faddc8cd88ae3e1370922c633f30e13124a867
Diffstat (limited to 'core/java/android/bluetooth/BluetoothCodecConfig.java')
| -rw-r--r-- | core/java/android/bluetooth/BluetoothCodecConfig.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/bluetooth/BluetoothCodecConfig.java b/core/java/android/bluetooth/BluetoothCodecConfig.java index 5cc127766e83..67fdb0caf8f7 100644 --- a/core/java/android/bluetooth/BluetoothCodecConfig.java +++ b/core/java/android/bluetooth/BluetoothCodecConfig.java @@ -47,7 +47,13 @@ public final class BluetoothCodecConfig implements Parcelable { public static final String EXTRA_PREVIOUS_CODEC_CONFIG = "android.bluetooth.codec.extra.PREVIOUS_CODEC_CONFIG"; + // Add an entry for each source codec here. + // NOTE: The values should be same as those listed in the following file: + // hardware/libhardware/include/hardware/bt_av.h public static final int SOURCE_CODEC_TYPE_SBC = 0; + public static final int SOURCE_CODEC_TYPE_APTX = 1; + public static final int SOURCE_CODEC_TYPE_APTX_HD = 2; + public static final int SOURCE_CODEC_TYPE_INVALID = 1000 * 1000; public static final int CODEC_PRIORITY_DEFAULT = 0; |
