1050 Commits

Author SHA1 Message Date
Tony Mak
82baea4641 Merge "getInstalledDialerApplications should not count ForwardIntentToParent" into oc-mr1-dev am: 72befffcbc
am: c5145fa25a

Change-Id: I4d7c7fbd530d1cc05679cdc4b7c044efb9d0ba40
2017-09-15 19:51:23 +00:00
Tony Mak
c5145fa25a Merge "getInstalledDialerApplications should not count ForwardIntentToParent" into oc-mr1-dev
am: 72befffcbc

Change-Id: Id711312d9bf0c6fe22cf93a166e533d9acf97452
2017-09-15 19:40:43 +00:00
Tony Mak
39198faea1 getInstalledDialerApplications should not count ForwardIntentToParent
Issues:
1. Work profile call is logged into work profile side even there
is no work profile dialer.
2. In Settings, "Android" is shown as the default work profile dialer.

Cause:
When are querying installed dialers in work profile,
getInstalledDialerApplications return android/ForwardIntentToParent
because we forward calls to personal side if work dialer
is absent. But apparently, ForwardIntentToParent is not an installed
dialer in work profile. So Settings shows "Android" as default work
dialer and Telecom wrongly think that we have work dialer and insert
calllog in to work profile side.

Solution:
Ignore cross profile resolver by checking targetUserId.


Test: Manual
1. Check Settings, no longer see "Android" is set as work dialer.
2. Make a phone call using work contacts, observed that the call
   is inserted into persoonal side.
3. Make a phone call using personal side, observed that the call
   is inserted into personal side.

BUG: 65672386

Change-Id: I13d4234ad1684f714e1b4d7704f2413d903a0179
2017-09-15 17:52:16 +01:00
Sanket Padawe
957bb655d2 Merge "Deprecate TelephonyManager APIs which are present in TelecomManager." am: a90205492f am: f0dd39f7d0
am: b706659354

Change-Id: Ibdaf08aca01df5582ed3042ac956155df590adb5
2017-09-11 03:58:23 +00:00
Sanket Padawe
f0dd39f7d0 Merge "Deprecate TelephonyManager APIs which are present in TelecomManager."
am: a90205492f

Change-Id: I1d15e13cb3ae8fa8caf098e34587e3599b5bc967
2017-09-11 03:40:47 +00:00
Sanket Padawe
5aac2e91db Deprecate TelephonyManager APIs which are present in TelecomManager.
Bug: 62346128
Test: Build
Change-Id: I4c3b4652f5d22215572d64b764bcd42bb7295ebe
Merged-in: I4c3b4652f5d22215572d64b764bcd42bb7295ebe
2017-09-08 05:46:13 -07:00
Sanket Padawe
435e60b6bb Fix doc for Telephony Manager api and make isTtySupported public.
TelephonyManager.isTtyModeSupported is public and we are deprecating that
to use TelecomManager.isTtySupported which was system api, so making it
public.

Test: Build
Bug: 62346128
Change-Id: Idfa146b03a3c3fdb20c563c4ea0dddf2c3399da6
2017-09-08 04:57:11 -07:00
Tyler Gunn
4a25d72eb5 Merge "Prevent INTERACT_ACROSS_USERS exception in DefaultDialerManager." into oc-mr1-dev
am: dc79e248cb

Change-Id: I6bc7419ba260050281d83e33f7f328ec5ccb3cd8
2017-09-05 21:04:52 +00:00
Tyler Gunn
0907bd674a Prevent INTERACT_ACROSS_USERS exception in DefaultDialerManager.
When TelecomManager methods perform a read phonestate check from a work
profile user, it is possible to get an INTERACT_ACROSS_USERS exception.
This is due to the fact that the filterByIntent method was not calling
queryIntentActivitiesAsUser.

Test: Manual
Bug: 31304557
Change-Id: I2a1869162e5a52aed986a99cc378a6c630af4a70
2017-09-01 15:17:05 -07:00
Tyler Gunn
40f5ccd1d0 Track conference start in system elapsed time.
This is important so that Telecom can track the duration of the call,
which is tracked using wall clock time.

Test: Manual, unit test
Bug: 64068300
Merged-In: If642d282cd8134060acf6ffe8d81215c394d800c
Change-Id: If642d282cd8134060acf6ffe8d81215c394d800c
(cherry picked from commit b2f875bc5468eec359dfbbe8697f94d7734cafed)
2017-08-28 09:40:44 -07:00
Brad Ebinger
0a538a2804 Merge "Emergency redial implementation" am: b3b09849bc am: f5a457244c
am: 1d8a6e4ee7

