History log of /packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b93ac84d550f8c199e9372f94119ee374b5d67d4 07-Dec-2017 Eric Erfanian <erfanian@google.com> Add assisted dialing logic to Telephony Connections.

Currently, we propogate the assisted dialing property
if we detect that the client requested assisted dialing. This
is because the client is currently responsible for assisted dialing
and only passes along the request if it was successful.

Test: manual
Bug: 35963245
Merged-In: I6897554761b43449b3619747663866ff79b504ec
Change-Id: I122fa1075f70095733368ed19a725f2c820a4f82
(cherry picked from commit 2ae8daaa622cefa0b9e643145b74c75d26430039)
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
f0d79087794ebca75d9c2269fc5321d13ba0e376 17-Aug-2017 Hall Liu <hallliu@google.com> Fix two NPEs in TelephonyConnection

1. A trinary condition was screwed up and not doing a null check
properly
2. Add a null check in refreshConferenceSupported

Change-Id: Ib0a0d6c19b5e473e7c3c5ab8d1148142ae677ffa
Fixes: 35380056
Fixes: 64734432
Test: manual
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
d44f8578fe27f758e2a2bc9ee844ed72e1f090ba 14-Jul-2017 Tyler Gunn <tgunn@google.com> Remove passing of SIP history-info information.

The SuppServiceNotification contains history-info records in the format
described in RFC4244.
Passing of these headers was added in the past, however the functionality
was never used in practice.
The Dialer app displays the most recent history-info record in the UI.
At the time this was added, it was not well understood what the format of
this data would be, and an assumption was made that it would only contain
phone numbers.
In practice, however it will contain history-info records from the SIP
headers. This data is not in a format suitable for direct display in the
UI.
Since there is no immediate need for this information in the UI, removing
the passing of the data for now. In the future we will need to implement
a parser for the history-info records and store the data in a format more
amenable for display.

Bug: 63605067
Test: Manual
Change-Id: I735ed4f34324c6e04531a761c80c12d11f74253e
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
3ce8309ebe96db79f5aae664aac03f9fc12b3430 08-Jun-2017 Tyler Gunn <tgunn@google.com> Send EVENT_CALL_FORWARDED when an outgoing call is forwarded.

When an outgoing call is forwarded to another number, send
EVENT_CALL_FORWARDED so that the InCall UI can inform the user.

Test: Test Harness
Bug: 33761801
Change-Id: I90ef2884b5dfc606e3330568d542536438e06588
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
c3707ca5a4893304f437be21ec64edc3aeb6488b 02-Jun-2017 Tyler Gunn <tgunn@google.com> Merge "Fix NullPointerException in supp service notify handler." am: 9a7fa0550b am: 4916261479
am: 2158e61a90

Change-Id: I4804a7dec41d355dae706d4fe4613d40790cba7f
9a7fa0550b3f314af5be209ffea363c03d6451cd 02-Jun-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Fix NullPointerException in supp service notify handler."
8fd9a40fbec7e3bcc00b67d13f9799fa77fa6a09 02-Jun-2017 Tyler Gunn <tgunn@google.com> Fix NullPointerException in supp service notify handler.

The TelephonyConnection handler for supp service notifications outputs
a log message which includes the phone ID. I've seen an instance where
the phone is null, causing a crash.

Test: Manual
Bug: 62202366
Change-Id: I355b08b130413450cbf37bb8c7f87a2a894a5fe4
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
5a34ea741ae87778d1e1cf5629abcc3a957eae79 02-Jun-2017 Tyler Gunn <tgunn@google.com> Merge "Use user WFC setting instead of checking WFC service status" am: 98c9c360fe am: 5de0605453
am: 5fb96bee6e

Change-Id: I60d6960b5ac028f48726e47d387cd561caecb9aa
b603c52df9a8785871eebf272216b2fa4b34724b 12-Jan-2017 Anju Mathapati <anjucm@codeaurora.org> Use user WFC setting instead of checking WFC service status

Check if WFC has been enabled by user instead of checking if
IMS over wifi is enabled. This covers the case of VT offload,
where user has disabled WFC but call is on wifi.

Test: Manual
Bug: 38459634
Change-Id: I27831be65d8d05e7e26a60ee6b2de1d8bfbf7a03
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
34e077131e43c256bcb3d2679887f50025549348 01-Jun-2017 Tyler Gunn <tgunn@google.com> Merge "Ensure WFC international call check only happens for outgoing calls." into oc-dev
am: 92848824d7

Change-Id: I23fbe26e427c45cdab8cf6c39a66a5cc71267010
57c362606bdc175152c210653a9d613c7572a59e 01-Jun-2017 Tyler Gunn <tgunn@google.com> Ensure WFC international call check only happens for outgoing calls.

Add TelephonyConnection isOutgoingCall property.
Use property when checking if the call is an international call.

Test: Manual
Bug: 62162029
Change-Id: Ibade505eef29ee6fa2d6881f2a6377a4e67d57c6
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
ef25afe8f4a0705fa861e5e87fe51becfe4e9139 25-Apr-2017 Hall Liu <hallliu@google.com> Merge "Pipe through RTT signaling to Telephony"
c15b5ed2e5a259b4c83b5e87cd379c997e819643 22-Mar-2017 Hall Liu <hallliu@google.com> Pipe through RTT signaling to Telephony

Add implementations for RTT methods in TelephonyConnection for
transmitting the RTT signaling to the IMS layer.

Bug: 34203619
Test: TBD
Change-Id: If9cbf73e2bd43fabe1b50a5928649f76ab03a795
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
83f092bafb0dbf3733ab56f184004014ffd7efdf 01-Mar-2016 Wei Huang <wei.x.huang@sonymobile.com> Add carrier config to hide merge button for IMS conference

There is the case that operator's network does not support IMS
conference call although it supports IMS normal call. It sometimes
happens when operator starts up IMS service. In such case, it is
necessary to hide merge button for IMS conference.

Bug: 29430010
Change-Id: Iab8afaab297cd401ddea8ef4bbd6a06edfbcfeb3
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
34bd26d41700bcc083486a217d4982f6e62d733b 07-Feb-2017 Tyler Gunn <tgunn@google.com> Merge "IMS-VT: Update pause video capabilities for conference call Update pause video capabilities for conference call if pausing outgoing video is supported on host connection"
49755c087f18c14c548e53de37c58a43fb0d28a4 06-Feb-2017 Ravi Paluri <rpaluri@codeaurora.org> IMS-VT: Update pause video capabilities for conference call
Update pause video capabilities for conference call if
pausing outgoing video is supported on host connection

Test: Manual
Bug: 35035756
Change-Id: I8fc5867831a5562cf8ddeeaee15e6f7954adb7f9
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
765ea6a4b71069ca23c4560fcaa40502d098cff8 18-Oct-2016 Tyler Gunn <tgunn@google.com> IMS Conference fixes related to RemoteConnectionServices.

1. In ImsConferenceController, adding the children of an IMSConference
to the list of conferencable connections. This is necessary because the
RemoteConnectionService API does not support specifying a list of
Conferenceables for a RemoteConnection. Where Conferenceables are either
Connections or Conferences. It only supports specifying a list of
conferenceable connections. This is problematic because for an IMS
conference call, a standlone Connection is technically conferenceable with
the ImsConference. As a result, the RemoteConnetionServices API is not
able to support conferencing a standalone Connection into a Conference.
To fix this temporarily, I'm adding the child ImsConference participant
connections to the list of conferenceables for the standalone Conference.

2. In ImsConference, there was an assumption made in "onMerge" that the
Connection merged into the conference was a TelephonyConnection. Because
of the issues in (1), we can't make this assumption. Since the cast
was only there to get at the phone, opted to just use the getPHone()
method in the conf host connetion instead.

