Rename virtual call API to ScoUsingVirtualCall.

This API makes more sense with regard to headset profile.
Bug: 3381532

Change-Id: Ife07d101a3b04bcddb31e7ae86712e1d97a660c5
This commit is contained in:
Jaikumar Ganesh
2011-01-24 13:55:27 -08:00
parent 67005b05cc
commit dde68c64fd
3 changed files with 20 additions and 15 deletions

View File

@ -721,7 +721,7 @@ public class AudioService extends IAudioService.Stub {
if (mScoAudioState == SCO_STATE_ACTIVE_EXTERNAL) {
mBluetoothHeadset.stopVoiceRecognition(
mBluetoothHeadsetDevice);
mBluetoothHeadset.stopVirtualVoiceCall(
mBluetoothHeadset.stopScoUsingVirtualVoiceCall(
mBluetoothHeadsetDevice);
} else {
clearAllScoClients(mCb, true);
@ -808,7 +808,8 @@ public class AudioService extends IAudioService.Stub {
checkScoAudioState();
if (mScoAudioState == SCO_STATE_ACTIVE_EXTERNAL) {
mBluetoothHeadset.stopVoiceRecognition(mBluetoothHeadsetDevice);
mBluetoothHeadset.stopVirtualVoiceCall(mBluetoothHeadsetDevice);
mBluetoothHeadset.stopScoUsingVirtualVoiceCall(
mBluetoothHeadsetDevice);
} else {
clearAllScoClients(cb, true);
}
@ -1296,10 +1297,10 @@ public class AudioService extends IAudioService.Stub {
state == BluetoothHeadset.STATE_AUDIO_CONNECTED &&
mScoAudioState == SCO_STATE_INACTIVE) {
mScoAudioState = SCO_STATE_ACTIVE_INTERNAL;
mBluetoothHeadset.startVirtualVoiceCall(mBluetoothHeadsetDevice);
mBluetoothHeadset.startScoUsingVirtualVoiceCall(mBluetoothHeadsetDevice);
} else if (state == BluetoothHeadset.STATE_AUDIO_DISCONNECTED &&
mScoAudioState == SCO_STATE_ACTIVE_INTERNAL){
mBluetoothHeadset.stopVirtualVoiceCall(mBluetoothHeadsetDevice);
mBluetoothHeadset.stopScoUsingVirtualVoiceCall(mBluetoothHeadsetDevice);
}
}
}