History log of /packages/services/Telecomm/src/com/android/server/telecom/CallAudioManager.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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