Bug: 31464792
Change-Id: I5ee13dc71e566831c02d5ced18e0edb0f8b7ac4b
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
942b0892c0cdd6428b7f65181e498c2772c4dab5 04-Jan-2017 Jordan Liu <jminjie@google.com> Fix the usage of FILTERED_CNAP_NAMES_STRING_ARRAY

CarrierConfig keys should start with "KEY_"

Test: runtest carrierconfig-unit
Change-Id: If0053b735bff376d7b581a698c346cc037497902
Merged-In: Ia56cfd52328896368b9e0ab1fc129f55cc8f5856
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
c86e476707faa194da6f7699acb43ada2d42727d 06-Sep-2016 Brad Ebinger <breadley@google.com> Add CarrierConfig option to not display HD icon

Adds a CarrierConfig option to not display the HD audio icon in the UI
if the carrier does not want it.

Bug: 28654645
Bug: 33062999
Merged-In: I567981ec695c7b85baf97acd509a2320519e4656
Change-Id: I567981ec695c7b85baf97acd509a2320519e4656
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
26d55b85b3cf0321827e27c9d171d1cee8c44f20 08-Nov-2016 Tyler Gunn <tgunn@google.com> Merge "Add voip audio mode configuration for ims call"
am: a8482c0efa

Change-Id: I13e9948b9af1797f4e37d4c1438ba14fb7d3a888
43131bab6e5377428f123c76f7e25a73db8d545a 02-Nov-2016 Jimmy Wu <jimmyw@nvidia.com> Add voip audio mode configuration for ims call

Audio mode is voip if the connection is ImsPhoneConnection and
config_use_voip_mode_for_ims is enabled.

Change-Id: Ic79dc6fcd9be271d0dc4aded430b9e0248053865
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
b1ec4c228e7af639ad21520a40aaae84a079d338 21-Sep-2016 Brad Ebinger <breadley@google.com> Redial on the other slot upon radio disconnect

The radio now supports the DIALED_ON_WRONG_SLOT DisconnectCause for
emergency calls. If the radio needs the emergency call to be redialed on
another slot, it will send this DisconnectCause.

This change adds the functionality to support the new DisconnectCause
and perform the redial silently in Telephony.

Bug: 31498841
Change-Id: I6a8fa79fe33c04a00c457e33e3eeb182c1a6a821
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
9f401d66a657609bef65c3e65b29602eef130c0b 31-Aug-2016 Hall Liu <hallliu@google.com> Merge "Rename PROPERTY_SHOW_CALLBACK_NUMBER" into nyc-mr1-dev
6b5f71100ef5d656e31dcaf267878b17bccbadf4 30-Aug-2016 Hall Liu <hallliu@google.com> Rename PROPERTY_SHOW_CALLBACK_NUMBER

This property actually reflects whether the call is in emergency
callback mode.

Change-Id: I6b8e92d10d844d39e0dffcf894db60e905c5f066
Fix: 30005987
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
3b758788e8dfeef317010c7fb846fb082275fdfe 03-Aug-2016 Tyler Gunn <tgunn@google.com> Add device config check for "allow hold" carrier config.

In addition to carrier config check, check to see if the device is
going to respoect the value of the "allow hold" carrier config.

Bug: 30449352
Change-Id: I466f8fd493790628e240b6484154702549808e93
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
4f2689641a6f7cf9d8dfd47be2cd25fb53f5d9da 17-Aug-2016 Brad Ebinger <breadley@google.com> Merge "Adds CNAP name filtering based on CarrierConfig" into nyc-mr1-dev
bf1c69432ac6b1abd7872d1d475f716a7297e00d 15-Aug-2016 Brad Ebinger <breadley@google.com> Adds CNAP name filtering based on CarrierConfig

The CNAP name is now filtered based on a String array that is defined in
the CarrierConfig. This filtering helps remove caller id information
that is not useful, such as "WIRELESS CALLER" and "UNKOWN NAME".

Bug: 30142293
Change-Id: Ic59dc984b61277fad53d88db5b4cce6f67989c8c
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
d6f8931276aee952ff1fee4e3268a1422b0a0162 12-Aug-2016 Tyler Gunn <tgunn@google.com> Handle connection events from the original connection.

Bug: 30702393
Change-Id: I8979ac32e2ba94656239c6d8939d609bd3896302
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
b470ac43e97ba7c265c2d6004355705bce3b7ea2 05-Aug-2016 Tyler Gunn <tgunn@google.com> Handle handover to wifi failure.

Send a telephony-specific connection event so the InCallService can
display a message.

Bug: 30697460
Change-Id: I9df78ca49edfd41a5081a93d64301c4671f6ec09
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
e120ff283f42a3da2e691b4bc3f328ad6aa7331e 03-Aug-2016 Tyler Gunn <tgunn@google.com> Send "pull failed" connection event when a call pull fails.

Although this isn't explicitly used in Dialer at the moment, it was
something defined and forgotten to be used.

Bug: 29906222
Change-Id: I6b722a8fb0ddd82fa1600ac81526f650b8aa5466
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
00768c460bdc605f5ec91377c59659be5f75e6a9 23-Jul-2016 Hall Liu <hallliu@google.com> Persist SRVCC-related properties in GsmConnection

Makes sure that PROPERTY_IS_DOWNGRADED_CONFERENCE and
CAPABILITY_CONFERENCE_HAS_NO_CHILDREN are not erased when
updateConnectionProperties and updateConnectionCapabilities are called.

Bug: 29806833
Change-Id: Id8e3a81845df0bc144a040c68709db111f467473
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
6fa65e6b7f690474985686d01d46b976c1b2753f 26-Jul-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Revert "Fix bug which displays "conf-factory.." string in dialer app."" into nyc-mr1-dev
cabac5e24e45eadb46f93a0fa9d5c6d72bd06dc7 26-Jul-2016 Sanket Padawe <sanketpadawe@google.com> Revert "Fix bug which displays "conf-factory.." string in dialer app."

This reverts commit 1e68844eadc6a03c2e4f4a73bd937d2e45ddc0a2.

Change-Id: I4974fa654ed53ea1038f56d958d065c1bf1c0e30
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
d6ac06bf454ad3120f41d85baf565add7c34a136 22-Jul-2016 Tyler Gunn <tgunn@google.com> Merge "Handle failure to pull an external call." into nyc-mr1-dev
864db7828aa20e65dd8f2d52fbb3c0eaa4c7bffa 21-Jul-2016 Brad Ebinger <breadley@google.com> Merge "Add CarrierConfig option for removing Hold during Ims Calls" into nyc-mr1-dev
876e616c4d55b57fcbea440ef03b4ffd6077812d 20-Jul-2016 Tyler Gunn <tgunn@google.com> Handle failure to pull an external call.

When a call pull fails, the ImsPhoneConnection representing the pull
attempt needs to be swapped out for the original ImsExternalConnection
which represented the call in its external state.

Bug: 29906222
Change-Id: I4707ef993fd57bc8ce3a8e4f287bcb957642208f
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
6c063e3aa2d255f4126a08010200012945137438 20-Jul-2016 Sanket Padawe <sanketpadawe@google.com> Merge "Fix bug which displays "conf-factory.." string in dialer app." into nyc-mr1-dev
9c59fc908359818c581404aea79589d7385d79fc 20-Jul-2016 Brad Ebinger <breadley@google.com> Merge "Facilitate Hanging Up Pending Emergency Call" into nyc-mr1-dev
13d0c7707491ceed504dd75657da6724bbddc3bb 19-Jul-2016 Brad Ebinger <breadley@google.com> Add CarrierConfig option for removing Hold during Ims Calls

This change introduces a carrier config option that removes the
CAPABILITY_HOLD and CAPABILITY_SUPPORT_HOLD capabilities from Ims
Connections for incoming and outgoing voice calls if it is set.

