summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhenchao <quic_zhenchao@quicinc.com>2022-01-21 14:56:16 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2022-01-27 04:56:14 -0800
commit6081b1c048e9f56d6fd4524d5d8e24b4caf9f641 (patch)
tree5a6609d6d3f738e87f8d1ed8e9689e03969e9be7
parentfc1e69f16ce02c146ff90f75e18b72a2fce40490 (diff)
MediaAudio: connect LE media for group after incoming A2dp from remote
For EBs goes incase and outofcase scenario, EBs will auto reconnect a2dp. For DUT side, While incoming a2dp connection is accepted, invoke MediaAudio.autoConnect to initiate LE media connection for group devices. Change-Id: If431ff8b8892512e41426441bf5fbb7c57ffbf67 CRs-Fixed: 3114707
-rw-r--r--src/com/android/bluetooth/a2dp/A2dpStateMachine.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/bluetooth/a2dp/A2dpStateMachine.java b/src/com/android/bluetooth/a2dp/A2dpStateMachine.java
index ce3cc911a..41c13e692 100644
--- a/src/com/android/bluetooth/a2dp/A2dpStateMachine.java
+++ b/src/com/android/bluetooth/a2dp/A2dpStateMachine.java
@@ -247,7 +247,7 @@ final class A2dpStateMachine extends StateMachine {
Log.i(TAG, "Incoming A2DP Connecting request accepted: " + mDevice);
transitionTo(mConnecting);
MediaAudioIntf mMediaAudio = MediaAudioIntf.get();
- mMediaAudio.connect(mDevice);
+ mMediaAudio.autoConnect(mDevice);
} else {
// Reject the connection and stay in Disconnected state itself
Log.w(TAG, "Incoming A2DP Connecting request rejected: " + mDevice);
@@ -260,7 +260,7 @@ final class A2dpStateMachine extends StateMachine {
Log.i(TAG, "Incoming A2DP Connected request accepted: " + mDevice);
transitionTo(mConnected);
MediaAudioIntf mMediaAudio = MediaAudioIntf.get();
- mMediaAudio.connect(mDevice);
+ mMediaAudio.autoConnect(mDevice);
} else {
// Reject the connection and stay in Disconnected state itself
Log.w(TAG, "Incoming A2DP Connected request rejected: " + mDevice);
@@ -457,7 +457,7 @@ final class A2dpStateMachine extends StateMachine {
Log.w(TAG, "Disconnecting interrupted: device is connected: " + mDevice);
transitionTo(mConnected);
MediaAudioIntf mMediaAudio = MediaAudioIntf.get();
- mMediaAudio.connect(mDevice);
+ mMediaAudio.autoConnect(mDevice);
} else {
// Reject the connection and stay in Disconnecting state
Log.w(TAG, "Incoming A2DP Connected request rejected: " + mDevice);
@@ -469,7 +469,7 @@ final class A2dpStateMachine extends StateMachine {
Log.i(TAG, "Disconnecting interrupted: try to reconnect: " + mDevice);
transitionTo(mConnecting);
MediaAudioIntf mMediaAudio = MediaAudioIntf.get();
- mMediaAudio.connect(mDevice);
+ mMediaAudio.autoConnect(mDevice);
} else {
// Reject the connection and stay in Disconnecting state
Log.w(TAG, "Incoming A2DP Connecting request rejected: " + mDevice);