summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server/HeadsetObserver.java
Commit message (Collapse)AuthorAgeFilesLines
* Switch the services library to using the new SlogJoe Onorato2010-03-011-6/+6
|
* Fix issue: 2413494: Add TTY support.Eric Laurent2010-02-101-51/+0
| | | | | | | This is a new implementation of TTY support. Previous implementation in commit aead64def1fe58c95c086a0ca00cf0b13fa32ef1 is reverted. The new method does not rely any more on the kernel headset driver to send a UEvent containing current TTY mode.
* Fix issue: 2413494: [Passion-c] Add TTY support.Eric Laurent2010-02-031-0/+51
| | | | | | | Handle TTY mode change events received by HeadsetObserver and send information down to AudioHardware with AudioManager.setParameters() Use setting "tty_mode_uses_heaset_events" in core config.xml to indicate if the product uses this particular method of indicating the TTY mode change.
* Fix issue 2388215: Audio not routed to 3.5mm Headset after removal/insertion.Eric Laurent2010-01-221-8/+13
| | | | | | | | | | The problem occurs if the delay between the headset removal and insertion is less than one second. In this case, as the headset disconnection intent is broadcast with a 1 second delay to allow music to pause before updating the route, the connection intent is broadcast before and is ignored, leaving the system in a state where the headset is considered disconnected. The fix consists in inserting a delay before broadcasting the connection intent if a disconnection intent is pending broadcast.
* Fix issue 2324029: In-call (and other) audio screwed up after using Pandora ↵Eric Laurent2009-12-141-17/+14
| | | | | | | | | | | (ERD72). The problem is due to spurious headset connection indications received from event observer when a 3.5mm headset w/o mic is connected. In this particular case, The HeadsetObserver first received a valid indication of headset with mic connection, followed by a headset with mic disconnection and finally a headset w/o mic connection. The HeadsetObserver delays the headset disconnection intent to leave time to music app to pause music before the output path is switched. As the last headset w/o mic connection indication is received from the event observer before the intent corresponding to the spurious headset with mic disconnection is broadcast, the later is discarded. Results a state where the headset with mic is always considered as connected. The fix consists in not canceling pending intents when a new headset state is received and carrying the HeadsetObserver state with the delayed message triggering the broacast of the disconnection intent.
* Add logging of headset events to help debug issue.Eric Olsen2009-11-231-1/+1
| | | | Signed-off-by: Eric Olsen <eolsen@android.com>
* Fix issue 2265111: Loss of downlink audio while listening, and get a MT call.Eric Laurent2009-11-201-46/+56
| | | | | | | | | | | The cause of the problem is that under certain circumstance the HeadsetObserver receives unexpected connection events. For instance, when removing a bad quality 3.5mm stereo jack without mic the following events can be received: 1 connection of a headset with mic 2 removal of a headset with mic. The result is that the no mic headset is never disconnected and audio policy manager considers it is still present. Then the music or downlink call audio is always routed to headset even if none is connected giving the impression that audio is lost, except whne you reconnect a headset of enable speaker phone. The fix consists in adding more checks in HeadsetObserver to reject illegal transitions in headset state received from event observer.
* Fix issue 2242614: Wired headset not recognized: bogus "state" in ↵Eric Laurent2009-11-121-9/+23
| | | | | | | | | | | | ACTION_HEADSET_PLUG broadcast. The headset state indicated by HeadsetObserver in the broadcast intent ACTION_HEADSET_PLUG was not 0 or 1 as specified in the java doc but contained a bit field indicating the type of headset connected. Modified HeadsetObserver to broacast a state conforming to java doc. Added an extra to intent ACTION_HEADSET_PLUG to indicate if headset has a microphone or not. Removed handling of non standard headset indications from HeadsetObserver. Removed platform specific devices from output devices defined in AudioSystem. Modified AudioService to use new ACTION_HEADSET_PLUG intent extra instead of bitfield in state.
* Fix issue 1795088 Improve audio routing codeEric Laurent2009-07-231-22/+26
| | | | | | | Initial commit for review. Integrated comments after patch set 1 review. Fixed lockup in AudioFlinger::ThreadBase::exit() Fixed lockup when playing tone with AudioPlocyService startTone()
* Less logging in some places. More in others.Joe Onorato2009-07-011-1/+2
|
* AI 145201: Hold wakelock while delaying for audio route switch after headset ↵Nick Pelly2009-04-081-3/+11
| | | | | | | | | unplug. Fixes bug where we go to sleep before switching audio, and we lose audio until the apps CPU wakes up again. BUG=1774615 Automated import of CL 145201
* auto import from //branches/cupcake_rel/...@140373The Android Open Source Project2009-03-181-4/+4
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+144
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-144/+0
|
* auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-101-6/+42
|
* auto import from //branches/cupcake/...@125939The Android Open Source Project2009-01-091-17/+2
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-1/+1
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+123