Bug: 30195356
Change-Id: I8e68564758cfbc1dad54a23c1d2193d387e630b4
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
1e68844eadc6a03c2e4f4a73bd937d2e45ddc0a2 20-Jul-2016 Sanket Padawe <sanketpadawe@google.com> Fix bug which displays "conf-factory.." string in dialer app.

+ Set ph. no. URI to null if it contains "conf-factory" substring in
telephony no. so that telecomm can handle it and avoid displaying it in
dialer.

Bug: 29441521
Change-Id: I1e84788c8c3c1c51e1336624592e03a80634bfa3
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
c2b2d8f8943105458812e9786cdbbda850ddecfc 19-Jul-2016 Hall Liu <hallliu@google.com> Don't set PROPERTY_HIGH_DEF_AUDIO in certain cases

When the carrier config prohibits wifi or video calls from showing a HD
icon, don't set PROPERTY_HIGH_DEF_AUDIO on the connection.

Bug: 30013801
Change-Id: I37abdf441d2a92ec964eca70b661218e337a23ec
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
a254d02fe68c6c896926ec890ddbefd9910384e8 14-Jul-2016 Brad Ebinger <breadley@google.com> Facilitate Hanging Up Pending Emergency Call

Corrects the hangup logic for calls that have not successfully returned
a telephony Connection. Before, we only used to hang up calls that were
backed by a telephony Connection. This made calls hang that were waiting
for the telephony Connection to be established (such as Emergency
Calls or calls with bad service).

Change-Id: Id8a0a5c4e04736e9697323a7fc5bf293fd09e343
Fixes: 29433202
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
66b39eabbe1c0a08a8a5da2d23c97c38c6a59896 15-Jul-2016 Pankaj Kanwar <pkanwar@google.com> Merge "Ensure conference doesn't support video if video conf not supported." into nyc-mr1-dev
0f4a762758b894dc3a5be1631605941fcdaf2293 13-Jul-2016 Hall Liu <hallliu@google.com> Change how VoWifi status and wifi status are calculated.

Check to see whether VoWifi is enabled by querying the user setting
instead of the ImsManager.
Check to see whether the current call is a wifi call by reading the
property inside TelephonyConnection instead of querying the ImsCall.
Update whether a call can be added when a call switches from non-wifi to
wifi or vice versa.

Bug: 29047863
Change-Id: Ifc1d48b9a1ba3b974bcd1885c8566defcf7c5c42
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
6c9760c521fb1990c88ff97031fc300eafe90ae4 12-Jul-2016 Tyler Gunn <tgunn@google.com> Ensure conference doesn't support video if video conf not supported.

If the carrier config indicates that video conferencing is not supported
ensure that the ImsConference cannot be set to support video from the
remote end or upgrade to video. There are cases where the network
signaling may indicate that video is supported for a conference call.

Bug: 30067920
Change-Id: I6803d2679cf83b9b577038ea53f3ea957c7aa407
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
a449435441faf39559fce7719fee75c320c103fe 06-Jul-2016 Tyler Gunn <tgunn@google.com> Finalize Multiendpoint functionality.

1) Map the "maximum calls exceeded" disconnect cause.
2) Fix bug where ImsConferenceController would consider external calls as
potentially conferenceable.
3) Map through the PULLING state.

Change-Id: I2920ac067ad5be35f6a9158d0f0e514721a8b4f6
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
29c4066935dca3edf5b422918ce68ab156925f1c 11-Jul-2016 Tyler Gunn <tgunn@google.com> Merge "Add missing break statement." into nyc-mr1-dev
359dbfbe1e1993d2f0f3d1b7c7dcae8e5a7bd974 07-Jul-2016 Hall Liu <hallliu@google.com> Implement extra logic for disabling add call

This change sets the disable add call extra if:
The carrier forbids adding calls during video calls AND
(The call is currently a video call OR
(The call used to be a video call AND it is on wifi AND voice over wifi
is disabled)
)

Bug: 29047863
Change-Id: I1356e15cf65cb64534b92e159b3ad4f67ebc7b19
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
13ae12c2b4519b28ad25ceb699545991199c0e11 07-Jul-2016 Tyler Gunn <tgunn@google.com> Add missing break statement.

This looks like it was a merge issue from
https://partner-android-review.googlesource.com/#/c/213315

Change-Id: I6dfc4a48c7a3ffef09371a8f1eed784934db806c
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
640058c9e9dd4d26f7044a756906ca04db7398f7 16-Jun-2016 Hall Liu <hallliu@google.com> Propogate disable add call during video call extra to Telecom

Bug: 29047863

Change-Id: I324aa885e5dea615c0bdf4a7e30390548b42e3f3
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
9eaef23d17fda6f1cd25c80df93a58e4baa4bcfa 27-Jun-2016 Tyler Gunn <tgunn@google.com> A few conference calling fixes:

1. b/28325313 - When an SRVCC occurs, ensure that a phone account handle is set on
the GsmConnection which is added to Telecom. Also ensure that the
PROPERTY_CONFERENCE bit is set on the connection to ensure that the
InCall UI can display the correct label.
2. b/29059073 - Handle case where a video call is downgraded to an audio
only call, and thus should be able to be merged into a conference.

Bug: 29059073
Bug: 28325313
Change-Id: I56d3f89e4f07d8ad5edc5793fe6094e5887ff786
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
ffdc83e39e145fd102434f22260a140e8f67e434 10-Jun-2016 Tyler Gunn <tgunn@google.com> Set extra on connection.

Translate the "isActiveCallDisconnectedOnAnswer" telephony connection
property to the EXTRA_ANSWERING_DROPS_FG_CALL extra.

Bug: 29275420
Change-Id: I2a224c8a25c1ac1f2f05c6f4805743e737edfb53
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
b9d8e5ce48406fd25527be782c2318536dcc2896 08-Jun-2016 Brad Ebinger <breadley@google.com> Merge "Add CDMA Voice Privacy Property to TelephonyConnection" into nyc-mr1-dev
5fd3f2e7a1e140e4244aae820daee8a509165b71 26-May-2016 Brad Ebinger <breadley@google.com> Check for NPE when creating Bundle

Bug: 28982151
Change-Id: I9f1798ba211de572a3e30a94fcf955984c89fa7d
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
dfe43c8087244f7f37b6d67c020ac448b4016a55 26-May-2016 Brad Ebinger <breadley@google.com> Clone extras Bundle when operating on it in onExtrasChanged

Currently, we do not make a copy of the extras Bundle when calling
Connection.setConnectionExtras. In rare cases, when multiple
setConnectionExtras events come in at the same time, they are posted
onto a concurrent Handler and the extras Bundle is cleared while being
copied in TelephonyConnection.updateExtras. This causes an
ArrayOutOfBoundsException and causes the Phone process to crash.

We now create a copy of the Bundle when we post it onto the concurrent
Handler to ensure that there is no simultaneous copy/clear operations
happening on the same extras Bundle.

Bug: 28957661
Change-Id: I065e78a2827c7c6e57f182d9cffee263a70647eb
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
5b49aa5842e3de26a16a19af9d844924e8e6b8e6 19-May-2016 Brad Ebinger <breadley@google.com> Add CDMA Voice Privacy Property to TelephonyConnection

Register for updates on whether or not the current TelephonyConnection
supports CDMA Enhanced Voice Privacy. If so, add a property to the
TelephonyConnection indicating it.

Bug: 26931679
Change-Id: I6e9c17c396275e2436e2dc579669a65ca80a4398
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
2df953c18ab4c554ae919a316e7a13033bca71c8 15-Apr-2016 Tyler Gunn <tgunn@google.com> Wiring up pull external call API.

Adding override to TelephonyConnection for the onPullExternalCall method
from the base Connection class. This method calls upon the original
connection to initiate a call pull.

