History log of /packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6a5995e1132bc9e3026673b93de42c46069a2d15 09-Sep-2016 Hall Liu <hallliu@google.com> Don't acquire audio focus if ringtone will not play

When the system volume is at some level that prevents an audible
ringtone from playing, don't grab audio focus so as to not interrupt
music that is playing.

Fix: 31319655

Change-Id: Ia2e4bc4b2ca8fe88e893cfd307d33e94de2b33ba
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
609992b6d222e54a74cc7e6af06173090103a28a 01-Sep-2016 Hall Liu <hallliu@google.com> Fix broken and flaky unit tests

Fix unit tests to make them pass consistently in order to enable
presubmit testing.

Bug: 31041734
Change-Id: I1eba7302ae740cb2a0284003d999fd3274941e38
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
9029d1c33e9e115504e208bcd10be45f1f977248 29-Jul-2016 Hall Liu <hallliu@google.com> Only play end-of-call tone for certain call terminations

Only play tone when call was previously active, dialing, or on hold.

Change-Id: I30a6ea26e0cdab00fb3dc56a294d046d9ad51c9e
Fix: 30118025
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
fe6d79e0894c210af4f3ab058c7a07c3a9bb3c8f 12-Jul-2016 Tyler Gunn <tgunn@google.com> Auto-enable speaker phone when pulling a video call.

When pulling a video call, auto-enable the speakerphone.
Do this in the onExternalCallChanged listener in CallAudioManager, since
the video state will have not changed (the external call would have video
state).

Bug: 29942171
Change-Id: Ifbd66af897ada0da5c88aa498839da0b0bf3c917
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
1e37be5dd86a51b90e461f09dc8a89effe4aee21 11-Jul-2016 Tyler Gunn <tgunn@google.com> Finalize multiendpoint functionality.

1) Handle the PULLING state throughout telecom.
2) When parcelling calls to send to InCallServices, remap PULLING state
to DIALING if an InCallService doesn't support external calls. This
ensures compatibility for things like Android Wear/Auto.
3) Ensure add call isn't disabled because of external calls.
4) Modify InCallController to handle changes to whether a call is external
or not. For IncallServices that do not support external calls, we will
add the call when an external call becomes a regular call, and we will
remove it when a regular call becomes external.

Change-Id: I1bf6c1f7e182834c3ab1ed34cd119467a4698993
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
9696c2187bb8c2fc77e72377df79e080578605b3 25-Jun-2016 Hall Liu <hallliu@google.com> Switch to speakerphone when upgrading to video

When an audio-only call gets upgraded to a video call, switch to
speakerphone if the call would have been started in speakerphone had it
been a video call from the beginning (i.e. if there's no headset or
bluetooth connected and config options support it)

Change-Id: I4b8eb1c0f21753a8878f72d9279335a946c9f5a9
Fixes: 29563103
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
b626c02daaae6757299cdb2b8228ef0635b6b5dd 23-Jun-2016 Hall Liu <hallliu@google.com> Fix corruption in InCallTonePlayer

InCallTonePlayer uses a static variable to keep track of the number of
tones playing, which is incremented in startTone and decremented in
cleanUpTonePlayer. If something calls the start() method directly,
sTonesPlaying will not be correctly incremented.

This change removes the instance where start() was called directly and
changes start() on InCallTonePlayer to be a no-op with a warning
message.

Change-Id: I03a20f89fb4458e29f67ba327a31a8f82ff87423
Fixes: 29581234
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
e792b33c2aa95d97db74e4c0b1e7ea6896cf99ee 19-Apr-2016 Hall Liu <hallliu@google.com> Modify CallAudioManager's audio speedup functionality

For certain calls, CallAudioManager will put the audio stream into the
in-call state before the connection service has acknowledged the call as
active. This was previously done by hardcoding a state transition in
CallAudioModeStateMachine. However, this had the potential to leave a
call stuck in CallAudioManager if the connection service subsequently
disconnected the call without setting to active after the user has
requested to answer the call.

