History log of /packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d92e73772327537fe65edda43ca0ceb6fc781e51 10-Jan-2015 Tyler Gunn <tgunn@google.com> Fix for call timer resetting when starting IMS conference call. 4/4

- Added support in Conference for specifying the connect time when the
conference is created.

Bug: 18959443
Change-Id: I7a0b9e65b955c53314f6b23a5543e0e161998da5
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
3e59d689d08b921244c0a8c2e7761a242c59a3d0 06-Jan-2015 Tyler Gunn <tgunn@google.com> Merge "Fixing unhold in CallsManager so it does not hold child calls." into lmp-mr1-dev
811ad27dabf38d305ff94cc41fc266d774821ddb 05-Jan-2015 Andrew Lee <anwlee@google.com> Merge "Disconnect held call when answering third call." into lmp-mr1-dev
e94a8f1e28be35d538e1e485753b122ce7908e98 20-Dec-2014 Andrew Lee <anwlee@google.com> Disconnect held call when answering third call.

When accepting a call when there was already both an active
and held call, the CallsManager tried to hold the active call, and
then answer the new incoming call. But since there were still two
calls tracked by the calls manager, the answer failed.

To fix, if we are attempting to hold the active call before accepting
a new call, if there is a pre-existing held call disconnect that held
call before holding the active call.

Bug: 17318947
Change-Id: I78e5899c5f0344af0245b77827df75f9dde683b4
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
e44adb45088cc8fa199731a7f8cb0a5359028961 02-Jan-2015 Tyler Gunn <tgunn@google.com> Fixing unhold in CallsManager so it does not hold child calls.

There was an issue (see bug) where a conference could not be held in order
to swap with a held single party call.
Looking at how the CallsManager code works, we hold all calls including
the child calls of a conference. In Telephony, the TelephonyConference
code invokes hold on the first child-connection in the conference.
Changed the code so that the child calls are not held in Telecom.

Bug: 18793259
Change-Id: I83cde7be1e006fbd05ba79c13ee1a1138b1ae593
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
c88574c74d48ec6d660cbe2563c826521d95e92b 16-Dec-2014 Anju Mathapati <anjucm@quicinc.com> IMS: Add phoneaccount to ims conference call.

Retrieve phoneaccount from ParcelableConference coming from
TeleService and set that account to Telecom Conference call.
This prevents hold and dial request from getting invoked from
Telecom during adding a call on top of an existing ims 3 way
conference call.

Bug: 18690773
Change-Id: Ie02e12c77272c2c889b1c7377e0bf461e67a1abd
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
a469f76c1710a945933910840f11f9fda0445d82 10-Dec-2014 Nancy Chen <nancychen@google.com> Play DTMF tones when sending DTMF tones during post dial wait.

Regression from KK -- when adding additional digits to a number limited
with a wait character (";"), the local DTMF player should make those
sounds audible to the caller.

Bug: 18644688
Change-Id: Ib04658316f725146a65b399d3f477791260c3f5a
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
e6a33f2e9ec77f900260a50242d657668706c0ae 02-Dec-2014 Santos Cordon <santoscordon@google.com> (Telecom-system part 4) Move telecom to the system server process.

Also remove TelecomApp since it is no longer run/necessary after this
change.

Bug: 18112269
Change-Id: I901023a2333b5c664cd2dc314d2df638355e9d41
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
0d79b684bc7fe913d4b1a0a5ac3aec77dbf2364a 03-Dec-2014 Anthony Lee <anthonylee@google.com> Merge "Maintain Full Wake Lock while an incoming call is ringing." into lmp-mr1-dev
1bf97f5278c2a1d635e82ce41dfb3d223c9bfee7 03-Dec-2014 Andrew Lee <anwlee@google.com> Merge "Don't show add if there is an outgoing call." into lmp-mr1-dev
61e6f352c9c1fe8dc346ccf8d3560f7060ec663a 03-Dec-2014 Santos Cordon <santoscordon@google.com> Maintain Full Wake Lock while an incoming call is ringing.

Bug: 18474158
Change-Id: Ia9190a4ee34e138ccd91515db080a98754a0dd27
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
113ad62c43fa0cc8329c19cafa8dd8e2731b9b3c 02-Dec-2014 Andrew Lee <anwlee@google.com> Don't show add if there is an outgoing call.

We only support one outgoing call, so don't enable ADD when the call
is in an outgoing state (eg. dialing).