Bug: 27458894
Change-Id: Ie061dc9d5f8f8d3e7244097b7f75a43e777efd97
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
1e036c365772031b8e7054a70d973b300d7552a9 07-Apr-2016 Tyler Gunn <tgunn@google.com> Fix potential concurrency issue with setTechnologyTypeExtras.

The setConnectionExtras call on mOriginalConnection would cause that
object to invoke the onExtrasChange callback in TelephonyConnection, which
itself would trampoline it back onto the handler. A bit of a roundabout
way to set the extras. Using the new set extras API instead.

Bug: 27646331
Change-Id: I680b755a81addb2da95d47c3fceeb57b83cd8a4e
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
8cec2a393a7f6ade84005c7442f38e7a55fcbc77 01-Apr-2016 Tyler Gunn <tgunn@google.com> Merge "Add support for adding external calls to Telecom." into nyc-dev
9ef62fb0de9f75e4cd3ead6cf011fb3a4ec2faaf 21-Sep-2015 Sandeep Kunta <skunta@qti.qualcomm.com> Speed up audio for CS MT call

Add CAPABILITY_SPEED_UP_MT_AUDIO capability to the connection
for both CS and IMS calls.

Bug: 27876709
Change-Id: I0a2afd3df0f5b207af397630a3438825e24c5dd8
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
5046bc73a9bb72c6f6f9f913def0c71d551da62d 26-Mar-2016 Tyler Gunn <tgunn@google.com> Add support for adding external calls to Telecom.

- Modify PstnIncomingCallNotifier to include the external call ID in the
"addNewUnknownCall" request to Telecom; this ensures we can key back in on
the ID when Telephony is asked to add that connection.
- Modify TelephonyConnectionService so it can add new external calls.
- Update TelephonyConnection to translate the new internal connection
properties related to multi-endpoint to ones Telecom can relate to.

Bug: 27458894
Change-Id: I47ad22aaeed955bcecbae894486c00539f8f7ea7
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
bf31ee144528524c57e97c4156d8d5acfd10d1b8 17-Mar-2016 Tyler Gunn <tgunn@google.com> Add connection properties to Connections.

- Per suggestion of API council, moving properties of a Connection from
CAPABILITIES_* to PROPERTIES_*.

Bug: 27458894
Change-Id: Id9c040c9baf3fae675c55d221b598cd250bd7b3b
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
77550fec9e488eb8a76fcb3b4b38e7bf902af5a1 22-Mar-2016 Tyler Gunn <tgunn@google.com> Update Telephony to use new Extras APIs.

- Given the new extras APIs, updating Telephony to make use of these new
extras apis in place of the existing "setExtras".
- Updating ImsConference to handle transferring extras from host to
conference.

Bug: 27458894
Change-Id: I4a120ba17e8617d8821ba5b124a6e1354efc7d0a
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
7da90324c5f47e630b8e9813c2747a2773564656 16-Mar-2016 Brad Ebinger <breadley@google.com> Do not update state of Disconnected Connection

Add a check in TelephonyConnection#updateStateInternal to make sure that
its Connection is not null before trying to update its state. This can
happen when reseting the Connection state override for an outgoing CDMA
call.

Bug: 27250284
Change-Id: Iff765977b5b57d6cb6d52d70e5780a2215318fc3
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
06ccdb85a098429563f84a56ba547ae77c6c0426 08-Mar-2016 Tyler Gunn <tgunn@google.com> Modify sendConnectionEvent API calls.

Ensure new prototype is used.

Bug: 27458894
Change-Id: I9905cfd45b3c42007bf7abc58f49c5f636b4f128
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
8ad9d4f20ac196e588428aed491dd8aa548c7cac 26-Jan-2016 Tyler Gunn <tgunn@google.com> Register OnHoldTone event

Send a connection event to Telecom which will cause it to play or stop
the on hold tone.
Also ensure that we only start/stop the hold tone for the connection it is
associated with.

BUG=25357778

Change-Id: Ib1aafbcea69ea24534ba2b9af175e524a1416446
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
3ccf660bcb0b7bcb0e8cd387e1ae619e8326b7bb 25-Jan-2016 Tyler Gunn <tgunn@google.com> Add support for CAPABILITY_CANNOT_DOWNGRADE_VIDEO_TO_AUDIO capability.

Propagate capability from internal telephony connection.

Bug: 22728624
Change-Id: I86caaf71880137db73ee20244d29524bffd63bc0
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
39b42261f854c35bf6120670843108cb5f357c66 16-Dec-2015 Tyler Gunn <tgunn@google.com> Fix NPE which is causing com.android.phone to crash.

It is possible for getOriginalConnection() to return null at the end of
a call once the RIL has disconnected it. Added null check to ensure
that isImsConnection() won't throw an NPE in this case.

The original code was the following, which is inherently NPE safe:
return getOriginalConnection() instanceof ImsPhoneConnection;

Bug: 26222625
Change-Id: Iaa77a4d739578ddcfbbb5849f7ddf15e3bad0f76
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
6d83e5eb90ee8b4551d61c4789bb8f124c4c12d2 14-Dec-2015 Amit Mahajan <amitmahajan@google.com> Code cleanup including removing direct references to IMS classes.

Also removing code in PstnIncomingCallNotifier to unregister and
re-register on phone type switch as that is not required now.

Bug: 25793157
Change-Id: Ic0c0fd5067d65b950a2a0ddb2bec528c22b694d4
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
4e12daf35284b4597cc2de58c2dfd6aefd7f0420 20-Nov-2015 Hall Liu <hallliu@google.com> Add call technology to extras for telecom analytics

Change-Id: Ie4db2a240c8d57918de1acea9bd356baf7a1bdf0
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
1074e7a1cc2a0e6ebaefd90f0e2ff203f8831514 11-Nov-2015 Tyler Gunn <tgunn@google.com> Post updateExtras to handler to avoid potential concurrency issue.

There is a change that the call to updateExtras in setOriginalConnection
could be executing while an onExtrasChanged callback from another thread
comes in. To be safe, changed code to post the updateExtras in
setOriginalConnection to the same handler that the call for onExtrasChanged
is posted to.

Admittedly I was not able to repro this issue, despite changing the code
to fire up 30 threads to attempt to concurrently update the extras.

Bug: 25613098
Change-Id: Ibc960252b72b832b3c55938d1f5a7cb123b55c85
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
c5201f417b58f95c5f1b54de1c101b3a35ad544f 25-Nov-2015 Amit Mahajan <amitmahajan@google.com> Rename PhoneBase to Phone.

Bug: 25793157
Change-Id: I9d169972c71d2f261e053de2898c698ad4a22601
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
44525f95e0f94bed94143633a780c184c4c4b278 04-Nov-2015 Hall Liu <hallliu@google.com> Remove hold and merge from emergency calls

Removes the ability for emergency calls to be placed on hold or merged
with other calls into a conference.

Bug: 25219137
Change-Id: Iaf77394491542ccd3200287a917154174cb150c5
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
d7ec7cf73bd26b18829702ba54f4eb91badbf1a9 03-Nov-2015 Tyler Gunn <tgunn@google.com> Ensure connection extras are propagated on start of call. am: 06f2ca3945 am: 414699bc94 am: cf9fb2f154
am: e9d57418a6

* commit 'e9d57418a6969cc9f8457b5368ad23c97f6291b0':
Ensure connection extras are propagated on start of call.
06f2ca39457d13d75666ef3cee315cfa282620e0 28-Oct-2015 Tyler Gunn <tgunn@google.com> Ensure connection extras are propagated on start of call.

When a new call is created in Telephony, there is a potential for the
connection extras to not be passed up through to Telecom if the RIL
does not call the onExtrasChanged callback. If the connections were set
on the original connection but never changed, then it is conceivable that
we may never see an onExtrasChanged callback and hence never propagate
the extras up.