Change-Id: I8689b700ff77127534d5560fac1d849615e8f567
2017-08-25 20:56:03 +00:00
Brad Ebinger
f5a457244c Merge "Emergency redial implementation"
am: b3b09849bc

Change-Id: If7fe179da4eb4c639dad1e2957f091bbee9e54f9
2017-08-25 20:31:26 +00:00
Srikanth Chintala
fcb1501620 Emergency redial implementation
Define connection event to notify
Telecom/InCallUi about change in
account handle after redial and extra
for emergency phone handle.

Bug: 27059146
Change-Id: Ie72ab2901ec05d972204ed11f115a05b79173c1d
2017-08-25 10:08:56 -07:00
Tyler Gunn
a4a789802a Merge "Track conference start in system elapsed time." am: 3b166fba8a am: 49042dc67c
am: 55967b462c

Change-Id: I5a7561dd09405bcdc38926bd331f5ffd8019ec2f
2017-08-24 23:20:14 +00:00
Tyler Gunn
49042dc67c Merge "Track conference start in system elapsed time."
am: 3b166fba8a

Change-Id: I8b78aaa447adcc1bfce0fec8f50857daa37d0575
2017-08-24 22:58:02 +00:00
Tyler Gunn
3fa819c2f3 Track conference start in system elapsed time.
This is important so that Telecom can track the duration of the call,
which is tracked using wall clock time.

Test: Manual, unit test
Bug: 64068300
Change-Id: If642d282cd8134060acf6ffe8d81215c394d800c
2017-08-22 13:39:31 -07:00
Hall Liu
d33be52592 Merge "Do not throw IOException from RttCall.read()" into oc-mr1-dev 2017-08-17 16:17:53 +00:00
Brad Ebinger
b943ccef3c Merge "Adds a new string definition for IMS Access blocked reason"
am: 53e82a9cd0

Change-Id: I3bafca03e20ef114588145982985411882d2c8f5
2017-08-15 18:04:18 +00:00
Brad Ebinger
53e82a9cd0 Merge "Adds a new string definition for IMS Access blocked reason" 2017-08-15 17:41:27 +00:00
Tyler Gunn
a649df1fe1 Add ConnectionService callback invoked when connection creation complete.
Adding a new @hide callback in ConnectionService which a CS implementation
can implement.  A callback from Telecom is responsible for invoking this
method.

Test: Manual
Bug: 33272455
Change-Id: Id17cf0fd8fd491b7677f9b7a7b52c76270b1c8c9
2017-08-14 12:57:07 -07:00
Brad Ebinger
a5249f6d83 Adds a new string definition for IMS Access blocked reason
When a call is disconnected with the Telephony DisconnectCause
IMS_ACCESS_BLOCKED, DisconnectCause#getReason will now return
the reason REASON_IMS_ACCESS_BLOCKED.

Bug: 33821263
Test: manual tests
Merged-In: Ic8b76e83aa8eb20074862f0e67734d2c5389ba12
Change-Id: Ic17cefa35a51f739c893923a2db7f3dca8ada202
2017-08-14 18:32:53 +00:00
Tyler Gunn
9a351ca849 Ensure CallId is not null when connection creation is complete.
When calling "get" on the mConnectoinById map, a null callId will result
in an NPE.

In findConnectionForAction, defaulting to returning the "null" connection
which is the same behavior as if it isn't found.
In notifyCreateConnectionComplete, specifically checking if the callId
is null and skipping the onCreateConnectionComplete callback.
This scenario is possible if the connection is remove from the
ConnectionService before the connection complete callback comes back from
Telecom.

Test: Manual
Fixes: 62588734
Change-Id: Ie610c51155ed417e0f916000fe20e4484bdb6603
2017-08-14 16:30:41 +00:00
Pankaj Kanwar
38c61bf7bd Merge "Catch BadParcelableException in RemoteConnection when setting extras." into oc-dr1-dev
am: bcfa22584b

Change-Id: I36289ff0e5d2949d93ecbc0c18e131772706c9cc
2017-08-11 21:07:06 +00:00
Pankaj Kanwar
b30749b60f Merge "Catch BadParcelableException in RemoteConnection when setting extras." into oc-dr1-dev
am: bcfa22584b

