MAP MCE disconnecting automatically
Disconnect commands were getting queued even if bluetooth wasn't
connected. This would cause the disconnect command to get processed
immediately after the connection succeeded. Updated logic to defer all
commands while "Connecting" or "Disconnecting" throw out any disconnect
commands at the head of the queue while "Disconnected" and generate
implied disconnect commands when a connect command arived while already
Connected.
Bug:
32080718
Change-Id: Ib02c74c753e88cf4876835ee8e5e0c8f2a6ebc34
(cherry picked from commit
2e8805b2ad2e8b70fb82fde37498922c92d15cb6)