Bug: 24585039
Change-Id: Ic1da1998a25afb6d380fda81bba591846a02dda7
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
0892903aa0d17a0e3d8ed59244c1199568382752 23-Oct-2015 Tyler Gunn <tgunn@google.com> Merge "Handle ECM mode exist callback on connections."
521a8349e528a7a2ee6f4ea59d9a83079251095b 21-Oct-2015 Santos Cordon <santoscordon@google.com> Prevent DISCONNECTED unknown connections. am: fff1c1dc2f am: 3f0d84ba93 am: d91aad0e0d
am: 3b4430117d

* commit '3b4430117d4f979d40e93d061c2e610c815069fa':
Prevent DISCONNECTED unknown connections.
fff1c1dc2ffc2372b02b5bb78a8dfd0a16659ea8 20-Oct-2015 Santos Cordon <santoscordon@google.com> Prevent DISCONNECTED unknown connections.

1) Add an early return to disallow disconnected unknown connections.
2) Move code in run updateState() after uses of mOriginalConnection
since it is possible for updateState() to set it to null.
3) Add logging to the bug so that we can recognize when and how this
situation happens in the wild.

Bug: 24469962
Change-Id: Ic7c986bff98ee65677a4a2cb06beff54d79e5ab6
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
816820e7bcf35be70cf26e534b4767786ff8e83f 09-Oct-2015 Tyler Gunn <tgunn@google.com> Handle ECM mode exist callback on connections.

- In response to onExitedEcmMode callback on TelephonyConnection, trigger
an update of connection capabilities. For CdmaConnections, ensure that
we set connection capable of muting prior to updating capabilities.

Bug: 23044098
Change-Id: I877da00130008926ce0f6fcbab9356981dd72277
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
12979bd81e68fe5b4e6b8ae9c889ec7ad63f2110 17-Sep-2015 Tyler Gunn <tgunn@google.com> Merge "Propagate telecom call ID to Telephony classes."
bd8589eb7836206246f035edf9c51acef6e6a14b 14-Sep-2015 Roshan Pius <rpius@google.com> Keep track of state overrides in TelephonyConnection.

There are a couple of places where we fake the TelephonyConnection's
state to Telecom for CDMA multi-party calling. Cleaning up this state
manipulation mechanism so that it happens from a central place and the
code is more readable.

BUG: 23754654
Change-Id: I7d991a6c8365b36bb535e7bbd7054de3b7ed5cc9
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
6d5f1880c44a547e8962044af811e01a71f115f4 11-Sep-2015 Tyler Gunn <tgunn@google.com> resolved conflicts for c6f4ddfe to master

Change-Id: I4abdd565d8b2c1ec32e7c9bb2d65cf4963b9788d
8c50fa9233f965c38526c764db51af6468eb015e 03-Sep-2015 Nivedita Sarkar <nsarkar@codeaurora.org> IMS: Update TelephonyConnection to use onExtrasChanged callback.

Currently call extras are closely coupled with call state changes.
To propagate call extras from internal.telephony.Connection the
PRECISE_CALL_STATE_CHANGED event shall be triggered which is genarally
triggered when phone/call changes its state. This change removes the
above mentioned dependency by updating call extras upon
receiving the onExtrasChanged notification which can be triggered
independently of call state changes.

Bug: 22329706

Change-Id: I57ae69ef48fa2ac23cb5ffbc4902275e865e1a1c
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
2fcea27e8ff5b591b6f69983c475433fa3870792 03-Sep-2015 Roshan Pius <rpius@google.com> am 127d1dff: am 5c9ce7b2: am cc41c0dd: am 6b528c01: am fc8883b2: Update call state for 2nd call in CDMA conference.

* commit '127d1dff471e09d466b30cb0bdb32d88f4136f31':
Update call state for 2nd call in CDMA conference.
6b528c01d5203328bd0df0f2a55bea59fbaeb53a 02-Sep-2015 Roshan Pius <rpius@google.com> am fc8883b2: Update call state for 2nd call in CDMA conference.

* commit 'fc8883b2cdb5735a26d8416d96350dba1e1c5472':
Update call state for 2nd call in CDMA conference.
fc8883b2cdb5735a26d8416d96350dba1e1c5472 02-Sep-2015 Roshan Pius <rpius@google.com> Update call state for 2nd call in CDMA conference.

In CDMA when we make a new call in presence of another active call, the
new call and the original call will eventually become a conference call
which shares a single underlying OriginalConnection. Since the
OriginalConnection is already in ACTIVE state, we need a way to fake the
2 call object's state in such a way that the user sees the first call as
being held and the second call as dialing for a few seconds before it is
merged into a conference call.
The first call object's state is moved back from HOLD to ACTIVE in
|resetStateForConference| after this timeout expiry. However for the
second call we need to force update the state of the call object in
|forceAsDialing(false)|, otherwise the call object's state remains
DIALING since the OriginalConnectionState does not change throughout
this duration. Forcing the state updation will help revert the fake
DIALING state of second call object and move it to ACTIVE state since
the underlying OriginalConnection is in ACTIVE state.

This issue is not noticed on the phone UI since it only displays the
state of the new conference call created and the 2 child call's state is
not individually presented.

BUG: 23316217
Change-Id: Ie04d340c326441e5ca08bbbea5cb225007fc55d9
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
1cf18c55c3764faa21a6690cebe6d09470ed1200 01-Sep-2015 Tyler Gunn <tgunn@google.com> Propagate telecom call ID to Telephony classes.

Propagate the telecom call ID to the Telephony Connection and Conference
classes.
Modify debug toString statements to output the telecom call ID.
Propagate the telecom call ID to the internal telephony Connection
classes.

Bug: 23357902
Change-Id: I7e78c69673084a4a3d39d1e8d7a6cd7f1bc7177e
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
47cd16d8d50bb328db348708c81083df8a8a2c73 20-Aug-2015 Tyler Gunn <tgunn@google.com> am 16a9d713: am 0db844f0: am a595eae0: am 64220bcf: Support connections which do not allow conferencing.

* commit '16a9d71346ae0cce8557413c314acdb6eabd3a9d':
Support connections which do not allow conferencing.
64220bcfad27244b223f9c4377b85e1be95ca328 20-Aug-2015 Tyler Gunn <tgunn@google.com> Support connections which do not allow conferencing.

Check carrier config in TelecomAccountRegistry when registering
PhoneAccounts. When creating new TelephonyConnections, set a propery
on the connection to indicate whether it supports conferencing. This is
then used in the conference controllers to determine whether a particular
connection can be in a conference with another connection or not.

Bug: 22864941
Change-Id: I199cbc1c9ad575732c5601a9bb587c8bca4815da
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
72b00940227eb4ec8ecaacd675e07c332dc74317 13-Feb-2015 Anju Mathapati <anjucm@codeaurora.org> Fix for thread exception

Post messages to proper handlers to
avoid thread exceptions.

Change-Id: I8e61ba43cecf3d910c85fc7d9e4dfb7cc147e722
Bug: 22183803
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
52cf109d6f9a6a1bd62bf321389f824fa4a86845 07-Aug-2015 Tyler Gunn <tgunn@google.com> Merge "Set CALL_SUBJECT capability on phone accts if instant lettering available." into mnc-dr-dev
92c9b65881cbf4c96a17fbad57c127bea5b549fa 06-Aug-2015 Anthony Lee <anthonylee@google.com> Merge "Fix bug in conference call SRVCC." into mnc-dr-dev
a39a1cb528615afd17f6e6e44d9690886903e4c7 28-Jul-2015 Shriram Ganesh <sganesh@codeaurora.org> Fix bug in conference call SRVCC.

1. Compare the state of original connection before handover with
the newly reported post-handover connection's state in order
to map the two connections as a result of SRVCC based on state.

2. Disconnect the IMS conference participants after SRVCC as the
new participants come via GsmCallTracker.