This change solves this problem by changing the call state transition
code to go through all of its internal call tracking lists and remove the
call instead of only looking at the one corresponding to the state that
call was in.

Change-Id: Ica4a182fdd210a17ca58402062c8358d193d90c8
Fix: 28114043
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
fd33fefe387d18fc9af21bf4b77f2a74c8a50a41 19-Apr-2016 Hall Liu <hallliu@google.com> Send call audio state to connection service on change

Change-Id: I986b8091feaa17585605774cc5055c9b91b15846
Fix: 28114043
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
09c900ef10510038772e172f5c3e553a3f0d9366 15-Apr-2016 Hall Liu <hallliu@google.com> Merge "Fix unit tests" into nyc-dev
9ecbb1cbae4dbb62a892c1347d8cb8691550ad1b 14-Apr-2016 Hall Liu <hallliu@google.com> Fix unit tests

Unit tests were failing because:

1. The fake context's bindServiceAsUser asynchronously calls
onServiceConnected, but the InCallController assumes that its connect()
method would finish before onServiceConnected gets called.

2. Video call tests depended on counting the number of audio state
transitions. This number is not a guaranteed (or even consistent) value,
so the mechanism for determining the final audio state has been replaced
by a latch posted to the CARSM handler.

3. IncomingCallFilter tests were experiencing a strange problem where
setting the timeouts value only worked when the tests were run in
isolation. This was fixed by putting in an adapter for the static
Timeouts class.

Fix: 28200736
Change-Id: If5fbd60e1a3c5d478d4555d8794a49855997f1d3
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
9cbbd9468d7bbc575992479eb6964c782cdd99c8 14-Apr-2016 Tyler Gunn <tgunn@google.com> Merge "Improvements to external call handling." into nyc-dev
1a40c4f4daf2cdfba3f67383c726f93b85a98b00 14-Apr-2016 Tyler Gunn <tgunn@google.com> Improvements to external call handling.

Add onExternalCallChanged listener in Call to report when a call switches
between being external and not.
In CallAudioManager, BluetoothPhoneServiceImpl, HeadsetMediaButton, and
PhoneStateBroadcaster, listen to changes in the external call state.

This ensures that when a call becomes external or a call becomes
non-external that the various modules updates themselves appropriately.

Bug: 28179159
Change-Id: I44bc0b94f185c66aeddb68549223533249bb0b62
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
8c7e2569e4d5f9a3392d3cbf0ac7020be6c96d66 14-Apr-2016 Hall Liu <hallliu@google.com> Send audio state when foreground call is updated

Whenever the foreground call changes, send the audio state to both the
in-call service and the call's connection service.

Change-Id: I7048aec0f50590da0f94f8bc5cb19043a5f70f76
Fix: 28114043
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
4fe861d770aaa749e2b6191e8121e5b831a95917 30-Mar-2016 Tyler Gunn <tgunn@google.com> Add telecom support for multi-endpoint.

- Add "isExternalCall" method to Call class.
- Ensure CallAudioManager ignores external calls.
- Prevent InCallController from passing extras to InCall UI which cause
it to start displaying the fullscreen outgoing call UI.

Bug: 27458894
Change-Id: I40160edd6191e71b409ff1f18ca2b8cc9662211f
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
aeb76b98bb68ee08a022e3cd7120eecb6db7e0d2 21-Mar-2016 Hall Liu <hallliu@google.com> Merge "Improved audio focus handling for CARSM" into nyc-dev
d8ca5458f6ee1d47098a5934ddcef7e24cb074a9 10-Mar-2016 Hall Liu <hallliu@google.com> Improved audio focus handling for CARSM

Eliminates the REINITIALIZE message, which was originally written for
compatiblity with the old CallAudioManager. Resetting the audio route
back to the default state now occurs automatically whenever we lose
audio focus.

Also adds logging session support to InCallTonePlayer

