1022 Commits

Author SHA1 Message Date
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
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
Tyler Gunn
3af3869054 Add EXTRA_HANDOVER_FROM_PHONE_ACCOUNT.
Used in handovers to tell the account we're handing over to which account
the call is from.

Test: Manual
Bug: 38027075
Change-Id: I9b61a5fce3e4f7344174a1b81f4964ca02b71ccd
2017-06-13 10:34:58 -07:00
Jeff Sharkey
9039636535 Revert "Hide APIs not intended to ship in DR."
This reverts commit 0c28d43fe1423198f99a0518887b69a4205bc6f7.
2017-06-12 16:26:53 -06:00
Jeff Sharkey
0c28d43fe1 Hide APIs not intended to ship in DR.
This CL will be reverted once it merges into the next release branch
to re-introduce the proposed APIs.

This CL also makes the following code changes to preserve API
compatibility:

-- It keeps the recently added RemoteViews.clone() synchronized logic
intact, but moves it inside the method to avoid changing the API
signature.

-- It reverts the RttCall.read() behavior to the oc-dev logic, since
we can't throw IOException until we get an API level bump.  (The
original logic returned null instead of throwing.)

Test: builds, boots
Bug: 62427252, 62431886, 62427329
Bug: 62468911, 62431162, 62428935, 62429096
Bug: 37290820, 37359238, 36886243
Bug: 30143923, 35761231, 62192626, 29829689
Change-Id: I83d723f598cb0ee1fe198e65debd86ef7fd0420c
2017-06-12 10:26:01 -06:00
Brad Ebinger
8adafe786c Increases TC Logging Visibility for testing
Test: Run Telecom unit tests.
Change-Id: Ie7a61c60f0a7a9bbc024741c668299efafa5e18d
2017-06-08 15:44:40 -07:00
Jeff Sharkey
28f6dc9512 Merge "Give Doclava our manifest; more permission docs." into oc-dev am: 65d4cbba37
am: 67cb5f5210

Change-Id: Ic4c30cdb8bbfda5b3703eb3c7c36c1bf8ab3a216
2017-06-06 16:17:39 +00:00
Jeff Sharkey
ec68b46bc8 Merge "Annotate @SystemApi with required permissions." into oc-dev am: c1406978a4
am: 7a2e4a8486

Change-Id: Ib629e25dbf047c110feaf03e4ff744b5c6df9aeb
2017-06-06 15:48:24 +00:00
Jeff Sharkey
67cb5f5210 Merge "Give Doclava our manifest; more permission docs." into oc-dev
am: 65d4cbba37

Change-Id: I2ec50efb67debd15d354db69b84fb620eb74bc0e
2017-06-06 15:28:26 +00:00
Jeff Sharkey
bfc4fcde9f Give Doclava our manifest; more permission docs.
We've seen some @SystemApi methods protected with non-system
permissions, so give Doclava the platform AndroidManifest.xml so it
can parse the actual permission protection levels to look for APIs
that are letting in non-system apps.

Also document more @SystemApi permissions.

This is purely a docs change; no logic changes are being made.

Test: make -j32 update-api
Bug: 62263906
Change-Id: Ie0f0a5fb0033817bcc95060f2183a52ae4ae7b06
2017-06-05 17:38:19 -06:00
Jeff Sharkey
7a2e4a8486 Merge "Annotate @SystemApi with required permissions." into oc-dev
am: c1406978a4

Change-Id: I305967cad945a807c3f8234efabaad0ef8b591d1
2017-06-05 22:28:21 +00:00
Jeff Sharkey
d86b8fea43 Annotate @SystemApi with required permissions.
Most @SystemApi methods should be protected with system (or higher)
permissions, so annotate common methods with @RequiresPermission to
make automatic verification easier.

Verification is really only relevant when calling into system
services (where permissions checking can happen on the other side of
a Binder call), so annotate managers with the new @SystemService
annotation, which is now automatically documented.

This is purely a docs change; no logic changes are being made.

Test: make -j32 update-api && make -j32 offline-sdk-docs
Bug: 62263906
Change-Id: I2554227202d84465676aa4ab0dd336b5c45fc651
2017-06-05 13:27:11 -06:00
Ta-wei Yen
9d20d98919 Add device and carrier flags for video calling fallback
These flags let the system dialer/contacts/SMS app determine if
integration with video calling apps are allowed if the carrier video
calling is not available.

EXTRA_SUPPORTS_VIDEO_CALLING_FALLBACK in PhoneAccount.getExtras()
should be checked first. This flag is disabled by default and OEMs
will need to enable it.

If the device supports the fallback, then
CarrierConfigManager.KEY_ALLOW_VIDEO_CALLING_FALLBACK_BOOL should be
checked so individual carriers can ban the feature. This flag is
allowed by default.