Bug: 22850703
Change-Id: I313e12d53ff9c096c0d2300e01b8733a3abe2776
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
762146ee7b990b694f7e3b8ae3e1fcf10ec2966b 31-Jul-2015 Tyler Gunn <tgunn@google.com> Set CALL_SUBJECT capability on phone accts if instant lettering available.

- Modify TelecomAccountRegistry to check for carrier config to see if
instant lettering is available and set this on the phone accounts if
it is.
- Cleaned up some un-necessary code in isCarrierVideoPauseSupported (the
old code from prior to using carrier config manager was still present and
was not used).
- Added a Map to TelephonyConnection which provides a mapping between keys
in ImsConfig (or other Telephony sources) to their equivalent in
Telecom. Why? The extra for instant lettering is "DisplayText" in
ImsConfig, for example. The RIL uses this value internally so we can't
change it. This code remaps that extra to
android.telecom.EXTRA_CALL_SUBJECT, a properly qualified extra name which
can be exposed to incall.
the RIL

Bug: 22685114
Change-Id: I4e4e9931fa164ef576e99ef059f0c0bf2e15c909
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
8a6eb45d1307630111713a07c5e2077a7d34ecbd 05-Aug-2015 Tyler Gunn <tgunn@google.com> Fix build break due to removal of EXTRA_CALL_HISTORY_INFO.

Sorry, future CLs I'm working on have accounted for this already.
The perils of working on a large set of highly interdependent CLs.

Bug: 22980286
Change-Id: Ie6fb3db5896fdc7159ddad95f3c2322bd77890f1
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
8f2998ddb5bb1046f5f1f914927289a0a2c18412 23-Jul-2015 Tyler Gunn <tgunn@google.com> Ensure original connection extras are propagated to telecom.

Bug: 22685113
Change-Id: Ie3455e1cea2b093958d8d68f8273bb7b09107c11
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
8330dac12f312495a2ae2d525917bf4f898edf9a 15-Jul-2015 Santos Cordon <santoscordon@google.com> resolved conflicts for merge of 389b56b3 to mnc-dr-dev

Change-Id: If85e8e64516bdf9c2640fdabe772c7aaa2397fef
389b56b3dbfd2f7903f091846a03e55d5f030eb9 15-Jul-2015 Santos Cordon <santoscordon@google.com> Merge "Revert "Revert "Add missing unregistrations when a connection ends.""" into mnc-dev
033688325b49778af4f3ca20cad1309703345be0 14-Jul-2015 Santos Cordon <santoscordon@google.com> resolved conflicts for merge of ec185f4f to mnc-dr-dev

Change-Id: I45e6a0f3e57a84cb50ed22549c57ddc0ce05e845
642c8c0168ab1eb76ed6c8bcefe16ecc932d435c 14-Jul-2015 Santos Cordon <santoscordon@google.com> Revert "Revert "Add missing unregistrations when a connection ends.""

This reverts commit 207ec8c2dd1927edb5332afcafacccebfd2ca210.

Yes, this is a revert of a revert...IOW, I'm putting the original change
back in.

Original change information:
[[
Bug: 22410282
Change-Id: Ic2698d9ae768e27a346f71c7b0cd99c9a490e801
]]

Change-Id: I796bdc35ff727a46b766056ad9b2a4aabead0814
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
ec185f4fe3f2222444366ee2005b6c2bd90f0880 14-Jul-2015 Santos Cordon <santoscordon@google.com> Merge "Revert "Add missing unregistrations when a connection ends."" into mnc-dev
207ec8c2dd1927edb5332afcafacccebfd2ca210 14-Jul-2015 Santos Cordon <santoscordon@google.com> Revert "Add missing unregistrations when a connection ends."

This reverts commit a1c961010fc7b370c2ef3a8331680054e588b869.

Change-Id: Ifee43826b59c63a5e65ae612f4c2d7bd44e22191
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
bf12d55ba61c54d45fc8e3924fa0cf13a0e592d9 14-Jul-2015 Santos Cordon <santoscordon@google.com> resolved conflicts for merge of b69dd181 to mnc-dr-dev

Change-Id: Ia6e1753b473ad1a88761d4e8ef08af4c65933422
b69dd181d058b6a977d46bea8d2b696650031c5e 14-Jul-2015 Santos Cordon <santoscordon@google.com> Merge "Add missing unregistrations when a connection ends." into mnc-dev
724d174635721d8c2a23e91d716fd3ebe38f74d2 14-Jul-2015 Etan Cohen <etancohen@google.com> resolved conflicts for merge of dc563ddb to mnc-dr-dev

Change-Id: I7d977cf752a0596bc6fb2acbf04aeb40bac3708a
dc563ddb5d13943f99d61ff468c96b5406bc3a0c 20-Mar-2015 Shriram Ganesh <sganesh@codeaurora.org> IMS: Fix crash during midcall disabled multicall SRVCC.

Avoid null pointer exception when handover state changed event
is handled by a closed TelephonyConnection by checking for validity
of mOriginalConnection.

BUG: 22405832
Change-Id: I2c5cfd86ec8e50f46ecc13b808884eea2d459764
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
a1c961010fc7b370c2ef3a8331680054e588b869 11-Jul-2015 Santos Cordon <santoscordon@google.com> Add missing unregistrations when a connection ends.

Bug: 22410282
Change-Id: Ic2698d9ae768e27a346f71c7b0cd99c9a490e801
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
6f36edd4028eeeabb89d14400a0bc97a0d6fb4d9 26-Aug-2014 Omkar Kolangade <omkark@codeaurora.org> Display Supplementary Service Notification

New logic added to support displaying supplementary
service notification messages.

Bug: 21725750
Change-Id: Ia09e820f733bf233452d3f823d1afb5a3c55d5b4
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
cd3b79cc1d3fbb5f77ab17fc2756c75fe7ff9ef7 20-Nov-2014 Shriram Ganesh <sganesh@codeaurora.org> SRVCC Conference call scenarios with mid-call enabled.

1. Disconnect all IMS conference participants on Handover. Create a
telephony connection out of the original connection part of
IMS conference host and add that to Connection Service as an
existing connection. Add the new Telephony connection to the
conference controller.

Telephony Conference controller delays the attempt to add the
conference to the connection service, until all the participants
are already part of the ConnectionService.

Retrigger the conference recalculation of conference controller
after a Unknown connection is added to ConnectionService.

2. Add support for SRVCC conference with greater than 3 participants

After the Gsm Conference object is created with the first two
participants, delay adding the subsequent unknown connections to
the conference until the connections are added to connection
service.

3. Add support for using the CS connection address during SRVCC

The check for pre-handover state is only applicable to IMS
connection. Compare the state of new handover connection with
pre-handover state of Ims Connection to process the correct update
corresponding to the TelephonyConnection.

Change-Id: I2ab2ee02a83bf8555856ccdba3de0aae75041f9b
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
dd9582271a9a5c32bcf62270628b729fbc92cf5f 31-May-2015 Shriram Ganesh <sganesh@codeaurora.org> Set extras

Adding the setExtras method to propagate
MT call extras to the Telecom and UI
layers.

Change-Id: I823902de0c3c154f31d47649386f842a69335028
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
af2b70218787ec23cf547888eae401d094c5633b 15-May-2015 Chao Liu <yjl@google.com> Always provide the string reason to telecom DisconnectCause.

Original partner change:
https://partner-android-review.googlesource.com/#/c/215711/

Change-Id: Ic558a074dc91150d9e7d8abecbc52f18b926bc0c
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
c6514358fdf6060233141140a5cc08579c55b8ea 03-Jun-2015 Tyler Gunn <tgunn@google.com> API Cleanup: Remove use of VideoState class.

Bug: 21573551
Change-Id: Iac8f9f7010a6b04f25c92ea6c2eeb38033f95c34
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
af7f8126ef3c6dea3caa453a9564183fea0f2a42 01-Jun-2015 Tyler Gunn <tgunn@google.com> IMS: IMS fixes for conference