Bug: 27555048
Change-Id: I4b7bb6c81aa2a38670fd3768dd65d4b3e24841eb
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
8b11674d0d82f68c5c3f07189dd747fc9f60aa48 15-Mar-2016 Hall Liu <hallliu@google.com> Merge "Stop call waiting tone when call gets answered" into nyc-dev
600b099036d2f0af106ddff98670408006071694 15-Mar-2016 Hall Liu <hallliu@google.com> Stop call waiting tone when call gets answered

If the call being answered is the only ringing call, stop the call
waiting tone even if it's still in the ringing state.

Bug: 27659457
Change-Id: I5afb3843fc1c27575947f933bb50e7b664c718dc
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
59c77e691e566373cbb6d06b3909c1126035d982 11-Mar-2016 Hall Liu <hallliu@google.com> Activate audio focus when a call enters CONNECTING

Takes audio focus when a call is connecting instead of dialing, and
allows connecting calls to be foreground. This fixes 27356933 by
returning a non-null value from CallsManager#getForegroundCall in
BluetoothPhoneServiceImpl#hangupCall.

Bug: 27356933
Change-Id: I4f7fcc3eae5408cc1beaa77a73419b6072666db6
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
4f296ba3f42713fd138dbe86b97500f43f5d2d27 18-Feb-2016 Hall Liu <hallliu@google.com> Prevent BT reconnection from switching route

After a user has switched away from bluetooth explicitly, don't go back
to bluetooth if a device is disconnected then reconnected.

Bug: 22507913
Change-Id: I26f407255f8106bb216a397091a08d7c4f08ff26
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
16fea3f6bedac2b4397f44553868c303fda59170 24-Feb-2016 Tyler Gunn <tgunn@google.com> Merge "Listen for ConnectionEvent and use the InCallToneMonitor to play the tone" into nyc-dev
2a3455b9ff2a308722b8f0ee21c64a62a06e9bda 23-Feb-2016 Hall Liu <hallliu@google.com> Unhold other call after local disconnect of active call

Bug: 26646508
Change-Id: Ic78c54f0aba935c4d42ce952bfb34d7333ca0c4c
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
db82191d1ef7dd4155478071815a56947b31fc11 16-Feb-2016 Tyler Gunn <tgunn@google.com> Listen for ConnectionEvent and use the InCallToneMonitor to play the tone

BUG=25357778

Change-Id: Iad4f36f9b01670a2f188e726895a8349aeeb1502
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
fbed016fbd4cdc744f306b13fb3a2d9042d6bd5a 15-Jan-2016 Hall Liu <hallliu@google.com> Add tests for CallAudioModeStateMachine

Adds tests and fixes a few bugs that were discovered in the course of
testing. Also add annotations for call audio tests.

Change-Id: I512afcd84fac54afd8fdddabbf732aebdf62df02
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
e091ab90e37845cf4771051a6d2ce0ebadee4fe7 19-Dec-2015 Hall Liu <hallliu@google.com> CallAudioManager refactoring

Separates the handling of audio mode and audio focus into a state
machine and brings ringing, tone generation, and ringbacks under the
control of CallAudioManager.

(cherry picked from commit fc2270137059e855756769752899d613e27d12a8)

Change-Id: Idd765550c907150117b8b66f76e88868ae3785c2
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
a3e9ddacab074828d8b1867db77e7c96b712ac0c 16-Dec-2015 Hall Liu <hallliu@google.com> Add support for earpiece-less devices in audio routing

Allow devices without earpieces (Wear devices) to route call audio
correctly by falling back to speakerphone. Added tests to verify correct
behavior in this instance.

Bug: 26195788
Change-Id: If73db0cc4c3fcb00b3068276a10d44417d2ddd5c
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
72930a80679d461ad694b6555b0749d5fc4e31a8 23-Nov-2015 Brad Ebinger <breadley@google.com> Introduce Session logging to CallAudioManager

Introduces session logging into Telecom's CallAudioManager and
incoming call entry points.

Change-Id: I7419fd5372a363ac21dbec8d4aeb29b05591300d
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
f62630a57de0d52be2bdbc92a9bf8f305cc0892d 27-Oct-2015 Hall Liu <hallliu@google.com> Refactor CallAudioManager's audio routing

