Merge "Integration of the AAC codec for A2DP source" am: 6a153ac4aa
am: a53cc5068d
am: e3fc5f7b56
Change-Id: I69b7cef21d953bcecd2fb73ddbc1b6231c4eb25b
This commit is contained in:
@@ -1836,15 +1836,18 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
|
|||||||
case BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC:
|
case BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC:
|
||||||
index = 1;
|
index = 1;
|
||||||
break;
|
break;
|
||||||
case BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX:
|
case BluetoothCodecConfig.SOURCE_CODEC_TYPE_AAC:
|
||||||
index = 2;
|
index = 2;
|
||||||
break;
|
break;
|
||||||
case BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX_HD:
|
case BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX:
|
||||||
index = 3;
|
index = 3;
|
||||||
break;
|
break;
|
||||||
case BluetoothCodecConfig.SOURCE_CODEC_TYPE_LDAC:
|
case BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX_HD:
|
||||||
index = 4;
|
index = 4;
|
||||||
break;
|
break;
|
||||||
|
case BluetoothCodecConfig.SOURCE_CODEC_TYPE_LDAC:
|
||||||
|
index = 5;
|
||||||
|
break;
|
||||||
case BluetoothCodecConfig.SOURCE_CODEC_TYPE_INVALID:
|
case BluetoothCodecConfig.SOURCE_CODEC_TYPE_INVALID:
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@@ -1986,12 +1989,15 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
|
|||||||
codecTypeValue = BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC;
|
codecTypeValue = BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
codecTypeValue = BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX;
|
codecTypeValue = BluetoothCodecConfig.SOURCE_CODEC_TYPE_AAC;
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
codecTypeValue = BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX_HD;
|
codecTypeValue = BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX;
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
|
codecTypeValue = BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX_HD;
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
codecTypeValue = BluetoothCodecConfig.SOURCE_CODEC_TYPE_LDAC;
|
codecTypeValue = BluetoothCodecConfig.SOURCE_CODEC_TYPE_LDAC;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@@ -2003,14 +2009,18 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
|
|||||||
codecPriorityValue = BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST;
|
codecPriorityValue = BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
codecTypeValue = BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX;
|
codecTypeValue = BluetoothCodecConfig.SOURCE_CODEC_TYPE_AAC;
|
||||||
codecPriorityValue = BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST;
|
codecPriorityValue = BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST;
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
codecTypeValue = BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX_HD;
|
codecTypeValue = BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX;
|
||||||
codecPriorityValue = BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST;
|
codecPriorityValue = BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST;
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
|
codecTypeValue = BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX_HD;
|
||||||
|
codecPriorityValue = BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST;
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
codecTypeValue = BluetoothCodecConfig.SOURCE_CODEC_TYPE_LDAC;
|
codecTypeValue = BluetoothCodecConfig.SOURCE_CODEC_TYPE_LDAC;
|
||||||
codecPriorityValue = BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST;
|
codecPriorityValue = BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user