diff options
Diffstat (limited to 'src/com/android/settings/development/bluetooth/BluetoothCodecDialogPreferenceController.java')
-rw-r--r-- | src/com/android/settings/development/bluetooth/BluetoothCodecDialogPreferenceController.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/com/android/settings/development/bluetooth/BluetoothCodecDialogPreferenceController.java b/src/com/android/settings/development/bluetooth/BluetoothCodecDialogPreferenceController.java index a0af268c8f..dc326fe9fd 100644 --- a/src/com/android/settings/development/bluetooth/BluetoothCodecDialogPreferenceController.java +++ b/src/com/android/settings/development/bluetooth/BluetoothCodecDialogPreferenceController.java @@ -62,6 +62,7 @@ public class BluetoothCodecDialogPreferenceController extends @Override public void onHDAudioEnabled(boolean enabled) { + Log.d(TAG, " onHDAudioEnabled: " + enabled); if (!enabled) { // If option codec is disabled, SBC is the only only one available codec. onIndexUpdated(convertCfgToBtnIndex(BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC)); @@ -125,6 +126,14 @@ public class BluetoothCodecDialogPreferenceController extends codecTypeValue = BluetoothCodecConfig.SOURCE_CODEC_TYPE_LDAC; codecPriorityValue = BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST; break; + case 6: + codecTypeValue = BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX_ADAPTIVE; + codecPriorityValue = BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST; + break; + case 7: + codecTypeValue = BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX_TWSP; + codecPriorityValue = BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST; + break; default: break; } @@ -179,9 +188,15 @@ public class BluetoothCodecDialogPreferenceController extends case BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX_HD: index = 4; break; + case BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX_ADAPTIVE: + index = 6; + break; case BluetoothCodecConfig.SOURCE_CODEC_TYPE_LDAC: index = 5; break; + case BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX_TWSP: + index = 7; + break; default: Log.e(TAG, "Unsupported config:" + config); break; |