diff options
| author | Pavlin Radoslavov <pavlin@google.com> | 2018-01-04 16:08:01 -0800 |
|---|---|---|
| committer | Pavlin Radoslavov <pavlin@google.com> | 2018-01-22 14:36:32 -0800 |
| commit | 2c67e9bd3632cf82539266d32c43b3a8582e9e66 (patch) | |
| tree | 0a92452a79a70d337747f4677d3882a9cbde0e60 /PMC | |
| parent | cf375bfe93a6f64b9e9e99e03b3362c1b1767808 (diff) | |
| download | platform_packages_apps_Test_connectivity-2c67e9bd3632cf82539266d32c43b3a8582e9e66.tar.gz platform_packages_apps_Test_connectivity-2c67e9bd3632cf82539266d32c43b3a8582e9e66.tar.bz2 platform_packages_apps_Test_connectivity-2c67e9bd3632cf82539266d32c43b3a8582e9e66.zip | |
Add support for Multi-A2DP state machines per device
Update usage of A2dpService API calls that take BluetoothDevice
as an additional argument. If the BluetoothDevice argument is null,
the API applies to the device that is currently the Active A2DP device.
Bug: 69269748
Test: Code compilation
Change-Id: I5d72393cfd5d485d7135b883860d5a2a07ee188a
Diffstat (limited to 'PMC')
| -rw-r--r-- | PMC/src/com/android/pmc/A2dpReceiver.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/PMC/src/com/android/pmc/A2dpReceiver.java b/PMC/src/com/android/pmc/A2dpReceiver.java index 676093b..843f7ae 100644 --- a/PMC/src/com/android/pmc/A2dpReceiver.java +++ b/PMC/src/com/android/pmc/A2dpReceiver.java @@ -403,7 +403,7 @@ public class A2dpReceiver extends BroadcastReceiver { BluetoothCodecConfig[] codecsSelectableCapabilities = null; if (mBluetoothA2dp != null) { - codecStatus = mBluetoothA2dp.getCodecStatus(); + codecStatus = mBluetoothA2dp.getCodecStatus(null); // Use current active device if (codecStatus != null) { codecConfig = codecStatus.getCodecConfig(); codecsLocalCapabilities = codecStatus.getCodecsLocalCapabilities(); @@ -466,7 +466,7 @@ public class A2dpReceiver extends BroadcastReceiver { if (mBluetoothA2dp != null) { Log.d(TAG, "setCodecConfigPreference()"); - mBluetoothA2dp.setCodecConfigPreference(codecConfig); + mBluetoothA2dp.setCodecConfigPreference(null, codecConfig); // Use current active device } else { Log.e(TAG, "mBluetoothA2dp is null. Codec is not set"); return false; |