Bug: 18504905
Change-Id: Ie65beff2f1d7f4644d6b653902ce9fe4b3236e4f
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
59979513fd16c03bc2b901177b679eb5af39504a 02-Dec-2014 Yorke Lee <yorkelee@google.com> Disconnect all calls that are not reused when placing new call

This fixes a bug with Google voice calls where a call that was not
reused was causing future calls to be rejected.

Also log an error when there is no more room for an outgoing call
to make it easier to debug.

Bug: 18481759
Change-Id: I20da180211d81fdf23e50479619a1f6a8a303c9b
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.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/CallsManager.java
82430ce4a9211bcdf70a582519c979b4ef4506ff 26-Nov-2014 Nancy Chen <nancychen@google.com> Merge "When adding a new call, use same phone account for call." into lmp-mr1-dev
bc95db90d9f463fe475c53c8ce15ea99bb716cdb 24-Nov-2014 Nancy Chen <nancychen@google.com> When adding a new call, use same phone account for call.

Because MSIM does not support having two active calls with different
SIMs, use the SIM of the currently active call to place additional
calls.

Bug: 18461539
Change-Id: I38411a5f9f330d2064830068629651653a0871d3
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
77804e7345660156b3c8421132be90ce00b70635 24-Nov-2014 Santos Cordon <santoscordon@google.com> Merge "Remove Guava references from Telecom." into lmp-mr1-dev
4bc0245eb5c09ab48dcbb673eefdf7175ae8ac9c 20-Nov-2014 Santos Cordon <santoscordon@google.com> Remove Guava references from Telecom.

Prepping telecom to run in system-server process by removing references
to guava.

Bug: 18112269
Change-Id: I994be480284462240da46c9cf0e47aa83f5f1fe9
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
98c4e2a1f98dcf27ee57151811814e2e0fbb76c3 20-Nov-2014 Santos Cordon <santoscordon@google.com> Merge "Fix call duration for unanswered/missed calls." into lmp-mr1-dev
40f9b179e6aaa0d906d38a48040425f82727aab4 17-Nov-2014 Santos Cordon <santoscordon@google.com> Fix call duration for unanswered/missed calls.

Made call times be equivalent to Jellybean/Kitkat.
Missed calls, rejected calls, unanswered outgoing calls all show 0:00.
Missed calls in particular dont show a time at all.

Tested with Conference calls, Active/Hold, Rejected, Missed,
Outgoing->Rejected, Outgoing->End Call.

Bug: 18403859
Change-Id: I60bedc425681808d48d768a435f86f2545916de1
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
e4a9c412f5c6f76f006659f0b4e171ef4547dc45 15-Nov-2014 Yorke Lee <yorkelee@google.com> Add Systrace logging to Telecom

More granular per-listener logging is protected by a
static boolean flag which is currently turned on for
dogfooding.

Bug: 18373617

Change-Id: Id37c75f2e2475923dcd66aa7325b3d8767f29a97
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
36e3ada72c816a3802f43bc6116cbf1b7c24f18e 12-Nov-2014 Yorke Lee <yorkelee@google.com> Merge "Cleanup and remove call if ConnectionService crashes" into lmp-mr1-dev
2af16b65f88fcb84d15b701f8f112f7f5a443eaf 12-Nov-2014 Yorke Lee <yorkelee@google.com> Cleanup and remove call if ConnectionService crashes

Make sure that call is removed from CallsManager if its
ConnectionService crashes.

Verified fix with TestConnectionManager.

Bug: 18262469
Change-Id: Idae71186b6547cb5a4c89e273c779eef030a2952
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
7e2c7f34dde14afd18c13d39777331ec2ef3a46a 03-Nov-2014 Ihab Awad <ihab@google.com> Update PhoneAccount icon API (5/6)

Bug: 18291787

Change-Id: I0b83c0d36c67e12c27355d0893a0fa78a4f3aaa6
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
91bd74cbe13428643a73acb5c7fd5d7dd136b6d9 08-Nov-2014 Santos Cordon <santoscordon@google.com> Make add-call a global property of telecom. (2/4)

ADD_CALL didn't make sense as a property of Connection or Call.
This changes it to be a global property instead.

