Proper handling of A2DP connetion timeout scenarios
- Remove connect time-out when moved to Connected/Disconnected
instead of Pending state.
- Initiate disconnect on timer expiry.
- When initiating incoming/outgoing connections, there is a
possiblity that CONNECT_TIMEOUT for outgoing connection
happens after successfully connected to other incoming
connection and thus this timeout will be received in Connected
state. We need to clear the target device and update the
connection state to ensure external apps update their states
accordingly.
Test: 1. Initiate outgoing connection to HS1 which is in OFF state
2. Do incoming connection to DUT.
Bug: 35414834
Change-Id: Ie866db651376ae74f3f6c03c204121eff13db89d
1 file changed