Change-Id: Id46f684254402acb9142f87684ddff2d830f1701
Fixes: 62264468
Test: manual
2017-06-02 14:01:12 -07:00
Tyler Gunn
a39fefc2fc Merge "Add ability to add existing connection AND set parent at the same time." into oc-dev am: 95f4f14e0b
am: 0aea0d2c53

Change-Id: I76805ba85bfac39cdaa3ddd2b8340423e4c7ffbe
2017-05-25 19:55:00 +00:00
Tyler Gunn
0aea0d2c53 Merge "Add ability to add existing connection AND set parent at the same time." into oc-dev
am: 95f4f14e0b

Change-Id: If762616920b266064cd1ee5520d5778ebb1475a7
2017-05-25 19:44:32 +00:00
Tyler Gunn
95f4f14e0b Merge "Add ability to add existing connection AND set parent at the same time." into oc-dev 2017-05-25 19:34:02 +00:00
Tyler Gunn
6668689037 Merge "Add ability to dump events in a timeline view." am: 255a171c5d am: 3b27d69612 am: a1c225936a
am: bfea5cdb78

Change-Id: Ib1a0fa4221890b02937bc44d3293a65b5508d12f
2017-05-24 23:09:07 +00:00
Tyler Gunn
bfea5cdb78 Merge "Add ability to dump events in a timeline view." am: 255a171c5d am: 3b27d69612
am: a1c225936a

Change-Id: I34c3327e675d1948ae6074337cce800919e03030
2017-05-24 23:01:22 +00:00
Tyler Gunn
78da7816da Add ability to add existing connection AND set parent at the same time.
This is useful for IMS conferences where we want to add a connection and
set it as a child of a conference at the same time.

Test: Manual
Bug: 37581781
Change-Id: Id09c8296ffe18893c5642d403c6a69ad6c9765e2
2017-05-24 15:15:44 -07:00
Tyler Gunn
041a1fe3c6 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
(cherry picked from commit d104a4f7f67ad6ca098bef0dc3824c5c47e7bcaf)
2017-05-24 15:23:03 +00:00
Tyler Gunn
fa9293b183 Merge "Add ConnectionService callback invoked when connection creation complete." into oc-dev
am: 71d051ad2c

Change-Id: I901377bda1364f0cb7b28bcb699a647627f775a9
2017-05-24 14:14:47 +00:00
Tyler Gunn
2db81b599b Add ability to dump events in a timeline view.
Adding new event dump which shows the events for all call, sorted by
time of event.

Test: Manual
Bug: 38450166
Change-Id: I9fd4ce92bdf62ef48d6940f03db1f2388003e9fc
2017-05-19 10:24:24 -07:00
Tyler Gunn
d104a4f7f6 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-05-15 11:38:18 -07:00
Tyler Gunn
ea55ba44e7 Merge "Add sort order extra for phoneaccount" am: 78d3f9e1f5 am: bd4140a945
am: 9001d22999

Change-Id: I903198c9b488bc2571f4cfba8ffd25fe15b7260d
2017-04-28 19:32:55 +00:00
Tyler Gunn
78d3f9e1f5 Merge "Add sort order extra for phoneaccount" 2017-04-28 17:58:45 +00:00
Srikanth Chintala
212102b36d Add sort order extra for phoneaccount
Add sort order extra for phoneaccount
which will be used while sorting
phone accounts in Telecomm

Test: Manual
Bug: 34872161
Merged-In: I268d2250cc9bcd1a5e9eb8be99dcb23e2bcceadc
Change-Id: I268d2250cc9bcd1a5e9eb8be99dcb23e2bcceadc
2017-04-28 17:52:08 +00:00
Tyler Gunn
949e274610 Merge "Add sort order extra for phoneaccount" 2017-04-28 14:53:39 +00:00
Tyler Gunn
24067aceff Merge "Further handover support changes." 2017-04-27 16:26:23 +00:00
Tyler Gunn
9f6f04733e Further handover support changes.
Add handover extras key used when initiating handover.
Add handover complete / fail connection events which are sent to the
initiating IncallService when a handover is complete or fails.
Adding PhoneAccount extra to indicate that a self-managed CS should have
its calls logged to the call log.

Test: Manual
Bug: 37102939
Change-Id: Icbb6f1addf913de841a9c48089a7d8311668f3bc
2017-04-26 21:32:01 +00:00
Srikanth Chintala
6242840371 Add sort order extra for phoneaccount
Add sort order extra for phoneaccount
which will be used while sorting
phone accounts in Telecomm

Test: Manual
Bug: 34872161
Change-Id: I268d2250cc9bcd1a5e9eb8be99dcb23e2bcceadc
2017-04-26 13:29:08 -07:00