Loading android/app/src/com/android/bluetooth/a2dp/A2dpCodecConfig.java +19 −6 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ import android.content.Context; import android.content.res.Resources; import android.content.res.Resources.NotFoundException; import android.media.AudioManager; import android.os.SystemProperties; import android.util.Log; import com.android.bluetooth.R; Loading Loading @@ -189,7 +190,9 @@ class A2dpCodecConfig { int value; try { value = resources.getInteger(R.integer.a2dp_source_codec_priority_sbc); value = SystemProperties.getInt( "bluetooth.a2dp.source.sbc_priority.config", resources.getInteger(R.integer.a2dp_source_codec_priority_sbc)); } catch (NotFoundException e) { value = BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT; } Loading @@ -199,7 +202,9 @@ class A2dpCodecConfig { } try { value = resources.getInteger(R.integer.a2dp_source_codec_priority_aac); value = SystemProperties.getInt( "bluetooth.a2dp.source.aac_priority.config", resources.getInteger(R.integer.a2dp_source_codec_priority_aac)); } catch (NotFoundException e) { value = BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT; } Loading @@ -209,7 +214,9 @@ class A2dpCodecConfig { } try { value = resources.getInteger(R.integer.a2dp_source_codec_priority_aptx); value = SystemProperties.getInt( "bluetooth.a2dp.source.aptx_priority.config", resources.getInteger(R.integer.a2dp_source_codec_priority_aptx)); } catch (NotFoundException e) { value = BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT; } Loading @@ -219,7 +226,9 @@ class A2dpCodecConfig { } try { value = resources.getInteger(R.integer.a2dp_source_codec_priority_aptx_hd); value = SystemProperties.getInt( "bluetooth.a2dp.source.aptx_hd_priority.config", resources.getInteger(R.integer.a2dp_source_codec_priority_aptx_hd)); } catch (NotFoundException e) { value = BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT; } Loading @@ -229,7 +238,9 @@ class A2dpCodecConfig { } try { value = resources.getInteger(R.integer.a2dp_source_codec_priority_ldac); value = SystemProperties.getInt( "bluetooth.a2dp.source.ldac_priority.config", resources.getInteger(R.integer.a2dp_source_codec_priority_ldac)); } catch (NotFoundException e) { value = BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT; } Loading @@ -239,7 +250,9 @@ class A2dpCodecConfig { } try { value = resources.getInteger(R.integer.a2dp_source_codec_priority_lc3); value = SystemProperties.getInt( "bluetooth.a2dp.source.lc3_priority.config", resources.getInteger(R.integer.a2dp_source_codec_priority_lc3)); } catch (NotFoundException e) { value = BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT; } Loading Loading
android/app/src/com/android/bluetooth/a2dp/A2dpCodecConfig.java +19 −6 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ import android.content.Context; import android.content.res.Resources; import android.content.res.Resources.NotFoundException; import android.media.AudioManager; import android.os.SystemProperties; import android.util.Log; import com.android.bluetooth.R; Loading Loading @@ -189,7 +190,9 @@ class A2dpCodecConfig { int value; try { value = resources.getInteger(R.integer.a2dp_source_codec_priority_sbc); value = SystemProperties.getInt( "bluetooth.a2dp.source.sbc_priority.config", resources.getInteger(R.integer.a2dp_source_codec_priority_sbc)); } catch (NotFoundException e) { value = BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT; } Loading @@ -199,7 +202,9 @@ class A2dpCodecConfig { } try { value = resources.getInteger(R.integer.a2dp_source_codec_priority_aac); value = SystemProperties.getInt( "bluetooth.a2dp.source.aac_priority.config", resources.getInteger(R.integer.a2dp_source_codec_priority_aac)); } catch (NotFoundException e) { value = BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT; } Loading @@ -209,7 +214,9 @@ class A2dpCodecConfig { } try { value = resources.getInteger(R.integer.a2dp_source_codec_priority_aptx); value = SystemProperties.getInt( "bluetooth.a2dp.source.aptx_priority.config", resources.getInteger(R.integer.a2dp_source_codec_priority_aptx)); } catch (NotFoundException e) { value = BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT; } Loading @@ -219,7 +226,9 @@ class A2dpCodecConfig { } try { value = resources.getInteger(R.integer.a2dp_source_codec_priority_aptx_hd); value = SystemProperties.getInt( "bluetooth.a2dp.source.aptx_hd_priority.config", resources.getInteger(R.integer.a2dp_source_codec_priority_aptx_hd)); } catch (NotFoundException e) { value = BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT; } Loading @@ -229,7 +238,9 @@ class A2dpCodecConfig { } try { value = resources.getInteger(R.integer.a2dp_source_codec_priority_ldac); value = SystemProperties.getInt( "bluetooth.a2dp.source.ldac_priority.config", resources.getInteger(R.integer.a2dp_source_codec_priority_ldac)); } catch (NotFoundException e) { value = BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT; } Loading @@ -239,7 +250,9 @@ class A2dpCodecConfig { } try { value = resources.getInteger(R.integer.a2dp_source_codec_priority_lc3); value = SystemProperties.getInt( "bluetooth.a2dp.source.lc3_priority.config", resources.getInteger(R.integer.a2dp_source_codec_priority_lc3)); } catch (NotFoundException e) { value = BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT; } Loading