This change separates the audio routing functionality of
CallAudioManager into a separate component, implemented as a formal
state machine.

Change-Id: I4ca66abe72609d67dc8bde8ed8ff1538b7d0cf57
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
d931a017a0abea32ad4485a91402b5f62b9ddb0e 21-Oct-2015 Brad Ebinger <breadley@google.com> Ringer unit tests added and minor refactoring to accommodate testing.

Change-Id: Ia176dff453e1876494e14d8403eb5a9ed3dd3865
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
8fb1fb72b084a0497a3c3c3037ce5667bde14482 23-Oct-2015 Hall Liu <hallliu@google.com> Fix TelecomSystemTest#testAudioManagerOperations

testAudioManagerOperations was setting the microphone to mute
and attempting to verify that the setMicrophoneMute methond on
the AudioManager was invoked. However, CallAudioManager bypasses
AudioManager and calls AudioService directly.

This change modifies CallAudioManager so that a mock AudioService
can be injected. The test was modified so that it checks that the
appropriate mute method was called on the mock AudioService instead
of checking the mock AudioManager.

Bug: 25158760
Change-Id: I0d5946ae6b4cd31c9067e818f20dcc37a2e15c86
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
7686cd140cd98cf2ee06ab3065af137ca503d4bb 06-Oct-2015 Santos Cordon <santoscordon@google.com> Specify user when setting MUTE for a call.

Bug: 24448841
Change-Id: Ic71fe287efc37c5a7b560fafe8cb4c33273ad6b8
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
669f90b7544d0f8ec42336ea6757e133b499c145 03-Sep-2015 Roshan Pius <rpius@google.com> Abandon audioFocus only when all the calls are disconnected.

Due to the change in ag/757925 to abandonAudioFocus when the foreground
call is in disconnected state, we end up prematurely abandoning audio
focus for IMS conference scenarios. When IMS conference is created
first, we disconnect the foreground call before creating the new IMS
conference call. This results in us abandoning audio focus and
reinitializing it when the conference call is created. In this scenario,
there should be a background call which is not in DISCONNECTED state.
So, redo the if check to see if there is any non-DISCONNECTED call in
CallsManager before we abandon audio focus.

BUG: 23759265
Change-Id: I97dc614c6b805a0dff19b063806d8d036f3d894f
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
92714aa4339788a3510e3f238d212badcdf59dd3 27-Aug-2015 Roshan Pius <rpius@google.com> Don't request audio focus on call rejection.

We need to abandon audio focus instead of requesting it
when an incoming call is rejected. Hence checking if the
foreground call is in disconnected state before requesting for
audio focus.

BUG: 23523949

Change-Id: I08ce03dc178419b42239f9818afad249e2c584da
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
f8d9780043253983435f6067ecb622df136e5dbc 17-Jul-2015 Tyler Gunn <tgunn@google.com> Pass current call into CallAudioManager#setIsRinging.

It is possible that when setIsRinging() is called on CallAudioManager
that the initial audio state will be set at that point. However,
setInitialAudioState requires the current call to determine the appropriate
audio route. It defaults to wired or earpiece if there is no call.

Fixed by ensuring setIsRinging takes a call as context so that the initial
audio state can be properly set.

Bug: 22515446
Change-Id: I9c01cf6cf27e916d7e4117aa13e603682a5059fb
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
165c1ced107a1c3b9b359757d41438f9ca585e78 11-Jul-2015 Santos Cordon <santoscordon@google.com> Add logging in Telecom for conference call & audio tracking.

Bug: 22331056
Change-Id: Ib6147e55cd886d678d924c92bb86743c22ad6366
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
967032677441b317571d3cb8770060cf56a2f368 23-Jun-2015 Tyler Gunn <tgunn@google.com> Correct initial audio state logic in CallAudioManager.

- Moved logic to trigger setInitialCallState from onCallUpdate to
updateAudioStreamAndMode. In the case of IMS calls, the transition in
audio stream was happening in the call to updateAudioSteamAndMode
triggered from setIsRinging. This meant we'd never call setInitialState.
Since updateAudioStreamAndMode is ultimately where the change is
happening, I figured it made sense to move the logic there.
- Added toString methods for stream and mode descriptions so I could more
easily discern what was happening in the logs.

