Loading android/app/src/com/android/bluetooth/a2dp/A2dpStateMachine.java +6 −0 Original line number Diff line number Diff line Loading @@ -479,6 +479,12 @@ final class A2dpStateMachine extends StateMachine { private class Connected extends State { @Override public void enter() { // Remove pending connection attempts that were deferred during the pending // state. This is to prevent auto connect attempts from disconnecting // devices that previously successfully connected. // TODO: This needs to check for multiple A2DP connections, once supported... removeDeferredMessages(CONNECT); log("Enter Connected: " + getCurrentMessage().what); // Upon connected, the audio starts out as stopped broadcastAudioState(mCurrentDevice, BluetoothA2dp.STATE_NOT_PLAYING, Loading android/app/src/com/android/bluetooth/hfp/HeadsetStateMachine.java +10 −4 Original line number Diff line number Diff line Loading @@ -741,6 +741,12 @@ final class HeadsetStateMachine extends StateMachine { private class Connected extends State { @Override public void enter() { // Remove pending connection attempts that were deferred during the pending // state. This is to prevent auto connect attempts from disconnecting // devices that previously successfully connected. // TODO: This needs to check for multiple HFP connections, once supported... removeDeferredMessages(CONNECT); log("Enter Connected: " + getCurrentMessage().what + ", size: " + mConnectedDevicesList.size()); // start phone state listener here so that the CIND response as part of SLC can be Loading Loading
android/app/src/com/android/bluetooth/a2dp/A2dpStateMachine.java +6 −0 Original line number Diff line number Diff line Loading @@ -479,6 +479,12 @@ final class A2dpStateMachine extends StateMachine { private class Connected extends State { @Override public void enter() { // Remove pending connection attempts that were deferred during the pending // state. This is to prevent auto connect attempts from disconnecting // devices that previously successfully connected. // TODO: This needs to check for multiple A2DP connections, once supported... removeDeferredMessages(CONNECT); log("Enter Connected: " + getCurrentMessage().what); // Upon connected, the audio starts out as stopped broadcastAudioState(mCurrentDevice, BluetoothA2dp.STATE_NOT_PLAYING, Loading
android/app/src/com/android/bluetooth/hfp/HeadsetStateMachine.java +10 −4 Original line number Diff line number Diff line Loading @@ -741,6 +741,12 @@ final class HeadsetStateMachine extends StateMachine { private class Connected extends State { @Override public void enter() { // Remove pending connection attempts that were deferred during the pending // state. This is to prevent auto connect attempts from disconnecting // devices that previously successfully connected. // TODO: This needs to check for multiple HFP connections, once supported... removeDeferredMessages(CONNECT); log("Enter Connected: " + getCurrentMessage().what + ", size: " + mConnectedDevicesList.size()); // start phone state listener here so that the CIND response as part of SLC can be Loading