• Home
  • History
  • Annotate
  • only in /frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
History log of /frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
1d9236038f17f2806d543785475427089157566d 01-Jun-2018 Hall Liu <hallliu@google.com> Merge "Change how RTT pipes are set" into pi-dev
670f3a47cde0e3410f756927f00d03ee2ef881dc 31-May-2018 Hall Liu <hallliu@google.com> Change how RTT pipes are set

Create a new RTT text handler if none exists when
setCurrentRttTextStream is called.
Add some logging when startRttTextProcessing is called.

Bug: 80257914
Test: manual
Change-Id: I592ba1e88fb7b82376d3862d3783196dcc7d5014
msPhoneConnection.java
0efb7f4b0ceb42f9173aed6530b6a7ffef6deba0 22-May-2018 Tyler Gunn <tgunn@google.com> Move MMTEL feature capabilities reset into MmTelFeatureCompatAdapter.

ImsPhoneCallTracker currently resets the feature capabilities which are
available when IMS is de-registered. Moving this to the compat adapter
as it is now expected that an ImsService which does not make use of the
compat adapter will inform the framework of capability changes prior to
de-registration.

Bug: 73076695
Test: Enable airplane mode and inspect logs to ensure feature capabilities
are reset to 0.

Change-Id: Iee2ecb3fb9f0a6edf18570fe65abb9827e048fbd
msPhoneCallTracker.java
ac009536df32d886e1bab79f07e61200ea6bdcf9 25-Apr-2018 Shuo Qian <shuoq@google.com> Restore the OEM hook implementation and usage

The current plan is to keep the OEM hook implementation in the
framework, this is for legacy device and old device upgrading
(per b/78098059).

For P launching device, the OEM hook service is removed in hal,
so the OEM hook api in framework should return something dummy, and
prevent infinite loop to get service, but these parts should be done
in seperate CLs after this restore CL is merged.

This reverts commit acc87ce9d9a91f0eb80c411ddbf66c82ef2e04d3.

Bug: 34344851
Change-Id: Ib58d9e0842ac1764f91391b1403a3d841f4a1bd9
msPhoneCommandInterface.java
0c65c655b395c8d771bd94d9b891fa8a2158a0ee 25-Apr-2018 Shuo Qian <shuoq@google.com> Merge "Revert "Revert "Remove the OEM hook implementation and usage""" into pi-dev
acc87ce9d9a91f0eb80c411ddbf66c82ef2e04d3 24-Apr-2018 Robert Greenwalt <rgreenwalt@google.com> Revert "Revert "Remove the OEM hook implementation and usage""

This reverts commit 73852a1d6eb29f844bc8d08bb33aca3e29b17733.

Reason for revert: Causes a critical error in Cuttlefish

Bug: 78299964

Change-Id: I66819556f2ed4bb05c133c200462b91e44d9ec23
msPhoneCommandInterface.java
13a555a9b583c706ffebc7c8baf9896b19907490 18-Apr-2018 Shuo Qian <shuoq@google.com> Merge "Revert "Remove the OEM hook implementation and usage"" into pi-dev
73852a1d6eb29f844bc8d08bb33aca3e29b17733 17-Apr-2018 sqian <shuoq@google.com> Revert "Remove the OEM hook implementation and usage"

This reverts commit 6993a3eef4eed1a2f31a967d330bdd97e76fe1c5.

Bug: 34344851
Test: Treehugger
Change-Id: If12893fb1ef0da41d5f008a5232a06e98d4428a0
Merged-In: If12893fb1ef0da41d5f008a5232a06e98d4428a0
(cherry picked from commit 42b72c2351d823bf0e79b72b2fe6b140aae468ec)
msPhoneCommandInterface.java
58292e7efb57dff6759580c0d0b1a96a284e713a 13-Apr-2018 Brad Ebinger <breadley@google.com> Merge "Update docs for Message IPC and use Messenger." into pi-dev
8a5c54f8ba1793a89bb8e18e819d1fc5b85bc1bf 11-Apr-2018 Brad Ebinger <breadley@google.com> Update docs for Message IPC and use Messenger.

1) Update docs for sendDtmf usage.
2) Update sendDtmf to include a Messenger in Message#replyTo
for IPC communication.

Bug: 77870347
Test: Manual, Telephony Unit Tests.
Change-Id: I76e965c8e231bf9d3fe97b42fccbb564378c65b6
msPhoneCallTracker.java
msPhoneConnection.java
a065c62c6f55f7b1e9fce81eddf6f18fe294da4d 11-Apr-2018 Hall Liu <hallliu@google.com> Use getDialingNumber instead of dialString for MMI

Fix a copy-paste error introduced in an earlier CL

Change-Id: I5398e1b97dc93e6944aae5cddf0f79ca5743395d
Fixes: 77880591
Test: manual
msPhone.java
4419d18a631493663dd50cc6e7616d74c1b48e7d 06-Apr-2018 Tyler Gunn <tgunn@google.com> Fix issue where dialed CLIR MMI codes on IMS don't save setting.

This change mirrors what is done in the GsmMmiCode class already and
ensures it is done in the Ims equivalent.

Test: Manually dial *31#, #31# and verify dial includes correct CLIR.
Bug: 77182496
Change-Id: I9faa9cf72cd6dc2e90f48341732870b2e9104f76
msPhoneMmiCode.java
29d555872802d6ef4a391e1e8edadd422dcb606e 30-Mar-2018 Brad Ebinger <breadley@google.com> Merge "Use @SystemApis in platform instead of hidden fields" into pi-dev
a5a74c3117988154392cf4ce7274654cfbef1529 29-Mar-2018 Brad Ebinger <breadley@google.com> Use @SystemApis in platform instead of hidden fields

Use @SystemApi API to access fields that should be private.

Bug: 77278031
Test: Manual
Change-Id: I4a0c5635f934260eb2493e768f6a441b853131f2
msPhone.java
msPhoneMmiCode.java
c7776a8f093a315d3baced16f57c5214116ed3d7 09-Jan-2018 Eric Schwarzenbach <easchwar@google.com> Add reporting criteria to DeviceStateMonitor and ServiceStateTracker.

Sends down per-RAN reporting criteria to the modem onRilConnected.

Updates the IndicationFilter to include the new LINK_CAPACITY_ESTIMATE
and PHYSICAL_CHANNEL_CONFIG bits.

Adds default AccessNetworkThresholds for reporting criteria threshold.

Updates LTE and WCDMA SignalStrength reporting criteria when carrier
config changes.

Bug: 70638175
Bug: 72117365
Bug: 74008993
Test: make, runtest
Change-Id: I12f724405bf31d2c48e6a52b5751ddd86f633596
(cherry picked from commit 8f2ef44cab1fdb75b4797668626bbced30c530f6)
msPhoneCommandInterface.java
17cf28d0c419bf09e01edccc1975f4cba0f0478c 20-Nov-2017 Suresh Koleti <skoleti@codeaurora.org> Donot disable Wi-Fi Calling when getting "registration error"

Donot disable Wi-Fi Calling when getting "registration error"
which will help to retry registration over WiFi by modem.

Test: Manual
Bug: 69446679
Merged-In: Ie092e3cf9bb0cfd4a45a3919ece1f7beeae58eb0
Change-Id: Ief5f08a0e6518138fddc22e440020adb8b95d43b
msPhone.java
baece8c63121b5e3660ecc716bcff87f73f791ff 27-Feb-2018 Hall Liu <hallliu@google.com> Fix RTT property setting

Don't start the RTT text reader until the IMS stack gives us a call
profile with RTT set to on.

Bug: 73832960
Test: manual
Change-Id: Ic85d16f602140d34c9680c3a1cb33e01b5cf02c7
msPhoneCallTracker.java
msPhoneConnection.java
8546143a10c5699c4af52b407040ac5af4913566 28-Feb-2018 Brad Ebinger <breadley@google.com> Merge "Integrates ImsService shouldProcessCall API" am: 1f6b16a85b am: cd71640a9d
am: 441c0d9a4d

Change-Id: If52f2ec8a50c3ebc3bbe31553f83f8f0bcffbfb2
441c0d9a4dd2db079196bc0716410165953c7f07 28-Feb-2018 Brad Ebinger <breadley@google.com> Merge "Integrates ImsService shouldProcessCall API" am: 1f6b16a85b
am: cd71640a9d

Change-Id: I38eff5f91e034107b0c539bc49b6f1392fa91756
1f6b16a85b5fa80ba43f2bda6e93c8be7db1bf30 28-Feb-2018 Treehugger Robot <treehugger-gerrit@google.com> Merge "Integrates ImsService shouldProcessCall API"
f0031283074dc2fef2e79fe61cb40cde984249cb 26-Feb-2018 Brad Ebinger <breadley@google.com> Merge "Refactor IMS to use Helper class for polling" am: bc6cdac422 am: 06d47f429d
am: 6286afc876

Change-Id: I9acf0483d0794ca324cc1652400502756e3a5db3
6286afc876d4ce17947b2ba92f94f558edf8de1a 26-Feb-2018 Brad Ebinger <breadley@google.com> Merge "Refactor IMS to use Helper class for polling" am: bc6cdac422
am: 06d47f429d

Change-Id: If69516657ac3c946dadef702deb3fe0963b16535
b03dbaac0051b2d6c9daee438781c26bf4123fde 22-Feb-2018 Brad Ebinger <breadley@google.com> Refactor IMS to use Helper class for polling

Reduces duplicated logic in the platform by
moving polling code into helper class.

Bug: 72643077
Test: Manual, Telephony unit tests
Change-Id: Id3f20080ceafcd6b9778e9ee5620868b9c171fe7
msPhoneCallTracker.java
b418efae712f0e26e81d70809b7505164903451f 22-Feb-2018 Hall Liu <hallliu@google.com> Merge "RTT bugfixes, part 5" am: cc463fe045
am: 5f5c7a5df0

Change-Id: Id3231d2c71278989e94d177f6f6a57147b5ea344
3ac411dbb254453ab2b25edcfcd0b37d2109a9b0 10-Feb-2018 Hall Liu <hallliu@google.com> RTT bugfixes, part 5

* Add support for properly setting the ImsStreamMediaProfile's RTT flag
when answering an incoming call
* Add logging

Bug: 72648661
Bug: 72762206
Test: manual, with telecom testapp dialer over the network
Change-Id: I93dfa217b9bf004e95919c3dded8a59cbb14b57e
Merged-In: I93dfa217b9bf004e95919c3dded8a59cbb14b57e
msPhoneCallTracker.java
msPhoneConnection.java
msRttTextHandler.java
23dcf06212488613f9008131425caaad94c631e2 21-Feb-2018 Jordan Liu <jminjie@google.com> Merge "Log phone id for debugging multi SIM devices" am: 97ca162df3 am: ee389b5a66
am: b2070558c2

Change-Id: Idac432303e94ffb872a7e6e11d31481efabc9ff9
b2070558c2c139de1cf81b15f4af69b62dfed220 21-Feb-2018 Jordan Liu <jminjie@google.com> Merge "Log phone id for debugging multi SIM devices" am: 97ca162df3
am: ee389b5a66

Change-Id: Ie8c670fdbdb2502c5f1f6be064247a18edc5b5ee
d74cbbe2c8c94fef4dc5e684928b604d71a5d64c 21-Feb-2018 Brad Ebinger <breadley@google.com> Merge "IMS: Notify call failed for unobtainable number" am: d462e2d69a am: 2cc3680099
am: 9e28a996f4

Change-Id: Ib9a70f81b0fcaba5c1db65b2cddbceb8721a26d4
9e28a996f47c3507fc1134f16baf40b820859c57 21-Feb-2018 Brad Ebinger <breadley@google.com> Merge "IMS: Notify call failed for unobtainable number" am: d462e2d69a
am: 2cc3680099

Change-Id: Id06bac36bbb89555964ef6da036267390297d457
97ca162df368be166dfb8c37de51ccc8ef3bce26 21-Feb-2018 Jordan Liu <jminjie@google.com> Merge "Log phone id for debugging multi SIM devices"
d462e2d69a45302a08423232a5f3ee75b61132e5 20-Feb-2018 Brad Ebinger <breadley@google.com> Merge "IMS: Notify call failed for unobtainable number"
91cd56797bd9d0aeb5b1616bd9acd545b7eddd16 12-Feb-2018 Brad Ebinger <breadley@google.com> Integrates ImsService shouldProcessCall API

When placing a call, we now call MmTelFeature#shouldProcessCall
API to allow the ImsService to evaluate whether or not the number
should be placed over IMS or CSFB.

Test: Manual, Telephony unit tests
Bug: 72642113
Change-Id: I3fe174f5a4b6417f17ce16e3c7b98a70bd3e176d
msPhoneCallTracker.java
5bd4e9a78a4c87146dbcfa33e1886372129fa5b3 15-Jun-2017 Qiongcheng Luo <qiongcheng.luo@sonymobile.com> Log phone id for debugging multi SIM devices

Some telephony classes like GsmCdmaPhone, ImsPhone, etc. are created
per slot in multi SIM devices. It is better to output phone id for
debugging multi SIM devices.

Test: manual - Verified that some logs are output with phone id, run
telephony unit tests
Bug: 69657265
Change-Id: I174e1bc67e436e131a2a7a0abc0585c7d69598a3
msPhone.java
msPhoneCallTracker.java
f4b3274701c6fd4dec9b95f95e4fc744f259e1f8 16-Feb-2018 Hall Liu <hallliu@google.com> resolve merge conflicts of 450994a84b7b8deaffa4b86cea6625f1c820ca3a to oc-mr1-dev-plus-aosp

Change-Id: I44a842b7c40c299cd3f537feb636bef198a759a3
006c213cdb2aed16923323b3fa3a5e38ca6de0db 09-Feb-2018 Brad Ebinger <breadley@google.com> Expose MMTEL IMS registration technology to TelephonyManager

Pipes IMS registration querying method through telephony.

Bug: 35128252
Test: Telephony unit tests
Merged-In: If8c72ba63ad504b91931afc2e203645e2d6d303e
Change-Id: If8c72ba63ad504b91931afc2e203645e2d6d303e
msPhone.java
msPhoneCallTracker.java
41f0c46a0ac132b9e4d931896babc712591ca7a3 16-Feb-2018 Hall Liu <hallliu@google.com> Merge "RTT bugfixes, part 5"
794af81014ba7d6d75d1e9cd11058addb3368dab 23-Jan-2018 Hall Liu <hallliu@google.com> RTT outgoing initialization

Add support for dialing an outgoing call with RTT enabled from the start
(refactors the dial methods to use DialArgs)
Add plumbing code to bubble up RTT initiation/termination events from
the IMS stack up to Telecom

Bug: 72156722
Bug: 71873552
Test: existing unit tests

Change-Id: I084f75d860ebc9837cf6156c1ebaaf4532343de1
Merged-In: I084f75d860ebc9837cf6156c1ebaaf4532343de1
msPhone.java
msPhoneCallTracker.java
msPhoneConnection.java
3d28f89927137ce03128a0244a698ca5162e8165 10-Feb-2018 Hall Liu <hallliu@google.com> RTT bugfixes, part 5

* Add support for properly setting the ImsStreamMediaProfile's RTT flag
when answering an incoming call
* Add logging

Bug: 72648661
Bug: 72762206
Test: manual, with telecom testapp dialer over the network
Change-Id: I93dfa217b9bf004e95919c3dded8a59cbb14b57e
msPhoneCallTracker.java
msPhoneConnection.java
msRttTextHandler.java
d6be49cecd859d118d0781d32bd55a207eb11284 09-Feb-2018 Brad Ebinger <breadley@google.com> Expose MMTEL IMS registration technology to TelephonyManager

Pipes IMS registration querying method through telephony.

Bug: 35128252
Test: Telephony unit tests
Merged-In: If8c72ba63ad504b91931afc2e203645e2d6d303e
Change-Id: If8c72ba63ad504b91931afc2e203645e2d6d303e
msPhone.java
msPhoneCallTracker.java
09f5b9723639968e85e2452f328b2517ffbc749c 09-Feb-2018 Brad Ebinger <breadley@google.com> Expose MMTEL IMS registration technology to TelephonyManager

Pipes IMS registration querying method through telephony.

Bug: 35128252
Test: Telephony unit tests
Change-Id: If8c72ba63ad504b91931afc2e203645e2d6d303e
msPhone.java
msPhoneCallTracker.java
a6abfa9126e4e376b59dec3fbdaac505b4a2b5fc 10-Feb-2018 Tyler Gunn <tgunn@google.com> Merge "Add support for CALL_WAITING supp service notification." am: 660aba4aed am: f8ef27f370
am: 6663eead6c

Change-Id: I7c4f656b7e636ca245fb5812954865b57f1a81cc
6663eead6c7ac9f61f2af9fb60bcf5ca2146da97 10-Feb-2018 Tyler Gunn <tgunn@google.com> Merge "Add support for CALL_WAITING supp service notification." am: 660aba4aed
am: f8ef27f370

Change-Id: Iad8e1fbefce5a8300b3e9e810699fb0380114f50
c78f99c554056e5afcd80a5a3a92814bb552828a 21-Dec-2017 Tyler Gunn <tgunn@google.com> Add support for CALL_WAITING supp service notification.

Also cleanup supp service notifications to distinguish between the MO
and MT classes of notifications.

Test: Manual, added new unit tests
Bug: 66173973
Bug: 65534165
Change-Id: I032e1fbf6b3d9db3585093c639e26ee7e9741046
msPhoneCallTracker.java
64bd356c99555352eeafad39d0d76a71cc6f79bd 08-Feb-2018 Pooja Jain <poojain@codeaurora.org> Merge "IMS: Add support for call deflection feature" am: c1144f4f79 am: ca3665d611
am: 35792b9fd2

Change-Id: Ia7bd78a433907fbb29186493ebc03f87a2a8601d
35792b9fd22a714e2c5905623c1d084243bec62d 08-Feb-2018 Pooja Jain <poojain@codeaurora.org> Merge "IMS: Add support for call deflection feature" am: c1144f4f79
am: ca3665d611

Change-Id: Ic49196996446733c426bbe7abd57b960246cb5e3
4611e65ec532915b3a6968459d68e5a2dc3a08c8 28-Dec-2017 Pooja Jain <poojain@codeaurora.org> IMS: Add support for call deflection feature

Call deflection feature is useful to deflect MT call to another
number.

Test: Manual

Bug: 62170348
Change-Id: Ie31421b21dea6bf5514f1f137cf5a6c315fc1149
msExternalConnection.java
msPhoneConnection.java
3d56b2730c7a269406f014c0804fa9b0411da0df 06-Feb-2018 Jack Yu <jackyu@google.com> Merge "Connected with data service manager" am: f3c8d0fa74
am: 7ce3c8fcc7

Change-Id: I1c00d9abac76066ed4c08dfac7079ae246638054
56709f866621fb707b6a3f5e17c0eddeaa847d0e 06-Feb-2018 Malcolm Chen <refuhoo@google.com> Merge "Remove ImsManager.setDataEnabled." am: 585ac8389f
am: ebe5e8f67a

Change-Id: I95182ed7f30eceeae1195b88ca67d459bc532fb2
d63469423c1495a156f2dc3d5cbf1ed8f4a9973f 06-Feb-2018 Brad Ebinger <breadley@google.com> Change ImsService API namespaces am: 1846615c7c
am: 74d2587f27

Change-Id: Idb5df866881f6c85693223a63c34bb0651d7c3ad
f3c8d0fa74150f9c43a7bb76238744ceb0c9b95e 06-Feb-2018 Treehugger Robot <treehugger-gerrit@google.com> Merge "Connected with data service manager"
9781d0cf354ee3d1e39ffeb9d57a372fdf10dc39 06-Feb-2018 Brad Ebinger <breadley@google.com> resolve merge conflicts of 02ccd75370cff3cafc27c78f641aeb47bb1a0986 to oc-mr1-dev-plus-aosp

Test: Manual
Change-Id: I55b0e94fbe4f70c4020f4a0c1c0c786540421e59
71f909237a9921f52d91440fb8f9c6fc97465a52 04-Feb-2018 Jack Yu <jackyu@google.com> Connected with data service manager

Routed all data requests and respones through the
new cellular data service and data service manager.

Test: Telephony sanity tests + unit tests
Bug: 64132030
Merged-In: I66adf6492ee1952e20384c38add107c89da0ac41
Change-Id: I66adf6492ee1952e20384c38add107c89da0ac41
(cherry picked from commit 4b2c78c078d59466d18a4f7f926bb3bc0eccff9d)
msPhoneBase.java
a242182309a85ed0852227a25b83c2f3158ee17a 20-Dec-2017 Malcolm Chen <refuhoo@google.com> Remove ImsManager.setDataEnabled.

Bug: 67602046
Test: manual and existing unit-tests
Change-Id: Iaa7bc3b7f0ec2e683c7e9ea45e1d2d1ba0563c0a
Merged-In: Iaa7bc3b7f0ec2e683c7e9ea45e1d2d1ba0563c0a
msPhoneCallTracker.java
a6433e9a40f7d1c624d392cab4333e8220de1a50 05-Feb-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Connected with data service manager"
4b2c78c078d59466d18a4f7f926bb3bc0eccff9d 04-Feb-2018 Jack Yu <jackyu@google.com> Connected with data service manager

Routed all data requests and respones through the
new cellular data service and data service manager.

Test: Telephony sanity tests + unit tests
Bug: 64132030
Change-Id: I66adf6492ee1952e20384c38add107c89da0ac41
msPhoneBase.java
73225469bc0503fe961b2791fa37c855c8243217 23-Jan-2018 Hall Liu <hallliu@google.com> RTT outgoing initialization

Add support for dialing an outgoing call with RTT enabled from the start
(refactors the dial methods to use DialArgs)
Add plumbing code to bubble up RTT initiation/termination events from
the IMS stack up to Telecom

Bug: 72156722
Bug: 71873552
Test: existing unit tests

Change-Id: I084f75d860ebc9837cf6156c1ebaaf4532343de1
msPhone.java
msPhoneCallTracker.java
msPhoneConnection.java
e9fa2bceb3e75a98f09fcaa6626c5f3bbb764892 02-Feb-2018 Jordan Liu <jminjie@google.com> Merge "Add API for Call Barring" am: f03ba5684d am: ec9373bbdb
am: 09502d9559

Change-Id: I39359663779abfee1416c92009a491c8181899fc
09502d95594918529f3919f7f08ea123d8711ff2 02-Feb-2018 Jordan Liu <jminjie@google.com> Merge "Add API for Call Barring" am: f03ba5684d
am: ec9373bbdb

Change-Id: I800ce67579e45c8b26b4ff2bc7714995492c51ea
d45131c12f021652f1b2734960436c9a5ddc9921 02-Feb-2018 Jack Yu <jackyu@google.com> Merge "Added support for the new 1.2 data setup/deactivate API" am: 9c2b978d2f
am: 0a7d7596e8

Change-Id: Ie728a348c130627aaeffa2e0df6219146833b6d4
1846615c7cb3d995efc8788b60aa1f5240de8b8f 23-Jan-2018 Brad Ebinger <breadley@google.com> Change ImsService API namespaces

Changes the ImsService API namespaces
to allow them to be @SystemApi.

Bug: 63987074
Merged-In: I66b564e27d5e0995c4819bd2c6df304e7e04a7eb
Change-Id: I66b564e27d5e0995c4819bd2c6df304e7e04a7eb
Test: Telephony Unit Tests
msExternalCall.java
msExternalCallTracker.java
msExternalConnection.java
msPhone.java
msPhoneCall.java
msPhoneCallTracker.java
msPhoneConnection.java
msPhoneMmiCode.java
msPullCall.java
1ae4f53a3abcdb531a56795486066fffdbcaf289 16-Jan-2018 Brad Ebinger <breadley@google.com> Integrate new MMTel APIs into the platform

Integrates the new ImsService APIs into telephony
and updates the Telephony unit tests to
test the new APIs as well.

Bug: 63987047
Test: Telephony unit tests; Telephony test ImsService
Merged-In: Iaf40fc2a14d2b8e99fb0d08284987c9cf9cd3b2c
Change-Id: Iaf40fc2a14d2b8e99fb0d08284987c9cf9cd3b2c
msPhoneCallTracker.java
f03ba5684d18a15c52591deb0f34fcc215b8d861 01-Feb-2018 Jordan Liu <jminjie@google.com> Merge "Add API for Call Barring"
06ed6fceace1df6db89e2e4fa5b98da080a94435 31-Jan-2018 Jack Yu <jackyu@google.com> Added support for the new 1.2 data setup/deactivate API

Added support for the 1.2 IRadio APIs that support IWLAN handover.

Test: Telephony sanity tests
Bug: 64132030

Merged-In: I61840939fa7130b0ef1bc0353dd065486831679c
Change-Id: I61840939fa7130b0ef1bc0353dd065486831679c
(cherry picked from commit d5a7979d5c82f1fd568d80267216402bc9d8d0ba)
msPhoneCommandInterface.java
45f2ac986c6d2ed21fe0b25bb345c669fb9d26da 01-Feb-2018 Jack Yu <jackyu@google.com> Merge "Added support for the new 1.2 data setup/deactivate API"
d5a7979d5c82f1fd568d80267216402bc9d8d0ba 31-Jan-2018 Jack Yu <jackyu@google.com> Added support for the new 1.2 data setup/deactivate API

Added support for the 1.2 IRadio APIs that support IWLAN handover.

Test: Telephony sanity tests
Bug: 64132030

Change-Id: I61840939fa7130b0ef1bc0353dd065486831679c
msPhoneCommandInterface.java
b1dca75bce7b1e843ad452a143b52199558e5de9 01-Feb-2018 Tyler Gunn <tgunn@google.com> Merge "Add onDisconnect callback in root radio connection class." am: d76d0e112f am: 990d69a344
am: 52a4138bee

Change-Id: I07cf3d6161da21a630123649eff393c8baac999f
52a4138bee3e5320be0119628c00b7c28ae9f410 01-Feb-2018 Tyler Gunn <tgunn@google.com> Merge "Add onDisconnect callback in root radio connection class." am: d76d0e112f
am: 990d69a344

Change-Id: I78758ddbec447feffa9b6fcfa4f33bdb350512b1
d76d0e112f8e4ce26ce199f71dbdfa3199b05e2f 01-Feb-2018 Tyler Gunn <tgunn@google.com> Merge "Add onDisconnect callback in root radio connection class."
d42c5dabe2d45faea0f861e70b6902b3e6171b05 31-Jan-2018 nharold <nharold@google.com> Merge "Remove obsolete getIsimChallengeResponse" am: 4ce44fdede am: 60662c9acb
am: 9498fc2fcd

Change-Id: Ia3483bb1d8309b6e3f74064357df1bfbd6e1961d
9498fc2fcdecc6f12ac683608a8cd1c746815055 31-Jan-2018 nharold <nharold@google.com> Merge "Remove obsolete getIsimChallengeResponse" am: 4ce44fdede
am: 60662c9acb

Change-Id: I05cf6687b07284ccabb3af1485b70ba34b07f945
4ce44fdede0fc78cf53c3803085b0bb980d5ff81 31-Jan-2018 nharold <nharold@google.com> Merge "Remove obsolete getIsimChallengeResponse"
77ba51be604dbfc88edb50117c42fda70ef10638 12-Jan-2011 Karen Zhang <karen1.zhang@sonyericsson.com> Add API for Call Barring

Add Call Barring API in telephony framework so that telephony app can
use to realize Call Barring UI. Since some operator requires the UI,
this feature is needed.

Bug: 30845125
Test: Manual
Change-Id: I5d80508afd8216f04f443c5a9e0dd83d5247788f
msPhone.java
msPhoneBase.java
12f844b0f84469c8cd8f094412a7599173aaaac3 29-Jan-2018 Nathan Harold <nharold@google.com> Remove obsolete getIsimChallengeResponse

This method is fully superceded by getIccAuthentication
Any callers should use the new method instead.

Bug: 27954896
Test: compilation
Change-Id: I8fb81a6c6cb1dcb278f4fe9d4ac4d3ae54a342c2
msPhoneCommandInterface.java
c1f1c70143fee7818874f32cab5249e90761c07f 30-Jan-2018 nharold <nharold@google.com> Merge "Plumb NattKeepalive from HAL to DataConnection" am: 6a89929a09
am: 28fd023688

Change-Id: I64beeb6b03c2e19f0beb4d31b1ea7ac9aa74a0fd
47b078c27bfb57477a4ff1ce12abc4e9632c1dd5 30-Jan-2018 Tyler Gunn <tgunn@google.com> Add onDisconnect callback in root radio connection class.

From CDMA/GSM and IMS connections, notify listeners of the disconnects.
This is used as a replacement for the traditional phone.notifyDisconnect
method. This ensures that a more reliable direct path is used to notify
of disconnects in the underlying connections.

Test: Manual
Bug: 70389936
Change-Id: Id1809bc9deb7675e94341664dc08707dc81b304c
msPhoneConnection.java
bbb2f925d4e9f02ba50f5fa78dae9bd53639fe0e 08-May-2017 haoyu li <haoyu2.li@sonyericsson.com> IMS: Notify call failed for unobtainable number

"Server unreachable" is displayed when user makes IMS call with
unobtainable number. But "Invalid Number" is displayed when user makes
CS call with the same number. They are inconsistent. "Invalid Number"
should be displayed in IMS call.

To fix this, add a case that map the fail cause to
DisconnectCause#UNOBTAINABLE_NUMBER.

Test: manual - Checked that "Invalid number" is shown when make the IMS
MO call to unobtainable number.
Bug: 69940434

Change-Id: I7bf653c137ad0ee4aba0ab03ab4f054451410839
msPhoneCallTracker.java
04c17b36e012335a8575ae24895fd3f0bea8491f 23-Jan-2018 Brad Ebinger <breadley@google.com> Change ImsService API namespaces

Changes the ImsService API namespaces
to allow them to be @SystemApi.

Bug: 63987074
Change-Id: I66b564e27d5e0995c4819bd2c6df304e7e04a7eb
Test: Telephony Unit Tests
msExternalCall.java
msExternalCallTracker.java
msExternalConnection.java
msPhone.java
msPhoneCall.java
msPhoneCallTracker.java
msPhoneConnection.java
msPhoneMmiCode.java
msPullCall.java
1d0af327f9d60dcdb010314bbdc4ab2492df11df 16-Jan-2018 Brad Ebinger <breadley@google.com> Integrate new MMTel APIs into the platform

Integrates the new ImsService APIs into telephony
and updates the Telephony unit tests to
test the new APIs as well.

Bug: 63987047
Test: Telephony unit tests; Telephony test ImsService
Change-Id: Iaf40fc2a14d2b8e99fb0d08284987c9cf9cd3b2c
msPhoneCallTracker.java
21cb4001dec43dc8a3e031eb4a64c721a03bd6ee 12-Jul-2017 Nathan Harold <nharold@google.com> Plumb NattKeepalive from HAL to DataConnection

Connect NetworkAgent's Packet Keepalive signals
to the telephony HAL via DataConnection and the
CommandsInterface.

Add DcKeepaliveTracker to DcNetworkAgent to track
incoming keepalive indications and handle status
reporting to the NetworkAgent

Bug: 38350389
Test: verified with sl4a, additional tests pending
Merged-In: If436b9240b192ed41f2dd0d05aca1ae36dc5e57f
Change-Id: If436b9240b192ed41f2dd0d05aca1ae36dc5e57f
(cherry picked from commit f9d8835c31c9a0347e5d40f6b0f582bbf09b9e51)
msPhoneCommandInterface.java
81ebde64e135db3d4eb7eaf7c7b2b3d436259d5b 26-Jan-2018 Hall Liu <hallliu@google.com> Merge "De-flake ImsRttHandlerTest" am: 7d1f1e5afd am: ed89805bfa
am: f7a5742680

Change-Id: I9eec43136f317c1c8d31257dfb07a3946ef52868
f7a57426802e4254172a2f152b93e5346d45d665 26-Jan-2018 Hall Liu <hallliu@google.com> Merge "De-flake ImsRttHandlerTest" am: 7d1f1e5afd
am: ed89805bfa

Change-Id: I2c7e5cb0778d7602424417784b99ef609acfdc7a
7d1f1e5afd5731ba17b0f5cc7a7c80e995ec1468 26-Jan-2018 Hall Liu <hallliu@google.com> Merge "De-flake ImsRttHandlerTest"
4ec923daed36834dc6948e7487e2e21f301e09f2 25-Jan-2018 Nathan Harold <nharold@google.com> Merge "Plumb NattKeepalive from HAL to DataConnection"
5569a0cf2e06b196a41fd28a9cff1d19952e67ce 24-Jan-2018 Tyler Gunn <tgunn@google.com> Merge "Handle SIP 380 code mapped from the modem." am: 08346c7dd5 am: a4d6e2b228
am: d6f1c25857

Change-Id: I575d8ac2e6024f3167315e332dc35c2f0d801abe
d6f1c258578fbe326dc529b9f636c0ff4f230016 24-Jan-2018 Tyler Gunn <tgunn@google.com> Merge "Handle SIP 380 code mapped from the modem." am: 08346c7dd5
am: a4d6e2b228

Change-Id: I2c2d3a71028fea20caca833ba5525fe116ad2b26
08346c7dd55d2863aa27856521d7b4dd726266e1 24-Jan-2018 Treehugger Robot <treehugger-gerrit@google.com> Merge "Handle SIP 380 code mapped from the modem."
f9d8835c31c9a0347e5d40f6b0f582bbf09b9e51 12-Jul-2017 Nathan Harold <nharold@google.com> Plumb NattKeepalive from HAL to DataConnection

Connect NetworkAgent's Packet Keepalive signals
to the telephony HAL via DataConnection and the
CommandsInterface.

Add DcKeepaliveTracker to DcNetworkAgent to track
incoming keepalive indications and handle status
reporting to the NetworkAgent

Bug: 38350389
Test: verified with sl4a, additional tests pending
Change-Id: If436b9240b192ed41f2dd0d05aca1ae36dc5e57f
msPhoneCommandInterface.java
4b9e63e28958f4c3bdaf6990b3910d3d4375341d 23-Jan-2018 Lorenzo Colitti <lorenzo@google.com> Merge "Add the defaultNetwork parameter to the NetworkStats.Entry." am: fd998714bf am: 0366e7390b
am: 7a487fa77a

Change-Id: Ieb7bbe3f58198addaf9d91db3872f5b5b13bfba1
7a487fa77a0bfc9b60f2ac6c85be19cdac9f7601 23-Jan-2018 Lorenzo Colitti <lorenzo@google.com> Merge "Add the defaultNetwork parameter to the NetworkStats.Entry." am: fd998714bf
am: 0366e7390b

Change-Id: I97990c80a9d8a66ead35da4228c67b9c4cec8d21
26ac208cff13d9ad0ab31f761a90a858cab15a59 16-Jan-2018 Lorenzo Colitti <lorenzo@google.com> Add the defaultNetwork parameter to the NetworkStats.Entry.

This allows us to remove a NetworkStats.Entry constructor that is
used only by this code. DEFAULT_NETWORK_YES is used because VT
traffic uses the network specified by the carrier.

While I'm at it, also change "1" to NetworkStats.METERED_YES, so
the code is clearer about what it's doing.

Bug: 35142602
Test: builds, boots
Change-Id: I88a288ed03437c0945b221871919ea0f78a16ebe
msPhoneCallTracker.java
daff8c504c576e41ff1788855c2f33d07aa1bada 18-Jan-2018 Brad Ebinger <breadley@google.com> Merge "Integrate Registration APIs" am: f728c0c026
am: 6d7ef63f0d

Change-Id: Ifdf256d00b4dd15f8d4d4131889aa33a691e906c
f728c0c026cdfa113035f56baf7bb8105812e468 17-Jan-2018 Brad Ebinger <breadley@google.com> Merge "Integrate Registration APIs"
3b2136dbf4a8d00086c4df10858ffd4709a04a9d 16-Jan-2018 Brad Ebinger <breadley@google.com> Merge "IMS: De-registration happens when modem comes up from low power mode." am: ce0d687bb7 am: a30d5d4e76
am: eb601a3a35

Change-Id: Ib0e82df4ff6814f7f2bbc847bb1e128d277bde55
eb601a3a35f7ce945bab79c8100980fdaf1477ba 16-Jan-2018 Brad Ebinger <breadley@google.com> Merge "IMS: De-registration happens when modem comes up from low power mode." am: ce0d687bb7
am: a30d5d4e76

Change-Id: I7e15230e9052767b62b2f149e757a2a2c046e797
ce0d687bb704dfb2a13c1151afe80cc1cafa5e6e 16-Jan-2018 Brad Ebinger <breadley@google.com> Merge "IMS: De-registration happens when modem comes up from low power mode."
ed16f2086bc68036453ddd077afd5cf550ac4d0f 14-Dec-2017 Brad Ebinger <breadley@google.com> Integrate Registration APIs

1) Pipe ImsRegistration interface through ImsResolver
so that ImsManager can access the ImsService's
Registration APIs.

2) Tear down ImsManager when the ImsService becomes
unavailable and recreate it with the new ImsService.

3) Update namespaces.

Bug: 63987047
Test: Manual, Telephony unit tests
Merged-In: I1e07e15bc8effc06a4687183f0e67f4e253656ab
Change-Id: I1e07e15bc8effc06a4687183f0e67f4e253656ab
msPhoneCallTracker.java
6c3b2891674897c472dba463a2788203fce140c6 14-Dec-2017 Brad Ebinger <breadley@google.com> Integrate Registration APIs

1) Pipe ImsRegistration interface through ImsResolver
so that ImsManager can access the ImsService's
Registration APIs.

2) Tear down ImsManager when the ImsService becomes
unavailable and recreate it with the new ImsService.

3) Update namespaces.

Bug: 63987047
Test: Manual, Telephony unit tests
Change-Id: I1e07e15bc8effc06a4687183f0e67f4e253656ab
msPhoneCallTracker.java
4420729e6ecca7211169a30b6db0fb70bf68e4d9 13-Jan-2018 Malcolm Chen <refuhoo@google.com> Merge "Replace ImsManager static methods with proper ones." am: 11f6ad9c72
am: caa2e92067

Change-Id: I84b61d727d21be230565c44c8e1a1f4945513b64
75329293e3c0e298deeb310811f70e5d01691772 13-Dec-2017 Malcolm Chen <refuhoo@google.com> Replace ImsManager static methods with proper ones.

ImsManager static methods are deprecated since it doesn't support
MSIM devices. It will now always call getInstance with phoneId and
then call corresponding non-static methods.

Bug: 67602046
Test: regression tests
Change-Id: I1253249a414cc9be45d5fbbab182911144a30c32
Merged-In: I1253249a414cc9be45d5fbbab182911144a30c32
msPhone.java
msPhoneCallTracker.java
b37050e095f60f6db0b3b5cd7d98af78835006ea 11-Jan-2018 Tyler Gunn <tgunn@google.com> Add support for notification of midcall video call radio handovers. am: 02761d2406
am: 956462b45b

Change-Id: I3c6a59e9802bb11efec2f3cec6dab34f4e74154b
956462b45b4b8d3c45261827f756a84b1b829d5d 11-Jan-2018 Tyler Gunn <tgunn@google.com> Add support for notification of midcall video call radio handovers.
am: 02761d2406

Change-Id: Icf6889eb3b69203216feb07a7c793cf334619976
da70560d7b8cebfd3c5d3b58a343c6b2159a6d49 15-Dec-2017 Tyler Gunn <tgunn@google.com> Handle SIP 380 code mapped from the modem.

The modem will remap SIP 380 to ImsReasonInfo.CODE_SIP_ALTERNATE_EMERGENCY_CALL.
Adding support to remap this to the "turn off airplane mode to make a call"
error code.

Test: Manually tested (hardcode error code), added mapping unit test.
Bug: 69024173
Change-Id: I79eddc1852e2e7cdb428de44d6211ea7958a58a4
msPhoneCallTracker.java
eb88223778ed148084fd761d54cc0e5a674a426d 10-Jan-2018 Malcolm Chen <refuhoo@google.com> Merge "Rename isDataEnabled and getDataEnabled in DcTracker." am: 7f02f4a21f
am: 987e7966b0

Change-Id: I04261920564fd8f1a655e208140fb68559c28672
a64092befe003884c4c8951438ab311ce8f92824 29-Nov-2017 Malcolm Chen <refuhoo@google.com> Rename isDataEnabled and getDataEnabled in DcTracker.

Rename isDataEnabled and getDataEnabled to isDataEnabled
and isUserDataEnabled to better clarify their functionality.

Bug: 69814555
Test: build
Change-Id: I8b05f02103e017c746850afd2ddfc366e1ce6a64
Merged-In: I8b05f02103e017c746850afd2ddfc366e1ce6a64
msPhoneBase.java
02761d2406c0197cebd255b575f161f5145efbb3 14-Dec-2017 Tyler Gunn <tgunn@google.com> Add support for notification of midcall video call radio handovers.

Adding support for video calls to:
- Notification of successful LTE to WIFI handover
- Notification of failure to handover from LTE to WIFI.

If there is a handover from WIFI to LTE (or the initial handover from
lte to WIFI fails at the start of a call), we enable a
connectivity listener to track when a new WIFI network becomes available.
If a new wifi network becomes available and there is no handover to WIFI
before a 1 min time expires, we warn the user (existing connection event)
that we couldn't handover to wifi.
If the handover to WIFI is successful, we send a connection event which
dialer will use to show a toast for the handover.

Test: Manual, added unit tests.
Bug: 65490850
Change-Id: I7fa16003e7309d40df0654c2992c823ed4d12e28
msPhoneCallTracker.java
c2d4cafae266d7d71d02c935a4015645c50566d4 23-Dec-2017 Hall Liu <hallliu@google.com> De-flake ImsRttHandlerTest

Add some better threading control to testSendEnoughChars to prevent a
race condition

Test: run unit test 200 times
Change-Id: Ic4610dfa919a78441c929b0c2ebc0847782575c2
msRttTextHandler.java
dd9f4b04dedb05318ac3c31de24a3a932f5be55e 02-Jan-2018 yinxu <yinxu@google.com> Merge "Add platform changes to support new RIL APIs." am: bc6ea1213a am: b8088b402c
am: d19c2c1ac5

Change-Id: Ife0175157d29b6efa7222e7b6b6651c40fa8b115
d19c2c1ac56e87ed710ef4e1654a98e34d2efef9 02-Jan-2018 yinxu <yinxu@google.com> Merge "Add platform changes to support new RIL APIs." am: bc6ea1213a
am: b8088b402c

Change-Id: Ib60200710ebb7ca3ed652539df11e6066d9a1ebf
bc6ea1213ac50c74b9913ae498478190ff884a5e 02-Jan-2018 Treehugger Robot <treehugger-gerrit@google.com> Merge "Add platform changes to support new RIL APIs."
4e10a61602bd065cdf71d0335493ac3444d5055a 21-Nov-2017 yinxu <yinxu@google.com> Add platform changes to support new RIL APIs.

Bug: 68998818
Test: Basic telephony sanity
Change-Id: I36be4c29cb575e7210da1b7e69772ba20e77404d
msPhoneCommandInterface.java
2cb9baf6cc715fd1cee1f8e72966e7591cf60e6b 22-Dec-2017 Brad Ebinger <breadley@google.com> Merge "Fix issue that a calling name appeared in adb log" am: 64e9ba84d4 am: 1cc1536935
am: 96ddcb694a

Change-Id: I04a50e9f33044367095392aa424a7ae9765d2c4d
0216da2540a40e4569915004729b666350ddcba3 22-Dec-2017 Brad Ebinger <breadley@google.com> Merge "Convert the fail cause to DisconnectCause.CALL_BARRED" am: 039b9bb65c am: 7336423c6f
am: caf74399da

Change-Id: I8eda3971cbd8d097c3d3e111a3f268f7c8e22c4f
96ddcb694a9cbf9d1277da431321d927a03a4567 22-Dec-2017 Brad Ebinger <breadley@google.com> Merge "Fix issue that a calling name appeared in adb log" am: 64e9ba84d4
am: 1cc1536935

Change-Id: Idccdb1f97b3fcebb81a9455d7f5b12f0efd3b8da
caf74399da408974699c038a76cbfa0ead76932a 22-Dec-2017 Brad Ebinger <breadley@google.com> Merge "Convert the fail cause to DisconnectCause.CALL_BARRED" am: 039b9bb65c
am: 7336423c6f

Change-Id: Ia6a262977796c3b1292605e4594f88e4b72bc471
64e9ba84d42769243fdf1fd31ab77e735fde6490 22-Dec-2017 Brad Ebinger <breadley@google.com> Merge "Fix issue that a calling name appeared in adb log"
039b9bb65c706d12d9bcd38206e1b701c024fabf 22-Dec-2017 Brad Ebinger <breadley@google.com> Merge "Convert the fail cause to DisconnectCause.CALL_BARRED"
054443bb4174c250ebd38f7d72fe68953521ae18 21-Dec-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Remove ImsManager.setDataEnabled."
973bdbcb053d35f046f81c15c938201328ba7499 20-Dec-2017 Malcolm Chen <refuhoo@google.com> Remove ImsManager.setDataEnabled.

Bug: 67602046
Test: manual and existing unit-tests
Change-Id: Iaa7bc3b7f0ec2e683c7e9ea45e1d2d1ba0563c0a
msPhoneCallTracker.java
8cf45a2007290c2d34645025b377a98a3f861050 20-Dec-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Replace ImsManager static methods with proper ones."
58bd1ca1d1e4d3b168093f3a3281d40c736719f9 13-Dec-2017 Malcolm Chen <refuhoo@google.com> Replace ImsManager static methods with proper ones.

ImsManager static methods are deprecated since it doesn't support
MSIM devices. It will now always call getInstance with phoneId and
then call corresponding non-static methods.

Bug: 67602046
Test: regression tests
Change-Id: I1253249a414cc9be45d5fbbab182911144a30c32
msPhone.java
msPhoneCallTracker.java
4371cd52c47a0e0f30b9d9080007de262ecdab5b 18-Dec-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Rename isDataEnabled and getDataEnabled in DcTracker."
8e23ad8ce3c364969a56fa4a22b4f944162584c9 12-Dec-2017 Tyler Gunn <tgunn@google.com> Merge "Always play remote hold tone if carrier config indicates it should be." am: 02267f80e5 am: 2871a504c1
am: a2a9d3e16a

Change-Id: I38242e04bbe21f04c042facd78054e460c99510e
a2a9d3e16a1603b7ecafb732a371c9f8a7172bf2 12-Dec-2017 Tyler Gunn <tgunn@google.com> Merge "Always play remote hold tone if carrier config indicates it should be." am: 02267f80e5
am: 2871a504c1

Change-Id: Ib5f7a51f8facd9e9ca9cd4290bc51a174d1adbb9
02267f80e58d0d8a14c987b6a2fe5deb3fd662ee 12-Dec-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Always play remote hold tone if carrier config indicates it should be."
7862a030b39eb245871e0df1eee64b91c0fbc379 08-Dec-2017 Jack Yu <jackyu@google.com> Merge "Moved DataProfile from telephony internal hidden API to System API" am: 67c734994b
am: fdde8900e4

Change-Id: I58c3da0e0b6e7222a78362e7994e36d5c53765d0
886183cde1263ea524cdf08524442724e246ed42 20-Nov-2017 Jack Yu <jackyu@google.com> Moved DataProfile from telephony internal hidden API to System API

This is the preliminary change in order to make the new data call
setup API for IWLAN refactoring.

Test: Telephony sanity tests + unit tests
bug: 64132030

Merged-In: I5aa50001ef6374b080c10eb29e59363c21008639
Change-Id: I34b9a40b587092f28ffe5d5c96a4e3636f52ed53
(cherry picked from commit b02e63a76e4c3d5e364b0d0017e1a0f57916959d)
msPhoneCommandInterface.java
1fa6c4bd307fbd6ff974dd213231e76ddf38129a 17-Mar-2011 Yuling Liu <yuling.liu@sonyericsson.com> Convert the fail cause to DisconnectCause.CALL_BARRED

DisconnectCause.CALL_BARRED is notified to TeleService when CS call
fails due to call barring. But it isn't notified in case of IMS call.

To fix this, add a case that converts the fail cause to
DisconnectCause.CALL_BARRED.

Test: manual - Checked that DisconnectCause.CALL_BARRED is notified
when call is barred.
Bug: 70369741

Change-Id: I78d59e320d39a47c2c4f778583121c98650e2f2f
msPhoneCallTracker.java
534bf3e070fa569a67ed449e6c6d7329cca1fa02 08-Dec-2017 Jordan Liu <jminjie@google.com> Merge "IMS: Add support for STK CC feature" am: b7fd3bd5db am: 562943505d
am: 0670e5160c

Change-Id: I644d5bb1c8b0ac4ab2666944c67db48ecf44e294
0670e5160c3f5c5e24448426bd221f1c027876f0 08-Dec-2017 Jordan Liu <jminjie@google.com> Merge "IMS: Add support for STK CC feature" am: b7fd3bd5db
am: 562943505d

Change-Id: I0fecfb27917fe5b011465e649e52909adff39157
97d2609e31917538360d1632c9bdd0cc901eace4 29-Jul-2017 Suresh Koleti <skoleti@codeaurora.org> IMS: Add support for STK CC feature

-- Create ImsUt which will set the ImsUtListenerProxy which is used
to get the STK CC supplementary service indication.
-- Parse STK CC supplementary service indication and
show appropriate dialog to user.
-- Using OEM_ERROR_1 to show error dialog for USSD modified
to Video Dial

Test: Manual
Bug: 64685331
Change-Id: Ic540616e383107595905fdee01e3eb5e39f6f3d0
msPhone.java
msPhoneCallTracker.java
msPhoneMmiCode.java
c58281f18e760c39c2fedba61453eae7bfdda349 01-Aug-2017 Xinying.Deng <xinying.deng@sony.com> Fix issue that a calling name appeared in adb log

A calling name is displayed in VoLTE/ViLTE MT call on adb log
even if user variant.
Privacy information should not be displayed in adb log.

Test: manual - Check that a calling name of the adb log is masked.
Bug: 70307005
Change-Id: I4014676130f44c213700c1aebbead87f26f49a6a
msPhoneConnection.java
3e227d75e46ad8fa928ebfccbc3a90db65429968 01-Dec-2017 Tyler Gunn <tgunn@google.com> Do not notify of WIFI to LTE handover for disconnected call.

It is possible for the onCallHandover callback to indicate that a
call in the process of disconnecting or which has been disconnected already
has handed over from WIFI to LTE. We suppress the connection event if this
is the case.

Test: Reproduced bug, and then confirmed fix corrects the issue.
Bug: 65490850
Merged-In: Ibaff84dc7e4c3b628d4f9f5b2fdd819220a9d185
Change-Id: I460db6c122188d9bd9a4db4e93cee44bf9c63905
msPhoneCallTracker.java
90f7ae0270d1ca8e2b89654da0d286486dce9571 01-Dec-2017 Jordan Liu <jminjie@google.com> Merge "Add old APIs as overloaded methods" am: 542e4e6b3c am: f53296a935
am: cf04c2fd8a

Change-Id: I414ef9d9e54cb4c3c9ed4f57da48938178c8893e
cf04c2fd8a3ec5b3c3b163fa77775fc45643c3fe 01-Dec-2017 Jordan Liu <jminjie@google.com> Merge "Add old APIs as overloaded methods" am: 542e4e6b3c
am: f53296a935

Change-Id: I3c5bdc83d9b2f2c66a79e9c9d4945895cb1b8f63
f53296a9353319143225c6eaa4572f585fc4d344 01-Dec-2017 Jordan Liu <jminjie@google.com> Merge "Add old APIs as overloaded methods"
am: 542e4e6b3c

Change-Id: Ifb50ba9de7ab8aa2ce24ae35215d60c6a0461ee4
bcfc54aca38044b7020a870768c3cb7071b274e4 29-Nov-2017 Malcolm Chen <refuhoo@google.com> Rename isDataEnabled and getDataEnabled in DcTracker.

Rename isDataEnabled and getDataEnabled to isDataEnabled
and isUserDataEnabled to better clarify their functionality.

Bug: 69814555
Test: build
Change-Id: I8b05f02103e017c746850afd2ddfc366e1ce6a64
msPhoneBase.java
81357ffc6a5a19c6ee1f846797cf06fedc0c7b5e 01-Dec-2017 Jordan Liu <jminjie@google.com> Add old APIs as overloaded methods

Bug: 37559543
Test: manual
Change-Id: Ic7f55559b3a10c4be3159ce43e2f0ffd10fe75be
msPhone.java
59802436c17561c5403fab3795daad882daa0fde 01-Dec-2017 Tyler Gunn <tgunn@google.com> Merge "Do not notify of WIFI to LTE handover for disconnected call." am: cbe33053ac am: 74250c9c98
am: ec0c2c9cf0

Change-Id: Ifbb67e8b2515f33628c03e04ee669a216824567e
ec0c2c9cf083d008b3bac1cfcd38db926f0001d8 01-Dec-2017 Tyler Gunn <tgunn@google.com> Merge "Do not notify of WIFI to LTE handover for disconnected call." am: cbe33053ac
am: 74250c9c98

Change-Id: Ibaff84dc7e4c3b628d4f9f5b2fdd819220a9d185
74250c9c98f9bb7be7be419861b40ff06184817b 01-Dec-2017 Tyler Gunn <tgunn@google.com> Merge "Do not notify of WIFI to LTE handover for disconnected call."
am: cbe33053ac

Change-Id: I66ae1304a320e7762191382c5bbd609e727742f6
cbe33053acc41a52ce0d3db6692243b0322e4449 01-Dec-2017 Tyler Gunn <tgunn@google.com> Merge "Do not notify of WIFI to LTE handover for disconnected call."
9b56821fdde86b3597e5f77c53fee2669376673e 01-Dec-2017 Jordan Liu <jminjie@google.com> Merge "IMS: Add service class for call barring operations" am: d24ca5c90f am: db6273ac19
am: a2565023de

Change-Id: I49b2a823597e557fa37482ed6bccc47015374cac
a2565023de58efc2699bc29e9ce06238c4f06d05 01-Dec-2017 Jordan Liu <jminjie@google.com> Merge "IMS: Add service class for call barring operations" am: d24ca5c90f
am: db6273ac19

Change-Id: I382282796fc22b3e6f53e88854222c69da4b20da
db6273ac193639255de80de7facb736aa552ca2d 01-Dec-2017 Jordan Liu <jminjie@google.com> Merge "IMS: Add service class for call barring operations"
am: d24ca5c90f

Change-Id: Ibe86d4daf230f31eec40bce9c7d63355e06588cf
f4d1b3a28ea5f1fdbd4db1d1508596ae29fe10ae 02-Nov-2016 Benergy Meenan Ravuri <bravuri@codeaurora.org> IMS: Add service class for call barring operations

Add service class for call barring operations

Test: Manual
Bug: 37559543
Change-Id: I41dfb7439b15a03e7a21970e32cc65dd044dff2c
msPhone.java
msPhoneMmiCode.java
c2d0cec6cc786470359383a5fa179586bdde3858 30-Nov-2017 Jack Yu <jackyu@google.com> Revert "Merge "Revert "Moved DataProfile from telephony internal hidden API to System API"" am: ff4c852798 am: 58c2654141 am: 9fc7a5386d"

This reverts commit 71df921a8aa13ed6d6a4cc3e6ed277ea3ff382b5.

Change-Id: I5aa50001ef6374b080c10eb29e59363c21008639
msPhoneCommandInterface.java
fb4330692d332ee8ee4614a9500ae39efbe138d8 27-Nov-2017 Tyler Gunn <tgunn@google.com> Always play remote hold tone if carrier config indicates it should be.

Remote hold tones are normally only played when the audio stream goes
inactive and the call is remotely held.
Adding support for carriers which do not make the audio stream go inactive
when the call is remotely held.

Test: Added unit test coverage for hold tones, manually tested with TMO.
Bug: 64099717
Change-Id: Ib001cbc7613551302d87c1a9a5f5e6412f1cbc57
msPhoneBase.java
msPhoneCall.java
msPhoneCallTracker.java
4caa11d8e1d6790b2813d48a91924492a60b5156 20-Nov-2017 Jack Yu <jackyu@google.com> Moved DataProfile from telephony internal hidden API to System API

This is the preliminary change in order to make the new data call
setup API for IWLAN refactoring.

Test: Telephony sanity tests + unit tests
bug: 64132030

Merged-In: I320632be0d50b03c948b02fa664640ecfb401357
Change-Id: I21aa0ac07d251804716dd88846e7b4913673cdc9
(cherry picked from commit b02e63a76e4c3d5e364b0d0017e1a0f57916959d)
msPhoneCommandInterface.java
71df921a8aa13ed6d6a4cc3e6ed277ea3ff382b5 28-Nov-2017 Jack Yu <jackyu@google.com> Merge "Revert "Moved DataProfile from telephony internal hidden API to System API"" am: ff4c852798 am: 58c2654141
am: 9fc7a5386d

Change-Id: I5f7f6cb23a26994cea9961127d1a9935fbbd362b
9fc7a5386dc5422c1a7940e446c998f19255c5dd 28-Nov-2017 Jack Yu <jackyu@google.com> Merge "Revert "Moved DataProfile from telephony internal hidden API to System API"" am: ff4c852798
am: 58c2654141

Change-Id: Ie3ac87d6998ba793a4d3f4ee8a02b34b7157c5fa
fa204958afc0e69ff371492830ccfaf261748679 28-Nov-2017 Jack Yu <jackyu@google.com> Merge "Moved DataProfile from telephony internal hidden API to System API" am: 3fd8b3ecfd
am: 3a953e80c4

Change-Id: Id12b258f0f41ad39f98d27672387de6de9a99aec
58c265414152e6dc948d491c58cf3fd17f28d14f 28-Nov-2017 Jack Yu <jackyu@google.com> Merge "Revert "Moved DataProfile from telephony internal hidden API to System API""
am: ff4c852798

Change-Id: I55a242e3d23f94358c78ce9aeaff2055f26a17f9
3a953e80c4f83c153fcebc71a9814b77f320bc19 28-Nov-2017 Jack Yu <jackyu@google.com> Merge "Moved DataProfile from telephony internal hidden API to System API"
am: 3fd8b3ecfd

Change-Id: I031c600f0d2a8cac02a24eed7fb58e9a4fa87146
4bb301ce081b348fbb8b6b7a990e0c6e65b9e039 28-Nov-2017 Jack Yu <jackyu@google.com> Revert "Moved DataProfile from telephony internal hidden API to System API"

This reverts commit c36b42eb847959f451900d1eac4e32be180a0b99.

Reason for revert: <INSERT REASONING HERE>

Change-Id: I7fd9fbb181fcc74de585e3224ed230e029db1049
msPhoneCommandInterface.java
2ef948d0087729c91bcc06af3df0af67d17cae70 28-Nov-2017 Tyler Gunn <tgunn@google.com> Do not notify of WIFI to LTE handover for disconnected call.

It is possible for the onCallHandover callback to indicate that a
call in the process of disconnecting or which has been disconnected already
has handed over from WIFI to LTE. We suppress the connection event if this
is the case.

Test: Reproduced bug, and then confirmed fix corrects the issue.
Bug: 65490850
Change-Id: I460db6c122188d9bd9a4db4e93cee44bf9c63905
msPhoneCallTracker.java
c36b42eb847959f451900d1eac4e32be180a0b99 20-Nov-2017 Jack Yu <jackyu@google.com> Moved DataProfile from telephony internal hidden API to System API

This is the preliminary change in order to make the new data call
setup API for IWLAN refactoring.

Test: Telephony sanity tests + unit tests
bug: 64132030

Merged-In: I320632be0d50b03c948b02fa664640ecfb401357
Change-Id: I320632be0d50b03c948b02fa664640ecfb401357
(cherry picked from commit b02e63a76e4c3d5e364b0d0017e1a0f57916959d)
msPhoneCommandInterface.java
b02e63a76e4c3d5e364b0d0017e1a0f57916959d 20-Nov-2017 Jack Yu <jackyu@google.com> Moved DataProfile from telephony internal hidden API to System API

This is the preliminary change in order to make the new data call
setup API for IWLAN refactoring.

Test: Telephony sanity tests + unit tests
bug: 64132030

Change-Id: I320632be0d50b03c948b02fa664640ecfb401357
msPhoneCommandInterface.java
0b36207a128ae8b447a98b8d18d90ad3e2e96133 18-Nov-2017 Jack Yu <jackyu@google.com> Merge "Fixed that call forwarding icon not shown issue" am: 0d5b34f9d6
am: 36b23af2d4

Change-Id: I406a3e55e5db98e5229d4d5db7d751cf616d596f
36b23af2d415bd3b47be3d12f68a086dcc87ed48 18-Nov-2017 Jack Yu <jackyu@google.com> Merge "Fixed that call forwarding icon not shown issue"
am: 0d5b34f9d6

Change-Id: Ib02f58979336a9dac5472678f0b122ee7a26a119
0d5b34f9d6adc39dae3400dc46f904d2ec58e8ae 18-Nov-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Fixed that call forwarding icon not shown issue"
5f37e9b859203f06cb1ab14f3bb5632bd793a2ed 17-Nov-2017 Jack Yu <jackyu@google.com> Fixed that call forwarding icon not shown issue

Fixed that call forwarding icon not shown when enabling
all call forwarding (i.e. unconditional + all conditional) when
using UT interface. Used the same logic from circuit switch SS.

Test: manual
bug: 69427654
Merged-In: I5e43f006bfb4752ca1119e3e226746923a10f4a3
Change-Id: I5e43f006bfb4752ca1119e3e226746923a10f4a3
(cherry picked from commit aea49bb09780de60c3a0fc91574bc8d0628e25da)
msPhone.java
aea49bb09780de60c3a0fc91574bc8d0628e25da 17-Nov-2017 Jack Yu <jackyu@google.com> Fixed that call forwarding icon not shown issue

Fixed that call forwarding icon not shown when enabling
all call forwarding (i.e. unconditional + all conditional) when
using UT interface. Used the same logic from circuit switch SS.

Test: manual
bug: 69427654
Change-Id: I5e43f006bfb4752ca1119e3e226746923a10f4a3
msPhone.java
c2a920bf4ba7abff7fd413f1bbd5a8f43dfe8265 14-Nov-2017 Xin Li <delphij@google.com> Merge commit 'a07cb60cacf82c040c0536e5331fb12c1c6bea65' from
oc-mr1-dev-plus-aosp-without-vendor into stage-aosp-master.

Change-Id: I9298b2b32e25a13e2369856fe4a1d96e7d087125
75040309317d43b2882be239de174722d8a932b7 10-Nov-2017 Jayachandran Chinnakkannu <jayachandranc@google.com> Merge "Remove the OEM hook implementation and usage" am: 4a2a751662
am: a39988fae7

Change-Id: I48069ed8c01d6dd9b7471e75a7995dea0b01f6ba
4a2a7516629180a4e1b433c9f352679a9d975159 10-Nov-2017 Jayachandran Chinnakkannu <jayachandranc@google.com> Merge "Remove the OEM hook implementation and usage"
6993a3eef4eed1a2f31a967d330bdd97e76fe1c5 25-Oct-2017 Jayachandran C <jayachandranc@google.com> Remove the OEM hook implementation and usage

Vendors and OEMs shall use HIDL extension going forward
to send OEM specific message

Test: Basic Telephony Sanity

Bug: 34344851

Change-Id: I3432501978a08753f791fb90df77ee9ef1b6d642
msPhoneCommandInterface.java
04b4a766ee1f79a6b01d64b770f0676e921aa1a1 09-Nov-2017 Jayachandran Chinnakkannu <jayachandranc@google.com> Merge "Remove the OEM hook implementation and usage"
892e55ab32f1ad35591052a736e0498fb3c7de0d 08-Nov-2017 Brad Ebinger <breadley@google.com> Merge "Change ImsServiceProxy namespace" am: 37f4d636e4 am: 90bb231380
am: 9387be0dbe

Change-Id: Ie67022b430888a1e02d05b71bdf0545a069ed3f0
9387be0dbe5ac45a68aa01fba5c7a57f15230d87 08-Nov-2017 Brad Ebinger <breadley@google.com> Merge "Change ImsServiceProxy namespace" am: 37f4d636e4
am: 90bb231380

Change-Id: Ie763cb6f5f8a377c0c5b603065538d372a813fbe
11f75dab7b47e7b3d459ccca5c6856018231862f 25-Oct-2017 Jayachandran C <jayachandranc@google.com> Remove the OEM hook implementation and usage

Vendors and OEMs shall use HIDL extension going forward
to send OEM specific message

Test: Basic Telephony Sanity

Bug: 34344851

Change-Id: I3432501978a08753f791fb90df77ee9ef1b6d642
msPhoneCommandInterface.java
8bdce0412ded7e7afba435594fe3136d4756ac1b 07-Nov-2017 Brad Ebinger <breadley@google.com> Change ImsServiceProxy namespace

Changes ImsServiceProxy namespace to correspond
with move

Test: Manual
Change-Id: I04a163436e51b5af551e8c4b7114c652252f13a8
msPhoneCallTracker.java
d8a7576527052b4515faffc5890116ef43a4d26c 07-Nov-2017 Jordan Liu <jminjie@google.com> Merge "IMS: Use proper phone to route emergency calls" am: 67d26fc180 am: eabe08fbfc
am: ee4a1d4fe5

Change-Id: Ib466712eacc883e471501739b6540fe3d60dfbfb
ee4a1d4fe579a07561155944e31dbfe612b274f8 07-Nov-2017 Jordan Liu <jminjie@google.com> Merge "IMS: Use proper phone to route emergency calls" am: 67d26fc180
am: eabe08fbfc

Change-Id: I1e9bc81e3c85773cd0f3c55f3d9957b49acd08e4
0e71246c952c2e3b5c29dd4ce2a654f1dee07c5c 20-Jul-2017 Suresh Koleti <skoleti@codeaurora.org> IMS: Use proper phone to route emergency calls

-- By default emergency calls will be dialed using ImsPhone.
For multi-sim use cases if tried to dial emergency calls
using ImsPhone where feature state is NOT_READY then will
end up in not sending DIAL request to lower layers as
ImsServiceProxy will not allow creating call profile if
feature state is NOT_READY.
-- Check feature state before routing emergency calls to ImsPhone.

Test: Manual
Bug: 63920021
Change-Id: Ie74a4a368b860d9ad284cef6b90a2cc7eff19609
msPhoneCallTracker.java
b7a5be0d35bda36d896842972ee9529cd71b5206 27-Oct-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Ensure call forwarding and barring MMI codes can work over IMS."
81f2d9fe51e2d0c12e7c5e4cdd6c7fe497935e2d 09-Aug-2017 Tyler Gunn <tgunn@google.com> Ensure call forwarding and barring MMI codes can work over IMS.

The code included a mDialingNumber != null check which would prevent
call forwarding and call barring codes from ever being handled over IMS.
E.g. *30#6505551212 should be handled because it is a valid SC_CLIP
request, but the 6505551212 dialing number would prevent this from going
over IMS.

Test: Dialed MMI code and verified it goes over IMS.
Merged-In: I0aa5ccbf020c6f9606d193ef944d4458c6f6c355
Change-Id: I4bc93085a9c012d80fcce67c65b851995cfe8996
Fixes: 38439766
msPhoneMmiCode.java
484ac6109b1850721eea964c3ee7bf98feaf5f36 27-Oct-2017 Tyler Gunn <tgunn@google.com> Remove empty override of saveClirSetting in ImsPhoneBase. am: 26d7e38ef3
am: 7e9f789681

Change-Id: Ie5e4c1297e92b253ac5b4765c7ee9ba4e8d48b6f
7e9f78968185fadf387826fbf2a4413693d1506f 27-Oct-2017 Tyler Gunn <tgunn@google.com> Remove empty override of saveClirSetting in ImsPhoneBase.
am: 26d7e38ef3

Change-Id: I5a9e10db935611c9396d1c0fb6cbc2478b764d21
03f0c3a89f071518251dc99bdb47d7c94dd96472 26-Oct-2017 Pengquan Meng <mpq@google.com> Merge "Fix to notify ECBM exit to registrants" am: b01a527803 am: 9aca3cb263
am: 3ebb441c07

Change-Id: I1ff88296d3a271b776a093346198d5a370fc2fd6
3ebb441c0731f70c41b2373aa0f76ecadbc15bdb 26-Oct-2017 Pengquan Meng <mpq@google.com> Merge "Fix to notify ECBM exit to registrants" am: b01a527803
am: 9aca3cb263

Change-Id: Ia12eeaaf6cf8f6458c0d467ef57f159858793734
b01a5278037c573f47759c6219de6df3ac61a302 26-Oct-2017 Pengquan Meng <mpq@google.com> Merge "Fix to notify ECBM exit to registrants"
26d7e38ef34912cfca6788ae11fae4f13390a7c6 25-Oct-2017 Tyler Gunn <tgunn@google.com> Remove empty override of saveClirSetting in ImsPhoneBase.

When the CLIR setting is changed via GSM, the base Phone#saveClirSetting
method gets called to save the user's CLIR setting to shared prefs.
It turns out that when the IMS code was written, an empty stub override
was added for ImsPhone. If an attempt was made to save the CLIR setting
over IMS, the network would be updated but the shared prefs would not be.

Removing the empty override ensures the default base Phone version of the
save logic gets used.

Test: Manual, performed CLIR set operations over IMS and verified saves.
Bug: 68029544
Change-Id: I678fccd8ec7c610002b503a18261e3807586af4d
msPhoneBase.java
816992ffbceb9e81da6062615e1db9db46de2e72 24-Oct-2017 Pengquan Meng <mpq@google.com> resolve merge conflicts of 0a1b7c2b2 to stage-aosp-master
am: 103e42f1b1

Change-Id: Ia09280c1d0aaf9c521d1eb79742c742f047f1bd9
103e42f1b13ba43eeac478f53b9d2402e11d6e30 24-Oct-2017 Pengquan Meng <mpq@google.com> resolve merge conflicts of 0a1b7c2b2 to stage-aosp-master

Test: I solemnly swear I tested this conflict resolution.
Change-Id: Ic4ce6a0cf640ccd7706c66672ee75b716e795bc4
b60225e86e3a02197f95cede8fe6989d7a129b96 09-Oct-2017 Pengquan Meng <mpq@google.com> Improves service state changed notification

The service of GsmCdmaPhone and ImsPhone are changed independently, but
the service state tracker only notify the service state of
GsmCdmaPhone. This changed make the ServiceStateTracker notify the
merged state of GsmCdmaPhone and ImsPhone even if these two phone change
their service state independently.

Bug: 67471135
Test: manually test and unit test

Change-Id: Iba99fc2b02ae536897d9cde07d81b6ab64b5a9cb
msPhone.java
a2532a5fd76c325c672bdf0f606170796fd5e056 09-Oct-2017 Pengquan Meng <mpq@google.com> Improves service state changed notification

The service of GsmCdmaPhone and ImsPhone are changed independently, but
the service state tracker only notify the service state of
GsmCdmaPhone. This changed make the ServiceStateTracker notify the
merged state of GsmCdmaPhone and ImsPhone even if these two phone change
their service state independently.

Bug: 67471135
Test: manually test and unit test

Change-Id: Iba99fc2b02ae536897d9cde07d81b6ab64b5a9cb
msPhone.java
293f5c7471ab17792e47bdebb6d37523ee1120db 26-Sep-2017 Abhishek Panjikar <apanji@codeaurora.org> IMS: De-registration happens when modem comes up from low power mode.

- When modem goes into low power mode and then comes up,ims
deregistration takes place soon after registration.

- When modem comes up from low power mode, onDataEnabledChanged is called
before the carrier config is actually loaded. Hence, while in the
process of updating ims service ims gets deregistered as carrier related
information is loaded.

- Allowing to update ims service only after carrier config is properly
loaded.Also, resetting the mCarrierConfigLoaded flag when config service
is no longer available or we get an empty carrier config.

Test: Manual
Bug: 67033695
Change-Id: Idb1abc86bcf502d56428e4fb1e5696e73f2bc773
msPhoneCallTracker.java
1713132a565fbe221c74011551362e896b7280ed 05-Oct-2017 Jordan Liu <jminjie@google.com> Add import which was lost due to diverged codebase am: 2e69595758
am: 004c10e3c3

Change-Id: I9e973824734b66efe1d16009f176436b786ac477
2e69595758e844e27b0279003c64008fdcc7a198 05-Oct-2017 Jordan Liu <jminjie@google.com> Add import which was lost due to diverged codebase

Test: manual
Change-Id: If29854a26535ca786c082ba1b97719c01be4a910
msPhoneMmiCode.java
23002282a9fbffea4b639ffda3917ebebbee1bc7 05-Oct-2017 Jordan Liu <jminjie@google.com> Merge "IMS: Handle IMS Reason CODE_FDN_BLOCKED" am: 415158fb4a am: 1d7047684c
am: 26990670f8

Change-Id: I6e16d68579d636eadbaa2bc0d01e8ac4cb567e3b
1d7047684c9e420bf762b3c19c34c1925a1cd8ae 05-Oct-2017 Jordan Liu <jminjie@google.com> Merge "IMS: Handle IMS Reason CODE_FDN_BLOCKED"
am: 415158fb4a

Change-Id: I55607f747c0ea2128cfcb6e29e03487902549965
17455474895f02c9e84b08ad1a0102c2f940bced 28-Jun-2017 Benergy Meenan Ravuri <bravuri@codeaurora.org> IMS: Handle IMS Reason CODE_FDN_BLOCKED

Handle Ims Reason CODE_FDN_BLOCKED to show FDN failure dialog

Test: Manual - Checked that FDN failure dialog is shown when
IMS UT requests(Call forwarding, Call waiting etc) fail with
FDN enabled.
Bug: 63104754
Merged-In: Ic5c709c9aa48101ce4e46b6029e8a4837510ea6b
Change-Id: Ic5c709c9aa48101ce4e46b6029e8a4837510ea6b
msPhone.java
msPhoneMmiCode.java
6c0ffe880af4318ac91596803d12fced24e5c335 28-Jun-2017 Benergy Meenan Ravuri <bravuri@codeaurora.org> IMS: Handle IMS Reason CODE_FDN_BLOCKED

Handle Ims Reason CODE_FDN_BLOCKED to show FDN failure dialog

Test: Manual - Checked that FDN failure dialog is shown when
IMS UT requests(Call forwarding, Call waiting etc) fail with
FDN enabled.
Bug: 63104754
Change-Id: Ic5c709c9aa48101ce4e46b6029e8a4837510ea6b
msPhone.java
msPhoneMmiCode.java
3e02c5865505ba3bb3813f5b90578dff3c2adf7c 22-Sep-2017 Tyler Gunn <tgunn@google.com> Merge "Fix issue where video call continues on LTE when wifi lost and data off."
am: 2c1254ac1d

Change-Id: Ie4d6058fe11a2d345eaba6f524505e4dcd1b8ae1
74ccd4e67a5a55a587c2666984ec73bad13a0632 19-Sep-2017 Tyler Gunn <tgunn@google.com> Fix issue where video call continues on LTE when wifi lost and data off.

Due to changes in b/36900451 to decouple VT from the data enabled state
of the device, there was a regression in the case where WIFI is lost during
a WIFI video call and mobile data is off.

Changed code to properly handle this case by triggering a disconnect when
video pause signalling is in use.

Test: Manual - turn off wifi when on WIFI video call and mobile data is
disabled. Regression tested mobile data off auto-pausing.
Bug: 64531514

Merged-In: Ibfcc9c38b261f3162c4af92c705be740b07a6e67
Change-Id: I6561f653cd446b74f127951e02d482f7c9267c9d
msPhoneCallTracker.java
63fa599fef0383b41f85e1fc3a38d33c4434e24a 20-Sep-2017 Tyler Gunn <tgunn@google.com> resolve merge conflicts of 214a3eb16 to stage-aosp-master

Test: I solemnly swear I tested this conflict resolution.
Change-Id: Id750164d7ed0d0966a2125394924630c30d25a6a
214a3eb16a55b25784b87d035f284d47dd642cc3 20-Sep-2017 Tyler Gunn <tgunn@google.com> Merge "Support auto-downgrade of video calls when mobile data is metered."
c77a37742d3267a97ff5fbfa6b9976cd7bbc09d9 20-Sep-2017 Brad Ebinger <breadley@google.com> Merge "Fixed TTY Mode RIL update bug"
am: b713975f20

Change-Id: I76f3277c3cdc69fa8755105cb207ad09fe787eb8
b713975f201b99d3f5a971a3dbcb5ede13f39917 20-Sep-2017 Brad Ebinger <breadley@google.com> Merge "Fixed TTY Mode RIL update bug"
7a411d4797fb60914f5f6230bde24fc25b12f920 17-Aug-2017 Tyler Gunn <tgunn@google.com> Support auto-downgrade of video calls when mobile data is metered.

The previous code supported downgrading video calls (either to audio,
or pausing video, or terminating the call, depending on carrier reqs)
when mobile data is disabled.

These changes provide support for downgrading a video call over wifi
when it hands over to LTE (that work is in onCallHandover). The rest
of the changes in ImsPhoneCallTracker were to refactor the downgrade
code so it could be reused.

In ImsPhoneConnection, added support for temporarily disabling VT on the
local side. This way, if a wifi video call downgrades to audio-only due
to mobile data being disabled, the "upgrade to video" button will not
be available allowing the user to upgrade back to video (thereby defeating
the fact data is disabled).

Test: Manual
Bug: 36900451
Change-Id: Ib29c7b2fb31f4dcf505609bedfbaca0be7f8f265
Merged-In: I07eb69d83a727ddd21992832753d8ecc187dbfd7
msPhoneCallTracker.java
msPhoneConnection.java
6f6a8ada5c46dc55e126ea0e9c1e54c5e8d6f3b4 20-Sep-2017 Tyler Gunn <tgunn@google.com> Fix issue where video call continues on LTE when wifi lost and data off.
am: 64f3d6bc69

Change-Id: Ibfcc9c38b261f3162c4af92c705be740b07a6e67
c9ccc7158bc3a3b73944fed68e6f3fc390a08eec 06-Sep-2017 Brad Ebinger <breadley@google.com> Fixed TTY Mode RIL update bug

A recent fix caused a regression where the setTTYMode
RIL command wasn't being sent when TTY was turned on.
This was due to the Phone#setTTYMode method being
overridden in GsmCdmaPhone and not ever being called.

Test: Manual, looked at logs
Bug: 65287215
Merged-In: I7ded0db27100de0c3825c66bdfbdb454c5cbc28b
Change-Id: I5de32c74d4124a2ded37868e5594ab48d92f35ee
msPhone.java
64f3d6bc6909237bfc1afe8907bac8e5e47d6cc3 19-Sep-2017 Tyler Gunn <tgunn@google.com> Fix issue where video call continues on LTE when wifi lost and data off.

Due to changes in b/36900451 to decouple VT from the data enabled state
of the device, there was a regression in the case where WIFI is lost during
a WIFI video call and mobile data is off.

Changed code to properly handle this case by triggering a disconnect when
video pause signalling is in use.

Test: Manual - turn off wifi when on WIFI video call and mobile data is
disabled. Regression tested mobile data off auto-pausing.
Bug: 64531514

Change-Id: I6561f653cd446b74f127951e02d482f7c9267c9d
msPhoneCallTracker.java
99009b8c3c6bb99734a886e6cd560c7c4a17b809 15-Sep-2017 Brad Ebinger <breadley@google.com> Merge "IMS: Update IMS feature flags after feature is ready." am: 8af367a136 am: fcb4a8ecef
am: cad1918189

Change-Id: Id737284f202ae1f98309c14ad96486578ba9e30f
fcb4a8ecef0cd9ce2f66581ec288a1c525445a55 15-Sep-2017 Brad Ebinger <breadley@google.com> Merge "IMS: Update IMS feature flags after feature is ready."
am: 8af367a136

Change-Id: I0ed09c685a979c26721d4b9eecefb5c27f4a291b
8af367a136afdd24adf2ed29525f7f1c38fb1aa2 15-Sep-2017 Brad Ebinger <breadley@google.com> Merge "IMS: Update IMS feature flags after feature is ready."
1956a1890be18399896db2739733aa373ef45292 15-Sep-2017 Jack Yu <jackyu@google.com> Merge "Fixed that video calling data usage was not counted under phone app"
am: 06a3161030

Change-Id: I5cca57b1671ab56dfd81fc754a973d7db9ca3ffb
1235ff69880d07510e9e5d54230c7976b99d1137 15-Sep-2017 Jack Yu <jackyu@google.com> Fixed that video calling data usage was not counted under phone app am: c1a30c1a5f
am: ca9cdf0f2b

Change-Id: I8910bac8ed3d62d914e8ce8ce234cf01428736d8
ca9cdf0f2b4b01e9364c3f599bfae928ccc5bd0e 15-Sep-2017 Jack Yu <jackyu@google.com> Fixed that video calling data usage was not counted under phone app
am: c1a30c1a5f

Change-Id: I9b97305814769d437bd4f0de0105a2e877e50f31
5cb335370dcc8b4a9551b5c06a5d506869d950dd 14-Sep-2017 Jack Yu <jackyu@google.com> Fixed that video calling data usage was not counted under phone app

The default dialer uid was not initialized correctly in telephony.
Added another check to ensure the uid is set correctly at the time
when we calculate data usage.

Test: Manual
bug: 65644451
Merged-In: I870d0a253c6df46dcbafa834d73123536e36e45f
Change-Id: I870d0a253c6df46dcbafa834d73123536e36e45f
(cherry picked from commit c1a30c1a5f0e3b8fee03790b0a1bfc087f22075c)
msPhoneCallTracker.java
c1a30c1a5f0e3b8fee03790b0a1bfc087f22075c 14-Sep-2017 Jack Yu <jackyu@google.com> Fixed that video calling data usage was not counted under phone app

The default dialer uid was not initialized correctly in telephony.
Added another check to ensure the uid is set correctly at the time
when we calculate data usage.

Test: Manual
bug: 65644451
Change-Id: I870d0a253c6df46dcbafa834d73123536e36e45f
msPhoneCallTracker.java
d6ed121122d712da9a74fa4be953637ccc1c0c33 12-Sep-2017 Tyler Gunn <tgunn@google.com> Merge "Add workaround for modem issue where pause bit is not set when on hold."
dba043892846f9c03988e9a163e85ed09c1d5f6a 20-Jul-2017 Benergy Meenan Ravuri <bravuri@codeaurora.org> IMS: Update IMS feature flags after feature is ready.

Update IMS feature flags like Volte/Vt/Wfc when Ims feature
state is ready.

This is to ensure Ims feature values are sent to modem
after DDS swtich.

Test: Manual
Bug: 64098630
Change-Id: Id396c6f4cd45a52b81812e068950bb4705179ba3
msPhoneCallTracker.java
6eb3aee002ded736cd021dfbabaead9806b58171 12-Sep-2017 Brad Ebinger <breadley@google.com> Merge "IMS: Reset Ims capabilities when feature state becomes not available." am: 52650f794d am: 5c14a453a2
am: fc85e4d3d9

Change-Id: Ie025d079a61aa4d55a625961fe9f72b5c30604eb
5c14a453a2d069520222b6c6838141e9cefd7f34 12-Sep-2017 Brad Ebinger <breadley@google.com> Merge "IMS: Reset Ims capabilities when feature state becomes not available."
am: 52650f794d

Change-Id: Ic4c548f2756a32ae134ae8ce4ecb4fc3af4a7bad
65cd15597c5e611184a3f4c8ead5f42644fc00d6 22-Jul-2017 Tyler Gunn <tgunn@google.com> Add workaround for modem issue where pause bit is not set when on hold.

When a call is remotely held, the modem is not setting the pause bit on
the video state as it should. This causes a cascading failure where the
user cannot turn the camera on/off (because another video pause hack is
not able to detect that the video is paused and thus activate the hack).

Test: Manual
Change-Id: I2a83b73df5488454b7030d7e4f7c78f360a27eda
Merged-In: Id30c5839b1e8c0d419ebcf03045ad1bcfe3b7d57
Fixes: 63153661
msPhoneCallTracker.java
msPhoneConnection.java
767bc0f34192b43a887d85f46e6789bcedd4520b 04-Aug-2017 Benergy Meenan Ravuri <bravuri@codeaurora.org> IMS: Reset Ims capabilities when feature state becomes not available.

If device is supporting only one IMS stack, when DDS is moved from
Sub1 to Sub2 (non-IMS), feature state of Sub1 becomes not available.

When feature state is not available, registration listener will be removed.

So if the IMS registration state change and service status updates are
received from modem after the listner is removed, feature capabilities
are not updated to phone account. As a result, make video call option
is shown on dialer UI, though there is no ims registration and video
capability for any of the subscriptions.

To fix this, reset the ims capabilities when ims feature state becomes
not available for that subscription.

Test: Manual
Bug: 64098630
Change-Id: I7b59a48539560e0bf40e41799a4b6513424db6c7
msPhoneCallTracker.java
c82bacfac474ef425d08f43a2c09207b81c8fbdc 04-Aug-2017 Ravindra Thattahalli Javaraiah <c_rthat@codeaurora.org> Fix to notify ECBM exit to registrants

When device is out of ECBM imsphone has to inform default
phone registrants on the ecbm exit

Test: Manual
Bug: 62369966
Change-Id: I04d25a56ad771dc528bae02bc4f55554bb5e02be
msPhone.java
6b276abf027b11645bf1c3f536a4f63a8d071fcb 07-Sep-2017 Brad Ebinger <breadley@google.com> Merge "Fixed TTY Mode RIL update bug" into oc-mr1-dev
am: 377cda6bd2

Change-Id: I7ded0db27100de0c3825c66bdfbdb454c5cbc28b
3ae635e249413741302da5d209e32a034ba355a8 06-Sep-2017 Brad Ebinger <breadley@google.com> Fixed TTY Mode RIL update bug

A recent fix caused a regression where the setTTYMode
RIL command wasn't being sent when TTY was turned on.
This was due to the Phone#setTTYMode method being
overridden in GsmCdmaPhone and not ever being called.

Test: Manual, looked at logs
Bug: 65287215
Change-Id: I5de32c74d4124a2ded37868e5594ab48d92f35ee
msPhone.java
3c0f8bfbc26a3b0deab723d0adfd8da867438203 06-Sep-2017 Tyler Gunn <tgunn@google.com> Merge "Ensure emergency calls dialed over IMS use CLIR suppression." into oc-mr1-dev
am: dcc3cc8283

Change-Id: Ia3a6c4741eab51df6379d6b6baa0973c5dbb2b06
e2b25c138d61072f3532c69110c3713006dabf20 01-Sep-2017 Tyler Gunn <tgunn@google.com> Ensure emergency calls dialed over IMS use CLIR suppression.

When dialing an emergency call, the framework will use the user's chosen
CLIR mode (network default, invocation (show caller ID to remote),
suppression (hide caller ID to remote).

This change ensures that the telephony framework will show the caller's
ID when an emergency call is dialed over IMS.

Test: Manual, unit test
Bug: 64049180
Change-Id: Ic52caf4bc47045ac0d9b0d024882b30d057b3a16
msPhoneCallTracker.java
9ec2e6b634486f5d74963eb029ae6bc45cfcaace 31-Aug-2017 Tyler Gunn <tgunn@google.com> Merge "Ensure IMS dial uses the correct CLIR mode."
am: 39b22f4a3d

Change-Id: If09350552f58446a240c725b03d34c55c101a8b1
574a8f9bbe2b8206e9d958b340c28bfa3db31e4c 31-Aug-2017 Tyler Gunn <tgunn@google.com> Merge "Support auto-downgrade of video calls when mobile data is metered." into oc-mr1-dev
am: 333a4a4916

Change-Id: I07eb69d83a727ddd21992832753d8ecc187dbfd7
333a4a4916d057b03943084666edd3595b3cdec8 31-Aug-2017 Tyler Gunn <tgunn@google.com> Merge "Support auto-downgrade of video calls when mobile data is metered." into oc-mr1-dev
cf1f704252575d16c5a98646f7cd9d549db260e2 31-Aug-2017 Tyler Gunn <tgunn@google.com> Merge "Ensure IMS dial uses the correct CLIR mode." into oc-mr1-dev
am: fb6f7632fa

Change-Id: Ia3afc453fc26e4e7af6a824bab71fc0f2001e613
3818d30dce112008297b3594ce55ac2d0c2c93c3 30-Aug-2017 Tyler Gunn <tgunn@google.com> Ensure IMS dial uses the correct CLIR mode.

The IMS dial method was getting the shared pref CLIR_KEY to determine the
CLIR mode for an outgoing call. Everywhere else in the code, the CLIR
mode is stored under key CLIR_KEY + phoneId, against the phoneId of the
Gsm/Cdma phone.
In ImsPhoneCallTracker, the default phone for the ImsPhone is the Gsm/Cdma
phone, and we need to use that id when accessing the key.
Also, added some more logging for oir mode sync/save.

Test: Manual
Bug: 64291602
Merged-In: I231f8fb74c29347da2085318b9ca42d5efec5271
Change-Id: I231f8fb74c29347da2085318b9ca42d5efec5271
msPhoneCallTracker.java
d04bdfe07ddf5523ca4d1c07780c3f131c4254be 30-Aug-2017 Tyler Gunn <tgunn@google.com> Ensure IMS dial uses the correct CLIR mode.

The IMS dial method was getting the shared pref CLIR_KEY to determine the
CLIR mode for an outgoing call. Everywhere else in the code, the CLIR
mode is stored under key CLIR_KEY + phoneId, against the phoneId of the
Gsm/Cdma phone.
In ImsPhoneCallTracker, the default phone for the ImsPhone is the Gsm/Cdma
phone, and we need to use that id when accessing the key.
Also, added some more logging for oir mode sync/save.

Test: Manual
Bug: 64291602
Change-Id: I231f8fb74c29347da2085318b9ca42d5efec5271
msPhoneCallTracker.java
359e1e69f2914fe549f823dbdb7dd73084d1f3ad 25-Aug-2017 Tyler Gunn <tgunn@google.com> When IMS connections are merged, track connect time elapsed.

When IMS connections are meged, we need to track the elapsed time as well.
This is used when the actual conference is formed.

Merged-In: I95c605ff1d649e6620e02b7b18b5c352f3d1970c
Change-Id: Ie61f99b5716d381ca841ddd3e5b163e1ef51dd8a
Test: Manual, unit test
Bug: 64068300
msPhoneCall.java
8cc1a012527de0cbb60c7ddc7e9be5671da69319 25-Aug-2017 Brad Ebinger <breadley@google.com> Merge "Emergency redial implementation" am: 2341ae2e65 am: e5629078be
am: 91aa94c153

Change-Id: I303552ca071a73c1bb0322e4d8ee1bd565d297d6
e5629078be7375db7d44aac1966c84aaa8f2b0b6 25-Aug-2017 Brad Ebinger <breadley@google.com> Merge "Emergency redial implementation"
am: 2341ae2e65

Change-Id: Ib0358222b3413a8b812438c41666268c1f19d287
577e4aef12257100f20b46a88ee3ae65e540fea3 04-May-2017 Srikanth Chintala <srikchin@codeaurora.org> Emergency redial implementation

Map EMERGENCY_TEMP_FAILURE and
EMERGENCY_PERM_FAILURE RIL fail cause
to telephony DisconnectCause.

Bug: 27059146
Change-Id: Ie72ab2901ec05d972204ed11f115a05b79173c1d
msPhoneCallTracker.java
310fcec78fd99515b581ff980aecbd6b49658447 25-Aug-2017 Tyler Gunn <tgunn@google.com> Merge "When IMS connections are merged, track connect time elapsed." am: 040230d788 am: 114a16a2c6
am: e07787e2ce

Change-Id: I59f139f9a30f856be4fc6d6a1c8d9c8e7e48a3ca
114a16a2c6af1ea59c4de61b18febd8c23b63b18 25-Aug-2017 Tyler Gunn <tgunn@google.com> Merge "When IMS connections are merged, track connect time elapsed."
am: 040230d788

Change-Id: If8032f9b3f049660cfe13456053498234734aeb0
040230d7888584fd67abeafc4b6165279b446d36 25-Aug-2017 Tyler Gunn <tgunn@google.com> Merge "When IMS connections are merged, track connect time elapsed."
aa62ca0a289a65195f477be7fb223148789aa7db 24-Aug-2017 Tyler Gunn <tgunn@google.com> Merge "Handle low battery ImsReason and translate to low battery disconnect cause."
am: 4dc2c73a77

Change-Id: I8baec969b22680f1a9faa0122c7ef57c0da6dd7d
4dc2c73a77f341b13bb80ebf49d285677ceaf312 24-Aug-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Handle low battery ImsReason and translate to low battery disconnect cause."
211683484f0dd3ef1572c0200f7531260f5e162a 22-Aug-2017 Tyler Gunn <tgunn@google.com> Handle low battery ImsReason and translate to low battery disconnect cause.

There are two scenarios where we can run into a low battery:
1. onCallTerminated - this would be a mid-call termination.
2. onCallStartFailed - this would be while dialing.

Modified getDisconnectCauseFromReasonInfo to generate the correct
disconnect cause based on whether the call being disconnected is in
progress or dialing.

Test: Manual
Merged-In: If8672f4fb34e63f68868821b1fb203cd2676f78b
Change-Id: If8672f4fb34e63f68868821b1fb203cd2676f78b
Fixes: 63936576
msPhoneCallTracker.java
a81d308428c1c0639cc90e6fec89e4a07389e182 17-Aug-2017 Tyler Gunn <tgunn@google.com> Support auto-downgrade of video calls when mobile data is metered.

The previous code supported downgrading video calls (either to audio,
or pausing video, or terminating the call, depending on carrier reqs)
when mobile data is disabled.

These changes provide support for downgrading a video call over wifi
when it hands over to LTE (that work is in onCallHandover). The rest
of the changes in ImsPhoneCallTracker were to refactor the downgrade
code so it could be reused.

In ImsPhoneConnection, added support for temporarily disabling VT on the
local side. This way, if a wifi video call downgrades to audio-only due
to mobile data being disabled, the "upgrade to video" button will not
be available allowing the user to upgrade back to video (thereby defeating
the fact data is disabled).

Test: Manual
Bug: 36900451
Change-Id: Ib29c7b2fb31f4dcf505609bedfbaca0be7f8f265
msPhoneCallTracker.java
msPhoneConnection.java
745dce04d7334df0f6b52696b672d86f3bf86027 22-Aug-2017 Tyler Gunn <tgunn@google.com> Handle low battery ImsReason and translate to low battery disconnect cause.

There are two scenarios where we can run into a low battery:
1. onCallTerminated - this would be a mid-call termination.
2. onCallStartFailed - this would be while dialing.

Modified getDisconnectCauseFromReasonInfo to generate the correct
disconnect cause based on whether the call being disconnected is in
progress or dialing.

Test: Manual
Change-Id: If8672f4fb34e63f68868821b1fb203cd2676f78b
Fixes: 63936576
msPhoneCallTracker.java
d16c6156936ceaf024300cad868783ebcc03801f 23-Aug-2017 Hall Liu <hallliu@google.com> Merge "Pin IMS on/off to actual TTY mode" am: df81b1b862 am: c44321470e
am: bfe077337a

Change-Id: I233d187c218634a80a2c5b7dc5e96e695e6cd1dd
586b310594bb58896ce3a6f7eadbffa1d41b9147 18-Aug-2017 Hall Liu <hallliu@google.com> Pin IMS on/off to actual TTY mode

Make changes to only toggle IMS on/off if the actual TTY option
is on (i.e. UI preference is enabled and TTY accessory is plugged in)

Test: manual
Change-Id: I8a96d921aa9d8cddeb1987e6a4c7f7e0d0b87953
Fixes: 63968802
msPhone.java
msPhoneCallTracker.java
106b0beaa63a26a6a5c29eecbbbff3931ab51c13 12-Aug-2017 Tyler Gunn <tgunn@google.com> When IMS connections are merged, track connect time elapsed.

When IMS connections are meged, we need to track the elapsed time as well.
This is used when the actual conference is formed.

Test: Manual, unit test
Bug: 64068300
Change-Id: I2936ed2c65ac14a8807853b21398d08dfef55e69
msPhoneCall.java
959f77a422b23c133225e360e1feebe0433daea9 18-Aug-2017 Hall Liu <hallliu@google.com> Pin IMS on/off to actual TTY mode

Make changes to only toggle IMS on/off if the actual TTY option
is on (i.e. UI preference is enabled and TTY accessory is plugged in)

Test: manual
Change-Id: I8a96d921aa9d8cddeb1987e6a4c7f7e0d0b87953
Fixes: 63968802
msPhone.java
msPhoneCallTracker.java
477c4db10f1a8162354795267ee2d8700eea3138 15-Aug-2017 Brad Ebinger <breadley@google.com> Merge "Update ImsPhone to have default OUT_OF_SERVICE state"
am: 6958edf5f6

Change-Id: If945ff2883fe8c0a14f3022d4968a667180f23d4
6958edf5f6defb173c3c03c0e8619b1a1a4366cb 15-Aug-2017 Brad Ebinger <breadley@google.com> Merge "Update ImsPhone to have default OUT_OF_SERVICE state"
2e4aad90ad05d3d4f3f8699b0032f508ae92225b 15-Aug-2017 Brad Ebinger <breadley@google.com> Merge "Do not set the state to POWER_OFF when in APM for ImsPhone"
am: 63a4e77c5c

Change-Id: I969741e133d3c45fecf9bc716482c9722b7c2142
75417bac9f6996df0c09db72ada7d488576cbc4c 15-Aug-2017 Brad Ebinger <breadley@google.com> Merge "Fix emergency call failure over IMS after boot"
am: ebb95bbe66

Change-Id: I6d03e4441dc020f96915821466233f7cefee1b79
72b6af0b7409bc76c45cb242d147bd1ea46cdf0e 15-Aug-2017 Brad Ebinger <breadley@google.com> resolve merge conflicts of 4e1353794 to stage-aosp-master

Test: Manual
Change-Id: I889e4c607ca09c3149b4ee3741b755dce009b0a3
63a4e77c5c12049ce51e0375f719ad3a1e420f49 14-Aug-2017 Brad Ebinger <breadley@google.com> Merge "Do not set the state to POWER_OFF when in APM for ImsPhone"
ebb95bbe66c796458404473c5d4b44718104e5a8 14-Aug-2017 Brad Ebinger <breadley@google.com> Merge "Fix emergency call failure over IMS after boot"
a2e398fdf1e58a38564059f639dfa22e1da02942 15-Jun-2017 Brad Ebinger <breadley@google.com> Fix emergency call failure over IMS after boot

With some recent changes to the ImsPhone, we now never go into
the STATE_POWER_OFF state. This was how the GsmCdmaPhone used
to verify that the ImsPhone was not ready to make calls, so
it was not falling back to CS in this small space of time
before the ImsService came up and instead failing to make the call.

This change fixes this issue in two ways:
1) Instead of looking for the STATE_POWER_OFF state, it will instead
check to see if the ImsService is up.
2) If the emergency call fails over IMS, then fallback to CS
automatically.

Bug: 62618800
Test: Place emergency call right after boot up
Merged-In: I86057265b04ed2e6857d1f0beaafa21e3f5ea0b7
Change-Id: Ia290681983e995568d01e84fa81d38d4b986d9b0
msPhone.java
msPhoneCallTracker.java
5e234c6717dfdc6172c774c2c7cc4cfbe6c116a6 30-Jun-2017 Brad Ebinger <breadley@google.com> Do not set the state to POWER_OFF when in APM for ImsPhone

There is no need to set the ImsPhone to the state POWER_OFF
when we move into APM, since there is no difference between that
and the OUT_OF_SERVICE state.

Also, removes the POWER_OFF check from the ImsPhoneCallTracker,
as it should only determine whether or not it can dial a call
from the ImsService capabilities at the time of the call.

Bug:62816248
Test: Manual, Test E911 call
Merged-In: Ia4cb40e9d8ddfb9099eae3fbe51a6ad19b521435
Change-Id: I904be6a8e79d40ebf8f8dae81277169ad7dabfcc
msPhoneCallTracker.java
7a7f25cf5b76151261e7c3d535bf1e18b030cb52 07-Jun-2017 Brad Ebinger <breadley@google.com> Update ImsPhone to have default OUT_OF_SERVICE state

ImsPhone only has the voice registration state POWER_OFF when
it is constructed. After it registers with IMS (or fails), it
moves to the STATE_IN_SERVICE and STATE_OUT_OF_SERVICE states.
There is no need to start it in the STATE_POWER_OFF voice
registration state and can instead be constructed in the
STATE_OUT_OF_SERVICE state.

Bug: 62114647
Test: Manual emergency call testing
Merged-In: I1323342c644f195992c89ec9cb1aca437a6ccdcf
Change-Id: I836548a460b6da70be9bf2807e4d791ee7724cc3
msPhone.java
4e13537946d67c65df14771afbffd9832e1493b2 14-Aug-2017 Brad Ebinger <breadley@google.com> Merge "Don't return false if the Phone is GSM for ECBM"
aad0a1adc82fc17fc57bf30af24cdf321a31928d 14-Aug-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Add unit tests for ImsVideoCallProviderWrapper."
103b42ecdefd57022a9627febe3dbca8fbbb8b0a 09-Aug-2017 Tyler Gunn <tgunn@google.com> Ensure call forwarding and barring MMI codes can work over IMS.

The code included a mDialingNumber != null check which would prevent
call forwarding and call barring codes from ever being handled over IMS.
E.g. *30#6505551212 should be handled because it is a valid SC_CLIP
request, but the 6505551212 dialing number would prevent this from going
over IMS.

Test: Dialed MMI code and verified it goes over IMS.
Change-Id: I4bc93085a9c012d80fcce67c65b851995cfe8996
Fixes: 38439766
msPhoneMmiCode.java
4dd930cb512fabe1b716aa12daa9e7d9d56d3c8a 11-May-2017 Tyler Gunn <tgunn@google.com> Add unit tests for ImsVideoCallProviderWrapper.

Specifically adding tests to ensure that the issue described in the bug
is handled correctly.

Test: Manual/unit
Bug: 35304446
Merged-In: I40fb4b7df15c55114bda506442e5efa0aefbd809
Change-Id: I40fb4b7df15c55114bda506442e5efa0aefbd809
msPhoneCallTracker.java
1592d204ba06d7bbd9815618aa2be48cb756bb20 01-Jun-2017 Brad Ebinger <breadley@google.com> Don't return false if the Phone is GSM for ECBM

ECBM can still be triggered on CDMA+LTE voice
RATs when there is no SIM and the phone camps
on a CDMA+LTE network. We should still be able
to get into ECBM in these cases.

This change removes the GSM only check for
isInEcm().

Bug: 62042256
Test: Build and run
Merged-In: I4f023339968631d2a34146f9ff1f5b4a58e1e656
Change-Id: I4f023339968631d2a34146f9ff1f5b4a58e1e656
msPhone.java
0eaa5dec571ea313dc557ae5a11931d51730757e 11-Aug-2017 Brad Ebinger <breadley@google.com> Merge "Initialization causes IMS to deregister"
am: 0624b77b7d

Change-Id: Ic7f457edd81d14bd374567a43b0dd43ffc0f46f7
0624b77b7dc80e546a76f46a02be52fb0a3c03d2 11-Aug-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Initialization causes IMS to deregister"
9e8445a3b6ac430ee830c9485386d1a3a98b86d6 10-Aug-2017 Brad Ebinger <breadley@google.com> Merge "Suppress Registration Errors when WFC disabled"
am: 2b76694afe

Change-Id: Ide063bbf391ad6e11b0da94c4cf856ec3f0f3118
653ebce0bfb3a21ac61631a0b05d25e391c7e5c1 08-Aug-2017 Brad Ebinger <breadley@google.com> Suppress Registration Errors when WFC disabled

There is still the possibility of IMS registration
failing for a time after the user has disabled WFC.
This causes registration error messages
to keep popping up. This change suppresses
those notifications when the WFC setting is off.

Bug: 64412124
Test: Manual
Merged-In: I77d5a15644c3735ca99ef58d6b92f8092807c5fe
Merged-In: I5c0b4531655bed57e5a8efe0ebffe13a027e597f
Change-Id: I5c0b4531655bed57e5a8efe0ebffe13a027e597f
msPhone.java
23e64c1f1182fbbd0f54fd1b3728c0cea8eb2c79 09-Aug-2017 Brad Ebinger <breadley@google.com> Merge "Suppress Registration Errors when WFC disabled" into oc-dr1-dev
am: c30d264d22

Change-Id: Icbe2c5b6763a0cc8d9828c412a43856692d74d4a
1cf1cb90b00104e7572305e1ec10cb7c2aa71465 09-Aug-2017 Brad Ebinger <breadley@google.com> Merge "Suppress Registration Errors when WFC disabled" into oc-dr1-dev
am: c30d264d22

Change-Id: I77d5a15644c3735ca99ef58d6b92f8092807c5fe
c30d264d22409d5bcd42571db89d62e4cfad0a85 09-Aug-2017 Brad Ebinger <breadley@google.com> Merge "Suppress Registration Errors when WFC disabled" into oc-dr1-dev
c78e06031f13627a41d4c2b2618836e8ac99b9ba 08-Aug-2017 Brad Ebinger <breadley@google.com> Suppress Registration Errors when WFC disabled

There is still the possibility of IMS registration
failing for a time after the user has disabled WFC.
This causes registration error messages
to keep popping up. This change suppresses
those notifications when the WFC setting is off.

Bug: 64412124
Test: Manual
Change-Id: I5c0b4531655bed57e5a8efe0ebffe13a027e597f
msPhone.java
e1ed9fa6e6269086362bb24234cb1ea48f68d9be 04-Aug-2017 Pengquan Meng <mpq@google.com> Merge "Notify Ims service state changed" into oc-dr1-dev
am: f97040889a

Change-Id: I0578f06caf841c1e0dab9c51a52f7d881860eafa
e31316655bd628edd6dc11c6e267d3b8772c648b 04-Aug-2017 Pengquan Meng <mpq@google.com> Merge "Notify Ims service state changed" into oc-dr1-dev
am: f97040889a

Change-Id: I0322788d68acaf6a20d65e04693454d32dc49846
f97040889a1f970346a92c6e272ab4a58823287c 04-Aug-2017 Pengquan Meng <mpq@google.com> Merge "Notify Ims service state changed" into oc-dr1-dev
a0042c85fa679389ad11c3a94cb0a166038b8b78 27-Jun-2017 Brad Ebinger <breadley@google.com> Initialization causes IMS to deregister

When the ImsPhone is initialized, it calls
ImsManager#updateImsServiceConfig before the CarrierConfig
has loaded. This causes telephony to signal the radio to
deregister IMS and then register again once the CarrierConfig
is loaded.

This change removes the updateImsServiceConfig calls during
initialization.

Bug: 37763722
Test: Telephony unit tests and analyzing logs
Merged-In: I40cd561055a85a473d1827cef0f8e2e1c6e1a665
Change-Id: I762ba2a23cb0cae88af8256d3903a6852cface68
msPhoneCallTracker.java
ecb8d8e8ff29465c6bc0ede99b540b54a7e5e0e4 02-Aug-2017 Pengquan Meng <mpq@google.com> Notify Ims service state changed

This fixed the server state is not being notified correctly if the
voiceRegState is changed in ImsPhone.

Test: unit test
BUG: 63514380

Change-Id: I072ad0c3c33b64f1d7b028295a474c524e093765
msPhone.java
791ef8a3cfb9737b54741774b1505c84b9854658 03-Aug-2017 Tyler Gunn <tgunn@google.com> Merge "Ignore phone number changes for outgoing calls." into oc-dr1-dev
am: adcd5e5561

Change-Id: I7bfb6e4917e3d2e20fc28a91b41e3149f5263836
302cf59b3457d843e82188784dd00bbea0f2ac27 03-Aug-2017 Tyler Gunn <tgunn@google.com> Merge "Ignore phone number changes for outgoing calls." into oc-dr1-dev
am: adcd5e5561

Change-Id: Ifda47a24937736ac1b78c14d0179146e0d85e247
adcd5e5561c76d6132f09e157c98128287168d73 03-Aug-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Ignore phone number changes for outgoing calls." into oc-dr1-dev
fe215a7ee5ad268048410d545c0436b7d4a6bdd7 01-Aug-2017 Tyler Gunn <tgunn@google.com> Ignore phone number changes for outgoing calls.

Similar to b/63743426 (which was for IMS), ignoring phone number changes
reported by the modem for outgoing calls.

Test: Manual
Change-Id: Id050e9086f17530457f59b64b510116ede866393
Fixes: 64192519
msPhoneConnection.java
20255181921e4dc2721e6f3258b107fdaab96edb 01-Aug-2017 Meng Wang <mewan@google.com> Merge "Show error code in WFC error notification." into oc-dr1-dev
am: 00e96a763f

Change-Id: I846124595cab35869c57cce6ff57d8bca477cc59
6d71be892168ad2e5a5ec56c6155cdae256b1260 01-Aug-2017 Meng Wang <mewan@google.com> Merge "Show error code in WFC error notification." into oc-dr1-dev
am: 00e96a763f

Change-Id: I5d11d16a4192029b2cb602ba6bbdc05f82818a39
67971fefa3ada81facab6924636e7f23ba8e899a 28-Jul-2017 Meng Wang <mewan@google.com> Show error code in WFC error notification.

Bug: 62213418
Test: manual
Change-Id: Idf7766a31c4dca046c2d63e6cb81bcefc77608f9
msPhone.java
ce0b4b2ce4fc7696cdfc957e52edbada276bb105 24-Jul-2017 Tyler Gunn <tgunn@google.com> Ensure mShouldIgnoreVideoStateChanges is set on/off on fake pause/resume.
am: 6dee0e40c7

Change-Id: I930bdf25a77ff2c240181df4b8485acb0534952d
1e7224628e3829c19d6f0b53615f207c7b46d859 24-Jul-2017 Tyler Gunn <tgunn@google.com> Ensure mShouldIgnoreVideoStateChanges is set on/off on fake pause/resume.
am: 6dee0e40c7

Change-Id: I16fff8d4714cc4cae9593e07026ebe30ec1ccdb1
6dee0e40c77ac373820e7e266ff372a481e30bef 24-Jul-2017 Tyler Gunn <tgunn@google.com> Ensure mShouldIgnoreVideoStateChanges is set on/off on fake pause/resume.

This is a fix for a modem bug where video state changes are not relayed
to the framework.
When I made the initial fix to add the changetoPausedState methods,
I thought I'd fixed the bug but it turns out I forget to set the
mShouldIgnoreVideoStateChanges variable. There is a bit of a race
condition when reproducing this bug and I hit the race condition and
erroneously thought I'd solved it.

Test: Manual
Bug: 63153661
Change-Id: I82c9cb7bcf57df8f86964a3bff37469f0b999f1a
msPhoneConnection.java
f73daac840d9d81b962b9cbdbfb91727f0ae2aa9 24-Jul-2017 Tyler Gunn <tgunn@google.com> Merge "Only update address of IMS call for incoming calls." into oc-dr1-dev
am: 2434d43664

Change-Id: I975826a84d2c229ea740ed2bfa66cd2de3b2880a
b926e7ab612411ca074b45e4b5314b148e284a1f 24-Jul-2017 Tyler Gunn <tgunn@google.com> Merge "Only update address of IMS call for incoming calls." into oc-dr1-dev
am: 2434d43664

Change-Id: If7bada0f5abac315da352c0db82561992b7d5250
2434d4366485eda5c93a111d1f7c20241a384c85 24-Jul-2017 Tyler Gunn <tgunn@google.com> Merge "Only update address of IMS call for incoming calls." into oc-dr1-dev
eb7465409290618ca5d7b5f8ba2ffabba2d936d9 19-Jul-2017 Tyler Gunn <tgunn@google.com> Only update address of IMS call for incoming calls.

Although the modem will report address changes for outgoing calls, we will
prevent those changes from being propagated to the UI. Cases such as
calling the user's voicemail will cause the dialed number to change to
the SIP URI of the voicemail server, which is not apppropriate for display
to the user.

Test: Manual
Change-Id: Ief978ee186bb6f9727e82b0c2a550b0d7af4ee28
Fixes: 63743426
msPhoneConnection.java
92f5e2afff7fee0f93580f0ded6bb3111605ad48 22-Jul-2017 Tyler Gunn <tgunn@google.com> Merge "Add workaround for modem issue where pause bit is not set when on hold." into oc-dr1-dev
am: d70fdd534b

Change-Id: I7934754d90e1dec346c31906f3298cd5e666c56b
449bc0b1fdbf55f7dcf8cb945c1edbefb4a4c1e5 22-Jul-2017 Tyler Gunn <tgunn@google.com> Merge "Add workaround for modem issue where pause bit is not set when on hold." into oc-dr1-dev
am: d70fdd534b

Change-Id: I6a5c0e8013ad1bdf89b7cde26535afec7e235b8f
44b58c8044c5fc0b271432429fc97707c4c773e1 22-Jul-2017 Tyler Gunn <tgunn@google.com> Add workaround for modem issue where pause bit is not set when on hold.

When a call is remotely held, the modem is not setting the pause bit on
the video state as it should. This causes a cascading failure where the
user cannot turn the camera on/off (because another video pause hack is
not able to detect that the video is paused and thus activate the hack).

Test: Manual
Change-Id: I2a83b73df5488454b7030d7e4f7c78f360a27eda
Fixes: 63153661
msPhoneCallTracker.java
msPhoneConnection.java
ef6329089cdf952843f507969abf85028e72f193 14-Jul-2017 Naveen Kalla <mrnaveen@google.com> Convert CDMA caller ID codes while roaming on 3GPP networks
am: 3516de95ef

Change-Id: Ia1095ab532b436cc6739381dd81c344cf48c4e82
c68596069aa958f997a320f944b88aa055f1494c 14-Jul-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Convert CDMA caller ID codes while roaming on 3GPP networks"
3516de95ef0ecb54dbd2c7ddbf7c81051ef4044c 11-Jul-2017 Naveen Kalla <mrnaveen@google.com> Convert CDMA caller ID codes while roaming on 3GPP networks

Convert CDMA CLIR MMI codes to 3GPP MMI codes when a CDMA
device is roaming on a 3GPP network. Use a Carrier Config
to control this feature.

Bug: 62933474
Test: Manually tested the following scenarios
1) Device is not roaming on UMTS/IMS. Dialed String was not converted
2) Device was roaming on UMTS/IMS and Carrier Config was not set. Dial
String was not converted.
3) Device was roaming on UMTS/IMS and Carrier Config was set to true.
Dial String with *67 and *82 were converted to their 3GPP
equivalent MMI coded dial strings.

Change-Id: I411cbfea77f0a42a76827b372c2b08fb05975548
Merged-In: I411cbfea77f0a42a76827b372c2b08fb05975548
msPhoneMmiCode.java
e05d915a60c49ba70230a291c1f8c02306a3f626 11-Jul-2017 Naveen Kalla <mrnaveen@google.com> Convert CDMA caller ID codes while roaming on 3GPP networks

Convert CDMA CLIR MMI codes to 3GPP MMI codes when a CDMA
device is roaming on a 3GPP network. Use a Carrier Config
to control this feature.

Bug: 62933474
Test: Manually tested the following scenarios
1) Device is not roaming on UMTS/IMS. Dialed String was not converted
2) Device was roaming on UMTS/IMS and Carrier Config was not set. Dial
String was not converted.
3) Device was roaming on UMTS/IMS and Carrier Config was set to true.
Dial String with *67 and *82 were converted to their 3GPP
equivalent MMI coded dial strings.

Change-Id: I411cbfea77f0a42a76827b372c2b08fb05975548
msPhoneMmiCode.java
a6919d195fc7c32a2059edcc5dc7856481ace039 10-Jul-2017 Pankaj Kanwar <pkanwar@google.com> Merge "IMS-VT: Read the correct carrier config to notify handover from Wifi to Lte" am: 1bc7d8713b am: 05b47b6889
am: 1a47f1c0b2

Change-Id: I09ea70befd786c06d4ba760aa77f88e8647f054c
05b47b6889dec0809e7c803e046580f97f0f7f7c 10-Jul-2017 Pankaj Kanwar <pkanwar@google.com> Merge "IMS-VT: Read the correct carrier config to notify handover from Wifi to Lte"
am: 1bc7d8713b

Change-Id: If3ecbf1c40009852c62a1174fd2694b1be53a781
1b1b34593696f0cb9c9de5bc118c82d501e5ef1e 27-Jan-2017 Nivedita Sarkar <nsarkar@codeaurora.org> IMS-VT: Read the correct carrier config to notify handover from Wifi to Lte

- We are reading the incorrect carrier config flag
"KEY_NOTIFY_VT_HANDOVER_TO_WIFI_FAILURE_BOOL" for showing
the notification when handing over from Wifi to Lte while on
a video call

- Fixed the code to read carrier config flag
"KEY_NOTIFY_HANDOVER_VIDEO_FROM_WIFI_TO_LTE_BOOL" instead
to enable the feature

Bug: 63135908
Test: manual

Change-Id: I645a134c33ccfc4fb61c0754e6e60d0fa295f94f
msPhoneCallTracker.java
d913f668eaaa68716beccc4084417dfc56b7be89 30-Jun-2017 Brad Ebinger <breadley@google.com> Do not set the state to POWER_OFF when in APM for ImsPhone

There is no need to set the ImsPhone to the state POWER_OFF
when we move into APM, since there is no difference between that
and the OUT_OF_SERVICE state.

Also, removes the POWER_OFF check from the ImsPhoneCallTracker,
as it should only determine whether or not it can dial a call
from the ImsService capabilities at the time of the call.

Bug:62816248
Test: Manual, Test E911 call
Change-Id: I904be6a8e79d40ebf8f8dae81277169ad7dabfcc
msPhoneCallTracker.java
13365de15e888db438ff634e9e7102a6e70870f0 28-Jun-2017 Brad Ebinger <breadley@google.com> Merge "Initialization causes IMS to deregister" into oc-dr1-dev
f24d4ef9f3ee9b53119a83954cd03c06528ac484 21-May-2017 pkanwar <pkanwar@google.com> Radio Interface changes to pass the encryption object, including the
key,to the modem.

We will now pass the ImsiEncryptionInfo object which includes mnc/mcc.
BUG: 35606429
Test: manual

Merged-In: I1bcaf7de424ad6143587fa001b9ecb631009c463
Change-Id: I1bcaf7de424ad6143587fa001b9ecb631009c463
msPhoneCommandInterface.java
352a24258c175a1109604b0809b6530620ecae93 27-Jun-2017 Brad Ebinger <breadley@google.com> Initialization causes IMS to deregister

When the ImsPhone is initialized, it calls
ImsManager#updateImsServiceConfig before the CarrierConfig
has loaded. This causes telephony to signal the radio to
deregister IMS and then register again once the CarrierConfig
is loaded.

This change removes the updateImsServiceConfig calls during
initialization.

Bug: 37763722
Test: Telephony unit tests and analyzing logs
Change-Id: I762ba2a23cb0cae88af8256d3903a6852cface68
msPhoneCallTracker.java
a7d94e63d7a3cbea6ed0d62885269e2fade5631a 23-Jun-2017 Tyler Gunn <tgunn@google.com> Merge "Suppress conference initiation when already in the process of merging." into oc-dr1-dev
35efea7fa3771a101fc0fa213a6c3b73937cad70 23-Jun-2017 Meng Wang <mewan@google.com> Merge "Show error code in WFC error messages." into oc-dr1-dev
bc3ef42cb8e1129e19c05799087e3edc6f97ba76 21-Jun-2017 Tyler Gunn <tgunn@google.com> Suppress conference initiation when already in the process of merging.

When a conference merge is already in process, skip initiation of a
conference merge requested by the user. This ensures if the user hammers
on the merge button in the UI or mistakenly double-taps, the modem won't
try to merge multiple times, one which will fail and generate an error
to the user.

Also cleaned up the log messages a wee bit to show the call IDs of the
calls merging.

Test: Manual
Bug: 38151476
Change-Id: I8a7e0d104b10d1d1cfbc6a76d8bf62a0adfa85c5
msPhoneCallTracker.java
44fd6f60bc5aca75938a2c3e725f88b6e897983a 10-Jun-2017 Naveen Kalla <mrnaveen@google.com> Exit Emergency callback mode if modem resets

If the modem resets when the phone is in Emergency
callback mode, exit emergency callback mode.

Bug: 62255356
Test: New unit test "testModemResetInEmergencyCallbackMessages"
in GsmPhoneTest under telephonytests
Change-Id: I3030b59292252e4c0a6c91603f52084cee59d885
msPhone.java
d0ef146182beb5803bb2758be5b0fda38aa9d963 21-Jun-2017 Tyler Gunn <tgunn@google.com> Merge "Inform ImsVideoCallProviderWrapper of video state changes." into oc-dev
am: 1159483294

Change-Id: If92cf5cb7a90b02b5339ca78ab66cd377187cbec
5ae0e757408282ca04882eb3423648ec07b0555b 21-Jun-2017 Tyler Gunn <tgunn@google.com> Merge "Inform ImsVideoCallProviderWrapper of video state changes." into oc-dev
am: 1159483294

Change-Id: I812d1f0136930c7f1b6a07bd28392041dba562c7
115948329431a20e1899f5c26780369519ccb4d5 21-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Inform ImsVideoCallProviderWrapper of video state changes." into oc-dev
da8bd5caa0911b323b960a20d9013664abf93737 21-Jun-2017 Tyler Gunn <tgunn@google.com> Merge "Ensure empty string MMI responses default to "MMI Complete"." into oc-dev
am: d387ead53d

Change-Id: I11af74a875470de0f6b37b3c8fb0b1286c1448dc
1a18fef8597019b1b1f1b93e13e3f618d88898b4 21-Jun-2017 Tyler Gunn <tgunn@google.com> Merge "Ensure empty string MMI responses default to "MMI Complete"." into oc-dev
am: d387ead53d

Change-Id: Iba5af87cd2e89ec8ddb97d064d55bc44a40aba9f
f5bd60e5d8cb7700aced832ee685da8a77044a22 21-Jun-2017 Tyler Gunn <tgunn@google.com> Ensure empty string MMI responses default to "MMI Complete".

The existing code checks for null only, but it looks like the modem or
network can sometimes return empty string when there is not result,
which would cause no "MMI Complete" dialog to show.
Checking for empty string as well will solve this problem.

Test: Regression tested MMI codes.
Bug: 37561464
Change-Id: I09caec7eae944bd3dfe97ac8f89c8a113800de1e
msPhoneMmiCode.java
99ea18f0323a53cacf6824db5ec4dd460f9b3798 21-Jun-2017 Tyler Gunn <tgunn@google.com> Inform ImsVideoCallProviderWrapper of video state changes.

This ensures it will know when the modem un-pauses the video without it
being requested by the UI.

Test: Manual
Bug: 62779713
Bug: 62784036
Change-Id: I15478996e6e14219c84d2ca4bbfbad6f39a8a47c
msPhoneConnection.java
16342962c385b2af6f3eb609d4e02171ef12ffce 21-Jun-2017 Tyler Gunn <tgunn@google.com> Merge "Suppress Connection address changes while merge is in progress." into oc-dr1-dev
0564aa1e24499a49d19fdf27a28fba2b8f960a4b 19-Jun-2017 Meng Wang <mewan@google.com> Show error code in WFC error messages.

Bug: 62213418
Test: manual
Change-Id: Idce869215ba33f039d033fda7dbd5567a4779d24
msPhone.java
286e95aa9cd740c6d8e9fd32aeefeceaf0c81695 16-Jun-2017 Tyler Gunn <tgunn@google.com> Suppress Connection address changes while merge is in progress.

Due to the manner in which conferences are formed, the IMS session
associated with the conference is swapped into the call which initiated
the merge briefly before the conference is added to Telecom and the
session is moved to that conference. The issue is that in some cases
the new conference session will have a conference URI associated with it.
To mitigate this, this change blocks address changes during the merge
process.

Test: Manual
Bug: 62017197
Change-Id: I7e7c21e26380c55a6b4ed34ad50f384be7df9d5f
msPhoneCallTracker.java
msPhoneConnection.java
e0d956e161aa690c7c8c2f0be6a5e7c3f6bcad89 30-May-2017 yinxu <yinxu@google.com> Add the NetworkScanRequestTracker

NetworkScanRequestTracker is part of the new network scan API
implementaion, which stores all the live and pending network scans
and handles the multiplexing of multiple scans.

Test: Telephony sanity tests
Bug: 30954762

Merged-in: I2fd9825f0a5ce3a2fd341cf8d2d9480af81716bd
Change-Id: I2fd9825f0a5ce3a2fd341cf8d2d9480af81716bd
(cherry picked from commit 84de7198887db7ba56c5cfd1d653033e7b4631a9)
msPhoneBase.java
msPhoneCommandInterface.java
2a096a92e18afceaf215ed6460265c3c03b4e706 16-Jun-2017 Brad Ebinger <breadley@google.com> Merge "Fix emergency call failure over IMS after boot" into oc-dr1-dev
37414e6f5ddbbb8468607484d49169ae4d6b2801 15-Jun-2017 Brad Ebinger <breadley@google.com> Fix emergency call failure over IMS after boot

With some recent changes to the ImsPhone, we now never go into
the STATE_POWER_OFF state. This was how the GsmCdmaPhone used
to verify that the ImsPhone was not ready to make calls, so
it was not falling back to CS in this small space of time
before the ImsService came up and instead failing to make the call.

This change fixes this issue in two ways:
1) Instead of looking for the STATE_POWER_OFF state, it will instead
check to see if the ImsService is up.
2) If the emergency call fails over IMS, then fallback to CS
automatically.

Bug: 62618800
Test: Place emergency call right after boot up
Change-Id: Ia290681983e995568d01e84fa81d38d4b986d9b0
msPhone.java
msPhoneCallTracker.java
f7074f882cbc1c5558fc9428780abd14c923032f 14-Jun-2017 Ying Xu <yinxu@google.com> Merge "Add the NetworkScanRequestTracker" am: 9726d3cd2b
am: a62a46aebc

Change-Id: I3fe0c8c0e7196573ebaeee436217ca33ad429106
9726d3cd2b0a47472ef828433d3a26b43f2b6cc4 14-Jun-2017 Ying Xu <yinxu@google.com> Merge "Add the NetworkScanRequestTracker"
ac9051223568f80ad97a10a0a239079071d78d28 13-Jun-2017 Tyler Gunn <tgunn@google.com> Merge "Add test intent for supp service failures." into oc-dr1-dev
8308ef9cac5c594f18a9421a138b86a90b529f0c 13-Jun-2017 Brad Ebinger <breadley@google.com> Merge "Fix issue that cannot accept third incoming IMS call" am: da0d192880
am: dd9a81c15a

Change-Id: Ibc72ee132ea9d3af81ec48e9027ffadc4a72d94f
fff7c4000d72d532b2738def64357455099bfbfd 13-Jun-2017 Pankaj Kanwar <pkanwar@google.com> Merge "Radio Interface changes to pass the encryption object, including the key,to the modem." am: a80b673848
am: 644da68619

Change-Id: Ia73352906c817df3b7fc09d50184e406a3a8e794
84de7198887db7ba56c5cfd1d653033e7b4631a9 30-May-2017 yinxu <yinxu@google.com> Add the NetworkScanRequestTracker

NetworkScanRequestTracker is part of the new network scan API
implementaion, which stores all the live and pending network scans
and handles the multiplexing of multiple scans.

Test: Telephony sanity tests
Bug: 30954762
Change-Id: I2fd9825f0a5ce3a2fd341cf8d2d9480af81716bd
msPhoneBase.java
msPhoneCommandInterface.java
da0d19288082d19b03fa36768a096a4ac257d7ed 13-Jun-2017 Brad Ebinger <breadley@google.com> Merge "Fix issue that cannot accept third incoming IMS call"
05688f497c8dbb6703bacd9fc122eabc4b962197 17-Mar-2017 youhei yamahata <youhei.x.yamahata@sonymobile.com> Fix issue that cannot accept third incoming IMS call

When accepting third incoming IMS call with normal swipe action,
background call is disconnected first and then waiting call is switched
with foreground call - foreground call will be held accordingly.
However, background call is still in disconnecting state when calling
switchWaitingOrHoldingAndActive() and then switchingWithWaitingCall
flag is set to FALSE wrongly. This causes third incoming call cannot
be accepted.
Fix switchingWithWaitingCall to TRUE when background call is not alive.

Test: manual - Receive third incoming IMS call
Bug: 62462843

Change-Id: Iae220579e35b7c6e6333d9dcba7061535da88d19
Merged-In: I763660648d521aa856c252e66db30a32d749a8c7
msPhoneCallTracker.java
9179967a8da4955d6d8c6e2bbc6293d4c451b942 21-May-2017 pkanwar <pkanwar@google.com> Radio Interface changes to pass the encryption object, including the
key,to the modem.

We will now pass the ImsiEncryptionInfo object which includes mnc/mcc.
BUG: 35606429
Test: manual

Change-Id: I1bcaf7de424ad6143587fa001b9ecb631009c463
msPhoneCommandInterface.java
d6cfc77a464b6ef2223dc35cfcf0db72ca8a51db 17-Mar-2017 youhei yamahata <youhei.x.yamahata@sonymobile.com> Fix issue that cannot accept third incoming IMS call

When accepting third incoming IMS call with normal swipe action,
background call is disconnected first and then waiting call is switched
with foreground call - foreground call will be held accordingly.
However, background call is still in disconnecting state when calling
switchWaitingOrHoldingAndActive() and then switchingWithWaitingCall
flag is set to FALSE wrongly. This causes third incoming call cannot
be accepted.
Fix switchingWithWaitingCall to TRUE when background call is not alive.

Test: manual - Receive third incoming IMS call
Bug: 62462843

Change-Id: Iae220579e35b7c6e6333d9dcba7061535da88d19
msPhoneCallTracker.java
06cc9bcfe7f90e03b40c45060ae5727b7a0398fe 10-Jun-2017 Tyler Gunn <tgunn@google.com> Add test intent for supp service failures.

Test: This is a test harness, only a test harness.
Bug: 37952234
Change-Id: Id64670e152b4cbe31eab6c22db464f13713be395
msPhoneBase.java
efa9c3486f43513f61edaadd46b72a479643e9c5 07-Jun-2017 Brad Ebinger <breadley@google.com> Update ImsPhone to have default OUT_OF_SERVICE state

ImsPhone only has the voice registration state POWER_OFF when
it is constructed. After it registers with IMS (or fails), it
moves to the STATE_IN_SERVICE and STATE_OUT_OF_SERVICE states.
There is no need to start it in the STATE_POWER_OFF voice
registration state and can instead be constructed in the
STATE_OUT_OF_SERVICE state.

Bug: 62114647
Test: Manual emergency call testing
Change-Id: I836548a460b6da70be9bf2807e4d791ee7724cc3
msPhone.java
c7b7b38d6dfacd936ed2b7c37d195f5a079c0b2c 03-Jun-2017 Tyler Gunn <tgunn@google.com> Post feature capability changes to handler.
am: 041b6e81c0

Change-Id: I67f9c3d47a18d40a1992ad2bb07d90564b280d68
e5e0e774623b252855ee3eb8889da5c25b0bec4a 03-Jun-2017 Brad Ebinger <breadley@google.com> Merge "Adds ACCESS_CLASS_BLOCKED DisconnectCause" am: 9f1c508070 am: cbf6f8cea8 am: 77d8226e04
am: dc2bdec455

Change-Id: I84e2c583cb2a1822e735c76a4eabee1c653548b2
dc2bdec455e91ad8a95d48cddeca04b6ff2f1d86 03-Jun-2017 Brad Ebinger <breadley@google.com> Merge "Adds ACCESS_CLASS_BLOCKED DisconnectCause" am: 9f1c508070 am: cbf6f8cea8
am: 77d8226e04

Change-Id: I591e7957f451bed4422474c80908f984f2264f2a
041b6e81c00ebc29af3bac1581a0d78d2c8fcf4b 27-May-2017 Tyler Gunn <tgunn@google.com> Post feature capability changes to handler.

Posting feature capability changes to the ImsPhoneCallTracker handler.
This removes potential race conditions when the Ims service posts a lot
of updates at the same time.

Test: Manual
Bug: 62076575
Merged-In: I464e6f16fce8d00925b9f633ddd1f015a183a9fb
Change-Id: I464e6f16fce8d00925b9f633ddd1f015a183a9fb
(cherry picked from commit bba4c2136d2665ca692c9fa9d55ca39b84a6a114)
msPhoneCallTracker.java
4d2b59a18c1f93903fc8bfaeadf922276eec394c 02-Jun-2017 Brad Ebinger <breadley@google.com> Adds ACCESS_CLASS_BLOCKED DisconnectCause

Routes ImsReasonInfo.ACCESS_CLASS_BLOCKED to
DisconnectCause.IMS_ACCESS_BLOCKED.

Bug: 33821263
Test: Build
Change-Id: Id2457e67ee9ae1326b52a9f00b2e97b09365b650
msPhoneCallTracker.java
4588457ea5560407e79994cf2234ed7100641eb8 01-Jun-2017 Brad Ebinger <breadley@google.com> Don't return false if the Phone is GSM for ECBM

ECBM can still be triggered on CDMA+LTE voice
RATs when there is no SIM and the phone camps
on a CDMA+LTE network. We should still be able
to get into ECBM in these cases.

This change removes the GSM only check for
isInEcm().

Bug: 62042256
Test: Build and run
Change-Id: I4f023339968631d2a34146f9ff1f5b4a58e1e656
msPhone.java
2c3cb1b917b6f498f268aa73d96b7b5d5e9fade8 01-Jun-2017 Jack Yu <jackyu@google.com> resolve merge conflicts of 8fd87b204 to oc-dev-plus-aosp

Test: I solemnly swear I didn't test this conflict resolution.
Change-Id: I1876737d4a5df891367b4b0365f922bf93741097
2f14f544d1623c6cb65eb6bc617e182431e4829a 27-May-2017 Jack Yu <jackyu@google.com> Added video calling data usage per-uid support

Now the VT call data usage will be counted under
current dialer's data usage as well as the total
device data usage.

Test: Manual
bug: 37671326

Merged-Id: Ic7a87bf816bb12f1be9d66ee9aafb54174df0235
Change-Id: Ic7a87bf816bb12f1be9d66ee9aafb54174df0235
msPhone.java
msPhoneCallTracker.java
bba4c2136d2665ca692c9fa9d55ca39b84a6a114 27-May-2017 Tyler Gunn <tgunn@google.com> Post feature capability changes to handler.

Posting feature capability changes to the ImsPhoneCallTracker handler.
This removes potential race conditions when the Ims service posts a lot
of updates at the same time.

Test: Manual
Bug: 62076575
Change-Id: I464e6f16fce8d00925b9f633ddd1f015a183a9fb
msPhoneCallTracker.java
0e9e0387678b3d3cd9694f342a8f40eeb7dbbdca 27-May-2017 Jack Yu <jackyu@google.com> Added video calling data usage per-uid support

Now the VT call data usage will be counted under
current dialer's data usage as well as the total
device data usage.

Test: Manual
bug: 37671326

Change-Id: Ic7a87bf816bb12f1be9d66ee9aafb54174df0235
msPhone.java
msPhoneCallTracker.java
be29747ffcf6287336e91f82d0806441bd131145 26-May-2017 Brad Ebinger <breadley@google.com> Merge "Add IMEI_NOT_ACCEPTED error code for IMS" am: 772d7786db am: 5940fa8b82
am: 5f371e7686

Change-Id: Ide8abb2d65b640cf5729b215ec20ce5813843290
772d7786dbe7dc1ce1a92551e38ab2abb9f4c719 26-May-2017 Brad Ebinger <breadley@google.com> Merge "Add IMEI_NOT_ACCEPTED error code for IMS"
ffa5d36d4a39431f2d99feae6ae2b7a4a0348345 25-May-2017 Tyler Gunn <tgunn@google.com> Merge "IMS conference merge improvements." into oc-dev
am: 9f4db346f6

Change-Id: Ie34eb191cbe1450a94dba2d31594fd58bcea2f13
9f4db346f6640922b0ac1186098062d166bf7f0d 25-May-2017 Tyler Gunn <tgunn@google.com> Merge "IMS conference merge improvements." into oc-dev
0fe67798877981da51821c5eb90a759183257a45 24-May-2017 Tyler Gunn <tgunn@google.com> Merge "Add more logging for USSD codes." into oc-dev
am: 7752a99a50

Change-Id: I3d75d4eedc6cf4aaa204b23677ea0bf9155858ae
7752a99a508d07b2163b341aa4d4362b2b5fd62e 24-May-2017 Tyler Gunn <tgunn@google.com> Merge "Add more logging for USSD codes." into oc-dev
52e43154b3422d464a7361c40e15012b843c8fc7 20-May-2017 Tyler Gunn <tgunn@google.com> IMS conference merge improvements.

1. Re-map ended by conference merge to "IMS_MERGED_SUCCESSFULLY".
This later gets translated to Telecom disconnect cause "OTHER".
This is helpful to ensure the InCall UI is able to recognize that a call
ended because of the fact it is joining a conference.
2. Send connection event when starting to merge two calls; this way the
InCall UI can suppress transient states when merging.
Note: I purposely only send "merge complete" when merge fails; that way
when the calls disconnect naturally at the end of the merge, the incall ui
still knows they're in a "merging" state.

Test: Manual
Bug: 37581781
Change-Id: I22abfbae470c7e67b6e6309f58c958820a697609
msPhoneCallTracker.java
5b58978562c11e704b42a745bda55d6319a9b0c8 22-May-2017 Tyler Gunn <tgunn@google.com> Add more logging for USSD codes.

Test: Manual
Bug: 37561464
Change-Id: I8bbb78865b4ca48977cb84a90d88b58920bb5643
msPhone.java
msPhoneMmiCode.java
0980dc008fe80a8b8d4bb71cce8281738bfe5002 18-May-2017 Przemyslaw Szczepaniak <pszczepaniak@google.com> resolve merge conflicts of 5a68f376f to oc-dev-plus-aosp

Test: I solemnly swear I tested this conflict resolution.
Change-Id: I95eb2450bc59eb1a3b95a130a6084b26be2316bd
fe4a960eef43178ab7284e8fd470d83a3b107427 02-May-2017 Jack Yu <jackyu@google.com> Consolidated all data allow/disallow logic into one method

Consolidated all data allow/disallow logic into one method
and got rid of the obsolete isDataPossible. This is the
preliminary work for checking if data is allowed just right
before data connection entering connected state.

Test: Telephony sanity tests and unit tests
bug: 33847610
Merged-In: Ida89d454d984f7f0e4af8b20739dc68c0512e63c
Change-Id: Ida89d454d984f7f0e4af8b20739dc68c0512e63c
msPhoneBase.java
e4242823a0a30d601995ae2c01a391dfcc772b99 17-May-2017 Tyler Gunn <tgunn@google.com> Merge "Add unit tests for ImsVideoCallProviderWrapper." into oc-dev
am: e5dfa472a3

Change-Id: I3066f42420aa14a5721eb9f179fb7f83b40fba51
58ee748aa5c83c2a1ede1ab7c580855c3943b646 17-May-2017 yinxu <yinxu@google.com> resolve merge conflicts of 7ff23212f to oc-dev-plus-aosp

Test: I solemnly swear I tested this conflict resolution.

Merged-in: I71de3f1dc0790ca4b9a2b9a4827637cb337668e2
Change-Id: Ia6614337fc1d0db3981bdc0e57bd374a4144068c
f90dc6160becbfee66c01439253811e13fdb7f63 17-May-2017 Ying Xu <yinxu@google.com> Merge "Add the new RIL requests to start/stop network scan"
3a7a35d653db1251111afe4db7c658e92a2f8dff 16-May-2017 Tyler Gunn <tgunn@google.com> Merge "Filter invalid handover requests." am: f30e41f366 am: b3e1336a17
am: 432dbfd2a4

Change-Id: I10d69826b69baebd755a5408424f827e73a8f995
f30e41f366ec6bbe955941385728173448f38fe3 16-May-2017 Tyler Gunn <tgunn@google.com> Merge "Filter invalid handover requests."
c8c651f856047c6c761de788a14097600701cdab 21-Apr-2017 yinxu <yinxu@google.com> Add the new RIL requests to start/stop network scan

This CL defines the RIL API which will be used to start and stop the
network scan. The long-term goal is to support Subsecond Switching which
is separate from what this CL is doing.

Test: Telephony sanity tests
Bug: 30954762
Change-Id: I71de3f1dc0790ca4b9a2b9a4827637cb337668e2
(cherry picked from commit ffcdbea80c50d4911d52f61611722e446af72b66)
msPhoneBase.java
msPhoneCommandInterface.java
f7cab9f4e8b612a0c2cea8f41261cb89147be6dd 16-May-2017 Grace Chen <chengrace@google.com> Merge "Support different SIM power states" am: f7ea390cc0 am: 69ee7f4e68
am: bcc9dc404a

Change-Id: I7c9ba95018674d97fd22c0998ea72298c219d993
19f7a93c6dc642457ae1c2ce4eab10a7abf97755 16-May-2017 Tyler Gunn <tgunn@google.com> Filter invalid handover requests.

Prevent sending connection events when the handover to/from states
an unknown radio technology.

Test: Manual
Bug: 37720358
Change-Id: I23a1fab1a1c3b9624bbae30d094567e6879ab212
msPhoneCallTracker.java
2d4f7c72eb95807a2235068dde9c4c98cda2f626 24-Mar-2017 Grace Chen <chengrace@google.com> Support different SIM power states

Test: Verify SIM power states
Bug: 35844036
Merged-In: I0d7b73d25f987f556d134d22cebe8c322acb1cc3
Change-Id: I0d7b73d25f987f556d134d22cebe8c322acb1cc3
msPhoneCommandInterface.java
8784f4e7ae91379d235ed65939b4101af3ca8213 11-May-2017 Tyler Gunn <tgunn@google.com> Add unit tests for ImsVideoCallProviderWrapper.

Specifically adding tests to ensure that the issue described in the bug
is handled correctly.

Test: Manual/unit
Bug: 35304446
Change-Id: I40fb4b7df15c55114bda506442e5efa0aefbd809
msPhoneCallTracker.java
3ab46f26e923a90fcbf4f8cfc18f265d286e0b1c 13-May-2017 Jayachandran Chinnakkannu <jayachandranc@google.com> Merge "Map CODE_LOCAL_ENDED_BY_CONFERENCE_MERGE to NORMAL disconnect cause" into oc-dev
am: ef2b6345c1

Change-Id: I36e2e227c13f2a92cdd082c054eabc91b619eb7c
ef2b6345c1b136e4b24e8df23049a48f7e5dd12b 13-May-2017 Jayachandran Chinnakkannu <jayachandranc@google.com> Merge "Map CODE_LOCAL_ENDED_BY_CONFERENCE_MERGE to NORMAL disconnect cause" into oc-dev
4d121fe85c9f2b7eaeeb008578fd2ff7b7c4f486 12-May-2017 Brad Ebinger <breadley@google.com> Merge "Reset IMS Capabilities when IMS disconnects" into oc-dev
am: 2137cf9d5a

Change-Id: I1062d0dacf96a6689ab1e6e24a0339aff4fbf875
faf4f5ac3c93bbe552ca4b3a3384a1df7ce8a4db 15-Mar-2017 Toshiya Ikenaga <toshiya.ikenaga@sonymobile.com> Add IMEI_NOT_ACCEPTED error code for IMS

Bug: 38256949
Change-Id: Ib14bd9f3e6b26db7c27170c56ec65e96c18abd67
msPhoneCallTracker.java
d6adcf507cdd3e10fab019c9848733d006287e83 11-May-2017 Jayachandran C <jayachandranc@google.com> Map CODE_LOCAL_ENDED_BY_CONFERENCE_MERGE to NORMAL disconnect cause

This change also optimizes imports

Test: Following scenarios for VoLTE and CS call and
verified the cause sent in PreciseCallState.

1) Conference call merge
2) Conference call, one remote party ends the call
3) Conference call, all remote parties end the call
4) Conference call, hangup locally
5) Normal call and hangup locally
6) Normal call and remote party ends the call

Bug: 38225047
Change-Id: I7ea843683eebfa2e60683ddffd11995b426f0a12
msPhoneCallTracker.java
21174cff5010593d3108c7bdfa31d7b657008ad0 11-May-2017 Brad Ebinger <breadley@google.com> Reset IMS Capabilities when IMS disconnects

When IMS deregisters, reset the IMS capabilities
to false so we do not accidently return the wrong
result for TelephonyManager.isVolteAvailable()
if the ImsService does not set the capabilities to
false before deregistering.

Test: Telephony Unit Tests
Bug: 36374918
Change-Id: I42b066f8a97770f23d71a0c646f384f7cbfdb57b
msPhoneCallTracker.java
007c1c44ff4691b7788a024aa6e536b50234da6f 09-May-2017 Hall Liu <hallliu@google.com> Merge "Synchronize on mImsPhone to avoid NPE" into oc-dev
am: d19f1391f9

Change-Id: I1b085c351a1b3adb3b82cb57804f0963750b3646
d19f1391f9ed5fb3275d5449ec2d252e745f3866 09-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Synchronize on mImsPhone to avoid NPE" into oc-dev
34310e958f52099ce3a2e74a8e3c4f631a241529 06-May-2017 Hall Liu <hallliu@google.com> Synchronize on mImsPhone to avoid NPE

During a disconnect, the binder thread from the IMS stack may set
mImsCall to null simulataneously with the main thread calling methods on
mImsCall after a null check. Adding synchronization to prevent an NPE.

Change-Id: Id7874e802d56ab7d3912c779dedd1cccdb923db6
Test: no deadlocks while calling
Fixes: 37945103
msPhoneConnection.java
4a7b8ec0502a63fb67d7b4749b1ea96288f9baa6 06-May-2017 Hall Liu <hallliu@google.com> Synchronize on mImsPhone to avoid NPE

During a disconnect, the binder thread from the IMS stack may set
mImsCall to null simulataneously with the main thread calling methods on
mImsCall after a null check. Adding synchronization to prevent an NPE.

Change-Id: Id7874e802d56ab7d3912c779dedd1cccdb923db6
Fixes: 37945103
msPhoneConnection.java
3fda16e695a7e9d42bbbe8a437fe8442d618e2a6 04-May-2017 Brad Ebinger <breadley@google.com> Merge "Better handle MSIM DDS changed event" into oc-dev
ec581c0b21b5da662b9fe60a8212a66196a9f05c 18-Apr-2017 Brad Ebinger <breadley@google.com> Better handle MSIM DDS changed event

On DSDS MSIM devices, when Default Data Subscription event
is received, the ImsService may choose to switch which
Slot ID is active.

This change better handles that switch and removes a
crash that was happening due to
ImsServiceProxy#getFeatureStatus getting called
circularly.

Bug: 37361882
Test: Run Telephony unit test
Merged-In: If0f2e3c90de378421bc17d029bf1e6a3ced6bb34
Merged-In: I2cfef49f833e330289f172bae7e422f5afa5fc40
Change-Id: If61332d8c2d4dacb96d27d706abac6afc612749b
msPhone.java
msPhoneCallTracker.java
cf1cdf3dbf9b4ac7743fe1580de1e05098539256 04-May-2017 Tyler Gunn <tgunn@google.com> Merge "Fix issues with MMI/USSD codes." into oc-dev
am: cc051eeaf0

Change-Id: I0b26448d3ff79c8ae6e5f6d6fd175a4bc30185b5
cc051eeaf0796ce87e5dde90756bce1629eda5a5 04-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix issues with MMI/USSD codes." into oc-dev
fe19b40a852817a184130c09b0fd9b3652c83bea 03-May-2017 Chen Xu <fionaxu@google.com> Merge "support locale change for notification channels" into oc-dev
am: f3f52f5cd1

Change-Id: I06a3f5dc5b7adf3cba186e80a77e7c1d24bdedaa
7c29cabeb38ae8cb4f5764c2dc0a768de22d2f92 02-May-2017 fionaxu <fionaxu@google.com> support locale change for notification channels

- create all notification channels when phone process started to provide
an consistent UX experience
- support locale changes

Test: Manual test with different languages
Bug: 37911731
Change-Id: Ib2d2bb27d307a3570923ca176f7d02f0c1985a43
msPhone.java
feefaf43d83ee53c9f9798206a387448f233f7a9 26-Apr-2017 Tyler Gunn <tgunn@google.com> Fix issues with MMI/USSD codes.

There a few issues here:
1. The queuing of MMI codes for handUssdRequest was not working properly.
I have removed it in favor of returning an error if there is an ongoing
MMI code. The functionality was pretty broken and despite my efforts I
could not sort all of it out well enough to be confident that it could be
fixed.
2. There was no attempt to retry handleUssdRequest calls on IMS.
3. There was a missing fallback to CS for regular MMI requests.

Test: Manual
Bug: 37484804
Merged-In: I8b2ed5ed9c29cdf95532096d60487656946b4cc0
Change-Id: I8b2ed5ed9c29cdf95532096d60487656946b4cc0
(cherry picked from commit 3aa9ed7d17a6b8401d71d9e09dce873038ec6b28)
msPhone.java
msPhoneMmiCode.java
3af7e4423bbb56fba5b468e5952f699b1d214d10 27-Apr-2017 pkanwar <pkanwar@google.com> resolve merge conflicts of f4c4446e3 to oc-dev-plus-aosp

Change-Id: I7fd44d7bf106331a2a79a1ac4a2718c85abcdb73
Test: manual
BUG: 35606429
4a6d165ee43bdc59858b08f24ab303c5f73a81e4 27-Apr-2017 Pankaj Kanwar <pkanwar@google.com> Merge "Radio Interface changes to allow the modem to query the framework for the key."
8715dba91d55cb76ed8406305fca56df0f4f5f5a 27-Apr-2017 Brad Ebinger <breadley@google.com> Merge "Better handle MSIM DDS changed event" am: 651b458247 am: 938f7da814
am: 2671fd3818

Change-Id: I2cfef49f833e330289f172bae7e422f5afa5fc40
3dd2f4b1d5d89bb2e785df8e6ede6bf25937b0bd 16-Mar-2017 pkanwar <pkanwar@google.com> Radio Interface changes to allow the modem to query the framework
for the key.

This CL adds the 1.1 version of the HAL interface. It also introduces
support for 2 new messags:

1. setCarrierInfoForImsiEncryption
2. carrierInfoForImsiEncryption

BUG: 35606429
Change-Id: I312ec08ffd1ff84ab5bb53047862f74eb95be470
Test: manual
Merged-In: Id76b9c21df88c3dc8b201c6400e999688d5bdc3e
msPhoneCommandInterface.java
a7303009889a91178203a07e27a82d56630a3ed3 27-Apr-2017 Julia Reynolds <juliacr@google.com> Merge "Notification method renames." into oc-dev
am: 2b6ca68c33

Change-Id: I8620e625bfca578abc5684d74d0a7e964075331a
5de5ed316baf3ff3d7d58ac8c6d882fe1949d426 18-Apr-2017 Brad Ebinger <breadley@google.com> Better handle MSIM DDS changed event

On DSDS MSIM devices, when Default Data Subscription event
is received, the ImsService may choose to switch which
Slot ID is active.

This change better handles that switch and removes a
crash that was happening due to
ImsServiceProxy#getFeatureStatus getting called
circularly.

Bug: 37361882
Test: Run Telephony unit test
Change-Id: If61332d8c2d4dacb96d27d706abac6afc612749b
msPhone.java
msPhoneCallTracker.java
e61d1f807a6503bee79cf83379efdd804a26c194 25-Apr-2017 Julia Reynolds <juliacr@google.com> Notification method renames.

Test: make
Bug: 37672218
Change-Id: I35abef5f015454c553fd0e06eaa221bb76ce41e7
msPhone.java
ccccc1d2a5733d3cd295c8112d34a8d9dbbf38d9 25-Apr-2017 Hall Liu <hallliu@google.com> Merge "Pipe through RTT signaling to IMS" am: 8ba24b2509 am: 38c7e5f08e
am: e8d752ef61

Change-Id: I3bedff2865073e344107f691ce949e0a9523beea
8ba24b2509eb393450d028de786724b81903949b 25-Apr-2017 Hall Liu <hallliu@google.com> Merge "Pipe through RTT signaling to IMS"
7f121b4aa6286f3a413ef68097912fb4b5e3641d 15-Oct-2016 pkanwar <pkanwar@google.com> Provide an API to make USSD calls and read the responses.

Test: will be added in a subsequent CL.
Bug: 30973910
Change-Id: I0d826eaadd1bd5a0c23cfad651c0423f7b7cc5f6
Merged-In: I0d826eaadd1bd5a0c23cfad651c0423f7b7cc5f6
msPhone.java
msPhoneMmiCode.java
d073e9341e903a4bdcac59e0c8b3ab5f517c992c 21-Apr-2017 Chen Xu <fionaxu@google.com> Merge "telephony service support notification channel" into oc-dev
am: 720a8cd3b0

Change-Id: I5cd818eb50a28dbe16a5f43a0f4ca5660a2ecfef
720a8cd3b063ddc255480f9c716b15dabeafbda5 21-Apr-2017 Chen Xu <fionaxu@google.com> Merge "telephony service support notification channel" into oc-dev
13ff522d752715d856bd4068d39a769cd0d54a24 20-Apr-2017 fionaxu <fionaxu@google.com> telephony service support notification channel

Bug: 37475310
Test: Manual Test
Change-Id: Idb7697337dfd02a2fbb0ff7f3b1a3f69582c7f2e
msPhone.java
fa88fc1de20ddb819975d78c98e4c0d6b27e225a 22-Mar-2017 Hall Liu <hallliu@google.com> Pipe through RTT signaling to IMS

Add plumbing to transmit RTT signaling to the IMS layer. Also add a
thread for reading/writing to the RttTextStream for communication
with the in-call app. Also implement batching and throttling to
ensure proper text throughput rates.

Bug: 34203619
Test: unit tests added
Change-Id: Icbc05130778449a3447bbad19ad0a3ebb6389a53
msPhoneCallTracker.java
msPhoneConnection.java
msRttTextHandler.java
468e5725d5fcc44672c074e166e8ce05e8e9a151 13-Apr-2017 Shuo Qian <shuoq@google.com> ECBM SystemProperty cleanup

- add a 'set' method in phone.java, and use it to set ECBM system property
and mIsPhoneInEcmState variable
- use isInEcm() method in the phone.java to read mIsPhoneInEcmState

Change-Id: Ie3882d1e9285904a17def68993987ae0549941a7
Test: manual
Bug: 30361624
msPhone.java
msPhoneCallTracker.java
c66107288cf6ab415f242b51664644934c7e9c24 12-Apr-2017 Shuo Qian <shuoq@google.com> Merge "ECBM SystemProperty cleanup" am: 36c8c93def am: fc753c9958
am: 3ede2787fc

Change-Id: Ie8122c3deb2a3c879a659a8ebc14949f8fcc996c
36c8c93defe2ac3a3ccb329a8c8b1e5de0e9bce3 12-Apr-2017 Shuo Qian <shuoq@google.com> Merge "ECBM SystemProperty cleanup"
c6676c9a97efb78950c8f71ca7330d0bb4b24efd 03-Dec-2015 Ajay Nambi <anambi@codeaurora.org> Add p2 option in OpenLogicalChannel

- Adding support for P2 parameter
- Needed to support OMAPI 3.0 defined
by SIM Alliance

Test: Basic telephony sanity
Bug: 27360148
Change-Id: I51ab0821f84dca8fff90c912ebbfc9f1129dcbe5
msPhoneCommandInterface.java
77d3034a4b7d5bb2ab2a5fd5b3e1722bf9009374 13-Jan-2017 shuoq <shuoq@google.com> ECBM SystemProperty cleanup

- add a 'set' method in phone.java, and use it to set ECBM system property
and mIsPhoneInEcmState variable
- use isInEcm() method in the phone.java to read mIsPhoneInEcmState

Test: manual
Bug: 30361624
Change-Id: Ib073915ea87ec2245ea568a6635f78be3141c226
msPhone.java
msPhoneCallTracker.java
f08f17c461c97ca1a35396de604f8e3217e43c35 11-Apr-2017 Amit Mahajan <amitmahajan@google.com> Merge "Add p2 option in OpenLogicalChannel" am: f2f9ab98b5 am: d9a5a3043f
am: 324cc64040

Change-Id: I0e57976887f3eab6fc2d6dbd1311c6bb5eee58c8
f2f9ab98b535c1f267a152660e29dc37c7948d5f 11-Apr-2017 Amit Mahajan <amitmahajan@google.com> Merge "Add p2 option in OpenLogicalChannel"
10d75a759b897da1077e3aa21ced4c46698c5552 03-Dec-2015 Ajay Nambi <anambi@codeaurora.org> Add p2 option in OpenLogicalChannel

- Adding support for P2 parameter
- Needed to support OMAPI 3.0 defined
by SIM Alliance

Bug: 27360148
Change-Id: I51ab0821f84dca8fff90c912ebbfc9f1129dcbe5
msPhoneCommandInterface.java
96afde9f7d9f6c6f6fbc10215309963af30b1b42 30-Mar-2017 Tyler Gunn <tgunn@google.com> Correct NPE when active call is disconnected.

Its possible for an active call to be disconnected, in which case it has
no ImsCall. This causes a NPE in the "shouldDisconnect..." logic.

Test: Manual
Bug: 36777742
Merged-In: I4b4a3564143c60df811ba9f6040ca073e49f7487
Change-Id: I00cba85d426aedbbb46251528953b314f4f5dc35
msPhoneCallTracker.java
69970f6330fa2765393a12a034c6f297d3d63023 30-Mar-2017 Tyler Gunn <tgunn@google.com> Merge "Correct NPE when active call is disconnected." am: 209afa9d10 am: a68ef155d6
am: 350d36d05c

Change-Id: I72f8edaff9070a127ed2786c56c4846d80322c4a
a68ef155d644c91e80b12a6ba4b91ea92d0b993e 30-Mar-2017 Tyler Gunn <tgunn@google.com> Merge "Correct NPE when active call is disconnected."
am: 209afa9d10

Change-Id: I5885d8d1aef37869a762626bfe8faab9b40ae956
209afa9d10d741fc68de7075ebc94c869b003d74 30-Mar-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Correct NPE when active call is disconnected."
ab6002ccd4f0b15e6d1b747f0c3273722664414a 30-Mar-2017 Tyler Gunn <tgunn@google.com> Correct NPE when active call is disconnected.

Its possible for an active call to be disconnected, in which case it has
no ImsCall. This causes a NPE in the "shouldDisconnect..." logic.

Test: Manual
Bug: 36777742
Change-Id: I00cba85d426aedbbb46251528953b314f4f5dc35
msPhoneCallTracker.java
aa1736ba9cdaa721d1881e6faf5c4209efeeaa6d 28-Mar-2017 Brad Ebinger <breadley@google.com> Merge "Include subaddress information for connection address" am: 005d0cc72f am: edd41a1d62
am: f74abbd51e

Change-Id: I38a6991e6d19956e5b8a1c636565ec2cc75efbf1
edd41a1d624d30e23aad6f9a2f60dc1f137f5af1 28-Mar-2017 Brad Ebinger <breadley@google.com> Merge "Include subaddress information for connection address"
am: 005d0cc72f

Change-Id: I79a4626cea57291bf18ee4e7058aeab9807e8d16
005d0cc72ff800bc3ea66bf97b0c95acc0322e70 28-Mar-2017 Brad Ebinger <breadley@google.com> Merge "Include subaddress information for connection address"
74c8509aede6fe748904e75c156049b4f1ba5e28 17-May-2016 Hanada Masafumi <masafumi.x.hanada@sonymobile.com> Include subaddress information for connection address

In case of outgoing call with subaddress, subaddress information is
neither displayed in InCallUI nor stored in call log. This modifies
to include subaddress information in those cases.

- Override getOrigDialString to get number which can include subaddress

Bug: 29087454
Change-Id: I45884d98a3832542a6991df13de74b80c5806bd6
msPhoneConnection.java
50a1a2054c4e2dd1c6e0793f3eb05e705ed90d01 28-Mar-2017 Brad Ebinger <breadley@google.com> Merge "Null check IMS calls in shouldDisconnectActiveCallOnAnswer" am: b40f09bceb am: 84835fe2d6
am: 431f50d7e0

Change-Id: Id8db8b06e41d7d2de0329ebd3ea473e56fce8b01
84835fe2d63f03997011ed6f3cddda691971fc3d 28-Mar-2017 Brad Ebinger <breadley@google.com> Merge "Null check IMS calls in shouldDisconnectActiveCallOnAnswer"
am: b40f09bceb

Change-Id: I72faeab21453a11a3c2a6ef8096aebd3b9814e44
b40f09bceb76d597ba7d189538a6c078e5af9477 28-Mar-2017 Brad Ebinger <breadley@google.com> Merge "Null check IMS calls in shouldDisconnectActiveCallOnAnswer"
26d16a3dd393152416682a04d3bd5d6013f28240 24-Mar-2017 Amit Mahajan <amitmahajan@google.com> resolve merge conflicts of 3ed74f4b6 to stage-aosp-master

Test: I solemnly swear I tested this conflict resolution.
Change-Id: Id6c90fa0f3b8821ac3e786ebc22e7aa5ac22cfad
3ed74f4b66af45c2529600833815cc19892950f2 24-Mar-2017 Amit Mahajan <amitmahajan@google.com> Merge "Unit test fixes. Most failures were due to new mockito."
bd57f801aaa65822f3d8e3dce38a71b989d80763 23-Mar-2017 Brad Ebinger <breadley@google.com> Merge "Revert "Speculative DISCONNECTING fix for ImsPhoneCallTracker"" am: 0a72d2beed am: ab44afee43
am: 9dea9c86d0

Change-Id: I5f9f13c959b2f868e8feb5e55871edaae54fa984
ab44afee431edea51e30394c6273c0f6be969974 23-Mar-2017 Brad Ebinger <breadley@google.com> Merge "Revert "Speculative DISCONNECTING fix for ImsPhoneCallTracker""
am: 0a72d2beed

Change-Id: I954b95b8eb08e9696300020ab551940a87c384b1
50a6eae6fb10462b1edb12cc30cb9701ca18a212 23-Mar-2017 Brad Ebinger <breadley@google.com> Null check IMS calls in shouldDisconnectActiveCallOnAnswer

Adds a check to shouldDisconnectActiveCallOnAnswer to
ensure that the active IMS call and incoming IMS call
are non-null. This can happen in cases when the
ImsPhoneCallTracker moves into a bad state.

Bug: 36273870
Test: Telephony Unit Tests
Change-Id: Ia31bb8cc6e425b63f836e8244bb3919d10c50731
msPhoneCallTracker.java
4f47ce14d99a68077f3570a7f3304be50a4a10a7 23-Mar-2017 Brad Ebinger <breadley@google.com> Revert "Speculative DISCONNECTING fix for ImsPhoneCallTracker"

This reverts commit 9f13848d600c0782a5bcb3b1d2d7dca5dca35005.

Looks to be causing issues where ImsPhoneCallTracker
state is out of sync with ImsService

Bug: 36273870
Change-Id: Id3cfbdc007c561f886adffd16def76dac553ac27
msPhoneCallTracker.java
msPhoneConnection.java
b1fdcf01045090315c5b91d7539007d79f34c9ec 21-Mar-2017 Amit Mahajan <amitmahajan@google.com> Unit test fixes. Most failures were due to new mockito.

Test: runtest --path frameworks/opt/telephony/tests/telephonytests/
Bug: 29579544
Change-Id: Ic228cd7dfc4d8913411a459520d7b7bf71a66d98
msPhoneConnection.java
37800d3cdb300fca83462d95221a05bbef21a951 21-Mar-2017 Amit Mahajan <amitmahajan@google.com> Unit test fixes. Most failures were due to new mockito.

Test: runtest --path frameworks/opt/telephony/tests/telephonytests/
Bug: 29579544
Merged-in: Ic228cd7dfc4d8913411a459520d7b7bf71a66d98
Change-Id: Ic228cd7dfc4d8913411a459520d7b7bf71a66d98
msPhoneConnection.java
3ef828485c160fd7e82b82869e0ebcb802cdcf23 17-Mar-2017 Jayachandran Chinnakkannu <jayachandranc@google.com> Merge "Pass cause and precise call fail causes for IMS calls" am: 93fc20f26f am: 639962772f
am: 67aad17aa0

Change-Id: Ied70bdb4e757bd7e22c38b98bc7711fe513a34ba
639962772f21769143e606bf60a38ceae545c13b 17-Mar-2017 Jayachandran Chinnakkannu <jayachandranc@google.com> Merge "Pass cause and precise call fail causes for IMS calls"
am: 93fc20f26f

Change-Id: I7441017dda3232db9f6633ce7a21bba5ded9a53e
93fc20f26f57b3c7dae541125a2ddebdce80dea4 17-Mar-2017 Jayachandran Chinnakkannu <jayachandranc@google.com> Merge "Pass cause and precise call fail causes for IMS calls"
222bd9d64068a23f5470561655ca4dbd2359eece 12-Mar-2017 Jayachandran C <jayachandranc@google.com> Pass cause and precise call fail causes for IMS calls

Bug: 35609963
Change-Id: I7955a246b89e8dfd8a4b21ab9c8c4203b569c0a4
msPhoneBase.java
msPhoneCallTracker.java
msPhoneConnection.java
ca9f50fa11f1f911b2911eb7cae7d7232fc31b8e 16-Mar-2017 Brad Ebinger <breadley@google.com> resolve merge conflicts of 6b0d9a09f to stage-aosp-master am: a2793ccd4f
am: fd9bb1fd3e

Change-Id: I8ae467f9ad2a405632ddc6d06db9f96c5b7d454b
a2793ccd4f2256ee6ee7a6c90381f5666a0b9538 16-Mar-2017 Brad Ebinger <breadley@google.com> resolve merge conflicts of 6b0d9a09f to stage-aosp-master

Change-Id: Ic406e5468690f8a6e771a77c921dd49718f76b21
782c44d28a8944478b6906aa5c86a14ffd0e63db 15-Nov-2016 Jack Yu <jackyu@google.com> Added configuration for VT downgrade/tear down when data disabled

Added a new flag that allows carriers to ignore data disabled
(e.g. data reaches limit or user disables data) so VT calls
will not be downgraded/torn down and VT service will not be
disabled.

bug: 32880745
Merged-In: I977f1aa511c59f32446b4a76de3c6da54500adc1
Change-Id: I977f1aa511c59f32446b4a76de3c6da54500adc1
msPhoneCallTracker.java
6a9915465544d6a4ccbd9fcae3c0049c1d176a02 02-Mar-2017 Jack Yu <jackyu@google.com> Merge "Added device state monitor"
am: 442a1aa29c

Change-Id: Ib89768a88380cfc4d33bbaa81acdea509e647f2a
50b941e59787a21dd2d4f3d25d700538efb9abc5 18-Feb-2017 Jack Yu <jackyu@google.com> Added device state monitor

Added DeviceStateMonitor to replace the legacy screen state RIL
API. Instead of sending the screen state to the modem, the new
device state monitor can explicitly turn on/off the unsolicited
response from the modem based on difference scenarios (e.g.
tethering, charging, screen state). It also sends more device
state to the modem including charging state, power saving state,
and low data expected state.

Note that in order to support the old vendor RIL, framework will
still invoke the legacy screen state API to ensure the best
user experience on those devices.

Test: Manual. Unit tests.
bug: 32223897, 20125037, 28294587

Merged-In: I76ce307bde1d3160af2ac44a57f101e4cafc7ae4
Change-Id: I76ce307bde1d3160af2ac44a57f101e4cafc7ae4
msPhoneCommandInterface.java
baecdb610b30a5d4b35345f8fc63fcbc2133c149 18-Feb-2017 Jack Yu <jackyu@google.com> Added device state monitor

Added DeviceStateMonitor to replace the legacy screen state RIL
API. Instead of sending the screen state to the modem, the new
device state monitor can explicitly turn on/off the unsolicited
response from the modem based on difference scenarios (e.g.
tethering, charging, screen state). It also sends more device
state to the modem including charging state, power saving state,
and low data expected state.

Note that in order to support the old vendor RIL, framework will
still invoke the legacy screen state API to ensure the best
user experience on those devices.

Test: Manual. Unit tests.
bug: 32223897, 20125037, 28294587
Change-Id: I76ce307bde1d3160af2ac44a57f101e4cafc7ae4
msPhoneCommandInterface.java
c8a47f0c3169a5d2e274603f67bd643233ba5692 28-Feb-2017 Jack Yu <jackyu@google.com> resolve merge conflicts of d565da4e5 to stage-aosp-master

Test: Telephony sanity tests
Change-Id: I677bdc469d4440a68e9b51ab2329c6606cdb206f
caecd75617c11d33e000c4d90f8a6557c5b2de7e 13-Feb-2017 Jack Yu <jackyu@google.com> Data call refactoring and hidlization

Support the new HIDL interface for data call APIs.
The affacted APIs are RIL_REQUEST_SETUP_DATA_CALL,
RIL_REQUEST_SET_DATA_PROFILE, RIL_REQUEST_SET_INITIAL_ATTACH_APN
More parameters are passing down to the modem to address
some issues we had earlier.

bug: 32224135, 30173958, 33561503, 30282096, 32020264
Test: Telephony sanity tests, unit tests

Merged-In: I239baa144bcee413f67e77c6b79b4ae5278077e8
Change-Id: I239baa144bcee413f67e77c6b79b4ae5278077e8
msPhoneCommandInterface.java
8e9d1e601dce62cd0328701d7054e03db24727c7 13-Feb-2017 Jack Yu <jackyu@google.com> Data call refactoring and hidlization

Support the new HIDL interface for data call APIs.
The affacted APIs are RIL_REQUEST_SETUP_DATA_CALL,
RIL_REQUEST_SET_DATA_PROFILE, RIL_REQUEST_SET_INITIAL_ATTACH_APN
More parameters are passing down to the modem to address some
issues we had earlier.

bug: 32224135, 30173958, 33561503, 30282096, 32020264
Test: Telephony sanity tests, unit tests

Change-Id: I239baa144bcee413f67e77c6b79b4ae5278077e8
msPhoneCommandInterface.java
3f2266930ede30ac5ec7aeef531a28a82e88ef5f 22-Feb-2017 Jack Yu <jackyu@google.com> Merge "Added telephony manager set sim power state API"
am: 0f6e1a01fd

Change-Id: I589b24d3dc62581d375db74c245e0e62bf83b2b3
0f6e1a01fd14a00baafc0bab4af5dfc3ade9ddbf 22-Feb-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Added telephony manager set sim power state API"
80c5e9ebdd895a58b045f8782a1738de9542ec94 22-Feb-2017 Jack Yu <jackyu@google.com> Merge "Added telephony manager set sim power state API"
750cea57d86fe5f7eac0dd04f95c255c4eb3dba2 21-Feb-2017 Brad Ebinger <breadley@google.com> Merge "Remove Session ID from ImsService APIs that are not used" am: 3fe31f7fe8 am: 14b00f95e2
am: 94f2eb99a6

Change-Id: If008f945c9d78485a872390a4bd75f1c24e8bfa0
14b00f95e21a7cab72bfa18d9ef906a287bf6de2 21-Feb-2017 Brad Ebinger <breadley@google.com> Merge "Remove Session ID from ImsService APIs that are not used"
am: 3fe31f7fe8

Change-Id: I1ca31ed55c46a51ef8630995259f68db94cc860b
9138b3d666a359abe1068ad75bc67265f3bded7e 17-Feb-2017 Jack Yu <jackyu@google.com> Added telephony manager set sim power state API

The new API can be used to power up/down the SIM. This is equivalent
to inserting and removing the card.

Test: Telephony sanity tests
bug: 32224755
Merged-In: I16488c12ef648bd884123b02b9f07394d8fbaa49
Change-Id: I16488c12ef648bd884123b02b9f07394d8fbaa49
msPhoneCommandInterface.java
f3b307e72a52216c336b45b5f6cc208eee7e77a0 17-Feb-2017 Jack Yu <jackyu@google.com> Added telephony manager set sim power state API

The new API can be used to power up/down the SIM. This is equivalent
to inserting and removing the card.

Test: Telephony sanity tests
bug: 32224755
Change-Id: I16488c12ef648bd884123b02b9f07394d8fbaa49
msPhoneCommandInterface.java
d8c6d59607f963be65bb78f92c44194a78b66108 17-Feb-2017 Brad Ebinger <breadley@google.com> Remove Session ID from ImsService APIs that are not used

1) Remove session ID from ImsService APIs that do not need them.
2) Change logging in ImsResolver to be less verbose.

Test: Manual
Change-Id: Ifaa3daf6d78ef5dae873b3c5e48be60a5cf79836
msPhoneCallTracker.java
1a25e132f5aaed6f523834b3ef9d9529db5e5ce3 17-Feb-2017 Brad Ebinger <breadley@google.com> resolve merge conflicts of 87ee8a1b2 to nyc-mr2-dev-plus-aosp

Change-Id: Ic783c5e7d21a9945cde5e6692f8dec785e5572e1
80524b63204efdf513078211586724f7be9b4ca0 17-Feb-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Modifications to support ImsResolver and adds Tests"
a92b6b97b60b6e5453431e68b925b6f4bc3dbcc6 17-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Modifications to support ImsResolver and adds Tests"
5277a26052554dd3aaba466eed4881502c266dd5 17-Feb-2017 Jack Yu <jackyu@google.com> Merge "Added the new RIL request to set SIM power state" am: 93c4fc94b3 am: 39419415ba
am: 7434a63d74

Change-Id: I5e1cd785303bd40681fcf7886892351859a9a423
4a424775eab77d5f9a805ef56eca2e526038f0a1 25-Jan-2017 Brad Ebinger <breadley@google.com> Modifications to support ImsResolver and adds Tests

1) Adds unit tests for ImsService and related classes.
2) Modifies the ImsPhoneCallTracker to support the new ImsResolver.
3) Modifies the ImsServiceController to relay ImsService status callbacks.

Test: Unit Tests added
Merged-In: Ibcb001ce13e0bcc21f02deede64f7ee8f1549e59
Change-Id: Ibcb001ce13e0bcc21f02deede64f7ee8f1549e59
msPhoneCallTracker.java
7152d901c51e288759259ae3e482bb5fe1c23173 25-Jan-2017 Brad Ebinger <breadley@google.com> Modifications to support ImsResolver and adds Tests

1) Adds unit tests for ImsService and related classes.
2) Modifies the ImsPhoneCallTracker to support the new ImsResolver.
3) Modifies the ImsServiceController to relay ImsService status callbacks.

Test: Unit Tests added
Change-Id: Ibcb001ce13e0bcc21f02deede64f7ee8f1549e59
msPhoneCallTracker.java
df97820b2db85a96b3d87e9968c1898ece1e6736 16-Feb-2017 Jack Yu <jackyu@google.com> Added the new RIL request to set SIM power state

The new RIL request for powering up/down the SIM card.

Test: Telephony sanity tests
bug: 32224755
Merged-In: I71d07e39a07ee4c1ea877adf188955aeb5a70793
Change-Id: I71d07e39a07ee4c1ea877adf188955aeb5a70793
msPhoneCommandInterface.java
99607db1bc0f46e73f39d5379c590b8bcb4bf947 16-Feb-2017 Jack Yu <jackyu@google.com> Added the new RIL request to set SIM power state

The new RIL request for powering up/down the SIM card.

Test: Telephony sanity tests
bug: 32224755
Change-Id: I71d07e39a07ee4c1ea877adf188955aeb5a70793
msPhoneCommandInterface.java
0b0cc77567c31c3bc3691d001b18f79300e1a4f3 10-Feb-2017 Sooraj Sasindran <sasindran@google.com> Expose api to retrieve wakelock information per client
am: 4a39e21efe

Change-Id: I9dbf0b2355887edee8e48c713a25c1c3eed96a5a
4a39e21efe21028b97aa0545702f5c405cc44cf4 18-Jul-2016 Sooraj Sasindran <sasindran@google.com> Expose api to retrieve wakelock information per client

Expose api to retrieve wakelock information per client
Provide calling package name in cell info apis

Test: Through logs confirmed that the wakelock decrement is happening
correctly
BUG=31041780
Merged-In: Id8ca0006478212c006a103b83fb720532e9c0fab
Change-Id: Id8ca0006478212c006a103b83fb720532e9c0fab
msPhoneBase.java
msPhoneCommandInterface.java
8b38cd985149b459969dd2ac9e8013d852dc6760 18-Jul-2016 Sooraj Sasindran <sasindran@google.com> Expose api to retrieve wakelock information per client

Expose api to retrieve wakelock information per client
Provide calling package name in cell info apis

Test: Through logs confirmed that the wakelock decrement is happening
correctly
BUG=31041780
Merged-In: Id8ca0006478212c006a103b83fb720532e9c0fab
Change-Id: Id8ca0006478212c006a103b83fb720532e9c0fab
msPhoneBase.java
msPhoneCommandInterface.java
d396bd69cadbcbf3d441762e679dc6fc09f08aee 08-Feb-2017 Brad Ebinger <breadley@google.com> Merge "Speculative DISCONNECTING fix for ImsPhoneCallTracker" am: d4da840894 am: 6987ff9218 am: 6495916087
am: 29adbf007f

Change-Id: Icc7f807590e4bb2e0ab2559e414b53141affe357
29adbf007f1051716492cb3a1a96690ba6c08240 08-Feb-2017 Brad Ebinger <breadley@google.com> Merge "Speculative DISCONNECTING fix for ImsPhoneCallTracker" am: d4da840894 am: 6987ff9218
am: 6495916087

Change-Id: I11683bc6742f8cd8459c5e07ab70fc228c7f6936
9f13848d600c0782a5bcb3b1d2d7dca5dca35005 07-Feb-2017 Brad Ebinger <breadley@google.com> Speculative DISCONNECTING fix for ImsPhoneCallTracker

There is an issue occuring that causes an ImsPhoneConnection to
be left in the ImsPhoneCall without ever being cleaned up. This
causes the ImsPhoneCall never move into the IDLE state and blocks
new outgoing calls from being made.

Through speculation and code observation, it looks as though
this case may happen when the ImsService never responds to a
terminate request and telephony never receives the onDisconnect
callback. This change adds a new timeout that will expire after
some time and verify that the ImsPhoneConnection did indeed
eventually disconnect. If it did not, then we can assume that
the modem is not still tracking the call and we can call
onDisconnect ourselves.

Bug: 35012199
Test: Manual
Change-Id: I288d2950cd245ed6e40dd364e68d739a7d122d6c
msPhoneCallTracker.java
msPhoneConnection.java
79f2a645c5f638dd7af899757d50581063013cd0 03-Feb-2017 Tyler Gunn <tgunn@google.com> resolve merge conflicts of 58d671b9b to nyc-mr2-dev-plus-aosp

Test: Fix build.
Change-Id: I7e1d6754a8a060b4ca34de187c2c8bc607559f4c
4558536154e496ea917b343e496ed64c94250873 30-Jan-2017 Tyler Gunn <tgunn@google.com> Add support for wildcard reason code remapping.

The KEY_IMS_REASONINFO_MAPPING_STRING_ARRAY carrier config supports
remapping a from code and string reason to a new ims reason code.
Adding support for the from code being specified as a wildcard.
In practice we've ended up seeing the modem report a range of
"from codes". However, the message itself is definitely unique.

Test: Manual, unit
Merged-In: Ibfcfe8229b224f61d732b62e69b14126f2075916
Bug: 32571209
Change-Id: Ibfcfe8229b224f61d732b62e69b14126f2075916
msPhoneCallTracker.java
aed3107f7735394f1a08f7a03749f4788012571d 30-Jan-2017 Tyler Gunn <tgunn@google.com> Add support for wildcard reason code remapping.

The KEY_IMS_REASONINFO_MAPPING_STRING_ARRAY carrier config supports
remapping a from code and string reason to a new ims reason code.
Adding support for the from code being specified as a wildcard.
In practice we've ended up seeing the modem report a range of
"from codes". However, the message itself is definitely unique.

Test: Manual, unit
Bug: 32571209
Change-Id: Ibfcfe8229b224f61d732b62e69b14126f2075916
msPhoneCallTracker.java
2e18f22412ed3aa197006173a16c921a2ab93645 21-Jan-2017 Hall Liu <hallliu@google.com> Merge "Properly route the SET_CALL_FORWARD_DONE message" am: 8968d3e048 am: f6ffb59f58 am: a55042d993
am: 1aaad6145b

Change-Id: I0d9a5670cfa3fc58edb51725f9cd6aa311401337
1aaad6145b79db0f9035808617f73db33272881e 21-Jan-2017 Hall Liu <hallliu@google.com> Merge "Properly route the SET_CALL_FORWARD_DONE message" am: 8968d3e048 am: f6ffb59f58
am: a55042d993

Change-Id: I7199c540251fadfd4b080cc5fae1f633540658ef
8968d3e04861f4db547627096f48aac90391df34 21-Jan-2017 Hall Liu <hallliu@google.com> Merge "Properly route the SET_CALL_FORWARD_DONE message"
b2f4c9d1564e9f49ecf2b11097730d3a8889da96 20-Jan-2017 Hall Liu <hallliu@google.com> Properly route the SET_CALL_FORWARD_DONE message

In ImsPhone, the message indicating that call forwarding was set was
being directed straight to ImsPhoneMmiCode instead of routing through
the handler in ImsPhone, which caused the call forwarding notification
to never get set. This sends the proper message to ImsPhone first, which
will put up the call forwarding notification.

Change-Id: I5d06a0bad6e2bf368817ec623905f4a16e06d358
Fix: 34185152
Test: manual (to test on US carriers, force useImsForUt in GsmCdmaPhone)
msPhone.java
690c2fcad7d48d160b06ae0d0b531e84d51d253b 18-Jan-2017 Tamas Berghammer <tberghammer@google.com> DO NOT MERGE: Revert "Update package names to work with the proto3 compiler"
am: a2dc503a98

Change-Id: Icaef683a5cbea238ad3dbb7b2695a349e7612712
a2dc503a98b1a399328994c9010683c33bcf6bca 18-Jan-2017 Tamas Berghammer <tberghammer@google.com> DO NOT MERGE: Revert "Update package names to work with the proto3 compiler"

This reverts commit ac3e61c9cb50ea674704430c770389a61c7d19b6.

Change-Id: Iad4b8e7e9375d8f15fe091503045fee74330f806
msPhoneCallTracker.java
543dac701ed560a8eb69d1a01a56723561c3bbdc 18-Jan-2017 Tamas Berghammer <tberghammer@google.com> Update package names to work with the proto3 compiler
am: ac3e61c9cb

Change-Id: I9b535aa7e88bd4ff5289bf283bc0c169ac92fb6d
28374365ab472ce7eee6b1a7eb671f976aca9ef7 12-Jan-2017 Jack Yu <jackyu@google.com> Merge "Unregister data enabled changed listener on default phone" am: 989070554a am: 602e5a193d am: b2a2cf5dd0
am: f9e44ef552

Change-Id: I1f1e569dc54ce9ab80c7f39038ff4b2fcdb889be
f9e44ef5524b1d67393455ae3f96ab9b4f2ad34a 12-Jan-2017 Jack Yu <jackyu@google.com> Merge "Unregister data enabled changed listener on default phone" am: 989070554a am: 602e5a193d
am: b2a2cf5dd0

Change-Id: I46308b5a1dbae258c3dad9d28b592284b65bc526
d2c46a7e08af8f56c0f2112a78969d3d647cfa03 23-Nov-2016 Jiazeng Tian <jiazeng.tian@sonymobile.com> Unregister data enabled changed listener on default phone

[Description]
"com.android.phone" process crash after ACTION_IMS_SERVICE_DOWN
is sent out when ImsPhone is ready.

[Root cause]
When ACTION_IMS_SERVICE_DOWN is sent out, ImsPhone is disposed
and ImsPhoneCallTracker unregisters data enabled changed listener
in DcTracker from instance of ImsPhone but ImsPhone has no
object of DcTracker(i.e. null) then NullPointerException
has been happend.

[Solution]
When ImsPhoneCallTracker unregisters the listener, it refers
to default GsmCdmaPhone which it has an object of DcTracker

NOTE:
When ImsPhoneCallTracker registers the listener, it already refer
to default GsmCdmaPhone.

Test: manual with adb command to send IMS related intent.
Bug: 34206487
Change-Id: Iac9636de33074634fe9ccd451d510b4863bdc9ba
msPhoneCallTracker.java
ac3e61c9cb50ea674704430c770389a61c7d19b6 22-Jun-2016 Tamas Berghammer <tberghammer@google.com> Update package names to work with the proto3 compiler

Bug: b/28974522
Change-Id: I5f3adf4946ee4ba1e09e4f40afe83c151405972a
(cherry picked from commit 9460a22f3c1ae70dde80e34557d7011be113b39a)
msPhoneCallTracker.java
2539fc03945ae1a604ab2049c245636d9f23fd1d 22-Dec-2016 Meng Wang <mewan@google.com> Merge "Update ImsConnectionStateListener"
df233bacb5f868db8b5ba1e26782382de866ee58 22-Dec-2016 Tyler Gunn <tgunn@google.com> Use video pause signaling when data limit reached. am: 359c182111
am: 0455ac9f63

Change-Id: Id98b7ac9d4ea603fefe58b3d6d668e359a521c01
0455ac9f63bc28372efc270396305ea3f3a3c805 22-Dec-2016 Tyler Gunn <tgunn@google.com> Use video pause signaling when data limit reached.
am: 359c182111

Change-Id: I38a6427012b31a94e6f461ded415775499d36d29
359c182111879b821c0b7eba6d5fa52194293212 21-Dec-2016 Tyler Gunn <tgunn@google.com> Use video pause signaling when data limit reached.

When the data limit is reached and video is disabled, use the "pause"
video signaling instead of disconnecting the call.
Previously, ImsManager#updateImsServiceConfig would be called when data
was disabled due to hitting the data limit. This would cause VT to be
unprovisioned; as a result it was not possible pause or unpause the video.
To solve this, when the data limit is reached and we're about to pause,
we are now deferring the updateImsServiceConfig until the call terminates.

Test: manual
Bug: 30760683
Change-Id: Ia1d4247cb5a11da7694e9d197a506442c7f675f4
msPhoneCallTracker.java
msPhoneConnection.java
793a20fb5b45954bb14133bcad65e4e3f3efe397 12-Dec-2016 Meng Wang <mewan@google.com> Update ImsConnectionStateListener

1. Replace onImsConnected() with onImsConnected(int)
2. Replace onImsProgressing() with onImsProgressing(int)

Bug: 33430556
Test: m
Change-Id: I5021b41b2c44b1242f5866791cbb11f07815d86c
msPhoneCallTracker.java
0f8a0562c5e9698ce690c1c2c8db40982ae9ac30 18-Nov-2016 Jack Yu <jackyu@google.com> Added configuration for VT downgrade/tear down when data disabled
am: a4e2afb6a9

Change-Id: I91d7c71bd0eae589b77f9db98ea4a66b61f87039
a4e2afb6a96c5a2350586df3d6884dc80d87f2c4 15-Nov-2016 Jack Yu <jackyu@google.com> Added configuration for VT downgrade/tear down when data disabled

Added a new flag that allows carriers to ignore data disabled
(e.g. data reaches limit or user disables data) so VT calls
will not be downgraded/torn down and VT service will not be
disabled.

bug: 32880745
Merged-In: I8852d1f636d7cc73802119666b902b7df6a39e72
Change-Id: I977f1aa511c59f32446b4a76de3c6da54500adc1
msPhoneCallTracker.java
16b2d037bcf47f79084b8dbc9e92979c83f55dba 18-Nov-2016 Jack Yu <jackyu@google.com> Added configuration for VT downgrade/tear down when data disabled

Added a new flag that allows carriers to ignore data disabled
(e.g. data reaches limit or user disables data) so VT calls
will not be downgraded/torn down and VT service will not be
disabled.

Test: telephony unit tests
bug: 32880745
Change-Id: I8852d1f636d7cc73802119666b902b7df6a39e72
msPhoneCallTracker.java
99514fe66b80220ffd9bee6eda432944ce81b224 16-Nov-2016 Brad Ebinger <breadley@google.com> Only get WiFi status based on RAT extras am: 75f96a40e7
am: e3c2042b60

Change-Id: Ie393f5e38431fd95a3337baa64e4a6097c57d7e0
e3c2042b6068c5e0b0d3d12c4039bbc90f00b745 16-Nov-2016 Brad Ebinger <breadley@google.com> Only get WiFi status based on RAT extras
am: 75f96a40e7

Change-Id: I61e3c7d48e4549ddc5f190990a8748c5b08b4dbd
75f96a40e73bbf262287b64f7ba79f058adac472 15-Nov-2016 Brad Ebinger <breadley@google.com> Only get WiFi status based on RAT extras

We used to set the WiFi Connection property based on the the provisioning
status of the phone until the RAT extra was set from the modem. This is an
obsolete method of determining whether or not to set the WiFi property and
was causing some calls to be improperly marked as WiFi.

Test: Manual Testing
Bug: 30964593
Change-Id: I9922ff17ffb704a09e9b2cebeb147a7463b9898b
msPhoneCallTracker.java
msPhoneConnection.java
e0c7ad5cbbb33333cc623ae54f218cac6b105a2f 15-Nov-2016 Sudheer Shanka <sudheersai@google.com> Merge "Update usage of ActivityManagerNative."
eb1881bf05b659283c52c0986933709a5aad0982 14-Nov-2016 Pankaj Kanwar <pkanwar@google.com> Merge "Provide an API to make USSD calls and read the responses."
800a988b95a4b9bc2bca2562108e54cd8bd21ee1 11-Nov-2016 Sudheer Shanka <sudheersai@google.com> Update usage of ActivityManagerNative.

Bug: 30977067
Test: N/A
Change-Id: I5a3934355e0a4bc47490c16b0dac3979c55d8d16
msPhone.java
31399e10cf6d07509c4fbc294e24a9323214767f 03-Nov-2016 pkanwar <pkanwar@google.com> Provide an API to make USSD calls and read the responses.

Test: will be added in a subsequent CL.
Bug: 30973910
Change-Id: I8551323474c4d708d50a81001272812e7b651abc
msPhone.java
9ce8d6f5a6b378d02f4da031a87b279b1a9ada43 09-Nov-2016 Tamas Berghammer <tberghammer@google.com> Merge "Update package names to work with the proto3 compiler"
4ddce7fae1de6be1f2f56919207fc1fa47f272c3 08-Nov-2016 Tyler Gunn <tgunn@google.com> Merge "Add voip audio mode configuration for ims call" am: a8829d52f2 am: 7796e4d3cb am: 84e64b102b
am: f234456e7e

Change-Id: Id4f13c4712f983c346cdb6372f969ada11338486
7796e4d3cb0fc92aa52016f4f721470ad9df9eed 08-Nov-2016 Tyler Gunn <tgunn@google.com> Merge "Add voip audio mode configuration for ims call"
am: a8829d52f2

Change-Id: I7dd89155744d7f43b06dcd6500d854179bd0e91b
a8829d52f20884265530773c0d7a509d819d924c 08-Nov-2016 Tyler Gunn <tgunn@google.com> Merge "Add voip audio mode configuration for ims call"
9460a22f3c1ae70dde80e34557d7011be113b39a 22-Jun-2016 Tamas Berghammer <tberghammer@google.com> Update package names to work with the proto3 compiler

Bug: b/28974522
Change-Id: I5f3adf4946ee4ba1e09e4f40afe83c151405972a
msPhoneCallTracker.java
0be7e9840ed7e465e7013c8b331b2435652ddf9e 08-Nov-2016 Jordan Liu <jminjie@google.com> Merge "Merge isInEcm for GsmCdmaPhone and ImsPhone" am: 73e1b75da7 am: 502e879579 am: 9e3f41286e
am: a195de9894

Change-Id: Ieb5a02ac6f4d73d1ee7d6db7a8480598b01c046c
502e879579f0c1d576fe969d759868913cdc6911 08-Nov-2016 Jordan Liu <jminjie@google.com> Merge "Merge isInEcm for GsmCdmaPhone and ImsPhone"
am: 73e1b75da7

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

Add mAudioModeIsVoip in Connection. Set it to true for
ImsPhoneConnection if config_use_voip_mode_for_ims is enabled.

Change-Id: Id4ef172deab636c79e749e8d1acb90fabdbcd4eb
msPhoneConnection.java
16b58d13bde6487c6993831ca63385915be8956e 15-Oct-2016 pkanwar <pkanwar@google.com> Provide an API to make USSD calls and read the responses.

Test: will be added in a subsequent CL.
Bug: 30973910
Change-Id: I0d826eaadd1bd5a0c23cfad651c0423f7b7cc5f6
msPhone.java
msPhoneMmiCode.java
1237b674a1a1e5faf4489e552ec3317422d11685 17-Oct-2016 Jordan Liu <jminjie@google.com> Merge isInEcm for GsmCdmaPhone and ImsPhone

Merge mIsPhoneInEcmState and remove override in ImsPhone.

Fix: 30368080
Test: runtest --path GsmCdmaPhoneTest.java
runtest --path ImsPhoneTest.java
Change-Id: Iefcc7a2774605636beeafa466ae55f7a50699423
msPhone.java
ea74a4a1db0d090ea97f2f24c1e8eff35aa6df7a 07-Oct-2016 Meng Wang <mewan@google.com> ImsPhone: defer intial roaming state update am: 6b85911009 am: d479f9c11d
am: 7fd4ecbed4

Change-Id: Iaac96b7ee3ec7c0afff75491d213f02f13baf2da
6b8591100999ba4f12f8b519c0444fb89cb8617a 06-Oct-2016 Meng Wang <mewan@google.com> ImsPhone: defer intial roaming state update

The intial roaming update was in constructor of ImsPhone. It's so early
that settings provider and carrier config may not be loaded. Hence
incorrect WFC mode was got and set. Now we defer intial roaming update
to ImsManager#updateWfcFeatureAndProvisionedValues, invoked on
EVENT_CARRIER_CONFIG_CHANGED

Bug: 31972897
Change-Id: Id7a14f2d4ff0c638c53bcf7bbae2468750581e06
msPhone.java
3fe0578ea48570cd5d8c8dfd8b53b8984915330f 30-Sep-2016 Jack Yu <jackyu@google.com> resolve merge conflicts of 5a5f487 to master

Test: runtest -x frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics

Change-Id: Iea22620acd4efb0af845760544e00840014af4fb
dc16d0f315fc0ded5566ad2f44b5ea4245a25021 30-Sep-2016 Jack Yu <jackyu@google.com> Combined TelephonyEventLog and part of the connectivity metrics app into the new TelephonyMetrics
am: f2d0fa6486

Change-Id: Idd0540c5568367a8df807eaa1f4aa9b64c1ab213
0db7db3a7f93eec7c86ac4de0947206ce8493430 30-Sep-2016 Jack Yu <jackyu@google.com> Merge "Combined TelephonyEventLog and part of the connectivity metrics app into the new TelephonyMetrics" into nyc-mr1-dev
22a7d448ee77feb2aa87144cbdc36de21e6002a2 30-Sep-2016 Hall Liu <hallliu@google.com> Fix answering waiting call simultaneously with active call disconnect am: 3379e39978 am: b021750041
am: 730fb08bf1

Change-Id: Ib4d5fdf24e016673f2643961f76033162a675fbf
f2d0fa64860a12423fb8709766d6af90fba5e6cf 27-Sep-2016 Jack Yu <jackyu@google.com> Combined TelephonyEventLog and part of the connectivity metrics
app into the new TelephonyMetrics

Added the new TelephonyMetrics to support metrics collection
through dumpsys.

bug: 31224848
Change-Id: If4b6032e98b6cc8b68e8459e0e799a3755b1f2f9
msPhoneCallTracker.java
b021750041202415515008fca0bc722065566478 30-Sep-2016 Hall Liu <hallliu@google.com> Fix answering waiting call simultaneously with active call disconnect
am: 3379e39978

Change-Id: Ifc5f61930d4aa51b903e2601fb047f7f7a244723
484d19242669992ef1c6a89053929deecb1f3c7b 29-Sep-2016 Hall Liu <hallliu@google.com> Merge "Fix answering waiting call simultaneously with active call disconnect" into nyc-mr1-dev
a51ce5995709659f24f390c1ef0507a88e4c7872 29-Sep-2016 Meng Wang <mewan@google.com> ImsPhone: update wfc mode per roaming status am: 322793ca2d am: 96b668cc54
am: 4b9d9f2bf2

Change-Id: If7c47c7b4c1b052f293096790a50b8ae9b3d68f7
3379e399780e6e6531eb84f14d1eca92ae48af2a 24-Sep-2016 Hall Liu <hallliu@google.com> Fix answering waiting call simultaneously with active call disconnect

When the user answers a call-waiting call at the same time as the remote
end disconnects the formerly-active call, an error may occur where the
in-call ui is left in an inconsistent state and the waiting call is
never answered.

Normally, when a call-waiting call is answered, the active call will
first be held. Then, after the modem reports that as successful,
onCallHeld will issue the EVENT_RESUME_BACKGROUND message to answer the
call-waiting call. However, if the remote end disconnects while the user
is answering, onCallTerminated will be called instead.

This change alters onCallTerminated to issue the EVENT_RESUME_BACKGROUND
message if it occurs in the middle of a call-switch.

Change-Id: Icb757274ad63af46ebff5028dc484f8497777987
Fix: 31684640
msPhoneCallTracker.java
322793ca2dfe1be9c088f88336a68921d4718add 20-Sep-2016 Meng Wang <mewan@google.com> ImsPhone: update wfc mode per roaming status

Bug: 31492826
Change-Id: I35bf9994b3e96327e1d9678d177225c6a3656479
msPhone.java
cd5d7df169d905d4e009d909e255a814eef0c064 20-Sep-2016 Brad Ebinger <breadley@google.com> Check ImsPhone WiFi State am: d0a85e9d7e am: 0db7554dac
am: a3b78e52ba

Change-Id: I3ebc998cc4135434e90e45bcf4ece6b78fa27f0c
d0a85e9d7e52ecd5de9f7063361d9b01d2493627 13-Sep-2016 Brad Ebinger <breadley@google.com> Check ImsPhone WiFi State

We are currently checking the IMS feature FEATURE_TYPE_VOICE_OVER_WIFI
instead of checking the correct ImsCallProfile extras in the ImsCall.

This change also adds ImsCall tests for Wifi as well as modifies an
existing ImsPhoneConnection tests to facilitate the new change.

Bug: 30964593
Change-Id: Ib31fb1d4899fec47424f5e4869d27c429290f304
msPhoneConnection.java
8e2a1c76f67ebaeebd8401c4ebf7d0515b522d5e 18-Jul-2016 Sooraj Sasindran <sasindran@google.com> Expose api to retrieve wakelock information per client

Expose api to retrieve wakelock information per client
Provide calling package name in cell info apis

BUG=31041780
Change-Id: Id8ca0006478212c006a103b83fb720532e9c0fab
msPhoneBase.java
msPhoneCommandInterface.java
9cf07ae65ed86b9e79aaa74b66441f0811d9cc15 01-Sep-2016 Tyler Gunn <tgunn@google.com> Expand ImsPhoneCall logging and add updatePhoneState check.

Analysis of the logs for the associated bug has not revealed any reason
why that bug has happened.

1. Added a speculative fix to ImsPhoneCallTracker#updatePhoneState to
ensure that any pending MO call is also not idle when considering the
state to be off hook.
2. Added more logging to ImsPhoneCallTracker, and ImsPhone to help diagnose
the issue.

Bug: 31000943
Change-Id: I0713a7bd6e5c91fc458e67af530de0bcce8a7aee
msPhoneCall.java
msPhoneCallTracker.java
68d7118dd596c2459c6af3eb531654aafa9fe602 23-Aug-2016 Tyler Gunn <tgunn@google.com> Remove one time sending of handover from wifi to LTE connection event.
am: 2d996aa606

Change-Id: I7ddab85cc9d84b5c1978340913ca0023060278c3
2d996aa6061c038ba69dbe3b9430c5164283db22 19-Aug-2016 Tyler Gunn <tgunn@google.com> Remove one time sending of handover from wifi to LTE connection event.

We will always send the event and let dialer filter it out.

Bug: 30837560
Change-Id: I3c40d8ee236bd5c27a8891f5c7b25a8fef0d4feb
msPhoneCallTracker.java
9d20ef647af402d5929f572507953034cadfe278 19-Aug-2016 Tyler Gunn <tgunn@google.com> Merge "Fire connection events when call is remotely held and unheld." into nyc-mr1-dev
33290100c702ea8a1d4fcede360fc81e81bfccb2 18-Aug-2016 Tyler Gunn <tgunn@google.com> Fire connection events when call is remotely held and unheld.

Bug: 30349182
Change-Id: Icb94db6a8c146db7d4e63108cb19b16ea438f212
msPhoneCallTracker.java
df0a189fcdf375cb6f0f1f533e20efec575d6c4e 17-Aug-2016 Tyler Gunn <tgunn@google.com> Send connection event on handover from WIFI to LTE.

Send a connection event when handover from wifi to LTE occurs for a video
call. This event is only sent once, the first time it happens.

Also added a test intent which can be sent to reset the preference.

Bug: 30837560
Change-Id: Iefc2c4024d4d1956e8a9153345b6c2892bd7c38b
msPhoneCallTracker.java
2e7e09e79c04f34034bebea8f5d86606bb584577 13-Aug-2016 Tyler Gunn <tgunn@google.com> Add support for downgrade to audio when data limit is reached.

Fix the SUPPORTS_DOWNGRADE_TO_VOICE calculation in ImsPhoneConnection; it
was relying on signaling from the modem, which apparently doesnt work.
Instead relying on a carrier config option to set that value.

Adding logic in ImsPhoneCallTracker to auto-downgrade to audio and send
a connection event indicating why it happeend to Dialer. This is only used
when the carrier supports it.

Bug: 30702393
Change-Id: Ie7ed3ba8b8aa6c45391d9dd45c4bbf7fe8c957ee
msPhoneCallTracker.java
msPhoneConnection.java
2f9f55d539817926542b7db63a41d76badded853 12-Aug-2016 Tyler Gunn <tgunn@google.com> Drop video calls when data is disabled.

Handle dropping of video calls for one of two reasons:
1. User disables data.
2. User exceeds the data limit policy on their device.

In both cases, terminate any ongoing video calls. Ensures the correct
disconnect cause is propagated up to the InCallService.

Bug: 30702393
Change-Id: I36d236c8f69f9dc5b17368cc5329ac1df991fac4
msPhoneCallTracker.java
508daf6f8286407cf34e32750148fad120009c13 10-Aug-2016 Tyler Gunn <tgunn@google.com> Add timeout for handover to wifi.

When we expect to handover a vt call to wifi, add a timeout to check to
be sure the handover did happen. IF it iddn't notify the Connection of
the failure.

Bug: 30697460
Change-Id: I243d4a063b5300cdf3b8e7fedddd4d747153af66
msPhoneCallTracker.java
0b93f32c1bed6554f058b9f614a0435f7dbfe942 05-Aug-2016 Tyler Gunn <tgunn@google.com> Notify telephony when a handover from LTE to WIFI fails.

Also adding test intent which can be used to simulate this situation.

Bug: 30697460
Change-Id: Ic45708699bbeedbb58920373180ea63a8d65ad78
msPhoneCallTracker.java
48208a24933a644261184f47517a6a8ed7d6fd54 03-Aug-2016 Tyler Gunn <tgunn@google.com> Add "SIP forbidden" as valid reason for call pull failure.

Vendor testing uncovered the fact that a call pull could fail due to a
SIP Forbidden error. Adding this disconnect cause to the pull fail logic
to ensure that a failure to pull due to this reason will result in the
call becoming external again.

Bug: 29906222
Change-Id: Ifab30cff23bb512731da0e16ea00e86c22d8226b
msPhoneCallTracker.java
8b118b28a31ed863a6cc2bcc13949fb6be8a91da 28-Jul-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Retry Connecting to ImsService if it is not up yet" into nyc-mr1-dev
1999b9772eb9b3a230bd2520ffebb152544eaba9 28-Jul-2016 Tyler Gunn <tgunn@google.com> Fix issue where incoming rejected calls were not being marked as such.

Code in onDisconnect for ImsPhoneConnection assumed that if the current
disconnect cause is "LOCAL" that we couldn't ever override this value.
However, in the case of an incoming rejected call, we do want to override
the disconnect cause.

Bug: 30474601
Change-Id: I3ffe4e6844658e063c01ea5e3aeec82989d053cd
msPhoneConnection.java
c10b7afb2e174246d7110db5cf2948129af4603d 27-Jul-2016 Brad Ebinger <breadley@google.com> Retry Connecting to ImsService if it is not up yet

When the ImsService crashes, there is a possibility of the
ACTION_IMS_SERVICE_UP broadcast getting received before the ImsService
is available from ServiceManager. This change introduces a retry timer to
try reconnecting the ImsService if it fails to bind.

Bug: 29891063
Change-Id: Id3d69d76630752f892ec80573d79f4da55c70395
msPhoneCallTracker.java
77a1f167b962ceaf7972d246f4c23e17772d1c69 26-Jul-2016 fionaxu <fionaxu@google.com> scrub pii in imsphoneconnection + code cleanup

bug: 30368127
Change-Id: I14e8e6de97543786cc7dd327fe4a79f8968ecf04
msPhoneConnection.java
ec15d7bd04fc3e6cba2cc6645184c5f47c55aea8 25-Jul-2016 Amit Mahajan <amitmahajan@google.com> Update ECBM system property early to reduce race condition window.

Update property before broadcasting ECBM intent.

Bug: 30237792
Change-Id: I787fd55cc9406d7f48b24797e29eb11413d6c0c0
msPhone.java
db5b6a50186bc3fc8d42c50f4d23c91b05412ec6 22-Jul-2016 Tyler Gunn <tgunn@google.com> Handle video session modify responses while paused.

There is a limitation in the modem implementation whereby when the remote
party has paused video (eg sent dialer to the background) any session
modify requests which are sent are responded to, but the video state of
the connection is NOT updated until the video state becomes unpaused
again.

To handle this, ImsPhoneConnection will now listen for session modify
responses received via the VideoProvider. When paused, valid
responses to requests will be used to update the current video state of
the ImsPhoneConnection. When the video becomes unpaused, we will resume
using the modem reported video state.

Bug: 29381561
Change-Id: I1ac854dbc292affb3bc0bb9ce98b2fea33014cbb
msPhoneCallTracker.java
msPhoneConnection.java
cdcdab3863bfa009f50ab30569ec2eefb31d34d2 22-Jul-2016 Tyler Gunn <tgunn@google.com> Merge "Handle failure to pull an external call." into nyc-mr1-dev
0da16b3708f3394e9d72d8dd525a50ad37aa8a65 20-Jul-2016 Amit Mahajan <amitmahajan@google.com> Use correct convention for member variable.

Bug: 24613146
Change-Id: Ib3fce8e01300f97fae556422aae6e11884998700
msPhone.java
3de018282cd7dae66d4dfff41303e81419d2004d 20-Jul-2016 Tyler Gunn <tgunn@google.com> Handle failure to pull an external call.

Look for two expected call fail causes which can occur if an external
call is being pulled, and the pulled ImsPhoneConnection disconnects.
These call fail causes are a signal that the call pull has failed.

We use this to trigger a callback which causes the TelephonyConnection to
swap the ImsPhoneConnection out for the ImsExternalConnection.

Bug: 29906222
Change-Id: I22e570ffd578ef5e474d6abaf5d89378bd17996c
msExternalCallTracker.java
msPhoneCallTracker.java
msPullCall.java
d2b1b9dbc1f6a4fa960c9b5762f82e503cc37c27 18-Jul-2016 Amit Mahajan <amitmahajan@google.com> Store selfIdentityUris provided by IMS service.

Bug: 24613146
Change-Id: I337a84a2ed6a37eaa146f9abc2ad28c059ff37e5
msPhone.java
msPhoneCallTracker.java
c18b300f7c9654674af6ee0fc5eb12679c8fb8f8 18-Jul-2016 Tyler Gunn <tgunn@google.com> Merge "Fix issue with pulling a previously pulled call." into nyc-mr1-dev
c73180f29125d48e582e5104d65635601f0d296b 15-Jul-2016 Pankaj Kanwar <pkanwar@google.com> Merge "Enhance logic for determining if answering call will disconnect fg call." into nyc-mr1-dev
79de4402e6be40cbe9cef27d8378645957e4ec88 14-Jul-2016 Tyler Gunn <tgunn@google.com> Enhance logic for determining if answering call will disconnect fg call.

There is logic to determine if a FG video call should be disconnected
when an audio call is received. It was missing a check to see if VOWIFI
is enabled. If VOWIFI is not enabled, then the check applies. If VOWIFI
is enabled, the check does not apply.

Bug: 28933314
Change-Id: I57ace7583906bddb93f81735809a2e21069da380
msPhoneCallTracker.java
a8f5a859f8e4a15902d729af5d2edc9a9433ba41 08-Jul-2016 Jack Yu <jackyu@google.com> Disable VT when users turn off data or hit data limit

Disable VT when users turn off data or hit data limit. If
there are ongoing VT calls, we'll need to downgrade them
to VoLTE calls.

bug: 27316521
Change-Id: I7988d0475583e7fec50888eaee1e5a0d4d5b8cc6
msPhoneCallTracker.java
814442c3754ef76d896247aa72cf0b050c6c0f29 13-Jul-2016 Tyler Gunn <tgunn@google.com> Fix issue with pulling a previously pulled call.

The bug reported is that sometimes a call isn't marked as pullable when
it should be.
The mExternalCallPullableState map tracks the last pullable state reported
by the network. When a new external call is created, there was an issue
where the network pullable state was not being correctly tracked. Further
updates to the network pullable state were not saved.

Bug: 30047706
Change-Id: I37060f12c393f2e2aba2bd2e8e3237f152495807
msExternalCallTracker.java
91c714c06cc426b4f1af05a758c4d560b16f6d24 11-Jul-2016 Tyler Gunn <tgunn@google.com> Finalizing Multiendpoint functionality.

1) Finish plumbing of PULLING call state.
2) b/29522023 - Handle case where the maximum number of calls across all
devices has been reached and a new call cannot be placed; report a new
Telephony disconnect cause which maps to an appropriate user friendly
message.
3) b/29633039 - Make the ImsExternalCallTracker keep track of the last
call pull state for each external call. Also, track whether the device is
in a call, and whether video is enabled on the device. Use this to enforce
the rules that an external video call cannot be pulled if video is not
enabled on the device, and that calls cannot be pulled when there is an
active call on the device.
4) Fixed a circular initialization dependency between ImsPhoneCallTracker
and ImsExternalCallTracker. Previously, the ImsPhoneCallTracker would
spool up the ImsMultiEndpoint service and set the ImsExternalCallTracker
as a listener. HOWEVER, the ImsEXternalCallTracker isn't actually
created until AFTER the ImsPhoneCallTracker is. It just so happens the
ImsPhoneCallTracker init happens on a thread, so ImsExternalCallTracker
would normally be initialized before ImsPhoneCallTracker. Whoops.

Bug: 29522023
Bug: 29633039
Change-Id: Iddabb61dcad79c93665c28e07b333e807cbc576d
msExternalCallTracker.java
msPhone.java
msPhoneCallTracker.java
6f62aeaeed40342a41a838245da92f9d6982aafd 08-Jul-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix incorrect call radio type on UI during silent redial" into nyc-mr1-dev
d45e0852699f073cb67ef957eadffd4e8130aff5 22-Jun-2016 Shriram Ganesh <sganesh@codeaurora.org> Fix incorrect call radio type on UI during silent redial

When handover takes place, the ImsPhoneConnection objects
attached to the handover call are not cleaned up until the call
ends on the CS pipe after handover. As a result, the stale object
keeps updating UI on the IMS registration state. This causes the
call UI to show WiFi call when the call is on CS. The fix here is
to clean up the ImsPhoneConnection objects as soon as they are
mapped to CS connections upon handover.

Bug: 29551456
Change-Id: Iafa668c29c9501d6c3845327a9b19458dbfdd84e
msPhoneCallTracker.java
a2dfbf36ff4cea04078fccecdb7382bbbf5420ce 07-Jul-2016 Jack Yu <jackyu@google.com> Merge "Removed unused PII from TelephonyEventLog" into nyc-mr1-dev
c3ec7d484569eff5005ee31fe3c96dfc00b86096 07-Jul-2016 Jack Yu <jackyu@google.com> Removed unused PII from TelephonyEventLog

Removed the PII captured during call origination even
though it is not used or sent to the server at all.

bug: 30000046
Change-Id: I1f54fda0b4390c78dc6848b66d9a9ed19737ec7d
msPhoneCallTracker.java
f8a97a03e91c81eee19420bcdf66a2305f0b4578 07-Jul-2016 Brad Ebinger <breadley@google.com> Fix NullPointerException in ImsPhoneCallTracker

Fixes a NullPointerException in ImsPhoneCallTracker.getVtDataUsage(). We
must first check that the VideoProvider returned is non-null.

Bug: 29998389
Change-Id: Ia3132a2e8c8f2c5d70528f89cd9af78c857382e5
msPhoneCallTracker.java
4d4857b26a7bac1689fc28f20b5682a9a9fd26d0 01-Jul-2016 Tyler Gunn <tgunn@google.com> Merge "Properly handle multi-endpoint answered elsewhere disconnect cause." into nyc-mr1-dev
cab2907361fdc486dec4a3a35fe90bf13ec794dc 30-Jun-2016 Tyler Gunn <tgunn@google.com> Merge "Label dialog event package entries for conferences." into nyc-mr1-dev
48921d863bf4d93c89071dfde4d44cd27fec6314 22-Jun-2016 Jack Yu <jackyu@google.com> Added VT data usage support

Store total VT data usage since boot up for NetworkStatsService
to query.

bug: 20888836
Change-Id: If2078bd85fcbe2838a17fc8b282a05317e94c3ff
msPhone.java
msPhoneCallTracker.java
f41783220aa8cc2e0e62c2ae2c3300b779c96101 29-Jun-2016 Tyler Gunn <tgunn@google.com> Label dialog event package entries for conferences.

Dialog event package entries (multiendpoint) for a conference call on
another device will have a uri something like this:
sip:conf=2001-4888-205-710f-e0-113-0-120-1466524732857069@[2001

This ends up looking nasty in the UI. To prevent this, adding code to
detect this type of URI and set the caller name to "Conference Call",
and blank out the caller number.

See bug for screenshot.

Bug: 29534470
Change-Id: I892897ca80347f57497928cb1b02fba83c3c664a
msExternalConnection.java
8582f01cac98266bfd86c42e58eab3bf810328c4 16-Jun-2016 Hall Liu <hallliu@google.com> Set disable add call during video call extra from carrier config

Bug: 29047863

Change-Id: Ic32f01c40337eccd197cc2573f5a01f81b35f3ea
msPhoneCallTracker.java
1bb182dd0cad8c9fd5f68eade50e8991843f56bc 28-Jun-2016 Pavel Zhamaitsiak <pavelz@google.com> Fix ImsPhone.processDisconnectReason() function

Escape "|" (pipe) symbol.

Bug: 29581592
Change-Id: Ic25f0b7455c7197396001519995d73fbaaf1140f
msPhone.java
4866c6d44aa2a945737444b4a3b01332233ab2c4 24-Jun-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix ImsPhone.processDisconnectReason() function" into nyc-mr1-dev
e1aeaee24464191130da0133981d47fb9e469960 24-Jun-2016 Pavel Zhamaitsiak <pavelz@google.com> Fix ImsPhone.processDisconnectReason() function

- Escape "|" (pipe) symbol.
- Add unit test

Bug: 29581592
Change-Id: I4c7f5758478ab8360fad8a7b97055bbaaa7805bf
msPhone.java
37c0d71f5221943f25a36613d52618b37126d1c2 22-Jun-2016 Tyler Gunn <tgunn@google.com> Update ImsPhoneCallTracker to detect situations where call will drop.

Add logic to set a property on incoming telephony connections if
answering the call will cause the active call to be disconnected. This is
tied to carrier logic which requires that a wifi video call is dropped
when an incoming audio-only call is answered. That same logic also
includes the provision that a call which has had video at some point in its
lifespan will be treated as a video call.

Bug: 29275420
Change-Id: Id9f58150a6bbd9894076913a880036a7e7fc6834
msPhoneCallTracker.java
cf3a2925c10f87f4b6af0f3a1c369f57954f7733 17-Jun-2016 Pavel Zhamaitsiak <pavelz@google.com> Add missing null checks to ImsPhoneCallTracker

Also use CODE_LOCAL_ILLEGAL_STATE instead of CODE_UNSPECIFIED when
ImsManager is null.

Bug: 29386303
Change-Id: I9fcaecf033b9f3363fb849b2d64b9c2b8db20035
msPhoneCallTracker.java
5deeeef8a7c8685abda3bdf00464bc2582c2b5c6 09-Jun-2016 Tyler Gunn <tgunn@google.com> Properly handle multi-endpoint answered elsewhere disconnect cause.

Two issues:
1. The "answered elsewhere" disconnect cause was mapped to "call pulled".
2. The "answered elsewhere" disconnect cause would be remapped as a missed
call.

Bug: 29236416
Change-Id: I4cb46a68079fdefd273c532b378e703c24ba7f4e
msPhoneCallTracker.java
babfe1553cc8515bf9a47714c6150ecee58aac97 26-May-2016 Tyler Gunn <tgunn@google.com> Merge "Multi-endpoint changes." into nyc-mr1-dev
f6ff9efa40d49b60029c88273316f0e696eacf7c 26-May-2016 Derek Tan <derektan@google.com> Use getConfigForSubId instead of getConfig(int).
am: f6d865fd88

* commit 'f6d865fd88a8326126e2b3f836b94cfebba3a5a7':
Use getConfigForSubId instead of getConfig(int).

Change-Id: Ie06f51798eaeef319f1c093b023b99fa9a1ebe89
f6d865fd88a8326126e2b3f836b94cfebba3a5a7 25-May-2016 Derek Tan <derektan@google.com> Use getConfigForSubId instead of getConfig(int).

Per API review, we want to revert getConfig(int) to
getConfigForSubId(int) (ag/1075011). This CL changes all
callers to use getConfigForSubId(int).

Bug: 28295813
Change-Id: Ib55064226da5371d5acf014c0e0c20f3724d02c4
msPhone.java
67f3535dbfa1e4ca1ed846dd649015e8bd1f7328 25-May-2016 Tyler Gunn <tgunn@google.com> Multi-endpoint changes.

Passing the EXTRA_IS_CALL_PULL extra directly into the ImsCallProfile.
mCallExtras; this is where the modem looks for it, not in the "intent
extras".

Adding unit test for ImsExternalCallTracker (still more tests to be added
in the future); this required adding a new interface to abstract away
some stuff that is needed for the tests.

Bug: 27458894
Change-Id: I24b20d13d5dfeb422295d80c0eec72800836ae74
msExternalCallTracker.java
msPhoneCallTracker.java
40659286ac42ec77bbe7893830bd50c06f393ee8 11-May-2016 Meng Wang <mewan@google.com> Add setAllowedCarriers, getAllowedCarriers to Phone and RIL

Bug: 28564314
Change-Id: I52be8bc7b2f74af9af2a1e3364d4ea33bb806681
msPhoneCommandInterface.java
4fd6713f309debc864c67efd26b7ed9c2036c9b4 18-May-2016 Tyler Gunn <tgunn@google.com> Merge "Better handling of dialog event package numbers, and call pulling." into nyc-mr1-dev
dd9256daa74c3216fa9e2795ce8ec81f1a8ae40a 18-May-2016 Tyler Gunn <tgunn@google.com> Merge "Fix issue where null dialog event packages crash external call tracker." into nyc-mr1-dev
363911ade99b8c798fd1c6ef545d253b8c35a001 14-Apr-2016 Dheeraj Shetty <dshetty@codeaurora.org> Use HD icon for EVS audio codecs.

Show HD icon for audio codecs EVS_WB, EVS_FB and EVS_SWB.

Bug: 28675902

Change-Id: I5550e6c9660c0ccd25418a33c44ee2c71ddd47b9
msPhoneConnection.java
1c23d391a314ffdb71874b06e9a0e54607208832 12-May-2016 Tyler Gunn <tgunn@google.com> Better handling of dialog event package numbers, and call pulling.

1. Remapping the ImsReasonInfo codes associated with pulling a call to
the DisconnectCause.CALL_PULLED cause. Note: This will need to be updated
in the future as there is a bug in the modem which remaps calls pulled to
the "answered elsewhere code".
2. Convert the dialog event package SIP URI to a tel URI and use that to
set the address on the connection.

Bug: 27458894
Change-Id: I197ce52f6a15df74dcc0c8609f74242b1af910bc
msExternalCallTracker.java
msExternalConnection.java
msPhoneCallTracker.java
da8286bfe1baf68d81a778031d05c3d13fa03f7c 05-May-2016 Tyler Gunn <tgunn@google.com> Fix issue where null dialog event packages crash external call tracker.

Bug: 27458894
Change-Id: I4dec6fd7619a823023d4958d26a38579a54b3be9
msExternalCallTracker.java
b25b43f0497f1a476598a0277e109f786ed3f817 23-Apr-2016 Tyler Gunn <tgunn@google.com> Move initialization of Multiendpoint interface into getImsService().

I previously had the setup of the multiendpoint interface in ImsPhone,
however at that point ImsManager was not yet configured.
I have moved the multiendpoint interface initialization into the
ImsPhoneCallTracker#getImsService() method (similar to the ECBM interface
setup).

Bug: 27458894
Change-Id: I2b2ba9637686bb01fb38e3195e60ae151bf9adb6
msPhone.java
msPhoneCallTracker.java
93da8529345711fd1a5617f3c8b15c0921eececb 15-Apr-2016 Tyler Gunn <tgunn@google.com> Wire up IMS framework APIs and call pull.

1. Wired up the IMS framework APIs so that the modem can inform us of new
dialog event package changes.
2. Wired up the call pull API so that calls to it make it down to an
ImsExternalConnection.
3. In ImsExternalCallTracker, listen to the call pull requests on the
external connections, and use this to trigger the actual pull of the call,
which is essentially a dial with an extra specified (per QCOM).
I abstracted away the idea of pulling the call using the ImsPullCall
interface, which ImsPhoneCallTracker implements.

Bug: 27458894
Change-Id: Idd20a95c2993b29dcd0a7e6c71fb6232cff88736
msExternalCallTracker.java
msExternalConnection.java
msPhone.java
msPhoneCallTracker.java
msPullCall.java
b3a89f53603f828acf1c8b530cedffe20e253d77 15-Apr-2016 Santos Cordon <santoscordon@google.com> Merge "IMS: During a call swap, handle the resume failure" into nyc-dev
afb0fad639cdaff9abb4d405e039bd61cd8d3cb6 26-Feb-2016 Anju Mathapati <anjucm@codeaurora.org> IMS: During a call swap, handle the resume failure

During a call swap, the active call is first placed on hold,
followed by the resume of the already held call. If this
resume attempt fails, then try to recover by resuming the
original active call.

Fix: 25498498
Change-Id: I9dc83e95e79fd04f9a080572ac861d30dd916c5c
msPhoneCallTracker.java
2c7c4b693e6772342620c41e94b159bd495fa7c1 14-Apr-2016 Tyler Gunn <tgunn@google.com> Merge "IMS-VT: Set video call provider on call update." into nyc-dev
6caa786236a1b2793f0969a72fbbad3f59067dd9 14-Apr-2016 Pavel Zhamaitsiak <pavelz@google.com> Merge "Don't use overlays for WFC error messages and SPN formats" into nyc-dev
3652067799a38973435c8663ab9cdb2a8290e48f 06-Apr-2016 Garik Badalyan <garikb@codeaurora.org> IMS-VT: Set video call provider on call update.

VideoCallProvider is set upon creation of ImsPhoneConnection.
If creation of video provider is delayed in vendor code, e.g.
because UE is not video capable at that moment, then video
features will be disabled for the lifetime of that session.
This change checks and sets the video provider if it's not already
set upon receiving an update from vendor code.

BUG=25696226
Change-Id: I33bfde75726f64ead87f0b1e4b4005e4ddd90619
msPhoneCallTracker.java
af060eee085e90a2979a392384ccad368e92fc7a 12-Apr-2016 Pavel Zhamaitsiak <pavelz@google.com> Don't use overlays for WFC error messages and SPN formats

- Error alert and notification messages are stored as string arrays in
resources. CarrierConfig stores carrier-specific error codes and corresponding
index which is used to get appropriate messages.
- Supported SPN formats are stored as string arrays in resources. CarrierConfig
stores index used to get appropriate SPN format.

Bug: 27170754
Change-Id: I7f3635ec0ae73d6190b4b73b11ad13058fc25d54
msPhone.java
7a1c1b02c8603c2bf2f3b401facb389528180eed 08-Apr-2016 Pavel Zhamaitsiak <pavelz@google.com> Switch TelephonyEventLog from using ITelephonyDebug to ConnectivityMetricsLogger

Bug: 28026463
Change-Id: I3c4f14e8a6611f0cb5c52eb24573621d3a13c4cb
msPhoneCallTracker.java
fec523bdc5d2b6dd90212c8076bf34bcc2ab08b2 01-Apr-2016 Tyler Gunn <tgunn@google.com> Add ImsExternalCallTracker and support for multiendpoint.

- Adding new ImsExternalCallTracker which is responsible for responding to
dialog event package information received via IMS framework.
- Added TelephonyTester intents so that I can inject fake dialog event
package data into the ImsExternalCallTracker.

Bug: 27458894
Change-Id: Icc7c4f9e25ad553107fc1cb9d5501ba45c5a1e45
msExternalCall.java
msExternalCallTracker.java
msExternalConnection.java
msPhone.java
8af04cc88ca58ca8ffd4d558dbfce738d3b0aa09 23-Mar-2016 Amit Mahajan <amitmahajan@google.com> Merge "Change to release wakelock on ECM exit in ImsPhone." into nyc-dev
c69a267a29079cb1b49587d48a13d210ab7cc8f4 23-Mar-2016 Tyler Gunn <tgunn@google.com> Merge "Fix issue where audio calls have "supports downgrade to voice" capability." into nyc-dev
ffb90b77322fa64adbe79b976f1c16f3c9441753 19-Mar-2016 Amit Mahajan <amitmahajan@google.com> Change to release wakelock on ECM exit in ImsPhone.

Includes ImsPhone ECBM unit test.

Bug: 27378459
Change-Id: I71da054e303d0a88ee79b6429fc3a154121efe46
msPhone.java
msPhoneBase.java
msPhoneCallTracker.java
9b5cbeae3034cbeb658e9ff29c5b7d1ae780d5f6 23-Mar-2016 Tyler Gunn <tgunn@google.com> Fix issue where audio calls have "supports downgrade to voice" capability.

In reality, the capability isn't really required if either end only
supports voice calls.

Bug: 27354235
Change-Id: I9cd97cb2d3deba26d659c302d5c82a753d5c7699
msPhoneConnection.java
66c92257d2798059af324f6d20e8f8ff04d7e47d 21-Mar-2016 Tyler Gunn <tgunn@google.com> Merge "Rename carrier config option." into nyc-dev
cc8ea4abbe4f1f755dc5cf1b576d51ceb24fe79d 17-Mar-2016 Amit Mahajan <amitmahajan@google.com> Some more unit tests for ImsPhone.

Bug: 25691379
Change-Id: Iafbe34b0b7edc8a53c0607b46f5abf8618f3768a
msPhone.java
msPhoneCallTracker.java
9f5345c094210aa5d6606b7705a85a7bc17e831d 17-Mar-2016 Amit Mahajan <amitmahajan@google.com> Fix for failing ImsPhone unit test.

Bug: 25691379
Change-Id: I035cc0fb5c5ce17bfc111e1faf6ff41fd80b701f
msPhone.java
msPhoneCallTracker.java
517a9b682f976d9df627c2f4c05c7edb07fca3c3 16-Mar-2016 Tyler Gunn <tgunn@google.com> Rename carrier config option.

Renaming BOOL_ALLOW_EMERGENCY_VIDEO_CALLS to
KEY_ALLOW_EMERGENCY_VIDEO_CALLS_BOOL.

Bug: 27346047
Change-Id: I628075814510abfe9d2c0aecad3abd0069932bff
msPhoneCallTracker.java
93c62c8a71821f46194e16ca3e84f95e101edb90 15-Mar-2016 Amit Mahajan <amitmahajan@google.com> More ImsPhone unit tests.

Bug: 25691379
Change-Id: I9d0c6c45def7cf60228ea86412cf38d55068a6ff
msPhone.java
msPhoneCallTracker.java
msPhoneConnection.java
7dc57a87610b8f203605639338c5aca12886ec53 12-Mar-2016 Amit Mahajan <amitmahajan@google.com> More unit tests for ImsPhone.

Bug: 25691379
Change-Id: I32e96837df872eec6671b46f5e5d1b2b4a3bc665
msPhone.java
msPhoneCallTracker.java
6882f480d0141b3a111a340309147e74458f4eda 08-Mar-2016 Omkar Kolangade <omkark@codeaurora.org> Merge "IMS-VT: Update video state of the connection first." into mm-wireless-dev
am: 2e4144afaf

* commit '2e4144afaf7c62fb7cfacb094c94a63d6e32a8c7':
IMS-VT: Update video state of the connection first.
c1128c76f1afc3f01c735eeca951045f701a68ed 07-Mar-2016 Amit Mahajan <amitmahajan@google.com> Merge "Phone-switch cleanup: remove updateParentPhone()." into nyc-dev
d1d673d28b2cf14e21e50868e05d96ff73e951af 05-Mar-2016 Amit Mahajan <amitmahajan@google.com> Phone-switch cleanup: remove updateParentPhone().

This is not needed as the parent phone object never changes with
the phone-switch refactor.

Bug: 25793157
Change-Id: If1cf30bc9f35a23cf7fc1c713517e99cbaa063b1
msPhone.java
57d5bd9f23c9b380ddd205665758ece8784578a4 21-Aug-2015 Omkar Kolangade <omkark@codeaurora.org> IMS-VT: Update video state of the connection first.

Video state is used to determine if connection modification
happened. Delaying video state updates confuses other layers,
which use the video state notification to determine if session
upgrade/downgrade happened.

Bug: 27477899
Change-Id: Ibc5f89dc631625322b04f8f68686877a2b25999b
msPhoneCallTracker.java
ecac744a4e585e3c7af95ffa06fa3e711131200c 02-Mar-2016 Amit Mahajan <amitmahajan@google.com> First unit test for ImsPhone.

Bug: 25691379
Change-Id: I61a2f0805220782e7dbebaf50604b596ef3ba24b
msPhone.java
msPhoneCallTracker.java
ce000ddfbb615f873e9fc0a4c68f992b12d3f82f 01-Mar-2016 fionaxu <fionaxu@google.com> First Unit test for IccPhoneBookInterfManager

bug: 25691379
Change-Id: I96ca9db99ec10affa044a7373fb0acfd836a62ae
msPhone.java
msPhoneMmiCode.java
75ba09a17a669f4906268088a769836aa87d8241 19-Feb-2016 fionaxu <fionaxu@google.com> ImsPhoneCallTracker Test

bug: 25691379
Change-Id: Iaa258417cea39e82325fa812fc7b6fdce4bd5cfc
msPhone.java
msPhoneBase.java
msPhoneCallTracker.java
f4d5de98490b7b1a9dcea8df4e10a13315a71403 24-Feb-2016 Tyler Gunn <tgunn@google.com> Merge "Inform registrants of which connection started or stopped the hold tone." into nyc-dev
ad03bd3454a9dd0e8edb61b8794f07d8a26f8187 18-Feb-2016 Tyler Gunn <tgunn@google.com> Inform registrants of which connection started or stopped the hold tone.

When receiving a hold tone signal and informing registrants via
startOnHoldTone/stopOnHoldTone, also include the connection which initiated
the start/stop. This is necessray to ensure only the TelephonyConnection
which initiated a hold tone issues a Connection Event.

Bug: 25357778
Change-Id: I1590b61affb28c40173f08a8f6233d8efe6a5e6e
msPhoneBase.java
msPhoneCallTracker.java
b456cd0d4709a7a4d6eb7f35394ebba00895b133 18-Feb-2016 Chen Xu <fionaxu@google.com> Merge "ImsPhoneConnection Unit Test" into mm-wireless-dev
am: 0c0e3fa5a5

* commit '0c0e3fa5a512ef858a0713bb2d4320ad05968b3a':
ImsPhoneConnection Unit Test
f9b150b221db15e88b97a0b9c0971ca3c71c0313 17-Feb-2016 fionaxu <fionaxu@google.com> ImsPhoneConnection Unit Test

bug: 25691379

Change-Id: I97709053f4f1265646c4b8a03c314b3fc88caf4a
msPhoneBase.java
msPhoneCall.java
msPhoneCallTracker.java
msPhoneConnection.java
f066553c79b2c022a238037f7182e4d60193375d 16-Feb-2016 Omkar Kolangade <omkark@codeaurora.org> IMS-VT: Update videoProvider in main thread
am: ee275ae7d4

* commit 'ee275ae7d45847e3eb84ce7725df3717d3addee3':
IMS-VT: Update videoProvider in main thread
ee275ae7d45847e3eb84ce7725df3717d3addee3 20-Nov-2015 Omkar Kolangade <omkark@codeaurora.org> IMS-VT: Update videoProvider in main thread

Setting video provider in seperate thread is causing timing
issues due to which media signalling is happening on
video provider of closed session. So, process merge complete
indication after video provider is updated to ensure that
media signalling happens on video provider attached with
conference imscallsession.

Bug: 27170551
Change-Id: I9a5ca67402effbf22135addcbd3be240d36669b8
msPhoneCallTracker.java
9a63a4470a3cd7e6db47d9856db2e698e17bdab3 11-Feb-2016 Amit Mahajan <amitmahajan@google.com> Merge "Change to move postDial related info up to parent Connection class." into mm-wireless-dev
am: 9af2d6870b

* commit '9af2d6870b662c84ae521944ac054c583a7b4cf6':
Change to move postDial related info up to parent Connection class.
0ae749285976deff6f73db0d414f36548c5682b3 09-Feb-2016 Tyler Gunn <tgunn@google.com> Fix issue where mSwitchingFgAndBgCalls was not cleared after swap.

The mSwitchingFgAndBgCalls flag is used when performing a call swap along
with mCallExpectedToResume to determine if if the call swap was successful.
The existing code in onCallResumed handled the case where the wrong call
has resumed, which indicates that the swap failed. It did not, however
handle the case where the call which was expected to resume did resume.
In this case the mSwitchingFgAndBgCalls was left set to TRUE.

In the case of this bug, after 2 swaps, a remotely disconnected fg call
would cause the bg call to auto-resume, which it should not. This is due
to the fact the mSwitchingFgAndBgCalls flag was left TRUE from the last
swap.

Bug: 26115831
Change-Id: I934f2eff54365b5e92b56299a6692857faf617bf
msPhoneCallTracker.java
032d73c15281387a97cdb91c6f0c7c3a1b1b230e 04-Feb-2016 Amit Mahajan <amitmahajan@google.com> Change to move postDial related info up to parent Connection class.

This is so that it can be easily migrated between different phone
types.

Bug: 24146109
Change-Id: I14c8016426d86e655b9ed3ed1dbc3c1eba4ede8f
msPhoneConnection.java
5d5ec64fcd293928776aebe5c92278afb5bc019d 29-Jan-2016 Pavel Zhamaitsiak <pavelz@google.com> Modify CommandsInterface.setupDataCall()

- Change numeric parameters from String to int
- Move inside conversion of radioTechnology from RIL_RADIO_TECHNOLOGY_*
constants to values expected in RIL_REQUEST_SETUP_DATA_CALL parameter

Change-Id: I12e98c59ef115ee8d2454560a7a787e74dc95f49
msPhoneCommandInterface.java
a8b33dee0bc27112a4c6cc9f8f733b03eb4ae3d0 29-Jan-2016 Pavel Zhamaitsiak <pavelz@google.com> Merge "TelephonyEventLog: Add some unit tests and missing log events" into mm-wireless-dev
9746fca2d7389f0fce6d5d031d87acd87b9de723 28-Jan-2016 Pavel Zhamaitsiak <pavelz@google.com> TelephonyEventLog: Add some unit tests and missing log events

Also some code cleanup and minor bug fixes.

Change-Id: I327566f8c3839bf64aebc4db0c6170ba2bd7de87
msPhoneCallTracker.java
f83df11772fcf7f2aae0d9179b4d36eba92ad74e 22-Jan-2016 Tyler Gunn <tgunn@google.com> DO NOT MERGE IMS: Capabilities propagation

Propagating capabilities for voice and
video, based on which upgrade/downgrade
will be allowed.

BUG=22728624

Change-Id: If276c23849f64a5e6cbeae798a1c74efe79922a5
msPhoneConnection.java
836576ff591cd4fcbfafbc89154009a6f587f070 27-Jan-2016 Tyler Gunn <tgunn@google.com> Merge "IMS:Exit ECBM before dialing pending non-e911 call" into mm-wireless-dev
791a8f50cc8af712c92c79b576a6c90326c1df60 27-Jan-2016 Tyler Gunn <tgunn@google.com> Merge "IMS: Notify supplementary service failed for call hold failures" into mm-wireless-dev
e018fd6dcd17af3890ad481eeaad1f70417543f7 26-Jan-2016 Amit Mahajan <amitmahajan@google.com> Merge "IMS: Fix ClassCastException" into mm-wireless-dev
5326ba5f8e9488416fd7160680dc6b6319c6b00e 10-Oct-2015 Anju Mathapati <anjucm@codeaurora.org> IMS: Notify supplementary service failed for call hold failures

- We need to notify supplementary service failed in case call
hold fails.

Change-Id: I46548397e726f621776ea8f37dca0ad28af70554
BUG=26770582
msPhoneCallTracker.java
e5c2995cec720cb3f0ba6609378574683770108d 10-Dec-2015 Anju Mathapati <anjucm@codeaurora.org> IMS:Exit ECBM before dialing pending non-e911 call

When the device is in Emergency CallBack Mode, then exit the
ECBM before dialing a pending non-emergency mobile originating call.

Change-Id: I22cf3540dbff7630203feca13c255e61ec2500d4
BUG=26719991
msPhoneCallTracker.java
54cbd3249f084e6cefe2cbb6a4dff9ac4803046f 25-Jan-2016 Tyler Gunn <tgunn@google.com> Merge "IMS: Display caller name for MT VoLTE call" into mm-wireless-dev
47db466cbaddb873534c8be0687f78562b472c1a 25-Jan-2016 Pavel Zhamaitsiak <pavelz@google.com> Merge "IMS: Handle exception for an invalid service class" into mm-wireless-dev
27e0378194d55fdcb23f4a3a85dc620a234b5855 25-Sep-2015 Anju Mathapati <anjucm@codeaurora.org> IMS: Display caller name for MT VoLTE call

Caller display name is not getting updated on UI if Telephony
doesn't receive the caller information in the first incoming
notification from RIL.

Update the caller display name received in the subsequent
incoming notifications from RIL.

Bug: 26718453
Change-Id: I706b08c0bdba199400d1fd6a7e8cd780878e495f
msPhoneCallTracker.java
msPhoneConnection.java
90301a65da12d775be85d08ef3ccd0aa980e25e4 23-Mar-2015 Anju Mathapati <anjucm@codeaurora.org> IMS: Propagating MMI error string to UI

Whenever there is a exception from lower
layer for MMI request, propagate error
string that comes from lower layer.

Bug: 26717217
Change-Id: I117a5c69949c254229334228e62247eb14f15680
msPhoneMmiCode.java
340a263442798f3d959bc443375ab9a5c6654441 30-Nov-2015 Anju Mathapati <anjucm@codeaurora.org> IMS: Handle exception for an invalid service class

When an invalid service class is dialed via MMI code, catch the
runtime exception and return as unsupported.

Bug: 26713792
Change-Id: Idd6c50dd4d156998d1072dc04fab0cc42665e5a4
msPhoneMmiCode.java
6e5c70b724b1900d3c689f254cc1fb04e080ac07 11-Sep-2015 Anju Mathapati <anjucm@codeaurora.org> IMS: Fix ClassCastException

- ClassCastException is due to calling
AsyncResult.forMessage twice.

bug: 26716329
Change-Id: I9f90c740d1a8442c462419f9ab2c7bdc2ada036a
msPhone.java
a57b6e419678ea9db7455cf4abc90b2f085e8852 15-Jan-2016 Amit Mahajan <amitmahajan@google.com> Merge "Send emergency call state change intent on emergency call start/end" into mm-wireless-dev
a579e9c631d70bb6dbd39283438212d5ff8f19c0 14-Jan-2016 Amit Mahajan <amitmahajan@google.com> Send emergency call state change intent on emergency call start/end

Bug: 24147407
Change-Id: I2517daf2bde95a95c68b2c74225fad7004bd73c5
msPhone.java
msPhoneCallTracker.java
5054dfa7fd9b0520d30a102ed5a2107af11590c8 12-Jan-2016 Pavel Zhamaitsiak <pavelz@google.com> Use TelephonyEventLog to send events to TelephonyDebugService

Send following:
- RIL Data call events
- RIL Voice call events
- RIL SMS events
- Service State changes
- IMS call events

Change-Id: I865d8852982aca03b770e8712aac707afecb0f79
msPhoneCallTracker.java
410298cb95b110609193941807aff6c9676d2304 05-Jan-2016 Jack Yu <jackyu@google.com> Removed the usage of setState, which is a deprecated API.

The caller should call setVoiceRegState instead. This also helps
reduce Rlog since we will not see the complaining debug message
about using this deprecated API anymore.

bug: 26404646
Change-Id: I4562ef9b088ab051a291fe1b5ad29216fe5c33e7
msPhone.java
msPhoneBase.java
c1b229b7389e4cd682452c8d662afa1b3af14345 30-Dec-2015 Jack Yu <jackyu@google.com> Reduced the radio log

Reduced the radio log by moving some to VDBG or merging few lines
into one.

bug: 25956251
Change-Id: I6a18b6f101ac5bb9aff40c2223fc72034e0cf5bf
msPhoneCallTracker.java
dc3b93d59312b84dcfa776f7691f6a87462b45a2 29-Dec-2015 Jack Yu <jackyu@google.com> Added dump support to more telephony components.

Added dump support to Ims components and also improved service
state tracker dump support.

bug: 25955373
Change-Id: I295ac57be70303b072069dca70fd3b8827461cfc
msPhone.java
msPhoneCallTracker.java
30646d039eb54def9efd55fc54772e111b5ef115 17-Dec-2015 Amit Mahajan <amitmahajan@google.com> Removed unnecessary proxies.

Bug: 25793157
Change-Id: I692f140b89d23448a5261fec8cdeb60305287662
msPhoneBase.java
c2b66d57e16623dffc2fe6d02ded4f24c014b6c8 14-Dec-2015 Amit Mahajan <amitmahajan@google.com> Code cleanup including removing direct references to IMS classes.

Bug: 25793157
Change-Id: I45ab1394d8585ae3d649f1bb8f67bcd16a946a85
msPhone.java
msPhoneBase.java
msPhoneCall.java
msPhoneConnection.java
msPhoneMmiCode.java
31baa629e6d1afe981002be95d5287f23af46a67 11-Dec-2015 Tyler Gunn <tgunn@google.com> Merge commit '5e135330856f187b160cc0c235afc1aafdba2099' into mncvtdev-to-mmwirelessdev-merge-2015-12-10

Change-Id: Iee290e7651cf059cf660b056866337eb311738b7
1a87ab3d7170d618f048c4f5af8c7504a587aaa5 10-Dec-2015 Jack Yu <jackyu@google.com> Merge from master

Change-Id: Ifbd86600111d2c444031ff608fab62fb2ee4b236
msPhone.java
msPhoneBase.java
msPhoneCallTracker.java
msPhoneCommandInterface.java
msPhoneConnection.java
msPhoneMmiCode.java
2e66c6325d321e41b8851da9a4596f7a745c7b1e 02-Nov-2015 Tyler Gunn <tgunn@google.com> Set WIFI icon for connection based on connection extra.

Previous methodology looked for changes in the Ims feature availability
in the ImsPhoneCallTracker. I.e. there was an assumption made that if
the IMS stack had VoWIFI enabled that we were using it.

A new extra was added for the 3 nexus devices,
ImsCallProfile.EXTRA_CALL_RAT_TYPE. This determines the radio technology
in use for a call, which we can then use to accurately show the WIFI
calling icon.

Bug: 20144385
Change-Id: I5aee9a571c7458f576a9208b81bed9781046a39a
msPhoneConnection.java
5bb5a8e73f4ff2cca480cec3d296b4ccf254580e 27-Oct-2015 Amit Mahajan <amitmahajan@google.com> Merge "Save call forwarding flag in SharedPreference." into mnc-dr-dev
eadee84166d397b6425cfd56f89fa1569f6a93f5 22-Oct-2015 Amit Mahajan <amitmahajan@google.com> Save call forwarding flag in SharedPreference.

Bug: 22822731
Change-Id: I801738685b65fc0ee0410c1ad4925d15694c81f4
msPhone.java
msPhoneMmiCode.java
553db651cd5a51eedde0259d5a25e91700ef96c5 23-Oct-2015 Tyler Gunn <tgunn@google.com> Ensure connection extras set before connection start are passed through.

In ImsPhoneConnection, the extras pertaining to a "Child number" were
set on the ImsCallProfile prior to the connection being created. Turns
out we only pass along extras when they're changed. However, when the
connection is new we never call the callback to indicate the connection
extras changed.

Added code in ImsPhoneConnection to set the extras when the connection
is first created.

This ensures the extras make it to InCall for incoming calls.

Bug: 24585039
Change-Id: I90993a278b76371bf514fd332adf78bc58505357
msPhoneConnection.java
08111609eb4e838de7bff4960bbbd7f9c54a060e 14-Oct-2015 Pavel Zhamaitsiak <pavelz@google.com> IMS: Fix ArrayIndexOutOfBoundsException

On some configurations IMS service is not reporting UT capabilities.
We should correctly handle such shorter feature capability list.

Bug: 24882289
Change-Id: I96a2c5d09b4e83bdcd5e8b31a5bb1446638757a5
msPhoneCallTracker.java
ec15371b29d1016c33ba0f866f5ae6fb4ae3dbde 10-Sep-2015 Shishir Agrawal <shishir@google.com> Allow non-persistent manual network selection.

Allow the API to specify if the selection should be persisted across reboots.
This also has the side affect of not notifying the user when signal is lost.

Necessary becasue the API might be used transparent to the user and the
notifications will be bizarre.

Bug: 23971948
Change-Id: Ic07d3a4b531b0bc89f26617ffae4bb678488d958
msPhoneBase.java
4677e1d9088a0cc787112b5daa0b70896021920e 11-Sep-2015 Tyler Gunn <tgunn@google.com> Add early-bail in instant lettering cleanse method.

- This was a nit from a previous commit. Adding an early-bail in the
method which cleanses instant lettering messages.

Bug: 22779583
Change-Id: I76010fca96323284cc06e5cbe596218e30d59dcf
msPhoneCallTracker.java
746b6b52a15b53ef141c18d1a5bbb13f5fa7d10c 11-Sep-2015 Tyler Gunn <tgunn@google.com> Merge "Escape carrier-specified characters with backslash for call subject." into mnc-dr-dev
21048a2bc97d932a3ddecdfd79003a03f34263ec 02-Sep-2015 Nivedita Sarkar <nsarkar@codeaurora.org> IMS: Decouple Call Extras from call state change notification.

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 raising onExtrasChanged event when
changes in extras are detected.

Bug: 22329706

Change-Id: I7c0f5dc3229b2d7ae83d06a8e3fade45d1b62c90
msPhoneCallTracker.java
msPhoneConnection.java
5c0859c8c66d65f066fedf300ff75eee42114657 10-Sep-2015 Tyler Gunn <tgunn@google.com> Escape carrier-specified characters with backslash for call subject.

Added ability to escape carrier-specified characters with a backslash
in call subjects prior to sending.

Bug: 22779583
Change-Id: Iab68a1036238581a86dadccd969ffdc7e1a2fa52
msPhoneCallTracker.java
c421278a6b58c0e38aac8106b38312e5a2961389 09-Sep-2015 Santos Cordon <santoscordon@google.com> Merge "Nullify mPendingMO *before* updating the call state." into mnc-dr-dev
e60eeda2d11680f919879d4fca2fc0f623fd546e 09-Sep-2015 Tyler Gunn <tgunn@google.com> Merge "Remove carrier-defined invalid characters from call subjects." into mnc-dr-dev
d6345bfe54d2fa3e1e8d6997cef73105be07f660 09-Sep-2015 Tyler Gunn <tgunn@google.com> Remove carrier-defined invalid characters from call subjects.

1. Look up a regular expression containing carrier-specific invalid
characters for call subjects.
2. If found, use reg exp to cleanse the call subject prior to setting
on the dial intent.

Bug: 22779583
Change-Id: I708468294e94d5959cd2fe0f605ec0515b6e2eaf
msPhoneCallTracker.java
2770b0f5449670eadab1d68ea8d5fa4788f4704a 09-Sep-2015 Santos Cordon <santoscordon@google.com> Nullify mPendingMO *before* updating the call state.

The code used to null out mPendingMO after it send out the notification
and updating it's state. While mPendingMO is not null, update-state code
will always short-circuit to offhook so it is necessary to reset the
variable before updating the state (GSM & CDMA already do this).

Bug: 23530363
Change-Id: I0491b371d0de52d21fd6e0d96e2660c63c38fada
msPhoneCallTracker.java
8bfa1b42f0ffebf33239546ceaf5d6f5ca813191 01-Sep-2015 Amit Mahajan <amitmahajan@google.com> Adding emergency call start/end indications in ImsPhone.

This is needed to correctly support emergency callback mode.

Bug: 23704763
Change-Id: I1983987b75e055d8acf99b9e628bbcabbd41c911
msPhoneCallTracker.java
msPhoneConnection.java
3ad4ada3da3377ecdc7857b681069c2e115b936d 14-Aug-2015 Tyler Gunn <tgunn@google.com> Merge "IMS: Call Extras Propagation To Network" into mnc-dr-dev
c02d6b7f2f48a291b42892424e6858f71c3d84a9 14-Aug-2015 Tyler Gunn <tgunn@google.com> IMS: Call Extras Propagation To Network

Adding the missing plumbing required for call
extras to be propagated to the network as part
of a Dial request.

Bug: 22685114
Change-Id: Ic5ed1757b23a0951f8fb0fb50a8d373336dc3a6b
msPhoneCallTracker.java
6bb557b243f3fc9984b82319026519608ada2c9c 12-Aug-2015 Roshan Pius <rpius@google.com> Add delay between DTMF tones to meet carrier spec.

Carrier specifications require a minimum delay of 215ms between DTMF
tones that are sent out. So, adding a delay between the end of
processing a DTMF char and begining of processing of the next DTMF char.

BUG: 23064351
Change-Id: Ife7b9dfe99319cd3fd383034d8076dd475ad5fa0
msPhoneCallTracker.java
msPhoneConnection.java
a7ea072ebf4f5f2f60248e59b8b1bf5a60d89f25 09-Aug-2015 Pavel Zhamaitsiak <pavelz@google.com> Merge "IMS: Set CLIR API Preference Caching" into mnc-dr-dev
58a8cae64aa40e07d31f2f31cdd9932df056d995 07-Aug-2015 Anthony Lee <anthonylee@google.com> Merge "IMS : UT Service Capability" into mnc-dr-dev
164cea0175c29fa2da4652253b1f3b3c03707c3e 15-Jun-2015 Anju Mathapati <anjucm@codeaurora.org> IMS : UT Service Capability

1) When UT is enabled, storing the value in
ImsPhoneCallTracker and retrieving the same
through ImsPhone

2) When service state is OOS, check the
UT capability. If enabled, then process
the dial request

Change-Id: I88a3c3ad544e876085f108b386eb57a3bc36b488
Bug: 21850717
msPhone.java
msPhoneCallTracker.java
99faf716a99c5eda3dc6693c5afbb94897c8cd4b 04-Aug-2015 Shriram Ganesh <sganesh@codeaurora.org> IMS: Set CLIR API Preference Caching

Set CLIR API in GSMPhone can hand over propagation
to ImsPhone; which handles success/failure response
subsequently. For a success Set CLIR response,
ImsPhone needs to cache the CLIR setting in the
SharedPreferences, similar to GSMPhone's behavior.
Moving saveClirSetting method to PhoneBase to
accommodate the same.

Bug: 22986988
Bug: 22903347
Change-Id: Ica58aee0e55d93b23f63033e817045ac0a9a3a9e
msPhone.java
c1d9e728264af06808d4374d39c71dd81642cafc 06-Aug-2015 Tyler Gunn <tgunn@google.com> Populate EXTRA_DISPLAY_TEXT for outgoing calls with a subject.

- Ensure call intent extras are passed into dialInternal, allowing the
RIL to know the subject.
- Set the EXTRA_DISPLAY_TEXT on the imsCallProfile to the
EXTRA_CALL_SUBJECT from Telecom.

Bug: 22685114
Change-Id: If5a2c2d505a1120cdb0a6560906fa8c20e5edeb9
Signed-off-by: Tyler Gunn <tgunn@google.com>
msPhoneCallTracker.java
dcd076fab22ea9e9c96af5da03e04aaba7c57ee2 23-Jul-2015 Nathan Harold <nharold@google.com> am 13f146ab: Merge "Improve logging in ImsPhoneCallTracker.onFeatureCapabilityChanged()" into mnc-dev

* commit '13f146ab20a69f90cf9e7a58ae38767f5b875577':
Improve logging in ImsPhoneCallTracker.onFeatureCapabilityChanged()
915b8a421c34b0872c96199d4390a70d5a76ed98 21-Jul-2015 Nathan Harold <nharold@google.com> Improve logging in ImsPhoneCallTracker.onFeatureCapabilityChanged()

Change-Id: I839316f14bc53d2c4ec5a39112c6bed5263173c2
msPhoneCallTracker.java
d242431c27d4a7af9f2de3c16e570a3fc4a963bb 20-Jul-2015 Tyler Gunn <tgunn@google.com> am ac464da4: Merge "Prevent preciseCallStateChanged from firing for media capabilities change." into mnc-dev

* commit 'ac464da4b52c34dc989d7356cba983a82f6d300c':
Prevent preciseCallStateChanged from firing for media capabilities change.
d8413260e889d5b4db43e652304553ed29fa3e41 20-Jul-2015 Tyler Gunn <tgunn@google.com> Prevent preciseCallStateChanged from firing for media capabilities change.

In processCallStateChanged, there was the potential for
"notifyPreciseCallStateChanged()" to be called, even if ignoreState was
true. Moved the code for invoking the precise call state changed
callback into the "else" clause of the conditional.

Bug: 22564433
Change-Id: Ib2a05bd5f592005d57623812c6cd40c2bfcbf253
msPhoneCallTracker.java
593f6da2f72898a723f4423f174e83ceca691f03 16-Jul-2015 Tyler Gunn <tgunn@google.com> am 5299d996: Merge "Enhance ImsPhoneCall/Tracker logging and fix swap on bad state change" into mnc-dev

* commit '5299d9964976098ad5192474d485dbd02db9a0d4':
Enhance ImsPhoneCall/Tracker logging and fix swap on bad state change
5299d9964976098ad5192474d485dbd02db9a0d4 16-Jul-2015 Tyler Gunn <tgunn@google.com> Merge "Enhance ImsPhoneCall/Tracker logging and fix swap on bad state change" into mnc-dev
53ed80f4bd5b15ca9494a376f05c84f0ac79462f 14-Jul-2015 Anthony Lee <anthonylee@google.com> resolved conflicts for merge of d9c3a08d to mnc-dr-dev

Change-Id: I0df7348fbbca184c5da80a28f24e0751be036f16
707644d8250cc5c3c2287068a9df210d7eb3e863 14-Jul-2015 Tyler Gunn <tgunn@google.com> Enhance ImsPhoneCall/Tracker logging and fix swap on bad state change

ImsPhoneConnection:
- Added check in update() to ensure we skip the update if we are putting
the call into an ACTIVE state, but there is a pending request to
hold the ImsCall. This is really a bug in the RIL; we are NOT getting
the callSessionHeld callback when putting a recently formed conference
call into the background. Without this check, we end up detaching the
ImsPhoneConnection from the "background" ImsPhoneCall and attaching it
to the "foreground" ImsPhoneConnection, which causes a scenario where there
are multiple active calls at the same time. I will file a bug against
the RIL to fix this missing state reporting.

ImsPhoneCallTracker:
- in switchWaitingOrHoldingAndActive check for the case where we are
holding a foreground call and reset the flag indicating we're expecting
to see a resume. This wasn't causing the bug I was working on but I
can see how it might have undesirable effects.
- added some extra debug logging to help track down hold/resumes
- fixed some BAD logic in onCallMerged added in change ID
I94abbae37eb6773f1824c0e5c3a267d345610ada. This code was swapping the
ImsPhoneCall references for foreground and background directly in order
to ensure that the right calls were passed in to ImsPhoneCall#merge.
The ImsPhoneCallTracker assumes the ImsPhoneCalls mForegroundCall and
mBackgroundCall will always stay the same; ImsPhoneConnections are attached
and detached from these ImsPhoneCalls, but the original references must
stay the same. Fixed up that code to ensure it does what its supposed to
without messing up the original references.
- Added logState method which can be turned on via debug flag to periodically
dump verbose state of the calls tracked my ImsPhoneCallTracker. I had
a hard time figuring out what was going on and this helped a lot.

ImsPhoneCall:
- Added enhanced logging when ImsPhoneConnections are moved between the
foreground, background, etc calls. Also added knowledge of whether an
ImsPhoneCall is a foreground or background call so that logging can be made
more clear.

- After operations which change which calls are FG or BG, calling
ImsPhoneCallTracker.logState() which will log the full ImsPhoneCallTracker
state for even easier debugging (but only if the stop-ship flag is on).

Bug: 22173672
Change-Id: I704af9522a81ee036f290c7c723de4c3602229fd
msPhoneCall.java
msPhoneCallTracker.java
msPhoneConnection.java
d9c3a08d5958e5ced0c0c9f7aabf376a5fe59bb2 08-Dec-2014 Anju Mathapati <anjucm@codeaurora.org> IMS: Do not update connection state for onCallUpdated callback.

onCallUpdated callback is to inform updates on parameters of ImsCall
other than the call state. Updating the call state during onCallUpdated
is sometimes corrupting the connection state, especially during
hold/resume operation. Hence refactored code to not update state
of connection for call updated callback.

Change-Id: I55ed948fe3b5b03f8836b84d7952a39f97cd2a8a
Bug: 22170586
msPhoneCallTracker.java
msPhoneConnection.java
3f39a2e8779de4a459493484aed229ce53b0da1c 09-Jul-2015 Etan Cohen <etancohen@google.com> resolved conflicts for merge of df922b8a to mnc-dr-dev

Change-Id: I05b8c007c891b2c5d476ec1e58e5f26a09910f12
59d7c92cdd71cdc7cbaf460a77243cea3da6bbf4 09-Mar-2015 Shriram Ganesh <sganesh@codeaurora.org> IMS: Update data rat in IMS phone service state.

Keep the data rat information in Ims phone servicestate updated
with that from default phone.
This makes sure applications can query correct data RAT when
default phone is not registered to voice and ims is in service.

Bug: 22123213
Change-Id: I8161a43efe9408572d41d7a0a320972873a7e60c
msPhone.java
13fdc46cce53cd571fe19c69d944a5d597db9c55 07-Jul-2015 Anthony Lee <anthonylee@google.com> am e589ac93: Merge "Change conference connect time to ignore undefined connect times." into mnc-dev

* commit 'e589ac9330e28d0e7fb76fed963c8c846fff047b':
Change conference connect time to ignore undefined connect times.
e589ac9330e28d0e7fb76fed963c8c846fff047b 07-Jul-2015 Anthony Lee <anthonylee@google.com> Merge "Change conference connect time to ignore undefined connect times." into mnc-dev
8762e33ba987774e43aa9f4e216ebdb084d3a03e 24-Jun-2015 Tyler Gunn <tgunn@google.com> IMS: Supplementary services

- Propagate IMS supplementary services to telephony framework
- Introduce call forwarding history info.

Bug: 21725750
Change-Id: I43b281fe194e4a096dd057bb365cbf097d7be85a
msPhone.java
msPhoneCallTracker.java
03545e6c17da992dc0087fcd0db1262277e8da37 29-Sep-2014 Omkar Kolangade <omkark@codeaurora.org> IMS MWI Feature

Adding logic to propagate waiting
voice message count to UI.

Change-Id: I922d8ff3138aefdbf284b5ec9f84afcedaff59a1
msPhoneCallTracker.java
08e9c4b483dac2cbf1b7fe4cbad22f003ff92bcb 31-May-2015 Shriram Ganesh <sganesh@codeaurora.org> MWI,phantom call,Suppl services

1. IMS MWI Feature
- Add new API to update waiting
voice message count, for UI
propagation based on RFC 3842

2. phantom call support

Supplementary services

4.Unsol supplementary service notification
- send unsol supplementary notification to UI
- add call history info

5. Add Error message in commandexception

6. Add getExtras method

Miscellaneous:

7. IMS: Update Connect time for dialing/incoming SRVCC calls

Connect time (mConnectTimeReal) will be updated only for ACTIVE calls
and it's not updated for calls which are transferred from DIALING/ALERTING/
INCOMING/WAITING to ACTIVE as part of SRVCC. Due to this once call is
ended call duration will not be updated properly in connection.

Update Connect time properly for DIALING/ALERTING/INCOMING/WAITING to
ACTIVE SRVCC calls.

Change-Id: I551e63840b6a63e0cbd97919d4b03d2a68334dbd
msPhone.java
msPhoneCallTracker.java
msPhoneConnection.java
msPhoneMmiCode.java
eeeb1cb65e41778fa78abcaba93a9e4ebe351ec6 27-Jun-2015 Shriram Ganesh <sganesh@codeaurora.org> IMS: Update name, number and presentation values from ImsCall.

Update the name, number and presentation fields of ImsPhoneConnection
on every ImsCall update.

Bug: 22123241
Change-Id: I2cab669f7fe41f1bce355672622ac03259ff3f16
msPhoneConnection.java
7ee3f31d9670662a3d4a652860396340b386c29e 30-Jun-2015 Tyler Gunn <tgunn@google.com> Change conference connect time to ignore undefined connect times.

- The existing code to get the earliest connect time for a conference
could potentially return 0 (i.e. undefined). Although I've not run into
this in my own testing, it is theoretically possible.
I suspect the reason that the connect time was being reset when starting
a conference is that one of the ImsCalls must be returning a connect time
of zero, which in Telecom is treated as "unspecified" (in other words,
no connect time specified, so use now).

Bug: 22089306
Change-Id: I79be11b67767650455600befbecf841ff8b87c09
msPhoneCall.java
msPhoneCallTracker.java
025c01920e4cf357594379ef35fe89c715e3507e 23-Jun-2015 Etan Cohen <etancohen@google.com> Fix build due to merge of pag/217347 - "Auto-downgrade emergency vt ..."

Original CL:
Auto-downgrade emergency vt calls to audio when no carrier support

Change-Id: I21b486890b212a9733e8d40dab87575f66204f30
msPhoneCallTracker.java
feb939eb46ace6d4f59576ad4ccfec53f181d5b9 23-Jun-2015 Etan Cohen <etancohen@google.com> Merge commit '8560465' into merge
f38f5932049a1afae94c1b12111310f0eb476436 29-Sep-2014 Omkar Kolangade <omkark@codeaurora.org> IMS MWI Feature

Adding logic to propagate waiting
voice message count to UI.

Change-Id: I922d8ff3138aefdbf284b5ec9f84afcedaff59a1
msPhoneCallTracker.java
a39be34a8f36e16361ae9b920e02ca1237aea071 20-Jun-2015 Santos Cordon <santoscordon@google.com> am 03eab6e2: Merge "Plumb intent extras through to IMS Phone." into mnc-dev

* commit '03eab6e2e46c4efd1e9251b60013f6a4fb1b5e6b':
Plumb intent extras through to IMS Phone.
03eab6e2e46c4efd1e9251b60013f6a4fb1b5e6b 20-Jun-2015 Santos Cordon <santoscordon@google.com> Merge "Plumb intent extras through to IMS Phone." into mnc-dev
df0280231c51a24a0b66c24034827d7f73d6e1ac 13-Jun-2015 Santos Cordon <santoscordon@google.com> Plumb intent extras through to IMS Phone.

Bug: 21735451
Change-Id: I7c44a658b2585d272375c573bb31974109540bb4
msPhone.java
msPhoneBase.java
msPhoneCallTracker.java
0dc400084c21aef77ddd4cae1f45488a07e7a269 19-Jun-2015 Chao Liu <yjl@google.com> am 6e6dff5d: Merge "Store the optional vendor cause string returned by RIL in telephony Connection object. We\'ll pass it to Telecom, which could be used by clients." into mnc-dev

* commit '6e6dff5d2d81b8dc49cd4d0d6b824c07be73e606':
Store the optional vendor cause string returned by RIL in telephony Connection object. We'll pass it to Telecom, which could be used by clients.
33cfb500a7cf192adfc5ca06792fe3847073b6c1 15-May-2015 Chao Liu <yjl@google.com> Store the optional vendor cause string returned by RIL in telephony
Connection object. We'll pass it to Telecom, which could be used by
clients.

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

Change-Id: Icc2efeb35fbbaa59c4ecec5c97e776fe7e414fd3
msPhoneConnection.java
81a37ae5a6809f3977102df29e4dfd8427572d73 11-Jun-2015 Uma Maheswari Ramalingam <umam@codeaurora.org> am 007b8ea2: IMS Conference changes

* commit '007b8ea24251ebb713780be787c069cedb3a4c6a':
IMS Conference changes
007b8ea24251ebb713780be787c069cedb3a4c6a 19-May-2015 Uma Maheswari Ramalingam <umam@codeaurora.org> IMS Conference changes

CL handles -
- refer failure for held call
- 4 way conference merge

Bug: 20224516, 20232100
Change-Id: I94abbae37eb6773f1824c0e5c3a267d345610ada
msPhoneCall.java
msPhoneCallTracker.java
c67db11f3c5dfaed45769169ba507cab007d4403 31-May-2015 Shriram Ganesh <sganesh@codeaurora.org> MWI,phantom call,Suppl services

1. IMS MWI Feature
- Add new API to update waiting
voice message count, for UI
propagation based on RFC 3842

2. phantom call support

Supplementary services

4.Unsol supplementary service notification
- send unsol supplementary notification to UI
- add call history info

5. Add Error message in commandexception

6. Add getExtras method

Miscellaneous:

7. IMS: Update Connect time for dialing/incoming SRVCC calls

Connect time (mConnectTimeReal) will be updated only for ACTIVE calls
and it's not updated for calls which are transferred from DIALING/ALERTING/
INCOMING/WAITING to ACTIVE as part of SRVCC. Due to this once call is
ended call duration will not be updated properly in connection.

Update Connect time properly for DIALING/ALERTING/INCOMING/WAITING to
ACTIVE SRVCC calls.

Change-Id: I551e63840b6a63e0cbd97919d4b03d2a68334dbd
msPhone.java
msPhoneCallTracker.java
msPhoneConnection.java
msPhoneMmiCode.java
29fede43db2cf9b4207281ce946542f74134934b 09-Jun-2015 Prerepa Viswanadham <dham@google.com> am 61155b8b: Merge "Activity info and stats from modem" into mnc-dev

* commit '61155b8bb537300f796cf7c433fde7beda63f1df':
Activity info and stats from modem
27eef341b171f925ef43dd088cc559280fd7d2b9 28-May-2015 Prerepa Viswanadham <dham@google.com> Activity info and stats from modem

Change-Id: Ib00c317d8571a318491e91d79ba42577af5485a4
msPhoneCommandInterface.java
dd211525e86e632a438811aa76ccdd7ef13248fc 02-Jun-2015 Uma Maheswari Ramalingam <umam@codeaurora.org> am 61952e69: IMS: Conference fixes

* commit '61952e69d543ddc7bffdefb89cb512e22b00bf49':
IMS: Conference fixes
61952e69d543ddc7bffdefb89cb512e22b00bf49 20-May-2015 Uma Maheswari Ramalingam <umam@codeaurora.org> IMS: Conference fixes

- Add IMS Conference Participant API

Change-Id: I5f9829926beeb468cd4979db55a07e1cd3dd1c30
Bug: 21376607
msPhoneCall.java
8560465c584604ff51ceb4492bb7daca023e7d52 28-May-2015 Tyler Gunn <tgunn@google.com> Auto-downgrade emergency vt calls to audio when no carrier support.

Where the carrier config indicates that video emergency calls is not
supported, auto-downgrade to audio-only on dial.

Note: This functionality is moved from telecom.

Bug: 20089489
Change-Id: Ib72f37fa036178c5b6bc315c23533d451f605eb9
msPhoneCallTracker.java
e7c64afd4d4fbac8847a3758e896e0c017ccd144 26-May-2015 Etan Cohen <etancohen@google.com> Merge commit '6aa3318' into merge
7234bd8664dbec97858f3f635eaa01c77d2f2881 14-May-2015 Junda Liu <junda@google.com> Add EF_GID2 support to uicc and phone.

Bug: b/21078450
Change-Id: I6beaa969a95c1ad7f77868a8c56a287474da7af5
msPhoneBase.java
6aa33188a3e6329d51551a4100fe37d430ab713c 05-May-2015 Etan Cohen <etancohen@google.com> More complete (including VoLTE/VT) debug information for IMS feature changes.

Change-Id: I0f053a9512d0df4ba113bf08eb64353d68fe9f30
msPhoneCallTracker.java
52c1bebcaf545d679923ffbac870eb581faf2b13 25-Apr-2015 Anthony Lee <anthonylee@google.com> Add plumbing for merge failures and renable button. (4/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: I9a49b25b7ed08061db804e8afd01a0a34be7370c
msPhoneCallTracker.java
eb3746024a73447904242c9599d61dc9de5b9a1e 16-Apr-2015 Jay Shrauner <shrauner@google.com> DO NOT MERGE Remove connection substate

Bug:20300433
Change-Id: Ic7f097cf371204f8ec4271cea735be9fbed14a7d
msPhoneConnection.java
0944ca6b13083c9caea56ec04f4bba953c0ce61b 20-Mar-2015 fenglu <fenglu@google.com> LCE service implementation - tele service side

-redesigned based on ConnectivityService/NetworkCapabilities

Change-Id: I54074234e1117b41eb6ff761ead9241928585fc6
msPhoneCommandInterface.java
4ec77aae8534173b7395278565c323d92fcbf05c 15-Apr-2015 Pavel Zhamaitsiak <pavelz@google.com> Merge "Propagate CODE_UT_SERVICE_UNAVAILABLE from IMS stack." into lmp-mr1-wfc-dev
automerge: 5aef6ac

* commit '5aef6acce26a299f717194952dcb2f5af5c9e1ff':
Propagate CODE_UT_SERVICE_UNAVAILABLE from IMS stack.
28f0b85be9cddf2c3c9ef268e3bf2781747a66f2 15-Apr-2015 Tyler Gunn <tgunn@google.com> resolve merge conflicts of 5b326ce to m-wireless-dev.

Change-Id: I6327e47b036f9c0ad968e465b4b3f4d74038edd1
5aef6acce26a299f717194952dcb2f5af5c9e1ff 13-Apr-2015 Pavel Zhamaitsiak <pavelz@google.com> Merge "Propagate CODE_UT_SERVICE_UNAVAILABLE from IMS stack." into lmp-mr1-wfc-dev
7ada7424c83980c3d6ea2aeb46ab9641f592448d 09-Apr-2015 Pavel Zhamaitsiak <pavelz@google.com> Propagate CODE_UT_SERVICE_UNAVAILABLE from IMS stack.

Bug: 19573535
Change-Id: Ice13e35331e44f23e500e96021c04a54b6e0ebbb
msPhone.java
5b326ce011fe6c42098ca2967d5664fcce48a889 08-Apr-2015 Tyler Gunn <tgunn@google.com> Merge "Prevent merging conference calls hosted on peer device." into lmp-mr1-wfc-dev
ce67e30bf7a91a3ff63f86020c2d91c248c3a71b 01-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 adds code to propagate changes in the multiparty state of a call
from the ImsCall up to the ImsPhoneConnection.

Bug: 19478784
Change-Id: I51b84731dbc77a235d2602db751af016e6c397ea
msPhoneCallTracker.java
msPhoneConnection.java
288268d5528e0df03f348e303954813cb188c55b 24-Mar-2015 Rekha Kumar <rekhak@codeaurora.org> IMS-VT: Propagate video capability of phone to telecomm.
To dynamcally enable/disable Make Video Call button in dialer,
the phone capabilities need to be propagate to TelecommMgr.
Propagate video capability of phone to telecomm layer.

IMS-VT: Notify call updates
-When call type is updated from VoLTE to VT, this notification
does not reach UI. Fix this

Fix the issue - Unable to add second VT call when first call is active
- Cache the video state of the new pending call when the foreground
call is HOLDING.
- Use the cached video state when dialing the pending MO call or
accepting the pending MT call after the first call is put on HOLD.

Ims: Add support for WIFI network mode notifications
Added support for enabling and disabling features for Voice and
Video when network mode is WIFI or IWLAN

IMS-VT: Peer capabilities
-Add support for peer capabilities
Change-Id: I44177dd6804b69a7b790021502eda0eb3bea3cab

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

Notify video capability to listeners in certain new scenarios
- In certain cases, we have seen that when the phone
object is deleted/re-created, we fail to notify the
video capability to the listeners.
- There also seemed to be a race condition when the
time a listener registers is not in sync with
the time we are notified of the video capability.
- In order to fix the above two issues, we notify
registrants when a new phone is created and
updateParentPhone is called. Also, when a new
registrant registers with us for video capability
changed, we immediately notify them of our cached
capability.

Change-Id: Ic6002c2518104c20b5de10d1081af4559f506ace

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

Change-Id: Ia1155960492165cff7f4993a4bf98ecc920ebf41
msPhone.java
msPhoneCallTracker.java
msPhoneConnection.java
d20c102c3efad73ff1e560236b4396c0a244a8da 25-Mar-2015 Pavel Zhamaitsiak <pavelz@google.com> Add optional error codes to CallStateException

Bug: 19583351
Change-Id: I5d8b1ccb4ffc68fad6171e443468775760e83fec
msPhone.java
1d60bf2949d68b587886411543752a7922529804 05-Feb-2015 Omkar Kolangade <omkark@codeaurora.org> IMS: UT serviceClass

When CF and CW MMI request will be triggered,
user preferred serviceclass will be sent to
the lower layers.

Change-Id: I3e35e7b5d028dc2aa140a243f55c2c99a6747263
msPhone.java
msPhoneMmiCode.java
029d855056bb03191cd747da84172f9881903e6f 23-Mar-2015 Pavel Zhamaitsiak <pavelz@google.com> Wi-Fi Calling: Update strings

Latest UX requirement is to have different text for Alert and Notification

Change-Id: I4cdc8aea634808cfa9f43ab4bfd4eb38bc449002
msPhone.java
e51d918511afab905399d9fda7f51442f15bd8a7 12-Mar-2015 Pavel Zhamaitsiak <pavelz@google.com> When Wi-Fi calling is available display SPN as SPN+" Wi-Fi"

Bug:19681794
Change-Id: I2859d4d26c3103d9900befc6f5fe4aa50c6eadb7
msPhone.java
msPhoneCallTracker.java
6e501e7dd96ad52ce80479ed1f85dfd71e8d060b 12-Mar-2015 Pavel Zhamaitsiak <pavelz@google.com> Disable WFC in case of "permanent" registration failures.

Bug: 19698057
Change-Id: I6f46f89a2d993ed6dad8e15814a024ae8ef75fb2
msPhone.java
53f2bb9ba3118ff4c22e20ab3ad46ec97a72ac24 06-Mar-2015 Pavel Zhamaitsiak <pavelz@google.com> Show notifications in case of some IMS Registration errors

Change-Id: I3aded2ee422f070f19399bd3f6f56bf4f6f7272c
msPhone.java
msPhoneCallTracker.java
0ba5c4a978fba0c15c8539c790a3ae1793bd99e3 04-Feb-2015 Rekha Kumar <rekhak@codeaurora.org> IMS: Ims Registration and Handover error codes support

- Support for IMS registration error code and error message to be
passed to UI.
- Propagate the call session handover info to the UI
- Show the error message as a Toast on the UI
Change-Id: I8b53d14c8f151e19496608504918cd79150a35e2
msPhoneCallTracker.java
04b0216a5f64b70ec4b06f129946fff4ef359878 23-Feb-2015 Andrew Lee <anwlee@google.com> Update internal telephony connection's wifi state.

When the ImsPhoneConnection is updated, pass the state of whether it
is using Wifi to the Telecom Connection. This is done by checking
changes to a Connection's feature capabilities to see if
isVowifiEnabled.

This is a temporary measure. In the long run, this information will
be passed up on the ImsCallSession, and we will need to listen to
WFC handover events.

Bug: 19151548
Change-Id: I53c84cb0169abd72c35407ca3e77952bac30d656
msPhoneCallTracker.java
msPhoneConnection.java
62a2b2f341be6130e4022b487648ff2fee06db8c 14-Jan-2015 Libin.Tang@motorola.com <w16529@motorola.com> IMS: add api to indicate the current availability of IMS call on IWLAN.

Also add the WIFI only handle.

Change-Id: Ia96d8a3a6e3146603b76760cec02593bf5f1e3b6
msPhone.java
msPhoneCallTracker.java
fd2305639e3761c2bf3213463c4f17cc8310f4d0 29-Jan-2015 Tyler Gunn <tgunn@google.com> Fixing conference merge where only one party is added to conference.

- added "swap calls" flag to the onCallMerged listener. This is used
to indicate that the fg/bg calls need to be swapped after the merge.
- changed how we get the connect time for the conference. This is now
stored when a conference merge is started (required because of the delaying
of merge complete; one of the calls is already non-existent at the time
we want to get the connect time).


Bug: 18960042
Change-Id: Icc4b60756d333373fe181612824b0c13c076408b
msPhoneCall.java
msPhoneCallTracker.java
msPhoneConnection.java
e70972cf6a3b48df1f7d036877eb28529e606ca9 26-Jan-2015 Tyler Gunn <tgunn@google.com> Correcting issue where video call icon shows for all calls.

The issue is in the ImsPhoneConnection code which checks for the
VideoState of the current call. There was some work done at the RIL
level to restructure what the various ImsCallProfile instances mean.
When this code was written, getLocalCallProfile() was intended to refer
to the capabilities of the current call. This has since changed so that
there are 3 profiles:
getCallProfile() -- the actual profile.
getLocalCallProfile() -- what the local device supports.
getRemoteCallProfile() -- what the remote device supports.

On a video capable device, getLocalCallProfile() appears to now return
DO NOT MERGE "Video", where it did not in the past.

There must have been a change in the modem code recently which has caused
this to show up now (where it was not an issue in the past).

Bug: 19144923
Change-Id: If58d58a073feb05e3509570eaac4dc02749ca212
(cherry picked from commit 1259a64380b7943d0dfe965ee721b4d29ee662ce)
msPhoneConnection.java
3588d6ddff39416a909260e284ba2c0cbfdf4fe3 23-Jan-2015 Pavel Zhamaitsiak <pavelz@google.com> Merge "IMS:silent redial/srvcc call cleanup." into lmp-mr1-dev
69e989aceb5660b39932049daad2299f75f07201 20-Jan-2015 Libin.Tang@motorola.com <w16529@motorola.com> IMS:silent redial/srvcc call cleanup.

When silent redial or srvcc occurs. the IMSPhone call state is not set to idle
even after the call is ended. Also, the mConnection in mHandoverCall is not
cleaned up. This CL is to fix these 2 issues.

Bug: 19035679
Change-Id: I6bee704e2d7d8bf05ca1a910d25af4a02347328b
msPhone.java
msPhoneCallTracker.java
990c42d788cb2f39cd7a6ddd97e5ebdefb298f75 21-Jan-2015 Libin.Tang@motorola.com <w16529@motorola.com> Fix the issue that Volte call is not cleaned up properly from telephony
framework when call failure is notified through dial command response.

Bug: 19054326
Change-Id: I09feb74b36244fed05a59bb1e11bb32e08fa63cf
msPhoneCallTracker.java
90d3640600ab3b80bd7a6f878e24bb764f0b08a1 23-Jan-2015 Pavel Zhamaitsiak <pavelz@google.com> Merge "Add an API to access the CDMAPhone/GSMPhone call tracker state for DCTracker to check" into lmp-mr1-dev
1bb79c7fb3f306c113234359390a75b625703b34 22-Jan-2015 Tyler Gunn <tgunn@google.com> Merge "Fixing resume of FG call after failure to merge IMS calls." into lmp-mr1-dev
b79f845a0451895b0f0b8a926a8571511d476ce8 20-Jan-2015 Libin.Tang@motorola.com <w16529@motorola.com> Add an API to access the CDMAPhone/GSMPhone call tracker state for DCTracker to check

As concurrent voice/data is not supported for all RATs, the DCTracker checks
the default phone's call state through getState API as one of the conditions
to set up data call.
For device supports VOLTE, the default phone's getState reflects the
default phone(CDMAPhone/GSMPhone) and IMS phone call state.
So the data call can't set up if the VOLTE call is in progress.
As IMSPhone call state should not impact the data call setup, this CL is
to add an API to access the CDMAPhone/GSMPhone call tracker state for
DCTracker to check.

Bug: 19090488
Change-Id: I96bb29f80d81fa6b39e2e05f1d7f47a72244ed9b
msPhoneCallTracker.java
c7c2aff39afb425b34ea6cc17d172cc28f5ab4f0 15-Jan-2015 Tyler Gunn <tgunn@google.com> Fixing resume of FG call after failure to merge IMS calls.

The problem was due to a bug in switchWaitingOrHoldingAndActive. When
we start a swap between FG and BG calls, a flag mSwitchingFgAndBgCalls is
set so that we can detect situations where the swap fails and "unswap" the
calls.

The original switchWaitingOrHoldingAndActive which occurs when dialing out
the new call to add to the conference was failing to toggle
mSwitchingFgAndBgCalls back off because no onCallResume is received (this
is where the flag was turned off in the past).

To fix this I reset the mSwitchingFgAndBgCalls flag when we get an unhold
and do not request a resume.

Bug: 19034876
Change-Id: If9f2360bbf3d7294b856ab021e3a0a8c46f2d928
msPhoneCallTracker.java
15470bf53747992f54edb2ae61055f042db1ab18 13-Jan-2015 Tyler Gunn <tgunn@google.com> Merge "Fix for call timer resetting when starting IMS conference call. 2/4" into lmp-mr1-dev
52c193f0c615a9153a702ea2597217202613e413 10-Jan-2015 Libin.Tang@motorola.com <w16529@motorola.com> IMS: fix ImsPhoneConnection wakelock stuck
Bug: 18965642

Change-Id: If708a0cde665fd9225138bf07db7d27e2cd36709
msPhoneCallTracker.java
31b502cb274be3c20b993d51192b56f0e7a9ae09 10-Jan-2015 Tyler Gunn <tgunn@google.com> Fix for call timer resetting when starting IMS conference call. 2/4

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

Bug: 18959443
Change-Id: Id29f7ba878610a0a4eaf7bbd592f344af4c0ffc4
msPhoneCall.java
5866914ae9798adebcb84cd710bca660b797bff0 06-Jan-2015 Amit Mahajan <amitmahajan@google.com> Change to update phone # in subInfo when RuimRecords have been read.

Issue was seen because both SIMRecords and RuimRecords are read for CDMA
but subInfo is updated when SIMRecords are read. Phone # is updated
based on RuimRecords but subInfo is not updated then. Change is to call
an API to update # in subInfo after RuimRecords are read.

Bug: 18789473
Change-Id: I70f521e73dda6b2849e0c477cc8de639d4281b84
msPhoneBase.java
af622caecc38ae80d7d5d3128c3896068d78baf3 23-Dec-2014 Pavel Zhamaitsiak <pavelz@google.com> Merge "Uses TTY mode and VoLTE over TTY support to determine call type: IMS or CS." into lmp-mr1-dev
bd4bb4f2250463ba59dc98be649f6aa4df9fb682 18-Dec-2014 Libin.Tang@motorola.com <w16529@motorola.com> IMS: add the api to get IMS registration information.

Bug: 18668325
Change-Id: Id5b0ed420990bde44b3525c7ec22eb37827d649c
msPhone.java
msPhoneCallTracker.java
f1099a9dfe0250a6b343de0646413db4034381de 15-Dec-2014 Etan Cohen <etancohen@google.com> Uses TTY mode and VoLTE over TTY support to determine call type: IMS or CS.

Bug: 18593974
Change-Id: I5a993688ade0269bcf3ca61c69cf9c274e694a13
msPhoneCallTracker.java
de2242679c927ed9c46fa42f40162b113e337112 10-Dec-2014 Omkar Kolangade <omkark@codeaurora.org> IMS: Detach disconnected connections from its parent

Detach disconnected connections from its parent once
the call is ended

----------------------------------------------------

IMS: After SRVCC handover, disconnect the dropped IMS calls

After a successful SRVCC handover, disconnect the handover pending
or dropped IMS calls, if any

Bug: 18777284
Change-Id: If4899c70c587c70b8202559b3fe0027ecd166f21
msPhoneCallTracker.java
msPhoneConnection.java
4567a0789e9966929c71af9a2c3866582c85c9e0 16-Dec-2014 Nancy Chen <nancychen@google.com> Notify listeners of a Connection if a DTMF character has been processed.

In order to make DTMF digits in the post dial wait state audible to the
caller, the Connection must alert its PostDialListeners when it has
processed each character.

Bug: 18644688
Change-Id: Ic4078c2fb2cf9bfc0e6791dc76cb27ce7ab7077c
msPhoneConnection.java
6d91e295add44a5b7e611cb51401a20b3caa6571 11-Dec-2014 Pavel Zhamaitsiak <pavelz@google.com> IMS: Notify about change of TTY mode of other call participants

Pass notification to Phone app

Bug: 18247323
Change-Id: I975a93909dc02cc211e956667f5efb2ca3f330bb
msPhoneBase.java
msPhoneCallTracker.java
f5960ecb0bc8c6ab1add3755182f941ac709e173 11-Dec-2014 Pavel Zhamaitsiak <pavelz@google.com> Merge "Make sure to always call update profile (remove short-circuit bug)." into lmp-mr1-dev
5d1d2d7c9f7a3b0d09269b2a6fe8a76d4cdd0f4b 11-Dec-2014 Pavel Zhamaitsiak <pavelz@google.com> Merge "IMS: SRVCC related changes." into lmp-mr1-dev
4be56374921b52d54b80889540d982f39d26e3ab 09-Dec-2014 Uma Maheswari Ramalingam <umam@codeaurora.org> IMS: SRVCC related changes.

1. Telephony: Multiparty srvcc

Change-Id: Ie689f31d7970ecf3a5008cf1dad450045d0b34db

2. SRVCC: Add support for incoming call SRVCC

Transfer connections from ringing call to handover call on getting
Handover Complete notification. This allows for accept to be done
on the default phone instead of IMS phone after SRVCC. Set the
state of ImsPhoneCall object to Idle after the transfer.

Change-Id: I09cfcc9fc99b3ea4b3a4bd332af546bcfae4b679

3. Add support for SRVCC conference call

Add support for updating the parent of handover connections to
point to handover call.
Update status of the handover call object based on the status of
foreground, background or ringing call.

Change-Id: Iacd7daa929d0da9a0e020491669165aa42bed144

4. Add support for SRVCC connection clean up in Ims Service

Added support for SRVCC connections to be cleaned up in the IMS
Service by calling close opertion on the call session and
subsequently removing the call session from list of tracked call
sessions

Change-Id: I850ab111c884bbe7698810b15d0e9c8bdb10e8c9

5. add null check when add all srvcConnection

add null check when add all srvcConnection

Change-Id: I3bc93a301584e7fc16ef5aabf474bd1577402d22

6. IMS/911: Do not clear handover connections on SRVCC COMPLETE

Even though SRVCC or silent redial is successful, the handover connection
objects are cleared before migrated to CS domain. Proper checks are added
NOT to clear the handover connection objects as they are removed as and
when a new driver call via CS pipe is received and processed.

Change-Id: I061fa81e651b4c6b6bdea1f1cf0b09dde39fdb4a

7. Add fix for picking correct Handover connection

A single handover call cannot track both the foreground and
background call state after handover.

Added support to go through all the handover connections and
pick the first match based on the number and if there is no
match check the state.

Added support for tracking the state of call associated with
the connection before handover. This is used to retrieve the
correct connection based on state.

Change-Id: Iec87c09523d459998d0880252a71f98eb8e296a2

Bug: 18559588
Change-Id: I0c428b33e09684fc7f33f0abd7f9c0471961ad1f
msPhone.java
msPhoneCallTracker.java
549148fb25d8b38c2bd1207c1a21027c6621932b 10-Dec-2014 Etan Cohen <etancohen@google.com> Make sure to always call update profile (remove short-circuit bug).

Guarantees that HD icon information is updated on any call session updates.

Bug: 18457066
Change-Id: I6c07f75aa355942b00eb270b25a15c9f113a34d2
msPhoneConnection.java
d9aa1a75304b1c04c352198b9269f40a2a059f74 09-Dec-2014 Andrew Lee <anwlee@google.com> Pass Message to sendDtmf, notify postNotify.

+ Use ImsPhoneCallTracker's sendDtmf method instead of the commands
interface.
+ Echo GsmConnection/CdmaConnection in notifying post dial listeners
after the post dial state is updated. Otherwise, the post dial dialog
is not shown.

Bug: 18643493
Change-Id: I9db13a673bd022bf3949a268f5f54f2c8f2511fc
msPhone.java
msPhoneCallTracker.java
msPhoneConnection.java
77b812e71c7d2e434a90a777cf2b608e9db3bc61 09-Dec-2014 Tyler Gunn <tgunn@google.com> Merge "Cannot swap active and background calls after failing to merge." into lmp-mr1-dev
c204cc0f515864b36187d60f6ab79af28885d36e 06-Dec-2014 Uma Maheswari Ramalingam <umam@codeaurora.org> IMS: start and stop dtmf tones.

Support of start and stop dtmf tones in Imsphone

Bug: 18371919
Change-Id: I9dec982035e8fdffcd198685caecceffb7e9f406
CRs-Fixed: 751797
msPhone.java
msPhoneCallTracker.java
276bc50374a46461b334fef28fdf07b536d96c71 08-Dec-2014 Tyler Gunn <tgunn@google.com> Cannot swap active and background calls after failing to merge.

When a conference call merge fails, an attempt to swap between the active
and held calls will fail; resuming the bg call fails. The problem is
switchWaitingOrHoldingAndActive swaps the FG/BG ImsCall references before
getting positive confirmation that they suceeded.

1. When initiating a call swap, keep track of the call we expect to
resume. In the resume success method, check if we resume a call other than
the one we expect to. In the resume fail method, check if we failed to
resume the call we expected to. In both cases, switch the FG/BG call
references back to ensure that state signaling is handled properly.
2. Trigger a notifySuppServiceFailed on the phone to report that the
resume failed; this is used by Telephony to display a failure message.

Bug: 18656014
Change-Id: I8e67389601861a933c648ca876d4e8a12ef54fee
msPhoneCallTracker.java
bc28f0884cc08e06afdb34a9068faa4334323338 02-Dec-2014 Tyler Gunn <tgunn@google.com> Merge "Cleanup to remove misused CallGroup concept." into lmp-mr1-dev
0db65ec818e58fb5b83a492e082db4536f3b83e0 01-Dec-2014 Tyler Gunn <tgunn@google.com> Cleanup to remove misused CallGroup concept.

- Removed call group references in ImsPhoneCallTracker.

Bug: 18588383

Change-Id: I2128a978299dd7030c98c01f3e4c27ad15fbfa14
msPhoneCallTracker.java
ed588e46368d6ab91c128bcacb0a343fc65c71c2 02-Dec-2014 Andrew Lee <anwlee@google.com> Merge "Indicate high quality audio." into lmp-mr1-dev
53dde7e076954c250e55d156cc1df1202c3a8a9e 27-Sep-2014 Etan Cohen <etancohen@google.com> MSIM IMS: convert to phone ID based selection.

Bug: 18576822
Change-Id: I2dea8ef3cb897fc2f8b7798937319df06b33701c
msPhoneCallTracker.java
6a0fa4105fa8104a09b33a3403df5ae2711e0083 20-Nov-2014 Andrew Lee <anwlee@google.com> Indicate high quality audio.

Check remote profile to take into account whether we consider the
session to be using high-quality audio.

Merge two separate blocks to update media capabilities into one
helper method, and simplified code. This helper is
boolean updateMediaCapabilities(ImsCall imsCall).

Bug: 18103173
Change-Id: Iec082dda6ec80bba2ce386f8ee7398f191152a3e
msPhoneConnection.java
d3b1fc2d1f7de07a947c7bcaad1c44b5021ceac9 20-Nov-2014 Andrew Lee <anwlee@google.com> Merge "Return MERGED_SUCCESSFULLY as a disconnect cause." into lmp-mr1-dev
8f37dc99700424c41ec46960f33852f2a89683db 18-Nov-2014 Etan Cohen <etancohen@google.com> VoLTE over CDMA phone: when FG call terminated by remote do NOT unhold BG call

Matches GSM and VoLTE over GSM. The BG call is restored but stays on hold.

Bug: 18375108
Change-Id: I8ac65a9b0070b98235ccc53f9de366a84a8f07da
msPhoneCallTracker.java
f885059bcd0c294e9830bfe5aeb16974c0717fa3 13-Nov-2014 Andrew Lee <anwlee@google.com> Return MERGED_SUCCESSFULLY as a disconnect cause.

If a call was merged, change the disconnect cause to
IMS_MERGED_SUCCESSFULLY instead of NORMAL (because it was not
actually terminated as the result of a remote disconnect).

Bug: 18291234
Change-Id: I4cff83ace2aaa6062f4e182e9ac0f441bf77a23a
msPhoneCallTracker.java
069450526bd54806b9d580a7788586e877aa48cb 18-Nov-2014 Tyler Gunn <tgunn@google.com> Merge "Add null-check to isMultiparty method, additional debug strings." into lmp-mr1-dev
541accbd8e08fac77faa1c60d14533b1a5a36347 17-Nov-2014 Tyler Gunn <tgunn@google.com> Add null-check to isMultiparty method, additional debug strings.

Bug: 18200934
Change-Id: I4b146046dc0d9f5ebb7c37151d95d81629a3dd25
msPhoneConnection.java
4e47e27d1d2cbd8e533cdd2081c5bc8e51b79ad9 16-Nov-2014 Anthony Lee <anthonylee@google.com> Register for supplemental service failures in CallManager.

This is to enabled the plumbing for us to show the user an error
message when conference calls fail to merge.

Bug: 18080792
Change-Id: Ie301eac647967cbd38e66c7cdd1cb333b99adb45
msPhoneCallTracker.java
be70fe67be210ecfa4b51967f17b65bff983318c 10-Nov-2014 Andrew Lee <anwlee@google.com> Merge "Clear disconnected connections when detaching." into lmp-mr1-dev
db3aec65b5c02e3f5b28d32e4c742ba72a4b3867 08-Nov-2014 Andrew Lee <anwlee@google.com> Clear disconnected connections when detaching.

This bug was happening because there was a disconnected connection
lingering on the background call after it is resumed. Because of
this lingering connection, its state remained on HOLD and did not
return to IDLE.

This caused the phone to get in a bad state, such that when trying
to unhold the conference later on, there foreground call is ACTIVE
and the background call is HOLD, which precludes unhold from working
properly.

This fix for the bug would clear disconnected connections from the
ImsPhoneCall after detaching a connection.

Note: clearDisconnected also updates the state to IDLE, which is why
I deleted that code.

Bug: 18291230
Change-Id: I09b5e274408235a9b6630d40bf3a3161676ffc79
msPhoneCall.java
f53559f13dc272115f27f3b23955933da45ce127 04-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.

Bug: 18057361
Change-Id: I2e81a14ac6ad2858cf70d98ba0b7e14f0bd55cb5
msPhoneCallTracker.java
d7f4ed8ac190763dce7e57b737caa44654b4592a 04-Nov-2014 Tyler Gunn <tgunn@google.com> Support disconnecting conference participants from conference.

- Added implementation for onDisconnectConferenceParticipant method in
ImsPhoneConnction. Calls the "removeParticipants" method provided by the
ImsCall to inform the conference server that a conference participant
should be disconnected.

Bug: 18176606
Change-Id: Icab779a49382765c198494c18d8adc276189e9c3
msPhoneConnection.java
b52ad26bd96320f47a3157ba13d080ab71522a15 31-Oct-2014 Anthony Lee <anthonylee@google.com> Merge "Changed the prototype for onCallMerged." into lmp-mr1-dev
9511319220e2596c02b65d2cab0ca34cbec30b99 29-Oct-2014 Libin.Tang@motorola.com <w16529@motorola.com> IMS: fix auto-resume behavior for remote hangup on Volte call made on
carriers that also supports CDMA.

Bug: 18120718
Change-Id: Ib39c9e04247886786950acf84b84fe4517cb176f
msPhoneCallTracker.java
e0edd708029cd6154101437051e3068a75675ee0 30-Oct-2014 Anthony Lee <anthonylee@google.com> Changed the prototype for onCallMerged.

The removed parameter is never used and it actually doesn't make
much sense as the layer that calls this callback doesn't have
any sensible second call to return to the handlers.

Bug: 18056632
Change-Id: I4abe92c020f64692370d9ab309e0d12877bdbb06
msPhoneCallTracker.java
fdca22cc56b0e1ef1504e36a5aacb2ebbc4d146c 28-Oct-2014 Tyler Gunn <tgunn@google.com> Communicating participant changes to conference controller.

- Add event handlers to pass participant info to conference controller.

Bug: 18057361
Change-Id: Ifdd2d871994fc6e347f54d1e69686f7c68a7d6b0
msPhoneCallTracker.java
3a80c025e1f78319feaf771e406d4906ab58be0b 27-Oct-2014 Wink Saville <wink@google.com> Merge "Change subId to int from long" into lmp-mr1-dev
0d4f1fe3137cc4a76fc2bb0dac80c68220e53550 27-Oct-2014 Tyler Gunn <tgunn@google.com> Implement test IMS conference event package harness.

Implement test conference event package intent receiver and parser which
allows the user to issue an intent to cause a test conference event
package file to be injected into the current ImsCall:

adb shell am broadcast
-a com.android.internal.telephony.TestConferenceEventPackage
-e filename test_filename.xml

Bug: 18119796
Change-Id: Ic51be9442ae5b991054ccfd7655c6efd76ffd8e0
msPhoneCall.java
b237a11044ed842d2865ff8c8716befb06b6ca25 25-Oct-2014 Wink Saville <wink@google.com> Change subId to int from long

Change-Id: Idae6335e63e7b1e4e714bc17e71b1a4705e38474
msPhone.java
2c38178d30afd3f168c6506f0942f93c785d3d7e 24-Oct-2014 Tyler Gunn <tgunn@google.com> Propagating isMultiParty indicator from RIL up into Telephony layer.

- Changing ImsPhoneCall to return the multiparty bit from the ImsCall
instead of depending on the number of connections present.

Bug: 18058253
Change-Id: I0f81f16e38d3a907c8e81143b0f36d2d17e7f971
msPhoneCall.java
msPhoneConnection.java
f1227d71324a4d1916c3fd441ca688cc76129583 18-Oct-2014 Libin.Tang@motorola.com <w16529@motorola.com> IMS:Re-Initiate Conference Call from Leaf Node Causes Conference Call Crash.

During conference call, if there is an incoming call and user accepts it,
the ims FW triggers two accept commands since ims FW triggers the onCallHeld
multiple times for conference call.
The multiple accept commands causes the ims ril to respond failure. As the result,
the call drops and also crash occurs.
The fix is to block the multiple accepts in ims FW layer.

Bug: 17606426
Change-Id: I89904d4c64dad0d19398f74408ddc177f59c40ce
msPhoneCallTracker.java
3b2b1bd2293667d4de32920cdad2c19f77777e2f 18-Oct-2014 Libin.Tang@motorola.com <w16529@motorola.com> IMS: fix Missed call notification not shown.

Bug: 18012896
Change-Id: Ifff83c401171de7317ab93359174df357779c38a
msPhoneCallTracker.java
8d0025d614edb5075f72b2fc95b0cae069068283 20-Oct-2014 Wink Saville <wink@google.com> am 2b40e622: Radio Capability Support.

* commit '2b40e6226b4b71408964bca46f0a9f256cd4f523':
Radio Capability Support.
2b40e6226b4b71408964bca46f0a9f256cd4f523 18-Oct-2014 Wink Saville <wink@google.com> Radio Capability Support.

New design of capability switch for L.
Add new RIL requests:
RIL_REQUEST_GET_RADIO_CAPABILITY
RIL_REQUEST_SET_RADIO_CAPABILITY
RIL_UNSOL_RADIO_CAPABILITY

These commands allow the framework to communicate what the Radio
Capabilities for each logical modem has or should be using.

It can support 2/3/4G switch and has flexible architecture to support
future technology.

Change-Id: Iedf7f608d2ba3c06a883500f2d85abb98e69d9c1
msPhoneCommandInterface.java
5fbf6bed80437e092a93e6137de56e6b409910b1 17-Oct-2014 Etan Cohen <etancohen@google.com> Added log to clarify cause of incoming call termination: rejected or missed

Change-Id: Id59630b6fefb50bc4320622f79ca70a7459ba28b
msPhoneCallTracker.java
f8a5a95e21d2844193b9f9ce91fbee379df84504 13-Oct-2014 Libin.Tang@motorola.com <w16529@motorola.com> IMS:autoresume the holding call to simulate CDMA network behavior
when default phone is CDMAPhone during voltecall.

Change-Id: I8bc363c0f3e9385d14c4a067ae055069e41081c1
msPhone.java
msPhoneCallTracker.java
3f1fa0373259a7c65b9471c862a6b5402ea07fe0 26-Sep-2014 Omkar Kolangade <omkark@codeaurora.org> IMS UT Exception and Call Forwarding

Adding handling of ImsException in
ImsPhone, supporting propagation of
network error string to the UI.
Also adding logic to handle
'All' and 'All Conditional' call
forwarding condition types in
call forwarding supplementary
service operations.

Change-Id: Ia623818e6bcd60a832dc07afb53d0c19429e515f
msPhone.java
b7aff911e1106eb2eb16fd2bafae0ed8f4d4d4f7 14-Aug-2014 Shriram Ganesh <sganesh@codeaurora.org> Ims: Send user selected TTY mode to lower layers.

Irrespective of whether TTY device is connected or not
send TTY mode setting to modem whenever user changes it
from settings.

Change-Id: I6f6b82e3bb7fd326f71b0aabf4c1098a06c8941c
msPhone.java
msPhoneCallTracker.java
b98d8ea9fe653ab34824ed78498459bdfa6fc501 02-Oct-2014 Amit Mahajan <amitmahajan@google.com> am de9bf648: Merge "Send SMS using RIL_REQUEST_SEND_SMS_EXPECT_MORE" into lmp-dev

* commit 'de9bf648fb2dfc768ec73d207ea49379814dfdda':
Send SMS using RIL_REQUEST_SEND_SMS_EXPECT_MORE
6ad88a8a2caf739e78c8d5f7f50fc7fa84a07ca7 24-Sep-2013 Chaitanya Saggurthi <csaggurt@codeaurora.org> Send SMS using RIL_REQUEST_SEND_SMS_EXPECT_MORE

1) New commandinterface API sendSMSExpectMore to send sms using
ril request RIL_REQUEST_SEND_SMS_EXPECT_MORE.
2) sendSMSExpectMore API to send multisegment sms pdu's except
last pdu in GSM. In case of retry use sendSms even for
multi segment message, because don't know how many
segments are failed to send

Bug: 17570854
Change-Id: Icfc200a9c9c5940f0e10668b4385d1633a6c943b
msPhoneCommandInterface.java
4fecfb9e39b367b5eb2aaff090ad9ae8f6224859 13-Sep-2014 Tyler Gunn <tgunn@google.com> am dc2b5d1c: Renaming Telecomm to Telecom.

* commit 'dc2b5d1c32cad5269106d00fd106bd64097238f4':
Renaming Telecomm to Telecom.
dc2b5d1c32cad5269106d00fd106bd64097238f4 11-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: I2fa094034f8a32ac887a6f653ba6d40d7a1761e2
msPhoneCallTracker.java
6473c87881583d5ddff68278b7550897d76bf322 13-Sep-2014 Uma Maheswari Ramalingam <umam@codeaurora.org> am 772f5f72: IMS USSD Routing Over CS Pipe

* commit '772f5f72ef0b872d1a0cb1a099e7d78998f1dac2':
IMS USSD Routing Over CS Pipe
8bebaa2371dcab0565793c55cac756ad3a835bc5 13-Sep-2014 Libin.Tang@motorola.com <w16529@motorola.com> am 97fba207: IMS: release the imsphoneconnection wakelock when handover occurs from volte to cs.

* commit '97fba207643a87dd718395010a98ded3e809a3d7':
IMS: release the imsphoneconnection wakelock when handover occurs from volte to cs.
772f5f72ef0b872d1a0cb1a099e7d78998f1dac2 12-Sep-2014 Uma Maheswari Ramalingam <umam@codeaurora.org> IMS USSD Routing Over CS Pipe

Adding logic to reroute USSD
requests through voice phone in
AP. The actual routing logic
(CS/IMS) resides in the lower
layers.

Bug: 17431456
Change-Id: Ieec8130ae9f5b62f6dc1aaf0066d41b31c5b8d0b
msPhoneMmiCode.java
97fba207643a87dd718395010a98ded3e809a3d7 12-Sep-2014 Libin.Tang@motorola.com <w16529@motorola.com> IMS: release the imsphoneconnection wakelock when handover occurs from volte to cs.

Bug: 17469563
Change-Id: I3652de773da0398cb9d7455d0c82e6c9504171af
msPhoneCallTracker.java
msPhoneConnection.java
09edbacf7649b71448677e94979de2c138384465 06-Sep-2014 Uma Maheswari Ramalingam <umam@codeaurora.org> am 17e77849: Add null check for IMS Connection when conference call ends

* commit '17e77849f88cf20dc5a28aeede66b839fbbdb831':
Add null check for IMS Connection when conference call ends
17e77849f88cf20dc5a28aeede66b839fbbdb831 03-Sep-2014 Uma Maheswari Ramalingam <umam@codeaurora.org> Add null check for IMS Connection when conference call ends

Add null check before accessing ImsConnection object when
conference call is ended as findConnection() may return null
when there is no connection associated with the call object

Bug: 17332291
Change-Id: I3b74277b20f3a26c1b026bfa15ef4d368fb6f8af
msPhoneCallTracker.java
ef79d32b444fd592c6272fd092a4adacd026e87e 04-Sep-2014 Vineeta Srivastava <vsrivastava@google.com> am 2852a88a: Merge "AT&T short dialing code" into lmp-dev

* commit '2852a88a2e2d3b3248e8d73d936090418b3015d4':
AT&T short dialing code
6103b5df6705c89193f452c35eaf5e9a26c188cf 29-Aug-2014 Jing Zhao <zhaojing@motorola.com> AT&T short dialing code

User should be able to dial 0 or 00 in AT&T network.
The code should not be taken as MMI Code.

Bug: 17314389
Change-Id: I2f4187ddcbad6d78ee8d8c1881648b96a9da76dd
msPhoneMmiCode.java
6bc4098827f3070a44b5e51508b455d7c7be9c07 01-Sep-2014 Wink Saville <wink@google.com> ksd to lmp-sprout-dev

Change-Id: I94eb65c62231b5831570bb0cbbbd9c916bee0a37
msPhone.java
5b2302a78231998589d06a2bc7b4ae9ef00fe5b8 29-Aug-2014 Uma Maheswari Ramalingam <umam@codeaurora.org> Add null check for ims call during conference call updates

Add null check before accessing imscall object.
For conference call updates are forced by
using a null object for imscall
argument.
This enables UI update for conference calls

Bug: 17321414

Change-Id: I5667bf136af37e425040edc34dacad46de084ec4
msPhoneConnection.java
26e963755e62c785d77f97a94e6116bcd5fb9e11 29-Aug-2014 Wink Saville <wink@google.com> Merge "Resp. handling of CLIR/P, COLR/P, Call Barring" into lmp-dev
a8cd97e94b97b924e44377476cfe4e1fbfe49dae 28-Aug-2014 Uma Maheswari Ramalingam <umam@codeaurora.org> Resp. handling of CLIR/P, COLR/P, Call Barring

Adding fixes to properly display service status
on the UI for IMS (UT) CLIR/P, COLR/P and Call
Barring queries.

Bug: 17321315
Change-Id: I17823c3786a0e9a24c89480b7537dccc549c9516
msPhoneMmiCode.java
e64a413b850aae224e2f56e7dfc6e0bcd667643e 29-Aug-2014 Uma Maheswari Ramalingam <umam@codeaurora.org> Add support for Silent Redial and SRVCC

1. Silent Redial uses the same notifications as SRVCC.
Add support to handle the notifications in CDMA mode.
2. Frameworks and UI support for connection handover.

Bug: 17307064, 17288974
Change-Id: Icc1f9ad50a1dcb53a2af1aae8d296af7101676aa
msPhoneBase.java
msPhoneConnection.java
bc0406859056e2de6d36cbddf39e15fcfa8155b0 24-Aug-2014 Libin.Tang@motorola.com <w16529@motorola.com> IMS: fix missed call notification not shown.
Differentiate the missed call/rejected call during onCallTerminated callback.
Also remove the onCallTerminiated from onCallStartFailed as
onCallTerminated should be triggered by the vendor ims.

Bug: 17142654
Change-Id: I107717c21f7da89e945cf74d14fbe2d2d24f94b3
msPhoneCallTracker.java
2e081b3f9e8cfaae482a08cb885b6f79a39f5a4c 24-Aug-2014 Libin.Tang@motorola.com <w16529@motorola.com> IMS: modify sendDtmf to pass char input since vendor ril will translate the
char input to int.

Bug: 17282921
Change-Id: If30470868db4fb50154cf84f56aecd6daef7ddd5
msPhoneCallTracker.java
ac82d4da0473991006a752e2337ccb93e85f0946 22-Aug-2014 Etan Cohen <etancohen@google.com> Fix crash on hangup: Runtime exception thrown rather than CallStateException

This is still an invalid state to reach to. However, all other invalid states
in this routine also throw CallStateException.

Bug: 17205457
Change-Id: Ib8c958a49f303f6babfeceeb900090a57116a17b
msPhoneCallTracker.java
cf91ae7acc62eba22d9e652e5de5fb90a89e2ac8 19-Aug-2014 Libin.Tang@motorola.com <w16529@motorola.com> IMS: add isVolteEnabled/isVtEnabled based on registrationFeatureCapabilityChanged.

Bug: 17182366
Change-Id: Ib203320c6fdb2242263c526b1d73c8c8bce2f1e4
msPhone.java
msPhoneCallTracker.java
d325833e9248c05305b1edabb1d8efc827803f75 19-Aug-2014 Jing Zhao <zhaojing@motorola.com> VoLTE incoming call number

Set incoming call number in OIR to be shown to user

Bug: 17032453
Change-Id: Iceadb0f537fb35f685cbcf8279ccef7d86036600
msPhoneConnection.java
03586878fb3d870373f2fdf65afb81cc5ae97067 02-Aug-2014 Naveen Kalla <nkalla@codeaurora.org> Send Shutdown Request to RIL.

Send RIL_REQUEST_SHUTDOWN to RIL when device is shutting down.
RIL can use this request to shutdown the SIM card and modem gracefully.

Bug: 9773278
Change-Id: I6afa9e810cefc7855f7ae42e51f39cc51fa2aa6e
msPhoneCommandInterface.java
9d4ec7d45061f1da05f16cd244eb0a798e7f36bb 13-Aug-2014 Amit Mahajan <amitmahajan@google.com> Revert "Revert "add apn setting parameters, and set apn parameters to bp""

This reverts commit 01f27d2c616797e5ba821159f8aca7b75aa54ae1.

Change-Id: Id9e7cf180092f320f635084f805b97f6409d0f03
msPhoneCommandInterface.java
77c77080eaf88cfc55eb16bff6fd2788817a6896 13-Aug-2014 Libin.Tang@motorola.com <w16529@motorola.com> IMS:fix phone crash caused by null pointer access.

Change-Id: Ie98a8fcfa3488f9cce0a09c358e9f2297c7f5a42
msPhoneCall.java
msPhoneCallTracker.java
d5c5a168b4f5806701a4d146309c996acca7183d 08-Aug-2014 Ihab Awad <ihab@google.com> Final structural tweaks to Telecomm API (6/8)

Bug: 16416927
Bug: 16494880
Change-Id: I6cd739b0fe525038ace0f213b05732e0cd95902a
msPhoneCallTracker.java
7ea29fc7651195bbaf67028413278898a898ac00 12-Aug-2014 Tyler Gunn <tgunn@google.com> Add null-check when setting up ImsVideoCallProviderWrapper.

Bug: 16886403
Change-Id: I55b996fc3ef1ef37310565984eef3ae993844b9d
msPhoneCallTracker.java
e883df6630ac9e6e27c69042bae9027268c6da83 08-Aug-2014 Tyler Gunn <tgunn@google.com> Merge "Wiring HD audio call capability reporting. (1/2)" into lmp-dev
7fa8ac39602ee9841dfcb0fb5c5f4d401925f8b5 08-Aug-2014 Tyler Gunn <tgunn@google.com> Wiring HD audio call capability reporting. (1/2)

- Modified ImsPhoneConnection to get the current audio quality from the
ImsStreamMediaProfile, mapping to an internal audio quality of standard
or high definition.
- Added listener to report audio quality changes.

Bug: 15987281
Change-Id: If24a14f8f3d79934229460dcac8eb0068a08466a
msPhoneConnection.java
ea8cb63201520592011a92849ad3661d22776c87 08-Aug-2014 Andrew Lee <anwlee@google.com> Set VideoCallProvider on IMS connections.

Bug: 16886403
Change-Id: I912807f4dc7fce5b80c642d6275f3ad04af498e2
msPhoneCallTracker.java
9b0a3372e511d97bc57fd5a9e01f9d189871af04 07-Aug-2014 Etan Cohen <etancohen@google.com> Add Ut COLP/COLR success/error message display.

Change-Id: Ied4f836aabc616de9573c94ae7b49ff65c67b032
msPhoneMmiCode.java
01b334cc4f2538287f5c64b3ea8d2d9c6ee77772 24-Jun-2014 Shriram Ganesh <sganesh@codeaurora.org> IMS MMI Support For CLIR/P, COLR/P & Call Barring.

Adding MMI code support for CLIR/P, COLR/P
supplementary services. Services that are not
supported through ImsPhone/UI, go through the UT
interface directly.

Change-Id: Ibfdeaf775ec5ccf792ed1f0ba273597678e748c2
msPhone.java
msPhoneMmiCode.java
04e36a78936967df68d9175ac09dd3f087727888 01-Aug-2014 Uma Maheswari Ramalingam <umam@codeaurora.org> Add ECBM functionality for IMS

Code for adding ECBM functionality for IMS.

Change-Id: I2833c81baf0a55a18ac6433c47fd76bad7cf0ec9
msPhone.java
msPhoneCallTracker.java
a89314bcc94c43512299131609feea0c2c8167cf 01-Aug-2014 Libin.Tang@motorola.com <w16529@motorola.com> IMS:incoming call drops due to MT call intent delivery too late.

Change-Id: I9f0e8f3ac2bdaf7bff9d1a198f3b134386bf6d69
msPhoneCallTracker.java
38b5fac001d38ad7a4f886ba7fcaf7c417216b01 31-Jul-2014 Etan Cohen <etancohen@google.com> Transfer ownership of IMS Phone when RAT tech change

Transfer ownership of the IMS phone and performs needed unregistrations
and registrations when RAT tech change forces a phone destroy/create.

Update notify on ringing phone to delegate directly to the parent phone of
the IMS Phone.

Change-Id: I02a14366ff339a09115a438715e7ee1124bb2a56
msPhone.java
msPhoneBase.java
3a8f9358a827c2be7f33b62d435894906d4874de 29-Jul-2014 Tyler Gunn <tgunn@google.com> Retrieving local video capabilities on creation of ImsPhoneConnection.

Bug: 16238919
Change-Id: I5239525280a89ec74bb8950e3891241fb2ae0138
msPhoneConnection.java
eb37adebf70275a8d8e5f2478637a66a44e71de8 28-Jul-2014 Andrew Lee <anwlee@google.com> Update VideoState references.

Bug: 16629892
Change-Id: I243b304d5b61ed530b965eab2abb9bfbd02893d5
msPhoneCallTracker.java
2999afbcfeab69bf7473e1b9bcabb1c9c6935b19 21-Jul-2014 Tyler Gunn <tgunn@google.com> Various IMS changes. (1/2)

1. Passing through videoState to acceptCall in ImsPhone and below.
2. Fixing issue in GSMPhone where IMS calls are always dialed as
audio.
3. Adding setter on android.internal.telephony.Connection for
call video provider and passing through to telecomm.Connection

Bug: 15893156
Change-Id: Id7a53807873add408d59452e1b79cfa748f972e8
msPhone.java
msPhoneCallTracker.java
msPhoneConnection.java
6d43019ef713376e38653a91b9f0b398d8315e62 18-Jul-2014 Amit Mahajan <amitmahajan@google.com> Merge "Changes to add new parameter for Sim Authenticate" into lmp-dev
ce083ae9d277bea9fbc1c143766adf1013f4a50e 02-Jul-2014 Amit Mahajan <amitmahajan@google.com> Changes to add new parameter for Sim Authenticate

Change-Id: I393c18f878fe3e5efcd81543a9a38a4c353b6e03
msPhoneCommandInterface.java
6d05f561549a66b597a5119665ccc3bf8a962d16 16-Jul-2014 Andrew Lee <anwlee@google.com> Include video state when accepting call on phone.

Bug: 16013878
Bug: 16015750
Change-Id: Iae14ea443394fe0c805cb0a9dfc01dcb600cff70
msPhone.java
d8580022df83bcdf0fe5016b40a65df4ed61acd4 18-Jul-2014 Tyler Gunn <tgunn@google.com> Merge "Adding videoState to telephony connections." into lmp-dev
5d0d72d9b7dc34c93303f6732541bbb74fed53da 18-Jul-2014 Etan Cohen <etancohen@google.com> Add support for incoming calls on voice phone

Change-Id: I85775776427ead1482ea88683a755451e76f97c1

Conflicts:
src/java/com/android/internal/telephony/cdma/CDMAPhone.java
src/java/com/android/internal/telephony/gsm/GSMPhone.java
msPhoneBase.java
msPhoneCall.java
64e62340aae85179a6468ccac4a401900eb4dc2f 18-Jul-2014 Tyler Gunn <tgunn@google.com> Adding videoState to telephony connections.

- Modify base telephony Connection to include abstract getVideoState
method.
- Override in CDMA, SIP, GSM connections to return AUDIO-ONLY.
- Override in ImsPhoneConnection to map from ImsCallProfile to
VideoCallProfile vidoe states.

Bug: 16285417
Change-Id: Icdf9ea3ae21475964f454ca4c92ab54791cb86aa
msPhoneCallTracker.java
msPhoneConnection.java
9f9aadee921db335adc891412a6e1e828153cfc6 12-Jul-2014 Etan Cohen <etancohen@google.com> MSIM support for IMS

Added support to handle IMS in MSIM scenarios. Supports an ImsService interface per
subscription.

Note: These individual ImsService interfaces can be implemented on a single or multiple
IMS stacks.

Change-Id: I6d4ce7dd1cc6f75f89a41951ef8fce78afde811c
msPhoneCallTracker.java
6bbcbfd62c9aa5787e7c33936e2246ff05b59d58 08-Jul-2014 Tyler Gunn <tgunn@google.com> Adding support for specifying videoState in dial methods in Phone.

In ImsPhoneCallTracker, wired up dial to start a call with
the correct IMS call type.

Bug: 16014224
Change-Id: If131529fee7eb03e63fa445d04e15246e51967be
msPhone.java
msPhoneBase.java
msPhoneCallTracker.java
888c60a7fe1c8f3612ab8e8ec5f2f7ca8f24e766 03-Jul-2014 Etan Cohen <etancohen@google.com> Remove VoicePhone interface

VoicePhone interface was not a generic voice phone. It was a partial
implementation of an ImsPhone (i.e. served no added-value purpose but
confused functionality). Removed.

Change-Id: Ida5d0fb2b09dcc6ec295ddd7a03f2cf6536b840b

Conflicts:
CleanSpec.mk
msPhone.java
msPhoneFactory.java
befe0bf21cf06c47b1f099caed9e6c6b7125c0fe 03-Jun-2014 Shriram Ganesh <sganesh@quicinc.com> Handle Srvcc requirements

Change handles the following SRVCC requirements -
- Move SRVCC functionality to PhoneBase so
both CDMA & GSM phones can handle it.
- Srvcc wrt single ringing call

Change-Id: Ifc417bacf95364ff358651a59c84c377fe010ec6
msPhone.java
bd4d6093314c0d2afc4b4f69f352957d01d9bc58 29-May-2014 Uma Maheswari Ramalingam <uramalin@quicinc.com> Handle CallMerge Fail scenario

Handle Call Merge Fail scenario.

Change-Id: I0042d655f781d98b5b2db568885906a3a1b1dbc8
msPhoneCallTracker.java
a8467dd0c524787104b1ccdddc5e8af10ba729ed 13-Jun-2014 Wink Saville <wink@google.com> Merge kwd to master

Change-Id: Idb607c0aa32f80fe4fe1539aedea7a221e9e7f04
msPhone.java
msPhoneBase.java
msPhoneCall.java
msPhoneCallTracker.java
msPhoneCommandInterface.java
msPhoneConnection.java
msPhoneFactory.java
msPhoneMmiCode.java