Bug: 21555905
Change-Id: I0bccf0e7881abfb2f1a195fc0f87b3764107ed16
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
b60f00673149da9a96d9369f4e1c4458e9a9cf53 27-May-2015 Ihab Awad <ihab@google.com> Sync for AudioManager

Fixes sync problems where the system calls back into Telecom while
Telecom is synchronously processing a message.

Bug: 21289255
Change-Id: I4ea319113be2e4651c82c6e9712eb4d97ea9e9bb
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
2a66f7b906b225413ae33f72e70a75e4f9c883c0 13-May-2015 Yorke Lee <yorkelee@google.com> Rename AudioState to CallAudioState

Deprecate AudioState class and make methods @SystemApi where
necessary to minimize impact to SystemApi
Replace usages of AudioState inside Telecom sub-systems
Fire both onCallAudioStateChanged and onAudioStateChanged callbacks
for backward compatibility
Support both setAudioState and setCallAudioState for all classes

Bug: 21040387
Bug: 21088300
Change-Id: I3ec7b3afdaa344c6d639d1c421f1842d67f7d0f7
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
92694519535c54f542b4ef3973e9c1934f2feeff 23-Apr-2015 Santos Cordon <santoscordon@google.com> Move CallState and rename PRE_DIAL_WAIT.

CallState was a public API only being used by Telecom so I've moved it
into to Telecom and removed it from the public API. The translation
from CallState to Call.STATE_* was happening on the public Call object
which wasn't ideal (Call.java shouldn't have to know that other
representations of state exist). So I moved the translation into
InCallController.java and what we pass into ParcelableCall is now
Call.STATE_* constants.

Bug: 20532827
Bug: 20532435
Change-Id: I79ce36c7e971c1a49b857506c9a56cfe316069cf
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
248cb718b4f2ff72f44f5fc09188b6a6563b978e 11-Apr-2015 Jay Shrauner <shrauner@google.com> Don't use deprecated AudioState accessor

Use AudioState.getRoute() instead of AudioState.route

Bug:
Change-Id: I3f17efd597d5fff9355930c364d3449f9db797f7
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
e6dbc9d8448211f10b245ededf25d740cb561b40 26-Mar-2015 Ihab Awad <ihab@google.com> Fix problem where incoming calls would hang and never complete

Bug: 19941246
Change-Id: I50f50f2ab81a79069a5a7a0884eaa75daa43a909
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
2d4deb580ae7ded601c1d5f05498cb16252ed39e 25-Mar-2015 Prerepa Viswanadham <dham@google.com> Fix merge conflicts in CallAudioManager and CallsManager.
Update a call to a hidden platform ctor in SimpleTelecomTest.

Change-Id: I76f6d0b9c49862b9412196ce2ea4d3e3ed960357
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
3d05da65a8e488be546b9cef2f44e1a5567132ad 24-Mar-2015 Prerepa Viswanadham <dham@google.com> Merge remote-tracking branch 'goog/mirror-m-wireless-internal-release' into master_merge

Change-Id: I5d9ab761a1060a24680e69d1610ade206660e139
b01dc316ebc28dd4265343f55db2b0e00c78cdf8 19-Mar-2015 Etan Cohen <etancohen@google.com> Fix merge error in CL #659205

As part of merge resolution a single line from original CL was dropped.
Merge CL = 3d4bafb60a202ab6a6c99a48b493d83a3229642e

Change-Id: I07bd7e4552eb54a18073ecbc5872a06b7cc9ee0d
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
a247fedc24f2bd087cad83d79dbcfabdbe9e471b 19-Mar-2015 Etan Cohen <etancohen@google.com> Merge commit 'c289432' into manualmerge

Change-Id: If41bedc2b72823ec27f3d0d6536e9678e0f27561
3d4bafb60a202ab6a6c99a48b493d83a3229642e 12-Mar-2015 Dong Zhou <a22255@motorola.com> Speed up audio setup for IMS MT call

