Don't reset audio route if setBluetoothScoOn is called without SCO connection

If third party applications call setBluetoothScoOn(false) when
there is no SCO, mForcedUseForCommExt gets set to audio route
FORCE_NONE which is speaker. If a call is made/accepted, call
audio will be on speaker instead of handset.

Change-Id: Ic7ae54d52cf2012caccafcd65d7e915cf0fb0a53

Fix: Skype voice can't transfer to carkit after re-connection

DUT will not start sco connection afater remote device re
connect. The root cause for this issue should be lack of
mScoAudioMode update which makes vitual voice call is not
started and SCO connection failed. The fix will set the value
to a correct value

Change-Id: I29c73e42f16a7f937f338892cdc0e7c800db8012

Synchronize the HeadsetService methods.

Synchronize the HeadsetService methods when accessing them.

CRs-Fixed: 2206463
Change-Id: I51858d2701e5411cf094169368786e90a90e2caa
2 files changed