Bug: 18285352
Change-Id: I5189e114e74dba2d81d74c6d24cf5b17f1e0922a
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
cf5b2918ca58b155911a66222ae5b4d21cb5b8ec 06-Nov-2014 Santos Cordon <santoscordon@google.com> Reuse calls canceled through NEW_OUTGOING_CALL broadcast.

When a call is canceled because of NEW_OUTGOING_CALL broadcast,
we no longer remove it immediately. This code adds a 200ms delay.
The 200ms delay is long enough that if an app reposts another call
to the same number (with a gateway number, for example), instead of
destroying and recreating the call, we attempt to reuse the existing
one. This eliminates the jank in the UI caused by the call being
destroyed and a new one recreated.

Bug: 17692408
Change-Id: I225a4fcc6f00d764cf76595f15f6d2d0785b9fe2
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
6e2b94eae72c72b11358fdb99f87471b5ab11e4f 30-Oct-2014 Tyler Gunn <tgunn@google.com> Creating connections for conference event package participants.

- Add "addExistingCall" method to Connection service wrapper to handle
the creation of new calls for connections which already exist in telephony.
- Fixed but in setIsConference message where an isValidCallId check made
outside of the handler would result in a newly added call NOT being
marked as conferenced due to a race condition. The MSG_SET_IS_CONFERENCED
handler already checks if the call exists before performing its operation.

Bug: 18057361
Change-Id: I2348c8e6985cd831f2cae56b37dfcb33bae014a8
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
4550623ca162ccb3291ec3f020b7ad3346784ebd 23-Oct-2014 Andrew Lee <anwlee@google.com> Don't start video call if already in a video call.

+ Check enforced if the intent has an extra for bidirectional
videocalling and the calls manager already has a call with
video state bidirectional.
+ Show an error toast message if that's the case.

Bug: 17009418
Change-Id: I72d4c3660c19f163eadd88abed7677892ce6b1cc
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
0bde0c54da301d30e1bfcf40603cb2a6e4141883 23-Oct-2014 Nancy Chen <nancychen@google.com> am 1e01a160: Merge "Add an option to set the selected phone account as the default. (2/3)" into lmp-sprout-dev

* commit '1e01a1603ff2a99fdf4fcf8b73c72eb867f0dd97':
Add an option to set the selected phone account as the default. (2/3)
1e01a1603ff2a99fdf4fcf8b73c72eb867f0dd97 23-Oct-2014 Nancy Chen <nancychen@google.com> Merge "Add an option to set the selected phone account as the default. (2/3)" into lmp-sprout-dev
9aedea3224a45242786d352f5454ffcfa44b8eba 22-Oct-2014 Santos Cordon <santoscordon@google.com> am e5cbf7d6: am 27d9e273: Merge "Send BTPhoneService update when active/background calls switch." into lmp-dev

* commit 'e5cbf7d6066fa68ffc2a7ba9042c888593355574':
Send BTPhoneService update when active/background calls switch.
89e060ee6762f34b16a3d90e3295d707800b313d 22-Oct-2014 Yorke Lee <yorkelee@google.com> am 76a123e9: am efba60b2: Merge "Fix typo when forcing recalculation of call capabilities" into lmp-dev

* commit '76a123e96a3cf4c68f5d4c0d80db10729f479ffb':
Fix typo when forcing recalculation of call capabilities
163f670d5524c58c810cd4f1f60122baa5adc83e 22-Oct-2014 Andrew Lee <anwlee@google.com> Merge "Remove ADD_CALL if not only top-level call." into lmp-mr1-dev
e5cbf7d6066fa68ffc2a7ba9042c888593355574 22-Oct-2014 Santos Cordon <santoscordon@google.com> am 27d9e273: Merge "Send BTPhoneService update when active/background calls switch." into lmp-dev

* commit '27d9e2734a7f6f3c413c91a4501c2e95f503f747':
Send BTPhoneService update when active/background calls switch.
27d9e2734a7f6f3c413c91a4501c2e95f503f747 22-Oct-2014 Santos Cordon <santoscordon@google.com> Merge "Send BTPhoneService update when active/background calls switch." into lmp-dev
8d44b907e9fe1b15b922ff188c199319cf0c89a0 22-Oct-2014 Nancy Chen <nancychen@google.com> am 94586cdd: Merge "Enable account selection for MMI codes that involve "dialing"." into lmp-sprout-dev