Set audio mode into in_call mode right after accepting the call
without waiting for the call be ACTIVE from RIL.

Bug: 19656525
Change-Id: I83ec03f14ba859680ab5a42e945d940d698e6915
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
8d5d9ddc66b55b6906364ab3c0e244dab4d58f13 12-Mar-2015 Ihab Awad <ihab@google.com> Make Telecom synchronous

Remove main-thread handlers and add a systemwide lock object.

Change-Id: I6334fdfa6c244836f6375bea302404f61c81301b
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
3871849df66f1d60fa9a28ae0108b1f0689634aa 12-Mar-2015 Dong Zhou <a22255@motorola.com> Speed up audio setup for IMS MT call

Set audio mode into in_call mode right after accepting the call
without waiting for the call be ACTIVE from RIL.

Bug: 19656525
Change-Id: I83ec03f14ba859680ab5a42e945d940d698e6915
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
8de76915ea2772faeb41705aaaeb65f5b3478ac4 17-Feb-2015 Ihab Awad <ihab@google.com> Further refactor Telecom and add tests

Complete refactoring Telecom to remove singletons from the core code.

Introduce a unit test that simulates a full outgoing phone call from
start to hangup.

Change-Id: I8b09cac6eb9b6aeeb0aeba5d8ae032b4c303c08d
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
2a61edaf7945ca15366040d29010c0a6e151a238 16-Mar-2015 Vinit Deshpande <vinitd@google.com> Merge remote-tracking branch 'goog/mirror-m-wireless-internal-release'

Change-Id: I5bde841b9c5766ab33077ae4fd25c546b10117c7
a04bdcaf9f0d9dbb5b03080b74a7c562421d183f 05-Mar-2015 Santos Cordon <santoscordon@google.com> Toggle speakerphone when user un/docks from car/desk dock.

Bug: 18301017
Bug: 14996126

Change-Id: I82a4ee3114bbdd08d5d83bc7a3518c6856973072
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
78a5e6b9c1595c81f72d7a822617cb78db224e48 06-Feb-2015 Ihab Awad <ihab@google.com> Refactoring for testability

Refactor to a single app singleton, TelecomSystem, which owns the
intialization of the rest of the app.

Change-Id: I3036f200b56f710e7f830b469260a67145c327e7
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
32d4117cafae9d3af7da04cef13dfcf3b43ab514 16-Jan-2015 Santos Cordon <santoscordon@google.com> Unplugging headset shouldn't stop Bluetooth.

When the headset was unplugged, we changes audio to earpiece even if the
audio was currently going through Bluetooth.

This change makes it so that we keep the current routing scheme when a
headset is unplugged unless the audio was actually going through the
wired earpiece. In that case, we go to either earpiece or speaker
depending on whether speaker was on prior to going to the wired headset.

Bug: 18823515
Change-Id: Ib12d669c2bcd8f4c8a95d450af6bcc28f15122f3
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
dda69194eb85033f85b68370d94b94ce13281ee1 03-Dec-2014 Nancy Chen <nancychen@google.com> Use AudioManager.MODE_NORMAL when selecting account from dialog.

Because the "Call with" dialog is part of the InCallUI, by default it
uses the audio mode of the InCallUI, which is MODE_IN_CALL. In order to
make TalkBack audible for the dialog, use AudioManager.MODE_NORMAL just
for the PRE_DIAL_WAIT case.

Bug: 18327621
Change-Id: Ie79053759fb84e3fff51a6bc63e8cc12291486cf
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
07bc5ee853bc9a0b4cd46e0c702888b2c7989392 12-Nov-2014 Ihab Awad <ihab@google.com> Telecom API updates (4/6)

Bug: 18292176

Change-Id: I28e6aa4fec20aadd77f9a861b0bb8e1e9828cffb
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
790eed913f4fe782a6a4f67d09e665ff49fd08cb 22-Oct-2014 Yorke Lee <yorkelee@google.com> am 0e27e89d: am 4c33f22f: Merge "Protect against INCALL->RINGING transition in AudioManager" into lmp-dev

