TWSP-HFP: fix issues for creating SCO based on earbud state (2/2)
- In some case, earbud not send AT%QES to report its state immediately after
BT reset and SLC get connected. While HFP connectAudio, DUT think earbud is
not in-ear state and not create SCO. Need create SCO connection for earbud
which has not reported state.
- Start VOIP call while both of earbuds are out of ear state, DUT will not create
SCO connection for any earbud, then no audio disconnected event update to
AudioService and HeadsetService. So that the following VOIP call could not be
started properly. Need send audio disconnected event to upper layer to avoid
this case.
Change-Id: Ibf70ca07cecd906b90d3164bb75b196367ac63cd
CRs-Fixed: 2524579
3 files changed