Change-Id: I4cdef151e4a826cee965954352f101c3bdd86d09
2017-08-11 21:01:13 +00:00
Pankaj Kanwar
bcfa22584b Merge "Catch BadParcelableException in RemoteConnection when setting extras." into oc-dr1-dev 2017-08-11 20:52:52 +00:00
Tyler Gunn
14343ee4c3 Catch BadParcelableException in RemoteConnection when setting extras.
Unlike the code in Telecom which can use Bundle.setDefusable(..), this
framework code is used within a Connection Manager's code space, so the
setDefusable method does not work.

To prevent crashing the Connection Manager's app, catching the exception
and ignoring extras in this case (not much else we can do).

I've also filed a bug against the offending component known for putting
bad parcelables into the extras.

Test: Modified code to force this scenario.
Bug: 64499462
Change-Id: If44ad2e2c8e285d513969c6babe5a798242da53d
2017-08-11 09:26:07 -07:00
Hall Liu
b1c8a77f59 Do not throw IOException from RttCall.read()
Modify the signature of read() to no longer throw an IOException

Change-Id: Ib5a1d8615a4bd66716a54c53865a2d560f33de83
Test: builds
Fixes: 63769529
2017-08-02 16:27:52 -07:00
Brad Ebinger
ab87b6dc0b Merge "Remove Conferenceable update squelching" into oc-dr1-dev
am: 4b6ef9c92d

Change-Id: I30fbedd2fa26482d520fef48f0dd81aa923b06b7
2017-08-02 23:02:46 +00:00
Brad Ebinger
27d9ca08da Merge "Remove Conferenceable update squelching" into oc-dr1-dev
am: 4b6ef9c92d

Change-Id: I93a849f16c7c4d3bc4495f1baff905d16f0e78ff
2017-08-02 21:40:34 +00:00
Brad Ebinger
8c6f0cab33 Remove Conferenceable update squelching
In an effort to remove redundant updates to Telecom,
conferenceable connection updates for a conference
were being removed if the list of connections hasn't
changed.

For GSM, when a new outgoing call was placed, it was
added to the conference controller before being added
to the list of connections. The conference controller
was updating the conferenceable connections for that
conference with a connection that wasn't being tracked
yet, so it was not notifying telecom of the connection.
It was still added to the list of conferenceable
connections in the conference, however, so later
conferenceable updates were being disregarded before
being sent to Telecom.

This change removes conferenceable update squelching
so that we always update telecom with the correct
conferencable connections for a conference.

Bug: 37989809
Test: Manual, Procedure in Bug, unit tests
Change-Id: I62960df9db27f0b303431aef99e73ef87498d374
2017-08-01 15:23:26 -07:00
Hall Liu
319d56cfa2 Merge "Add timezone for Telecom event date formatting" am: bf296640e6 am: 5af59940d1 am: af3d7f990a
am: 19bf135234

Change-Id: If0d65df712331bd5552a0551a073a4bb09709b26
2017-07-20 00:20:19 +00:00
Hall Liu
19bf135234 Merge "Add timezone for Telecom event date formatting" am: bf296640e6 am: 5af59940d1
am: af3d7f990a

Change-Id: I1ca12b34a39a45512c9df6a2daeb5f72cd686f3e
2017-07-20 00:13:08 +00:00
Hall Liu
5af59940d1 Merge "Add timezone for Telecom event date formatting"
am: bf296640e6

Change-Id: Ic9db643ff6d204f75aed44160003bbe0b685eb7e
2017-07-19 23:58:16 +00:00
Hall Liu
b6643acd8f Add timezone for Telecom event date formatting
Output event times in local time rather than in UTC for compatibility
with the rest of the timestamps in the bug report

Test: manual
Change-Id: I2d458f09aec635a43e3d0565e8f8da803124f368
2017-07-19 14:57:56 -07:00
Brad Ebinger
f3708d739b Merge "Adds a new string definition for IMS Access blocked reason" into oc-dr1-dev am: 092e461281
am: 848990985b

Change-Id: Ib8b386bd4aebc3ca137fec4b52c27a0b37102e9e
2017-07-05 22:30:12 +00:00
TreeHugger Robot
092e461281 Merge "Adds a new string definition for IMS Access blocked reason" into oc-dr1-dev 2017-07-05 22:17:01 +00:00
Brad Ebinger
8818c6ff3d Adds a new string definition for IMS Access blocked reason
When a call is disconnected with the Telephony DisconnectCause
IMS_ACCESS_BLOCKED, DisconnectCause#getReason will now return
the reason REASON_IMS_ACCESS_BLOCKED.