* commit '0e27e89d428fb9202e529590cc6a9d70526d38a6':
Protect against INCALL->RINGING transition in AudioManager
4c33f22fe2a8db07b6fedcd4becf5159bc1c5a22 21-Oct-2014 Yorke Lee <yorkelee@google.com> Merge "Protect against INCALL->RINGING transition in AudioManager" into lmp-dev
60b6e2830ee5c7d11c0fb8018595bf174d94a086 21-Oct-2014 Yorke Lee <yorkelee@google.com> Protect against INCALL->RINGING transition in AudioManager

If such a transition occurs, reset to NORMAL first, to prevent the loss
of uplink audio.

Tested with:
1) Answering Call WAITING (before fix in
https://googleplex-android-review.git.corp.google.com/#/c/571861/1 is applied)
2) Receiving an incoming call while in-call tone is still playing

Bug: 18058600
Bug: 18020190
Change-Id: Ib5ec8d202ed6c5d8262853696e8fadfa7a222ac8
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
78081e435da21360b8abd182dd50d12d4b9692a4 17-Oct-2014 Yorke Lee <yorkelee@google.com> am 2d5883ed: am e5a7c921: Make more audio logging visible

* commit '2d5883eda4008be7953eb50fd15ed7ef26fbdf49':
Make more audio logging visible
e5a7c921546825810996bd51414f251f005e0766 17-Oct-2014 Yorke Lee <yorkelee@google.com> Make more audio logging visible

These are very useful when diagnosing audio routing issues in
bug reports.

Bug: 18017081

Change-Id: I44e6553a9fe9fc9399ce26899b829cda735af02b
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
9787e0e80d8960cf8b0ca74c7cdc4c4aac97187a 14-Oct-2014 Tyler Gunn <tgunn@google.com> Adding more Telecom state dumping.

Bug: 17730966
Change-Id: I47c83591417784c9484002213230065514b43f63
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
5753f309976589302e1e319b44d0bf2777bbb2a0 26-Sep-2014 Santos Cordon <santoscordon@google.com> Turn on Bluetooth automatically for outgoing calls.

For outgoing calls, we introduced a state before DIALING called
CONNECTING. This indicated that we were attempting to place the call
but that there wasn't an indication that it was dialing quite yet.

The CallAudioManager code which sets the initial state for new calls
was still looking for DIALING as the initial state before opting
to turn on blueooth on behalf of the user. Add CONNECTING as a state
which does that, too.

Bug:17661926
Change-Id: I7c27d0a462b7933cbf0276332b1d9f63d100f345
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
91d43cf9c985cc5a83795f256ef5c46ebb8fbdc1 17-Sep-2014 Tyler Gunn <tgunn@google.com> Preparatory work to move Telecom to system service.

- Removed use of TelecomApp.getInstance() as context.
- Refactored singleton logic and initialization to support being
performed from a SystemService.
- Note: You will see some commented out references to
"import com.android.internal.R"; these must uncommented when the code
is moved to a system service.
- You will also notice in PhoneAccountRegistrar.java a comment block with:
"UNCOMMENT_FOR_MOVE_TO_SYSTEM_SERVICE"
The code in that comment block will replace the existing file path
code.
These were added as a convenience so that I can run a simple sed script
to make the required changes to the code in an automated manner once it
is moved to its new location.

Bug: 17364651
Change-Id: I8e80e9cffc481b688c10a2bca0b59f5ccf8e0fb2
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
7cc70b4f0ad1064a4a0dce6056ad82b205887160 13-Sep-2014 Tyler Gunn <tgunn@google.com> Renaming Telecomm to Telecom.

- Changing package from android.telecomm to android.telecom
- Changing package from com.android.telecomm to
com.android.server.telecomm.
- Renaming TelecommManager to TelecomManager.

Bug: 17364651
Change-Id: Ib7b20ba6348948afb391450b4eef8919261f3272
/packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java