History log of /packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
bd41f74ece58ee23c60fbbc36e2b62ed5fe7c679 15-Mar-2015 Dong Zhou <a22255@motorola.com> Set the capability to speed up audio setup for IMS MT call

Bug: 19656525
Change-Id: Id7d0f46ed11efe5c6ab950a0ff6128fd2c5f5344
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
2f25c1f47c80a37e8df7acd88e5bc3930d5afc82 29-Jan-2015 Tyler Gunn <tgunn@google.com> Fixing conference merge where only one party is added to conference.

- Adding check in TelephonyConnection to check for changes to the
multiparty bit and notifying listeners (in this case the conference
controller.
- In ImsConferenceController Responding to the onConferenceStarted
callback from the IMS layer by checking if a new ImsConference needs to
be created.

Bug: 18960042
Change-Id: I8dd2f32c442895fd6126b83f2d8ac889fd468fad
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
515be40fe23165812821cd0779cbe3929e0b163c 16-Dec-2014 Nancy Chen <nancychen@google.com> Update PostDialListener instance for onPostDialChar.

Instead of just listening for the PostDialWait state, the
PostDialListener now listens for each character being processed. This
will allow the information for when each character is processed to be
passed to Telecom from Telephony.

Bug: 18644688
Change-Id: Iaca58ca946f64786434c64ca088aec57ff95a188
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
0fd40fb9429a25a38feb41ab0568b16b69139d82 09-Dec-2014 Uma Maheswari Ramalingam <umam@codeaurora.org> IMS: SRVCC related fixes.

1. SRVCC: Fix only one call seen on UI after multi-call SRVCC

When SRVCC for more than one call happens, the original connection
is overwritten by the last handover connection for all the
connections before SRVCC. As a result the connection of second
call overwrites all the connections after handover

Change-Id: I449d3cea8d8e430db63ef2af21b3447d1b718e0e

2. Add support for using the state of connection before handover

Pick the correct connection to replace the original connection
using the state of handover connection before handover

Change-Id: I22bf5f4e72dd835ae857ab65423d6601abe454c8

Bug: 18559588
Change-Id: Iac25e07a271cd157c7bf061f1329ff347b867727
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
a8b605093bb773c900ac290686641d68b6bbf6b6 01-Dec-2014 Andrew Lee <anwlee@google.com> Rename VoLTE capability to HD Audio.

Bug: 18103173
Change-Id: Ic009d6126be06d9f80b3956f5c94edced496142b
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
dbbce96742af8a4b3cbdc20fe5fe4b4a92d83a33 01-Dec-2014 Tyler Gunn <tgunn@google.com> Merge "Fixing issue where DTMF tones were not issued through to the IMS framework once a conference is established." into lmp-mr1-dev
3cc8121590b5b05af65a9aeaa8948834e4983adc 12-Nov-2014 Ihab Awad <ihab@google.com> Telecom API updates (5/6)

Bug: 18292176
Change-Id: I706c5a120e8a136d084d4b7f9f0fbc2653a5b86b
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
33464599cc0083dba146db75cecea3ee354888c9 20-Nov-2014 Tyler Gunn <tgunn@google.com> Fixing issue where DTMF tones were not issued through to the IMS framework
once a conference is established.

The problem was the "ConferenceHostConnection" which wrapped the radio
connection. As an extension of TelephonyConnection, it did not provide
the required "onPlayDtmfTone" and "onStopDtmfTone" overrides the CDMA
and GSM TelephonyConnections do.

Refactored to get rid of the ConferenceHostConnection and just clone the
original telephony connection instead. This ensures the correct DTMF
overrides are present.

Bug: 18200934
Change-Id: Iff8d404ff494be39ef68ba10b23c3a38b74e520d
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
2c248f38ac4c7fefc50fb9c595b6cbf2798c0632 19-Nov-2014 Tyler Gunn <tgunn@google.com> Create IMSConference to represent IMS conference calls.

- ImsConference contains a "host" connection which is the radio connection
to the IMS conference server.
When a new ImsConference is created, we wrap the radio connection in a
new TelephonyConnection which is not added to Telecom; this is stored in
the ImsConference and provides a means for the conference to be notified
of disconnect/hold of the conference connection.
Next, the original TelephonyConnection is disconnected and the conference
is added to Telecom.
- The ImsConference manages its own conference participants directly
rather than through the ImsConference controller.
- Added a new ImsConferenceController since it is sufficiently different
from how the generic TelephonyConferenceController works.

Bug: 18200934
Change-Id: Ia32c2111173c69be7b05ed76a038fb571c2e726b
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
e01728b713bfe06a1214192b90c29fecbfdb064e 10-Nov-2014 Santos Cordon <santoscordon@google.com> Merge "Make add-call a global property of telecom. (3/4)" into lmp-mr1-dev
84d4efc1444996ca4344740d823454f45b0dee80 08-Nov-2014 Santos Cordon <santoscordon@google.com> Make add-call a global property of telecom. (3/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: I5e27a36a0f37a11dd200c87a87f2ec3d65629223
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
ad6f3dce3b32d69fb2a353753163358f88708405 07-Nov-2014 Tyler Gunn <tgunn@google.com> Conference event package performance improvement.

- Instead of sending each participant to the telephony conference
controller, all participants are sent at once. This way the conference
only needs to be recalculated once.
- New connections are created with state NEW so that they are not shown
in the InCall UI.
- Once the conference is established, the state of the connections is
set appropriately based on the information in the conference event
package.

Bug: 18057361
Change-Id: Ibdb5cb940f15ab6d872bf1ef8c99a1a9ebae7b6e
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
cf4d1335a76296a2b1cc3880198d3d28c13924bd 07-Nov-2014 Andrew Lee <anwlee@google.com> Merge "Disable MANAGE_CONFERENCE in TelephonyConference." into lmp-mr1-dev
0348766dac5e533767e77072e1c6ffa6742e44d5 07-Nov-2014 Anthony Lee <anthonylee@google.com> Fire callback immediately if original connection already exists.

In the case of an incoming call, the callback will be registered
after original connection is already set. If this is the case, let's
just fire back the callback immediately so the connection
is added to the conference controller.

Bug: 18056632
Bug: 18240234
Change-Id: I3996ee3763535aff209f7486f78a0f4889482cbe
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
09bb16f9d7e4ffa790132285d9e8583ebe4af0fe 07-Nov-2014 Andrew Lee <anwlee@google.com> Disable MANAGE_CONFERENCE in TelephonyConference.

This used to be in TelephonyConnection, but it wasn't called properly
there, and didn't make as much conceptual sense there.

Bug: 18241753
Change-Id: Iab52392c7c183255951636e735979d1e6b6ca9d5
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
1734de28c0eda0d8303be39c9342b618f9f938db 07-Nov-2014 Anthony Lee <anthonylee@google.com> Add connections to conference controllers when original connection is valid

The only way that we can determine if we should use the Telephony or CDMA
conference controllers are once the underlying original connection is set.
Until it is set, we cannot guarantee that we'll get it right. This CL introduces
some plumbing that allows the TelephonyConnection to notify the
TelephonyConnectionService when this occurs so that it can take action
at the appropriate time.

Bug: 18240234
Bug: 18056632
Change-Id: I54b4d9821b94085e639c35f2fe3569b4eed67f88
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
cb101f68bbaf5a050b422b6cbc29bb20d11078a4 06-Nov-2014 Andrew Lee <anwlee@google.com> Implement performConference() in TelephonyConnection.

Move the implementation from Gsm to TelephonyConnection so that it
can be invoked by a CdmaConnection if it is an IMS connection.

Bug: 18240234
Change-Id: Ie31f9f671a1f0df81cfb65299dc587d164c0d053
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
bfc5d010e0c313a081fce393504133b91190fe39 04-Nov-2014 Tyler Gunn <tgunn@google.com> Various conference event package changes.

- Handle conference event package indicating a participant has been
disconnected by calling "destroy" in ConferenceParticipantConnection.
- In TelephonyConferenceController, once all telephony connections have
been disconnected, disconnect all conference participants.
- In TelephonyConferenceController, changed the criteria of when a
conference has ended to be: < 2 connections for GSM, or < 1 connection for
IMS.
- Add "onDisconnectConferenceParticipant" method to TelephonyConnection so
that a ConferenceParticipantConnection can be disconnected via its
parent, which is a TelephonyConnection.

Bug: 18175912
Bug: 18228141
Bug: 18176606

Change-Id: Id6c6d3ace850f28eb4f0030cf49f1b2521b6d974
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
a1079194649f48af827eb879e32af661d716116f 29-Oct-2014 Tyler Gunn <tgunn@google.com> Communicating participant changes to conference controller.

- Add new ConferenceParticipantConnection to represent a participant.
- Add event handlers to pass participant to conference controller.
- Create new connections for participants in conference controller.

Bug: 18057361
Change-Id: I5bee6cd08554dcea64f7eab915c9ce463ddb9879
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
07426ef6c85dfedf68b7e53166ace82ff9e9eab5 22-Oct-2014 Santos Cordon <santoscordon@google.com> am 297b563b: am 2f764cb9: Merge "ACTIVE->HOLD happens before HOLD->ACTIVE" into lmp-dev

* commit '297b563b9a6e3aa0db6d78afae169fc132bceef2':
ACTIVE->HOLD happens before HOLD->ACTIVE
b0545ab1c0569888a6f99699ab6f2f1e4565b04b 22-Oct-2014 Andrew Lee <anwlee@google.com> Merge "Set ADD_CALL capabilities on TelephonyConnections." into lmp-mr1-dev
c4194d35d4638595a6be0c10f8e7c623cccfd09a 20-Oct-2014 Andrew Lee <anwlee@google.com> Set ADD_CALL capabilities on TelephonyConnections.

Before this was done purely in Telecom's InCallController. But, IMS
now adds some wrinkles on the situations where this is possible. Now,
specify this on the connection, and remove on the InCallController if
the capability is not appropriate.

This allows for greater control over ADD_CALL capability, depending
on the type/state of the TelephonyConnection.

Bug: 17423848
Change-Id: I629b87e1652ddfd7008f56e9b46669b9343232db
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
e659bf4bc8c18b2933f94b4042951507450ad129 21-Oct-2014 Andrew Lee <anwlee@google.com> Remove manage conference option for IMS.

Before, this was only done for CDMA, but upon thought it should be
disabled in general, unless there's a conference event package.
I figure this should be included as default behavior, rather than
assuming that Gsm will have a conference event package, as is the
case right now because it hasn't yet been implemented.

Bug: 17423848
Change-Id: I573460b72c6cd8eca4a5618d74a2dab79caa897b
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
0e40c46c113095d3c29bdb2882cfb4d1ea1d12f4 17-Oct-2014 Santos Cordon <santoscordon@google.com> ACTIVE->HOLD happens before HOLD->ACTIVE

Make sure that existing active calls get their states updated first
before we activate any new calls. This ensures that there never exist
more than 1 active call.

Bluetooth PTS certfication test TC_AG_TWC_BV_03_I fails. This test
verifies the ability to swap a background and a foreground call. Per the
spec, this test expects that the active call is first put on hold and
then previously held call is activated.

The telephony layer was doing that in the lower layers,
but due to order of call-state-change notifications,
we weren't guaranteed the order of ACTIVE->HOLD vs
HOLD->ACTIVE. This change makes that deterministic by ensuring that
simultaneous call-state changes always update previously ACTIVE calls
before updating new calls to ACTIVE.

Bug: 17991921
Change-Id: I4e4789c044d9e3614f42143cfa6053881a6d109b
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
9b4e65f58b00f165a9a05d6a609a78474dcdeef5 17-Oct-2014 Andrew Lee <anwlee@google.com> Disable disconnect/separate for connections which were ever IMS.

When a conference call hands over from an IMS call to a circuit
switch call, we aren't guaranteed to support a call list and be
able to actions like disconnect/separate which you might if you
started the conference in GSM.

For now, disable DISCONNECT/SEPARATE if the connection is was
ever an IMS connection. We can adjust casing depending on
the individual carrier IMS implementations later on.

Also, if a conference is handed over from IMS to CS, disable
conference management because we don't know if we'll be able to
regenerate the call list.

If we need to track more initial states in the future, we should
use an enum or set of integer states instead of a boolean to track.

Bug: 17429707
Change-Id: Ib23977c8f731395bb70628a2a7af5b4052808d49
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
3c96d1a1d0190d99c2c0f3ecf96d09a777d9b32f 15-Oct-2014 Andrew Lee <anwlee@google.com> Enable HOLD capability for IMS-based CDMA connections.

+ Refactored method for checking whether a call is based on an IMS
connection into the parent TelephonyConnection class.
+ Changed CdmaConnection/GsmConnection to obtain a populated
call capabilities from their TelephonyConnection super class when
building call capabilities.
+ Add IMS-scenario handling for HOLD when building call capabilities.

Bug: 17913504
Change-Id: I03316a0bea509395fe9a0f0688047f96c72db87e
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
0482295909da597068f093802a7f39e279b44e23 07-Oct-2014 Yorke Lee <yorkelee@google.com> Fix crash during incoming CDMA calls

This was a regression from a previous change to allow for connections
to be created for previously unknown calls. The culprit was a change to
set the state of the newly created connection based on the current state of
the original connection.

Setting the state inside the Connection constructor code path had
unintended side effects because some state listeners were relying on the constructor
to have completed first.

Since not setting the state has worked fine so far for incoming and outgoing calls,
only do it explictly for unknown calls, and outside of the constructor so that
we can be sure that everything has already been initialized.

Bug: 17892446
Change-Id: Ib3c37d373f0f64205ad688a98b94e46f5bc44199
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
3f7f717a2295f9ae5cc6a34ed404ec22e94012da 02-Oct-2014 Yorke Lee <yorkelee@google.com> Add ability to add sim-initiated MO call to UI (1/4)

Listen to new unknown calls in PstnIncomingCallNotifier, and add them to
Telecom when a new unknown connection is detected.

Bug: 16852844

Change-Id: I8c1e3fcd0724d22839e6af388b0bbed90d5f7c9a
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
cb0a3bb2f06effb162c442159fc293b5d567d487 03-Oct-2014 Tyler Gunn <tgunn@google.com> Fixing where calls disconnected from conference manager are still shown.

Traced the source of this issue to the fact the calls disconnected
from the conference manager were not being recognized as disconnected
by Telecom. When a regular call is disconnected locally, the
"precise call state changed" message from the phone reports the new
disconnected status. However, the calls disconnected via the conference
manager were not reporting their disconnected status via the "precise call
state changed handler", and thus they were not recognized as disconnected.

To fix this, in TelephonyConnections, registered a disconnect handler
to listen to disconnections from the Phone. This fixed the problem.

Bug: 17785678
Change-Id: I8b0f94f3afd2d8a961d75f7e309c598934e405c3
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
d9d19ecdfb9018eef212b82320a25216543438de 01-Oct-2014 Santos Cordon <santoscordon@google.com> Set CDMA calls as on-hold if there is a dialing CDMA call.

Bug:17699262
Change-Id: I251e59b1f15b5e2d9a6b2929ec1fcaba3d9f4101
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
93f69955d86168ca6b71f840ed24ceaef26016c8 26-Sep-2014 Ihab Awad <ihab@google.com> Attempt to unhold remaining holding call on disconnect (2/2)

Bug: 17480900

Change-Id: I7c26347a939caf4d59bd0ffd92c88b50d7e507ab
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
aef7a4bc4f85149de427d7506ebe97753b2ca6c2 12-Sep-2014 Andrew Lee <anwlee@google.com> Use newly added Telecomm DisconnectCase.

+ Add utility, DisconnectCauseUtil, to convert from telephony
DisconnectCauses to telecomm DisconnectCauses. For this, map
from specific disconnect causes into a more generic set which
the UI is concerned about. Provide user-localized strings or
tones for certain cases.
- The string conversion sucks a little because it covers both
strings which are intended to be show in the InCallUi (short)
and messages which are to be displayed to the user in a dialog
when there is some termination (long). =(
+ Where possibly, use this utility for converting error
messages as well.
- Not able to convert with message and tone for many of the
failure cases, because no context exists for obtaining the
message to display.

Bug: 17329632
Change-Id: I84ee358cc8e014f110bab4c0ae7c1cb02aeebdf6
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
4d45d1cf58a2003378fd35912d6d73a00001bf06 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: Ic33bafd37200e65431543a9889aed549dbb04831
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
3056b9bea92f47a4dac96c9d90e86fc9541c7acf 11-Sep-2014 Ihab Awad <ihab@google.com> Change UI to represent conferenced IMS connections (2/3)

IMS conferenced connnections cannot individually hold or disconnect.

Bug: 17451623

Change-Id: I12dd39f5d0ee21af350d55750262be7848957849
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
7ccf4d2bff43392dd7db21e12e17400ae7aa87fc 11-Sep-2014 Andrew Lee <anwlee@google.com> Merge "Rename from "handle to address"." into lmp-dev
14bf354aab420fcd099cd0209238d7b92dad6f1d 09-Sep-2014 Andrew Lee <anwlee@google.com> Rename from "handle to address".

Bug: 17329632
Change-Id: Ib947b16cffee343bc7ca36d03617d1f7e4b3bd1c
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
c927106af6c47ad1f302e13fa8626be83bb46f14 09-Sep-2014 Nancy Chen <nancychen@google.com> Make changes to Connection in Telecomm API (2/4)

* onPhoneAccountClicked removed
* onSetAudioState -> onAudioStateChanged
* onSetState -> onStateChanged

Bug: 17329632
Change-Id: If070818eaed0372c37cfbc20733cf8206a67cca8
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
137458b4bf3516941483e59c123c22cbee27ed43 05-Sep-2014 Jay Shrauner <shrauner@google.com> Use framework scheme definitions

Use PhoneAccount defined values for SCHEME_{TEL, SIP, VOICEMAIL}.

Bug:17398074
Change-Id: I36adb16f659daef89957072f9e00d08ea2cb8e9e
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
a956f73382c3aa2619c73b880a11ee1899c2fe18 04-Sep-2014 Santos Cordon <santoscordon@google.com> Add support for Multiple calls on CDMA devices.

Includes changes for call-waiting, adding outgoing calls, mergig and
conferenceing.

Bug: 17316859
Change-Id: Ia71c1b9b61d93a40cd717e74b33786ae07b656b6
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
8256cd0003669729d08d0b6534a8c8e7d0e054e0 28-Aug-2014 Santos Cordon <santoscordon@google.com> Allow specific connections in a conference to be hung up.

Bug: 17304454
Change-Id: I47d3a7f7f807f30600692ceb83825308a323f978
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
60bed394e88384a39ecae0b7c70e90d15e6f87db 29-Aug-2014 Uma Maheswari Ramalingam <umam@codeaurora.org> Add support for handover connections

Change original connections during handover as a result of SRVCC
or Silent Redial.

Bug: 17307064, 17288974
Change-Id: I62ff0fee01d5f1cabca8afdf34730ee7b10fa5d5
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
5cfb04e272a32684f1bc7d50a44ccbeb1c5db9a3 28-Aug-2014 Santos Cordon <santoscordon@google.com> Prevent switchHoldingAndActive() from being called twice.

There's a big old comment in the code that I added that has much more
information that I'm going to put here. This fixes an issue where we
were calling switchHoldingAndActive() too many times.

Bug: 17209905
Change-Id: I4aa1f2174f897f2f4d9f5464915b98a892b51618
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
c869dd17deec2b09bfd028e3fb2c65887e322717 28-Aug-2014 Santos Cordon <santoscordon@google.com> Rejected calls need to call Call.hangup() instead

invoke getCall().hangup() for ringing calls instead. For calls which are
not ringing, call.hangup() already calls connection.hangup() so doing
call.hangup() is all we need to do.

Without this change, rejected calls never go to voicemail, they are
simply hung up on the other end.

Bug: 17304454
Change-Id: I1c3f77e1c85a184a1f4b7f239a89b97ff036f3f3
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
b7795cf75d54752c7d0d1fd59870d5c3d5fe662e 20-Aug-2014 Santos Cordon <santoscordon@google.com> Allow emergency calling in airplane mode without a SIM.

If we end the EmergencyCallHelper with STATE_OUT_OF_SERVICE, attempt
to place the call anyway.

Bug: 17041511
Bug: 17065146
Bug: 16993846
Change-Id: I9a8843f1407943dedd1e6331a7f46fea3f586c9a
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
53b84fe2dc796ef172d7c0f4b9bdc177cdeb0c0f 13-Aug-2014 Santos Cordon <santoscordon@google.com> Implement new Conference APIs.

Bug:16844332
Bug:16449372
Change-Id: Id2e1e4996c19ca1fa4f37e1ec6597f3a15676aa8
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
76f3b4ec8d9bcb8926db1b3e4fb2d1e969b09fbb 08-Aug-2014 Ihab Awad <ihab@google.com> Final structural tweaks to Telecomm API (5/8)

Bug: 16416927
Bug: 16494880
Change-Id: Ibc2ba9e5d17242380ed3afed359600362bb3e664
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
a5cd6c840766ca3e54d8292db4a03ac16a30ff09 09-Aug-2014 Santos Cordon <santoscordon@google.com> Ensure Radio is on before dialing an emergency number.

Code got into a state where we were creating a Connection object to
return synchronously and then starting the Emergency Call helper after
that. The problem is that the synchronous creation code kicked off a
"placeCall" attempt which would fail because airplane mode would be on.
We still turned on the radio but it was too late.

This change makes it so that the synchronous Connection creation is NOT
tied to the placing of a call. Instead, we create the connection and if
it is a non-emergency call, place it, otherwise, start the emergency
call helper and wait for that to place the call.

It required that the telephony-Connection object not be set in the
constructor but instead be set through setOriginalConnection().

Bug: 16885688
Change-Id: I4acf62d34b710c2fe3439fead33b06078f5a36bf
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
1d02cfcfacfa123278735a14457b4ad0c36ebe2f 08-Aug-2014 Tyler Gunn <tgunn@google.com> Wiring HD audio call capability reporting. (2/2)

Modified TelephonyConnection to listen to audio quality changes from
the internal telephony Connection and report this in the call capabilities.

Bug: 15987281
Change-Id: I8888d423b1be34a18c0657bc4b157bc06ec5e399
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
da120f4e3d32ca97c5b4c21d6c505d834a29ab8d 06-Aug-2014 Santos Cordon <santoscordon@google.com> Remove ldaps from AOSP code.

Bug: 16327484
Change-Id: Ic51f12e52db0839a9ee6b727755873edf65cd044
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
af599b608b6991a690025d1ae35e445fd3e74f94 26-Jul-2014 Andrew Lee <anwlee@google.com> Fix VideoCallProvider reference.

Bug: 16494880
Change-Id: I69e6bb742da63c846ebe451b5ec695e7853c1295
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
1fa22db117feff36ba06a8c1e994e54f47ee04fa 23-Jul-2014 Andrew Lee <anwlee@google.com> Change TelephonyConnection to use new Video Call interfaces.

- Delete TelephonyCallVideoProvider, because it's not used at all.

Bug: 16494880
Bug: 16495203
Change-Id: I268f2bae011cff768b4c2cca4a35fba9009a9488
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
cfdf604bb54eeb4bb8786cca0fbfcb8c26965be9 21-Jul-2014 Tyler Gunn <tgunn@google.com> Various IMS changed. (3/3)

1. Adding TelephonyConnection listener for call video provider changes.

Bug: 15893156
Change-Id: I4a7c8b88a31decadf77b244b588026bd1e6fadc0
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
be38fe9cacb6ce161b13f88898cf6264b33fa1c0 21-Jul-2014 Santos Cordon <santoscordon@google.com> Sent initial data to telecomm on connection creation. (3/3)

Telecomm was not sending the initial state for new connections forcing
the connection services to postpone when they set data on the connection
which resulted in hacky code. This CL makes use of a
ParcelableConnection to send the intial connection data.

Change-Id: If571414aba19fa1bb282e30632431962b8366cf4
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
ab777070da7e83983739414f1222177c6aeebe1a 21-Jul-2014 Santos Cordon <santoscordon@google.com> Change telecomm APIs from protected to public (3/3)

Bug: 16416927
Change-Id: I859c80a120fa59bba12a5c6bfca17fa57613a6aa
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
0d5710d9bfdb36d5d0a7be4eaf3f39ae3fb30bc5 20-Jul-2014 Evan Charlton <evanc@google.com> Rename setDestroy() to destroy()

Change-Id: I6bb46e679f55547b902d5850ab450e5d3818fa63
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
15619766f24ccf1f775794c7651d6ccc4c168842 20-Jul-2014 Evan Charlton <evanc@google.com> Fix some missed TelecommManager constants

Missed some constants and an import.

Change-Id: I9de7ecb5166f728ca80eec3c328d793e1df693db
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
5fc83bca2dd6e0c10ab1100b31cc337a370495db 18-Jul-2014 Evan Charlton <evanc@google.com> Always set the subscription number

Always populate the subscription number, and rely on the in-call UI to
show it when appropriate (and in the appropriate way).

Bug: 13333595
Change-Id: I0d3b2cfcea08aeba760c392c116303f21beb70d3
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
29b4ce42956dd712dbcc7a75ac90d80e8e333b2a 18-Jul-2014 Santos Cordon <santoscordon@google.com> Fixing ADD_CALL (3/3)

Bug: 16241726
Change-Id: Ie1dd72a79c2430b10b0239dbdda5508edbc8eb26
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
126221ecfa086001ea774c031c011bae5882ac5d 16-Jul-2014 Tyler Gunn <tgunn@google.com> Adding support for video state and local/remote video capability
exchange from telephony to telecomm.

Added listener in TelephonyConnection which listens to changes to
the video state and local/remote video capabilities, and sets these
on the underlying telecomm.Connection.

Bug: 16285417
Bug: 16013178
Change-Id: Ib5ae2445fae52f2edc42f27ce7ae62d6e953becb
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
92e837e1f6f36cca2e716e0e8c5b9b6d06c417d6 17-Jul-2014 Andrew Lee <anwlee@google.com> Merge "Adding videoState parameter to acceptCall method on Connection." into lmp-dev
0bbcc4f2f0218f451a680b98a62c374bba877c3b 16-Jul-2014 Andrew Lee <anwlee@google.com> Adding videoState parameter to acceptCall method on Connection.

Bug: 16013878
Bug: 16015750
Change-Id: Ib7d4274ff958157581de000713cb114bac789cc0
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
213c6162947edb4ba729f1fd3d583b76b110c0ad 16-Jul-2014 Evan Charlton <evanc@google.com> Populate the SIM number for emergency call-backs

If the SIM number is different from the line-1 number, and the call
is an emergency call, populate the call-back number (for the in-call
UI to display).

Bug: 13334257
Bug: 13334252
Change-Id: If7fde7c1ca6940cec8b7232469a22900c36dbb17
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
22d32b2b81bba31b6ebd93753a5c1ec39e911981 15-Jul-2014 Sailesh Nepal <sail@google.com> Remote incoming calls: Telephony

Change-Id: Ie8091aacfd9be36d63db02eb8a0a4935753d657f
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
3199aa7f8bcb48569eb8289abc055ba0f8496ba8 14-Jul-2014 Sailesh Nepal <sail@google.com> Telephony cleanup do not merge

This CL removes the PSTN and SIP call service providers.
The connection services will now be looked up by package
manager instead.

This CL also cleanups the telephony connection service code.
Now that the SIP code has been moved out the code can be much
simpler and PstnConnection* and TelephonyConnection* can be
merged.

Change-Id: I2e40c5c64c0d242dc41b680943d7e9209142db5b
(cherry picked from commit 8306b5e6d829c0aa3eacaa12a1cddcf3df7194dc)
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
2093a451b17c26f4341e9565b65dcaa0e20bbd7d 12-Jul-2014 Sailesh Nepal <sail@google.com> Mis Telecomm API changes - telephony

This CL fixes up Telephony to work with the API changes
in ag/501321.

Change-Id: Iaffe0b84cea6003f2a9b9d8b30676743d2b236d4
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
f64d8ca4278e0bfb3afd9023058f86dfc8e92ff6 10-Jul-2014 Sailesh Nepal <sail@google.com> Use Connection.setCallCapabilities in Telephony

One side effect of this change is that HOLD is now no
longer supported for CDMA calls.

Change-Id: I90238eeefbcbfaa044881d80833b62e4474821d6
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
536cff018ecf3a329ccf44f723bae071c840ab71 05-Jul-2014 Sailesh Nepal <sail@google.com> Remove references to CallService from Telephony

Change-Id: I5a082e50dafea0104174cb97d3ae8af168944fc3
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
6603bea318568f6716296216f17a266815288a0a 26-Jun-2014 Sailesh Nepal <sail@google.com> Telephony changes for update Connection API

Change-Id: I715539599ac8826e5155852dd8ec56c35e4b89f1
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
de3635ab336e469c2799b4947de582040f5b4c47 05-Jun-2014 Santos Cordon <santoscordon@google.com> Support conference calling. (3/4)

Bug: 15006702
Change-Id: I2764ea242f783ba478c9eae86618dd33e9fc792a
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
3acd7b8814b8bc376b91698653ae2c557359fc0c 30-May-2014 Santos Cordon <santoscordon@google.com> Fixing reject on CDMA devices.

Phone.rejectCall() does not universally work between GSM and CDMA
devices. The right way, ironically, is to invoke hangup() on the Call
object.

Also, adjusted the disconnect cause for calls that were either aborted
or disconnected locally to use DisconnectCause.LOCAL.

Bug: 15197550
Change-Id: Iac113f53a19439a4bc4d1017b23068d1d6b27cb4
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
b2b27a9d7897158eb0515ca6248568257b073f03 16-May-2014 Ihab Awad <ihab@google.com> Refactor Telecomm framework classes into actual framework

Delete Telecomm framework proposal from here as it is being moved to the
actual framework (see http://ag/467620). Refactor Telephony classes to
use the framework from its new location.

Change-Id: I2ecf85677c76f5e25fdd0b7b0f91d1c7a3c6600b
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
6a6e769af983b973a67cff3e8926597525835aa9 07-May-2014 Ihab Awad <ihab@google.com> Refactor Telephony to new framework

Refactors Telephony to the new-style framework, where the framework classes still live
inside the Telephony package here, but we are getting ready to move them into the actual
frameworks/base directory.

Change-Id: Id93771d20f682e3ebf225e2f4225d24072dce28b
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java