diff options
author | Jaikumar Ganesh <jaikumar@google.com> | 2011-01-24 13:55:27 -0800 |
---|---|---|
committer | Jaikumar Ganesh <jaikumar@google.com> | 2011-01-25 13:49:35 -0800 |
commit | dde68c64fd8e97a592633ec4c09283ec928e5697 (patch) | |
tree | d8b53de46aed3886aec0646549f6108cae8044e2 /media | |
parent | 67005b05cc76a38a5b3bf6e83957dd03619e9126 (diff) | |
download | frameworks_base-dde68c64fd8e97a592633ec4c09283ec928e5697.zip frameworks_base-dde68c64fd8e97a592633ec4c09283ec928e5697.tar.gz frameworks_base-dde68c64fd8e97a592633ec4c09283ec928e5697.tar.bz2 |
Rename virtual call API to ScoUsingVirtualCall.
This API makes more sense with regard to headset profile.
Bug: 3381532
Change-Id: Ife07d101a3b04bcddb31e7ae86712e1d97a660c5
Diffstat (limited to 'media')
-rw-r--r-- | media/java/android/media/AudioService.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/media/java/android/media/AudioService.java b/media/java/android/media/AudioService.java index e404b05..7312d75 100644 --- a/media/java/android/media/AudioService.java +++ b/media/java/android/media/AudioService.java @@ -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); } } } |