Merge "BA: Replacing API" into bt.lnx.5.0
diff --git a/packages_apps_bluetooth_ext/src/ba/BATService.java b/packages_apps_bluetooth_ext/src/ba/BATService.java
index 9d20265..b658a67 100644
--- a/packages_apps_bluetooth_ext/src/ba/BATService.java
+++ b/packages_apps_bluetooth_ext/src/ba/BATService.java
@@ -453,7 +453,7 @@
if((mPrevStackBATState == BA_STACK_STATE_PENDING) &&
(mCurrStackBATState == BA_STACK_STATE_PAUSED)) {
Log.d(TAG," updating AudioManager: Connected for BA ");
- mAudioManager.handleBluetoothA2dpActiveDeviceChange(
+ mAudioManager.setBluetoothA2dpDeviceConnectionStateSuppressNoisyIntent(
mBADevice, BluetoothProfile.STATE_CONNECTED,BluetoothProfile.A2DP, true, -1);
//BA audio works on the principal of absVol
//Currently mm-audio tracks value of last updated absVol support,
@@ -471,13 +471,13 @@
// as a2dp has to be updated as well. Switching should happen to
// A2DP in this case.
Log.d(TAG," updating AudioManager: Connected for A2DP ");
- mAudioManager.handleBluetoothA2dpActiveDeviceChange(
+ mAudioManager.setBluetoothA2dpDeviceConnectionStateSuppressNoisyIntent(
a2dpActiveDevice, BluetoothProfile.STATE_CONNECTED,BluetoothProfile.A2DP,
true, -1);
} else {// a2dp active device is null.
// inform BA device as disconnected. we have to send noisy intent
// because BA seems to be last device.
- mAudioManager.handleBluetoothA2dpActiveDeviceChange(
+ mAudioManager.setBluetoothA2dpDeviceConnectionStateSuppressNoisyIntent(
mBADevice, BluetoothProfile.STATE_DISCONNECTED,BluetoothProfile.A2DP,
false, -1);
}