- Set phoneaccount in IMS conference object
- Add support conferencing connections after SRVCC
- Use user entity to remove participant
- IMS Conference Creation update
- Fix NPE in conference participants update
- Properly disconnect conf participants missing from list
- Use UserEntity to display Conf Participants
- Set the participants to disconnected state before
removing
- Handle conference call in DIALING state

Change-Id: Iac8ef26022ee8bbe95541e1a63509b1934e2965f
Bug: 21376607
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
9e07a8eb0707f6db0e148b539e1dcdcd496c7a86 14-May-2015 Yorke Lee <yorkelee@google.com> Merge "Rename AudioState to CallAudioState" into mnc-dev
ab16dd8821b1c6bd7d90b7d54321806f33ee6906 13-May-2015 Ihab Awad <ihab@google.com> Refactor StatusHints (2/3)

Refactor StatusHints to use the new Icon class.

Bug: 21040387

Change-Id: I8435b428ef28fc6133f7ffb6ceb981592bb37c76
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
05f1f4171759688a799446e87b9e28870042196b 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/Telephony/src/com/android/services/telephony/TelephonyConnection.java
4791b42c7b3c39088c91b69b56ca6b41b1de9a4a 02-May-2015 Prerepa Viswanadham <dham@google.com> Merge commit '21ec0f1' into merge_try2

Change-Id: Ie8e7db02d31304b0c995248cf3eeee60aae4760f
21ec0f1606fd75363ebb2b8a987a98e2da441b3f 25-Apr-2015 Anthony Lee <anthonylee@google.com> Add plumbing for merge failures and renable button. (1/4)

The merge failure is not plumbed up through any layer that
can trap the callback and act on it. The first part of this
fix is to create that plumbing. Then we need to reenable the
merge button. At this point in time, we leverage the fact
that forcing the call to reassess its capabilities will poke
the InCallUI to reenable the merge button. In the future, we
should plumb the merge failure all the way to InCallUI and
not only handle the button but display UI to the user. The UI
is currently being displayed by CallNotifier which is the wrong
place. See b/20530631 for more details.

Bug: 20229905
Change-Id: I9fa11bcc0197c92c959e379bd0d89bfcf2b202bb
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
40b77c63eeb4bd9c18d8c63b39827d920764b00a 24-Apr-2015 Etan Cohen <etancohen@google.com> Merge commit 'c5fca4f' into merge2
3d8d22ef1e13a006a63f1ec468191112371887cd 16-Apr-2015 Jay Shrauner <shrauner@google.com> DO NOT MERGE Remove connection substate

Bug:20300433
Change-Id: I69334cb53720435c899ec6811f24a98330b4de57
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
cdf58ffa74fb74114efceb5c8e643ef4640b1381 16-Apr-2015 Jay Shrauner <shrauner@google.com> Remove connection substate

Bug:20300433
Change-Id: I69334cb53720435c899ec6811f24a98330b4de57
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
de7f451a652f480937dc0c30bb6c8bdd9cc79dd8 14-Apr-2015 Andrew Lee <anwlee@google.com> Add WFC StatusHints for Conferences.

Bug: 20160799
Change-Id: Ica8b91364a3ad2402e2afc959d8ce258ce4b0cd7
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
ddc0ecf988bde187c206a1150249d9dbc6df1910 15-Apr-2015 Andrew Lee <anwlee@google.com> DO NOT MERGE Suffix VT_LOCAL/REMOTE with BIDIRECTIONAL.

Bug: 20160395
Change-Id: I598f8c72041d4f514f1d5373e302194e3240ec37
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
e15917e7dc7793468fdf43dea448d1d60474bc0a 15-Apr-2015 Vinit Deshpande <vinitd@google.com> am cffac94..b7cdece from mirror-m-wireless-internal-release

b7cdece Remove "IMS Account" preference under call settings.

Change-Id: I1ab86d5a797b59840958a20852a87c546bdbcfec
9c5c993082207a3c81a7a28fdb9fdb9a197deae3 14-Apr-2015 Tyler Gunn <tgunn@google.com> resolve merge conflicts of 5735ed5 to m-wireless-dev.

Change-Id: Icc3f15c9de86eaf2a7bcb25aa274ca1d6f69a1a6
e95cbd5c6b790afb0abd601f0809f30daa38ffd6 14-Apr-2015 Andrew Lee <anwlee@google.com> Merge commit '21c5e2d' into mergemeister

Change-Id: I4203215f522fd2efda575aa56d7f7d75f856add8
87a2ec3039d6486cd3564c6fbc256593ef47d9fd 11-Apr-2015 Andrew Lee <anwlee@google.com> Suffix VT_LOCAL and VT_REMOTE with BIDIRECTIONAL.

Bug: 20160491
Change-Id: I138e68bdfe0fdbb13dd53e630e8165b622c30cdc
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
cffac94ad7617f75295556656c880621ecd2c964 08-Apr-2015 Tyler Gunn <tgunn@google.com> Cleanup of Video Call pause functionality.

Whether the paused videoState is available is dependent on the carrier's
implementation of the VT spec. The original VT implementation assumed
that this was stored in a system property accessed via InCall; these CLs
move this to a Call/Connection capability which will ultimately support
multisim video capable devices.

- For MCC/MNC 310/410, disable pause of ims video calls.
- For MCC/MNC 311/480, allow pause of ims video calls.
- Default for others is allow pause.

- Modified TelecomAccountRegistry to store flag indicating which accounts
allow pausing of video. If account doesn't support video, pausing is
inherently not allowed either.
- Modified PstPhoneCapabilities notifier to add listener which calls back
to TelecomAccountRegistry#AccountEntry to notify when the video capability
has changed, triggering the AccountEntry to refresh itself accordingly.


Bug: 16680364
Bug: 19820114
Change-Id: I3840f92270100811161120dffcfe297bef7c4ea2
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
5735ed53cb6d7d412093423b65947952d6d4d134 08-Apr-2015 Tyler Gunn <tgunn@google.com> Merge "Prevent merging conference calls hosted on peer device." into lmp-mr1-wfc-dev
0519870bfc5f6f80ac6824f516494e93e2ec65f4 03-Apr-2015 Andrew Lee <anwlee@google.com> Use telecom.Connection state for WFC StatusHint.
automerge: 6eaa6db

* commit '6eaa6db73229c55e4abd610822e857b0a4cc684f':
Use telecom.Connection state for WFC StatusHint.
6eaa6db73229c55e4abd610822e857b0a4cc684f 02-Apr-2015 Andrew Lee <anwlee@google.com> Use telecom.Connection state for WFC StatusHint.

Attempting another rewrite of this logic, since the existence of
the original connection seemed to be inconsistent.

Instead, leverage other mechanisms to identify whether the call is
"incoming" or "active. Originally, I wanted to just check for
getState() == STATE_RINGING, but this seemed to be skipped.
Using isValidRingingCall() instead worked correctly though.

This is more consistent and fixes some janky SIP/account status
label formatting which used to be happening.

I'm not sure if it's necessary, but it also seemed safer to update
the status hints after class-level status update as well.

Bug: 19995266
Bug: 19970744
Change-Id: I5885da7ca6cb93e163a558f42c594d29b191c03c
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
0bde4fb4d8c9db934e72b8b3b1ee67720ed09b1b 02-Apr-2015 Etan Cohen <etancohen@google.com> Merge commit 'a623a51c61536eed1b510c2c72f3756f1d47c622' into merge_v2

Change-Id: I152efaa5c681845ac534790fcc943059cc76c18e
f3245fd2f9fb95491ad390144e303cbf209992e8 02-Apr-2015 Tyler Gunn <tgunn@google.com> Prevent merging conference calls hosted on peer device.

