diff options
author | Jaikumar Ganesh <jaikumar@google.com> | 2010-11-01 11:59:57 -0700 |
---|---|---|
committer | Jaikumar Ganesh <jaikumar@google.com> | 2010-11-03 11:05:12 -0700 |
commit | 30d181690e48b26cdfae3b144d23f1e16c75da37 (patch) | |
tree | 91192101a8935cdaad7d8d163165f363446287aa /media | |
parent | 0a1adf90128b9b640fbfb6196d7cdd5d60adf313 (diff) | |
download | frameworks_base-30d181690e48b26cdfae3b144d23f1e16c75da37.zip frameworks_base-30d181690e48b26cdfae3b144d23f1e16c75da37.tar.gz frameworks_base-30d181690e48b26cdfae3b144d23f1e16c75da37.tar.bz2 |
Add STATE_AUDIO_CONNECTING state.
Why is it needed: SCO audio connections can fail.
Currently no indication is given to clients which are waiting
for SCO connections. This was working fine before because
SCO connections where blocking calls, which was wrong in itself.
Change-Id: Ic449b2db8506a7a5ae6be6c68715f1a7343f9e40
Diffstat (limited to 'media')
-rw-r--r-- | media/java/android/media/AudioService.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/media/java/android/media/AudioService.java b/media/java/android/media/AudioService.java index a49bb37..a64158f 100644 --- a/media/java/android/media/AudioService.java +++ b/media/java/android/media/AudioService.java @@ -1973,6 +1973,10 @@ public class AudioService extends IAudioService.Stub { case BluetoothHeadset.STATE_AUDIO_DISCONNECTED: state = AudioManager.SCO_AUDIO_STATE_DISCONNECTED; break; + case BluetoothHeadset.STATE_AUDIO_CONNECTING: + // Todo(): Handle this, ignore for now as a public + // API will break. + break; default: state = AudioManager.SCO_AUDIO_STATE_ERROR; break; |