From b33bd5bc2e7beb1c12a4abc3b70a0050111404c9 Mon Sep 17 00:00:00 2001 From: Pavlin Radoslavov Date: Sat, 14 Jan 2017 00:41:05 -0800 Subject: [PATCH] Integration of the AAC codec for A2DP source Test: A2DP streaming to AAC headsets Bug: 30958229 Change-Id: I1b530f1c5c495b8231fd68bed788d4567096683d --- core/java/android/bluetooth/BluetoothCodecConfig.java | 7 ++++--- packages/SettingsLib/res/values/arrays.xml | 3 +++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/core/java/android/bluetooth/BluetoothCodecConfig.java b/core/java/android/bluetooth/BluetoothCodecConfig.java index 52cd2de4c2b6..a37a0b38aa7c 100644 --- a/core/java/android/bluetooth/BluetoothCodecConfig.java +++ b/core/java/android/bluetooth/BluetoothCodecConfig.java @@ -51,9 +51,10 @@ public final class BluetoothCodecConfig implements Parcelable { // 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_LDAC = 3; + public static final int SOURCE_CODEC_TYPE_AAC = 1; + public static final int SOURCE_CODEC_TYPE_APTX = 2; + public static final int SOURCE_CODEC_TYPE_APTX_HD = 3; + public static final int SOURCE_CODEC_TYPE_LDAC = 4; public static final int SOURCE_CODEC_TYPE_INVALID = 1000 * 1000; diff --git a/packages/SettingsLib/res/values/arrays.xml b/packages/SettingsLib/res/values/arrays.xml index d52967fba663..28567bff9770 100644 --- a/packages/SettingsLib/res/values/arrays.xml +++ b/packages/SettingsLib/res/values/arrays.xml @@ -107,6 +107,7 @@ Use System Selection (Default) SBC + AAC aptX aptX HD LDAC @@ -119,12 +120,14 @@ 1 2 3 + 4 Use System Selection (Default) SBC + AAC aptX aptX HD LDAC -- 2.11.0