With IMS, the "multiparty" bit on an ImsCall is set to "true" when a call
is merged into a conference. This not only occurs on the device hosting
the conference call, but also on the devices of the callers merged into
the conference.

This CL changes the TelephonyConnection to listen to multipart state
changes reported by the ImsPhoneConnection. It uses this to notify the
ImsConferenceController when a conference has started. Note: the handler
is re-used to ensure the conference creation happens on the correct thread.
PhoneBase#checkCorrectThread would error out during creation of the
conference otherwise.

Modified ImsConferenceController to check for conferences which are not
conference hosts and to exclude them from the list of conferenceables.
We also exclude connections marked as multiparty which are not a conference
host (it is possible we have not yet turned these into a conference yet).

Bug: 19478784
Change-Id: I15c39e9c922c8a71e30f210f212e0ec779f5f939
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
3d8ea0e60c00436c4c3596d83fa164640f10b098 18-Mar-2015 Rekha Kumar <rekhak@codeaurora.org> IMS-VT: Update phone account's capabilities.
Updates phone account's video capabilities based on
the event received from Phone object.

IMS: Add support for video quality
- Add UI for adding IMS settings
- Add video call quality preference
Enable user to control video call quality from UI

Change-Id: I308e6d106d853d8242b2e324467edc7ce739850f

IMS-VT: Do not allow changing the TTY mode during a Video call
When the device is already in a video call, the user SHOULD NOT
be allowed to change the TTY mode. If the user tries to change,
then an UI alert message will be displayed explaining it cannot
be changed during video calls.

Propagate the call substate changed message to the UI

Enhance log message in handleVideoCapabilitesChanged
- Add the video capability value to the log message

IMS-VT: Call Modify capability
-Add modify call capability only if call is in active or holding
state

Change-Id: I8d75f65ce4ddb4b684478260995ec6cad74d46c0

IMS-VT: Enable Video conferencing.
Enable Video conferencing.

Ims: Update conferenceHostConnection state for a conference call
TelephonyConnection that backed the original connection is
cleaned up after making a clone this TelephonyConnection that
is eventually treated as conferenceHostConnection. Update
conferenceHostConnection state too

Change-Id: I962d11068d136a39527dd0720200c42fbd49681b
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
da0ed6462ee390bee56806d48ea0a011ef24619a 30-Mar-2015 Andrew Lee <anwlee@google.com> Null-protect reference to mOriginalConnection.
automerge: d3d8c26

* commit 'd3d8c2691a9fcad737f9e676d60625bd003a753f':
Null-protect reference to mOriginalConnection.
d3d8c2691a9fcad737f9e676d60625bd003a753f 30-Mar-2015 Andrew Lee <anwlee@google.com> Null-protect reference to mOriginalConnection.

Bug: 19966509
Change-Id: I7126d3934f04ff797417e8e509fafe38c79d0c76
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
a623a51c61536eed1b510c2c72f3756f1d47c622 25-Mar-2015 Andrew Lee <anwlee@google.com> Add WFC label for incoming, update on state change.
automerge: 9b68c5d

* commit '9b68c5d930ec69868d7c273e1d3521cd60e818a9':
Add WFC label for incoming, update on state change.
9b68c5d930ec69868d7c273e1d3521cd60e818a9 20-Mar-2015 Andrew Lee <anwlee@google.com> Add WFC label for incoming, update on state change.

Bug: 19866988
Change-Id: Ie97a4ae343fcc5adc6629ea5b5a28b4dea7604b8
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
2152933cefb117dead296ae1595bd8a93542f5e9 24-Mar-2015 Andrew Lee <anwlee@google.com> Merge "Convert InCall WFC labeling to use StatusHints." into lmp-mr1-wfc-dev
automerge: 4537923

* commit '453792395d27b3a61604e86544e60619bb048ec4':
Convert InCall WFC labeling to use StatusHints.
70294b50fc1627d800ff5cb114dda979fa3a4164 20-Mar-2015 Andrew Lee <anwlee@google.com> Convert InCall WFC labeling to use StatusHints.

Bug: 19866988
Change-Id: Ib2353524361fcbff8e0caf44517f76c8cf573927
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
621a87224139cbae96f6d73812a59b1b784c1e39 19-Mar-2015 Dong Zhou <a22255@motorola.com> am 760af407: Set the capability to speed up audio setup for IMS MT call
automerge: d83c044

* commit 'd83c044f132fdd82e0e6d93649e410b6b00cf9ad':
Set the capability to speed up audio setup for IMS MT call
730ed16e3c0d990a4cf2e2abcef321c73902ff63 18-Mar-2015 Etan Cohen <etancohen@google.com> Revert "Fixed (master branch) build: Revert "Set the capability to speed up audio setup for IMS MT call""

This reverts commit 3e1a7ed4d64760ee973f9f0060f0c7284546826c.
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
3e1a7ed4d64760ee973f9f0060f0c7284546826c 18-Mar-2015 Ed Heyl <edheyl@google.com> Fixed (master branch) build: Revert "Set the capability to speed up audio setup for IMS MT call"

This reverts commit 760af407139bb60033ac5bc8d102b9f153e60ccc.
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
4e3e58129b9124a117fed64f29c0f4f044e02502 18-Mar-2015 Dong Zhou <a22255@motorola.com> am 38dc9050: am 6e463a4e: am 760af407: Set the capability to speed up audio setup for IMS MT call

* commit '38dc90505dd4b419fde381afe93cbf998b7f9137':
Set the capability to speed up audio setup for IMS MT call
d83c044f132fdd82e0e6d93649e410b6b00cf9ad 17-Mar-2015 Dong Zhou <a22255@motorola.com> am 760af407: Set the capability to speed up audio setup for IMS MT call

* commit '760af407139bb60033ac5bc8d102b9f153e60ccc':
Set the capability to speed up audio setup for IMS MT call
760af407139bb60033ac5bc8d102b9f153e60ccc 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
84cccac1292b52cacb00e2af8386cb6951aba99b 16-Mar-2015 Vinit Deshpande <vinitd@google.com> Merge remote-tracking branch 'goog/mirror-m-wireless-internal-release'

Change-Id: If474effff986156771d4da080d373b9bcf352c3d
b918b2e8c5c50865a492749b468f6a1e7921a3cf 06-Feb-2015 Tyler Gunn <tgunn@google.com> Fix emergency callback number not shown for incoming calls.

- When building connection capabilities, set
CAPABILITY_SHOW_CALLBACK_NUMBER when the phone is in ECM mode.

Bug: 18689292
Change-Id: Ic30baa38950f135bf7cc5adaeb59dbd23d495e21
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
26154141cad2f0016f0af3ed3da79397cc4da0d3 20-Feb-2015 Andrew Lee <anwlee@google.com> Set CAPABILITY_WIFI on TelephonyConnection.

+ Add listener for when wifi capability has changed on the original
Telephony Connection, and update the Telecom Connection.
~ Refactor some of the helpers and logic for how capabilities are
applied and removed, to remove redundant code.

Bug: 19151548
Change-Id: I04b8e47201bf2ec48aebaecb6a245024902333b0
/packages/services/Telephony/src/com/android/services/telephony/TelephonyConnection.java
77c733746a3856a606775a4b05a0a1c5bb3cf6ed 02-Feb-2015 Tyler Gunn <tgunn@google.com> am f336efc8: am f5d61392: am 2f25c1f4: Fixing conference merge where only one party is added to conference.

* commit 'f336efc8bcd0e2a30e97f7db85ed69660c9d8b1e':
Fixing conference merge where only one party is added to conference.
eb3e3e9037317b059fd6cd11d79179b1cdf6be15 01-Feb-2015 Sailesh Nepal <sail@google.com> Telephony: Use the new setNextPostDialChar method

BUG: 19216940
Change-Id: I9be697fbe13051c5fe3f4fb45e2780e2d3010aca
/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