* commit '94586cdd5f29066e041d4c95f43a8e8e539ee1a0':
Enable account selection for MMI codes that involve "dialing".
f5e5d3ccf108c41e06983a582742b00d221b78b7 22-Oct-2014 Nancy Chen <nancychen@google.com> Add an option to set the selected phone account as the default. (2/3)

Modify the phoneAccountSelected method to support the option to set the
selected phone account as the default for outgoing phone calls.

Bug: 18078232
Change-Id: I1c0e1ba9ef7d886d890d86825eb53bc0ba8483d1
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
235a52fae2ce75a38311569c4a22fcbeed8c5c94 21-Oct-2014 Andrew Lee <anwlee@google.com> Remove ADD_CALL if not only top-level call.

ADD_CALL now depends on the state of the underlying connections, and
the mix of GSM/CDMA/IMS connections.

I propose to address this by setting those capabilities as true on
the GSM/CDMA connections, then further filtering in Telecom depending
on the call state (ie. whether it is the only top level call, and
whether or not we're dialing). I think this logic should be simpler,
and also allows us to more directly control this capability depending
on the connection type.

Bug: 18062269
Change-Id: Ie5be502545a580719e65595e495ff30cbc3fc22f
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
c0ca76ee6dc2d21cf1e9f310f2d16662c8ceb25e 22-Oct-2014 Santos Cordon <santoscordon@google.com> Send BTPhoneService update when active/background calls switch.

This sends an update if the call-on-hold changes (when active and
background calls swap) as well as using a proper held-call count instead
of hardcoded 1 when there are multiple calls on hold.

This is needed to pass BT PTS test TC_AG_TWC_BV_03_I.

Bug: 17962996
Change-Id: Ia6d5f649020837a1ca37d0895f8844fcdec04446
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
76a123e96a3cf4c68f5d4c0d80db10729f479ffb 21-Oct-2014 Yorke Lee <yorkelee@google.com> am efba60b2: Merge "Fix typo when forcing recalculation of call capabilities" into lmp-dev

* commit 'efba60b21218cc41251b04c71fa0ec5edc44d798':
Fix typo when forcing recalculation of call capabilities
7ae9eed7b50b423a7351c0de292e1ef4d3861344 21-Oct-2014 Yorke Lee <yorkelee@google.com> Fix typo when forcing recalculation of call capabilities

Bug: 18071704
Change-Id: Ib389ce72bc43e2fc073af5afc6383f3250046b27
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
94586cdd5f29066e041d4c95f43a8e8e539ee1a0 21-Oct-2014 Nancy Chen <nancychen@google.com> Merge "Enable account selection for MMI codes that involve "dialing"." into lmp-sprout-dev
8d92f45672193c2b1179113b6cf5aedb19d2dc39 21-Oct-2014 Nancy Chen <nancychen@google.com> Enable account selection for MMI codes that involve "dialing".

Some MMI codes (specifically a small set of GSM codes) involve pressing
"dial" to send the code. The connection service identifies that this is
an MMI code and responds accordingly, including canceling the call. In
the multi-SIM case, we want to bring up a dialog to select a SIM
"connect" through. We can use the current PRE_DIAL_WAIT state and select
account dialog to do this.

Bug: 17573147
Change-Id: Id765e595f3149c088ae5de72a97cc2034338b6ee
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
686f453920381348ec162828269e751aca535580 20-Oct-2014 Yorke Lee <yorkelee@google.com> am eae93b4c: am c9fe671f: Merge "Update call capabilities when call is removed" into lmp-dev

* commit 'eae93b4c741e70d8f0780ca92c747f6950173d8d':
Update call capabilities when call is removed
c9fe671fe1e780cf6d6e2bb59ddb47c51ea038a3 20-Oct-2014 Yorke Lee <yorkelee@google.com> Merge "Update call capabilities when call is removed" into lmp-dev
604a90f596deb41998e021151b3ddc8019e28eac 20-Oct-2014 Yorke Lee <yorkelee@google.com> Update call capabilities when call is removed

Bug: 18018700
Bug: 17586196
Change-Id: I4bb733fea421e4c18378f0ff96b571e6b2f66a14
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
bd33024d5e1d2069896821d95c9888368597a157 16-Oct-2014 Yorke Lee <yorkelee@google.com> am b38c54f8: am aa6ea25b: Merge "Partial revert of Ic0055a53ac85980fa22136a5c8b6cb59be347da9" into lmp-dev

* commit 'b38c54f8348ee11677ef689c56c987113e008aa1':
Partial revert of Ic0055a53ac85980fa22136a5c8b6cb59be347da9
a348438f79205afd3a0ca564f18d75e1505372de 16-Oct-2014 Yorke Lee <yorkelee@google.com> Partial revert of Ic0055a53ac85980fa22136a5c8b6cb59be347da9

The original fix for Google Voice caused the account selection
dialog to not show up.

Bug: 18014056
Change-Id: I6d5ed0a60e4bad2d7a023006b794e0cbc21eab5a
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
9f040550d16599113df65b6ec8c412f699298a76 15-Oct-2014 Tyler Gunn <tgunn@google.com> Merge "Adding more Telecom state dumping." into lmp-mr1-dev
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/CallsManager.java
504eb83ea06f4c737a4f4fdbd65aa2450505420c 13-Oct-2014 Tyler Gunn <tgunn@google.com> Fixing issue where Google Voice calls are logged twice to call log.

1. Changed disconnect cause for aborted calls to "CANCELED" which ensures
they are not logged.
2. Also, added a check in Telecom to avoid bringing up the InCall UI
immediately when a new call is made, if Google Voice is installed. This
is to ensure that the user does not see two reveal animations. This was
due to the fact that when the call was initially added and subsequently
aborted, the InCall ui would be shown. With this change, if GVoice is
installed, adding the call is delayed.

Bug: 17961478
Change-Id: Ic0055a53ac85980fa22136a5c8b6cb59be347da9
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
66fe882a6437de1010af0dc8cd7350f81f2e028a 11-Oct-2014 Santos Cordon <santoscordon@google.com> Update foreground calls with child-parent call changes.

Bug: 17699262
Change-Id: I4de8bd876b142e2762a369a36ea2e7dcc7b84e65
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
9250e5fa9987c3ab80e11e1955657055f5866539 01-Oct-2014 Yorke Lee <yorkelee@google.com> Add ability to add sim-initiated MO call to UI (3/4)

Pipe an unknown call through CallsManager via various new APIs like
onSuccessfulUnknownCall, onFailedUnknownCall, etc. These are the unknown call's
equivalent of onSuccessfulOutgoingCall and onFailedOutgoingCall.

Only the TelephonyConnectionService is allowed to call this hidden new API
in Telecom.

Also add the ability for TestConnectionService to test this API (although the
check for TelephonyConnectionService must be disabled at build time first).

Bug: 16852844
Change-Id: I5dfdfc1bd4675f6b300a4a55a3098582f9d715a2
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
7984e0a7909d18ec4b16741fa28d9126f49018d4 02-Oct-2014 Andrew Lee <anwlee@google.com> Merge "Removed failed outgoing calls." into lmp-dev
5b452df44f5bbd1b8984611d5e6de6ebf14aa0f2 02-Oct-2014 Tyler Gunn <tgunn@google.com> Allow sending of in-call MMI codes through to telephony.

1. Fixing bug where having multiple calls in progress it would not be
possible to send the ECT MMI code due to code that checks for the number
of current calls.
2. Fixed issue where InCall MMI codes would be dialed as a regular call,
showing the InCall UI. In KitKat, dialing an incall MMI code would
bypass the InCall UI, dialing the MMI code directly.

Bug: 17700763
Change-Id: I41b9b329609e100540c4d60e1243dc08354bb481
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
e6288a7a6765006f155d259bea8bfd26ce8c6205 01-Oct-2014 Andrew Lee <anwlee@google.com> Removed failed outgoing calls.

The user is unable to add a call in this bug, because the call is not
add capable. It fails the isAddCallCapable check because there are
multiple calls; one of which is not the same call and does not have
a parent.

This appears to be because of some interaction with Google Voice (at
least in the specific case I was observing), where the initial call
is disconnected and then the call is rerouted. When this initial call
is disconnected, it was not removed, leading to this (erroneous) two
call state.

Fixing this by explicitly calling remove call for failed outgoing
calls. Formerly, they were only marked as disconnected.

Bug: 17731082
Change-Id: I0d6401cbc593a128483072c5faa189949e73d71e
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
b63254cfa6a9c404fab98f51b2b2f4acf34b59b6 27-Sep-2014 Qiwen Zhao <zhao@google.com> Merge "Don't stop outgoing calls if we are the foreground call." into lmp-dev
d176650e14205f34fff93b14341f6313437b703c 27-Sep-2014 Santos Cordon <santoscordon@google.com> Don't stop outgoing calls if we are the foreground call.

When attempting outgoing calls we do checks to make sure there is room
for another outgoing call (we only support 1 at a time). But that code
needs to check to see if the new call is already the foreground call and
if so, let it continue.

Without this change, we never make an outgoing call in the "Ask
First" case

Bug: 17672699
Change-Id: I9bf37b08e54e2fc2ace1295ce269775cb14d08f1
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
bb907d4878612ffc45464afeb70e06b91b6d91f6 27-Sep-2014 Ihab Awad <ihab@google.com> Merge "Attempt to unhold remaining holding call on disconnect (1/2)" into lmp-dev
05a9e40ba1edc7b4597163f73503e2e92b746208 26-Sep-2014 Nancy Chen <nancychen@google.com> Ensure bluetooth does not get hangup sound when calling through gvoice

Because Google Voice works by canceling an outgoing call and starting up
its own outgoing call, telecom registers the first call as a
disconnecting call and sends a signal to the bluetooth device that the
call was disconnected. This causes a hangup sound from the bluetooth
device. This fix works by having bluetooth ignore a call until it gets
into the dialing state, which only happens after the google voice call
has connected.

Bug: 17662993
Change-Id: I52c504f615534c59ede8c0de520f755484922730
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
5b28132e9e05b33ed08421f9c0fe85523da1f064 26-Sep-2014 Ihab Awad <ihab@google.com> Attempt to unhold remaining holding call on disconnect (1/2)

Bug: 17480900
Change-Id: I9d16419a969f833aa830de7f9ab5df8772a935c4
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
68d1a6b0bd8840b74c61a94928610312c09b0486 19-Sep-2014 Santos Cordon <santoscordon@google.com> Move BluetoothPhoneService to telecom.

BluetoothPhoneService needs to be in telecom to be aware of all types of
calls. While in telephony, there's no way for it to know about
third-party sourced calls.

Additionally, conference calls for CDMA are no longer functional in the
telephony layer and needs to move to telecom to support BT commands on
CDMA calls.

Bug: 17475562
Change-Id: I443431291a3b0120d92b52dba2acca17a4c0c983
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
ad3355a3eac640e14a2da77a11bf2fcc96286984 24-Sep-2014 Andrew Lee <anwlee@google.com> Merge "Refuse outgoing call if max outgoing exceeded." into lmp-dev
e659518bac4b3551446e813751abc8d1c70b2d5b 24-Sep-2014 Andrew Lee <anwlee@google.com> Refuse outgoing call if max outgoing exceeded.

This bug was happening because multiple calls in the CONNECTING state
were being added. Now, if there's an attempt to place multiple calls,
ignore when the maximum number of outgoing calls is exceeded.

Exception: if the outgoing call is an emergency call, cancel the
current outgoing call if the current outgoing call is not an
emergency call itself.

Bug: 17610917
Change-Id: I0ae041fa3a09a2fb9508f2342894e77b87001b43
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
add3c272faf44a46e94b25eca78d831c49bec375 23-Sep-2014 Andrew Lee <anwlee@google.com> Merge "Don't enable "add call" if CDMA and in conference." into lmp-dev
c11fcd97994f469d24b58a2d9dc5cddaa5a1081f 20-Sep-2014 Andrew Lee <anwlee@google.com> Don't enable "add call" if CDMA and in conference.

Bug: 17581379
Change-Id: Id64dd7b2c780f2de7fcc637a68ba2e6bd1483889
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
1ccab206c39d0fafde7475bd1ff23fd346a17339 19-Sep-2014 Nancy Chen <nancychen@google.com> Skip "PRE_DIAL_WAIT" when no accounts are available to chose from.

Go straight into "CONNECTING" state when no account is preset and there
are no available accounts to select from (for example if it is a SIP
call and no SIP accounts are registered). The InCallUi will handle
disconnecting the call and displaying an error message.

Bug: 17486242

Change-Id: Ieaa89c908caab15811d4708f76fe674bd96900b8
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
1c5926fc5f3c828c5b16c25a5154e5a0306ea3e7 17-Sep-2014 Nancy Chen <nancychen@google.com> Replace get*PhoneAccounts* public API methods with new method (2/3)

Hide getCallCapablePhoneAccounts and getPhoneAccountsSupportingScheme
because a third party app should not be able to see all phone accounts
registered. Replace instead with getPhoneAccountsForPackage(Context)
which will only return the phone accounts registered by a particular package.
Also pass available phone accounts for the user to select from through
Telecom to InCallUI so InCallUI will not be calling the Telecom API
directly to get these accounts.

Bug: 17510811

Change-Id: Ia91972bc4cfa938b743f6b3b165a81d4acd58c45
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
ce1a21ef6e0221107383b228c2219b3f0586eb67 17-Sep-2014 Tyler Gunn <tgunn@google.com> Merge "Preparatory work to move Telecom to system service." into lmp-dev
c9433c3804369d72474883242ca38a7ef76f03cf 17-Sep-2014 Ihab Awad <ihab@google.com> Merge "Automatically un-hold calls brought to the foreground" into lmp-dev
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/CallsManager.java
b3c4b285b747c58bfa58e2c58e09cdfb2c2b03b8 17-Sep-2014 Nancy Chen <nancychen@google.com> Merge "Remove ability to enable/disable phoneaccounts (3/6)" into lmp-dev
309198ec4d8b2738cf955316ea7a2f9418929fd1 16-Sep-2014 Nancy Chen <nancychen@google.com> Remove ability to enable/disable phoneaccounts (3/6)

Enabling/disabling of phone accounts was only used for SIP accounts and
is no longer necessary for the purpose it was put in.
- Remove all references to enabling/disabling phone accounts
+ Rename getEnabledPhoneAccounts to getCallCapablePhoneAccounts

Bug: 17510811
Change-Id: I5e8a59fe2aaac2563fe4bf97138975e30b45aa3c
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
701dc006ac11625b55d872f1639107b028933895 12-Sep-2014 Andrew Lee <anwlee@google.com> Use telecomm DiconnectCause in services/Telecomm.

+ Some of this is straightforward replacing the old disconnect cause
code/message with the new DisconnectCause object.
+ Replace codes in some instances; most maps straightforwardly to the
newer generic set of disconnect causes.
+ InCallToneMonitor can no longer rely on the specific telephony
DisconnectCauses. Now, instead, they map from a tone (which is
specified on the new telecomm DisconnectCauses) to the type of tone
which should be played in InCall. Most of these are just taking
unique matches from InCallTonePlayer. It is a little redundant, as
the conversion just flips, but it seemed like the easiest way to
accomplish this given current constraints.

+ Behavior is unchanged, but now DisconnectCause.OUT_OF_SERVICE
will invoke InCallTonePlayer.TONE_CDMA_DROP.
+ Now play TONE_PROP_PROMPT regardless of whether there is precisely
one remaining call; this is because we can't distinguish between
telephony DisconnectCause.ERROR_UNSPECIFIED/NORMAL/LOCAL. I figured
this would be a relatively minor change in scenario, and it wouldn't
hurt for a tone to be played even in a disconnect in that scenario.

Bug: 17329632
Change-Id: I85767d424bcfd59b3929819c9c6de46fc4a8629e
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
a1ce6671ab8b48b422ec20954ac9dd7690b95aac 16-Sep-2014 Ihab Awad <ihab@google.com> Automatically un-hold calls brought to the foreground

Bug: 17480900
Change-Id: I2018759d05fdb75794983e276c1c5c1d5a5724a6
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
f193ba45fae5bc87e6a57779e4f5b56be59d08b0 12-Sep-2014 Santos Cordon <santoscordon@google.com> Guard against simultaneous calls.

1. If you get an incoming call we auto reject it if any calls exist which
are in any state of dialing out. (Tested with SIP/PSTN combination).
2. If you answer an incoming call, we automatically disconnect the
foreground call if it does not support being put on hold. (Tested with
SIP/Cdma combination).

- Also fix bug where we were allowing a child call to be set as the
foreground call.

Bug: 17323602
Change-Id: Idf448299a17c6e6d9a6ed2c148af8e4cc9c16594
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.java
f86db2e63ec71781ac8214ed6d2603d02266143d 13-Sep-2014 Yorke Lee <yorkelee@google.com> Add getCallState to Telecomm

Use getCallState in TelecommManager.isInCall and isRinging

Bug: 17378767
Change-Id: Id356c03f7fa21297d0376d56e09ce3f45399435b
/packages/services/Telecomm/src/com/android/server/telecom/CallsManager.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/CallsManager.java