Check for call/call setup state before creating SCO
Use case:
1. Run HFP AG PTS test cases.
or
1. Pair and connect phone with Sony xba-bt75 Bluetooth headset.
2. Make incoming call and accept it.
Failure:
PTS test cases fail. There will be no call audio on
Sony xba-bt75 headset.
Root cause:
Telephony asking to create SCO before incoming call
is accepted.
Fix:
If there is no active/held call, outgoing call setup
in progress, we should not create SCO. Telephony will
ask to create SCO for incoming call before the call
becomes active, this creates IOT issues and fail below
PTS test cases.
TC_AG_ACC_BV_08_I
TC_AG_ACC_BV_10_I
TC_AG_ACC_BV_11_I
TC_AG_ACC_BV_12_I
TC_AG_ACC_BV_13_I
TC_AG_ACC_BV_14_I
Bug: 29417803
Change-Id: I0c1002b31da65cbc0b0e74b590468d37ea51d065
1 file changed