Bug: 33821263
Test: manual tests
Change-Id: Ic17cefa35a51f739c893923a2db7f3dca8ada202
2017-06-30 15:34:32 -07:00
Brad Ebinger
85214c8d59 Merge "Modify docs to clarify EXTRA_LOG_SELF_MANAGED_CALLS behavior." into oc-dr1-dev am: 814a53c939
am: b0b67fabf5

Change-Id: I20228737f2013994537863f3df19c5a89a933cd5
2017-06-30 19:59:54 +00:00
TreeHugger Robot
814a53c939 Merge "Modify docs to clarify EXTRA_LOG_SELF_MANAGED_CALLS behavior." into oc-dr1-dev 2017-06-30 19:36:52 +00:00
Jeff Sharkey
5ab0243330 Only require that system UIDs tag their sockets.
Apps with a normal UID are typically isolated enough to not require
socket tagging; we're mostly interested in tracking down internal
UIDs that have lots of code sharing the same UID.

Also fix up everyone doing manual string checks of Build.TYPE, since
we now have first-class fields for those.

Bug: 38126076
Test: builds, boots
Change-Id: I3a40348196bd8459289f2b9355d9783a07f1e7dd
2017-06-27 11:11:06 -06:00
Brad Ebinger
bb1a55fa48 Modify docs to clarify EXTRA_LOG_SELF_MANAGED_CALLS behavior.
We do not post a notification when a self-managed call is missed
and we log it in the call log.

Bug: 62999358
Test: Manual
Change-Id: I0ae851e6fa17fbd3b7591b01745956feef4c57fd
2017-06-26 13:26:14 -07:00
Tyler Gunn
b22077600a Merge "Define handover event sent when source disconnects prior to handover." into oc-dr1-dev am: 06c32f21fc
am: f141183abe

Change-Id: Ibd0612f738dfa727cb0c110ed801f568fc9c7f65
2017-06-23 21:17:14 +00:00
Tyler Gunn
34a2b31e95 Define handover event sent when source disconnects prior to handover.
Define new event which is sent to the destination call if the source
disconnects prior to the completion of the handover.

Test: Manual using test app
Bug: 62904673
Change-Id: I9fa74e374f78beb801f08ce1fd7260d7d7fe7cac
2017-06-23 08:32:00 -07:00
Tyler Gunn
260029ed3b Merge "Add EXTRA_ALWAYS_USE_VOIP_AUDIO_MODE extrs to phone account" into oc-dr1-dev am: 8a3620f2cc
am: eedb7b24d9

Change-Id: I6058ccafebfa7339c93721bbd724e77defdda27a
2017-06-16 16:42:46 +00:00
Tyler Gunn
8a3620f2cc Merge "Add EXTRA_ALWAYS_USE_VOIP_AUDIO_MODE extrs to phone account" into oc-dr1-dev 2017-06-16 16:28:42 +00:00
Srikanth Chintala
f77d4a1e22 Add EXTRA_ALWAYS_USE_VOIP_AUDIO_MODE extrs to phone account
Add EXTRA_ALWAYS_USE_VOIP_AUDIO_MODE extra to phone account
so that all voip call audio mode will be set MODE_IN_COMMUNICATION

Test: Manual
Bug: 34869196
Change-Id: I367fbfb05779f80ebde78cb8dcebeafa3f885b3b
2017-06-15 10:39:15 -07:00
Brad Ebinger
ded79b2c0d Merge "Merge "Increases TC Logging Visibility for testing" into oc-dr1-dev am: f69a9c9dc6" into oc-dr1-dev-plus-aosp
am: 3f6af5d5b6

Change-Id: Ic86b7c0fbea0e5de8fbd3c7b8561d54fb2f32940
2017-06-13 23:37:18 +00:00
Brad Ebinger
f69a9c9dc6 Merge "Increases TC Logging Visibility for testing" into oc-dr1-dev 2017-06-13 22:51:33 +00:00
Tyler Gunn
5e89bcc999 Merge "Add EXTRA_HANDOVER_FROM_PHONE_ACCOUNT." into oc-dr1-dev am: 48962fcc3b
am: 4998896d22

Change-Id: I60ba08e839f5fc4c1a27694b42dbba7ea97318a0
2017-06-13 22:18:22 +00:00
Tyler Gunn
48962fcc3b Merge "Add EXTRA_HANDOVER_FROM_PHONE_ACCOUNT." into oc-dr1-dev 2017-06-13 20:48:17 +00:00