Commit Graph

1662 Commits

Author SHA1 Message Date
Tyler Gunn
972a6ef338 Merge "Improve remote connection logging." into rvc-dev am: d44de9392f
Change-Id: I916750e0f558db1eb9e581bab7a9fbc71f781709
2020-04-21 15:38:54 +00:00
Tyler Gunn
815576c7d6 Improve remote connection logging.
This CL improves traceability of calls initiated via a remote connection
service.
For regular incoming/outgoing calls, when initiating a request to create
a remote connection in RemoteConnectionService, we set
EXTRA_REQUESTING_PACKAGE_NAME in the parcelled request to the package name
of the connection manager.  In ConnectionService this serves as an
indicator that the incoming request is via a connection manager and is
used to trigger setting of EXTRA_REMOTE_PHONE_ACCOUNT_HANDLE with the
phone account handle the remote connection service uses to place the call.
For conferences and existing connections, the initial request is from
the remote connection service to the connection manager so we can
just set the EXTRA_REMOTE_PHONE_ACCOUNT handle there directly.

Also cleaned up logging in the telecom session logging to remove the
assumption that the ownerInfo is an incall service.

Test: Manual testing with connection manager to verify logging.
Fixes: 154353494
Change-Id: Iee1b5cfd3334a5de08d7b04022b7c6d5af6a4b04
2020-04-17 15:46:29 -07:00
Tyler Gunn
de47fdda7d Merge "Ensure conference state is posted to Telecom for new conferences." into rvc-dev am: cd5d9b29a1
Change-Id: I203880c593f6bac471a06eb9dcbb529d0bb75ba5
2020-04-14 23:38:45 +00:00
Tyler Gunn
cd5d9b29a1 Merge "Ensure conference state is posted to Telecom for new conferences." into rvc-dev 2020-04-14 23:16:54 +00:00
Tyler Gunn
83d6a74cf0 Merge "Fix parceling and unparceling for URIs in Telecom." into rvc-dev am: 877f3f63c9
Change-Id: I87b881e55a749e0ea46ba3b3c7d297856a744f37
2020-04-14 15:30:23 +00:00
Tyler Gunn
877f3f63c9 Merge "Fix parceling and unparceling for URIs in Telecom." into rvc-dev 2020-04-14 15:21:20 +00:00
Tyler Gunn
7c61306fa5 Fix parceling and unparceling for URIs in Telecom.
When testing parceling and unparceling of numbers with postdial digits
it appears in parcelling to the dialer there were some cases where
the commas were being URL encoded during parceling.

Elsewhere in the platform the Uri.writeToParcel and
Uri.CREATOR.createFromParcel methods are used.  Switching to those methods
ensured that the parceling did not uri-encode on parcel/unparcel.
GatewayInfo already used the right method to unparcel.

Test: Unit/CTS tests.
Fixes: 152172598
Change-Id: I32b7d049107cb3901fd934dc609541d1d2622a5a
2020-04-13 17:19:24 -07:00
Tyler Gunn
79110a9fd7 Ensure conference state is posted to Telecom for new conferences.
There is an edge-case where an IMS conference fails to merge two
participants into a conference, AND the conference event package comes in
before the ImsCall indicates it is multiparty.  In this case, the CEP
will have a single participant which means we'll treat the call as a
standalone call.  ImsConference correctly sets the conference state, but
this was previously just passed along the ConnectionService adapter
to Telecom.  In this case the conference isn't even added to Telecom so
the method call in effect does nothing.

Changed to cache the conference state and ensure when adding the conference
to Telecom that we call the setConferenceState method (yeah, could have
put this in the ParcelableConference, but this is an edge case).

Test: Wrote unit test to verify property is set.
Fixes: 134047008
Change-Id: Ib48437abb1295d147e227727ce4ff2996f28b5de
2020-04-10 15:27:27 -07:00
Brad Ebinger
4eaad56d15 Merge "Add a new call direction parameter to conferences for multiparty" into rvc-dev am: 08ca469222
Change-Id: Ia7719f527d96882d2209b93d461033253a2c7cf0
2020-04-10 17:19:31 +00:00
Brad Ebinger
08ca469222 Merge "Add a new call direction parameter to conferences for multiparty" into rvc-dev 2020-04-10 17:14:01 +00:00
Brad Ebinger
43e026594e Add a new call direction parameter to conferences for multiparty
1) Refactor ParcelableConference - too many optional params
2) Add a new call direction parameter for external multiparty
call scenarios, where a conference is assigned a direction.

Bug: 153595501
Test: atest TelecomUnitTests TeleServiceTests
Change-Id: Icb576a07b9a7a81e228babfea53474be83da7593
2020-04-09 16:46:11 -07:00
Michael Groover
f3d732b0ad Merge "Update permission requirements for TelecomManager#getLine1Number" into rvc-dev am: f4cd234bcb
Change-Id: I870b599d2c6f5d98d9a6eecbdc1c69462c395386
2020-04-09 17:28:14 +00:00
Michael Groover
f4cd234bcb Merge "Update permission requirements for TelecomManager#getLine1Number" into rvc-dev 2020-04-09 17:21:42 +00:00
Brad Ebinger
98fd8ded33 Merge "Add new @hide API to pass call direction changes through Telecom" into rvc-dev am: aa709348ee
Change-Id: Idd144680ac33170289489b537da9080a3fad3c8f
2020-04-09 16:47:41 +00:00
Brad Ebinger
31774ae752 Add new @hide API to pass call direction changes through Telecom
Bug: 153277327
Test: atest TelecomUnitTests
Change-Id: Icad12c4144bf185c24ee80bcbdd1aec29550bf4e
2020-04-08 17:08:10 -07:00
Tyler Gunn
df77eb4a6e Merge "Document that some Telecom broadcast and extra keys are dead-ends." into rvc-dev am: f7643e91ae
Change-Id: Ia88c8cf977c854edd0c92c903ca0eec4b0735b96
2020-03-27 23:03:09 +00:00
Tyler Gunn
f7643e91ae Merge "Document that some Telecom broadcast and extra keys are dead-ends." into rvc-dev 2020-03-27 22:57:49 +00:00
Tyler Gunn
78f77f67eb Document that some Telecom broadcast and extra keys are dead-ends.
Too late to @deprecate, but we can still at least indicate that the
broadcasts are dead-ends and help the developer know the right way to
go.

Test: make -j offline-sdk-docs; confirm docs look good.
Fixes: 148268693
Change-Id: I88b03a62c812232cf0d5bbeb693cdaf3c2eed3e1
2020-03-27 12:55:58 -07:00
Michael Groover
08490f1dc7 Update permission requirements for TelecomManager#getLine1Number
To move READ_PHONE_STATE from a runtime permission to a normal
permission all sensitive APIs guarded by READ_PHONE_STATE must be
moved to another permission. This commit updates the TelecomManager
getLine1Number docs to reflect the new permission requirements;
these requirements are the same as TelephonyManager getLine1Number.

Bug: 136160623
Test: atest TelecomUnitTests:TelecomServiceImplTest
Change-Id: Ibb8e5d1cf16a05e95c2cc2fb68af35dc4bdb0f02
2020-03-25 16:44:55 -07:00
Tyler Gunn
df0941f939 Merge "Hide adhoc conference APIs." into rvc-dev am: f0edfb41f3
Change-Id: I90e05379d3c779bdc6b64e3ff68513bb3f302456
2020-03-25 20:37:34 +00:00
Tyler Gunn
703dd182fd Hide adhoc conference APIs.
Most of this was previously hidden; these last stragglers were missed.

Test: make update-api ; verify hidden
Fixes: 152394802
Change-Id: I41bda5b8ad368e1c88e4dd9e45d978a111a22e53
2020-03-25 08:50:48 -07:00
TreeHugger Robot
edf5d17e73 Merge "Hide CALL_SOURCE constants in TelecomManager" into rvc-dev am: 4d2c4a2b86
Change-Id: I01572f2b85a8d4f7240e225890a8bd48fabdcb0f
2020-03-21 01:22:39 +00:00
Hall Liu
dd4859d17d Hide CALL_SOURCE constants in TelecomManager
Fixes: 151184696
Test: build
Change-Id: Ie1886d7cd1bac22da41c942b6507b24bc4238c10
(cherry picked from commit 1b78c5327d)
2020-03-20 22:49:28 +00:00
Philip P. Moltmann
12ac3f406f Rename featureId -> attributionTag
In the core functionality this changes everything including aidl's and
field names:
- Context
- ContentProvider
- AppOps*
- Package parsing

For the rest, this is a shallow change to only change to the changed
APIs. This keeps the change small-ish

Exempt-From-Owner-Approval: Rename
Fixes: 148792795
Test: TH
Change-Id: I2a2245fe76e09e62cb13d5785d2efb4a304ba54a
Merged-In: I2a2245fe76e09e62cb13d5785d2efb4a304ba54a
2020-03-12 19:26:10 +00:00
Philip P. Moltmann
aea50fc06a Rename featureId -> attributionTag
In the core functionality this changes everything including aidl's and
field names:
- Context
- ContentProvider
- AppOps*
- Package parsing

For the rest, this is a shallow change to only change to the changed
APIs. This keeps the change small-ish

Exempt-From-Owner-Approval: Rename
Fixes: 148792795
Test: TH
Change-Id: I2a2245fe76e09e62cb13d5785d2efb4a304ba54a
Merged-In: I2a2245fe76e09e62cb13d5785d2efb4a304ba54a
2020-03-12 11:47:51 -07:00
Automerger Merge Worker
7f46318909 Merge "Hide APIs introduced in earlier commit" into rvc-dev am: 97363dce3c
Change-Id: I51162719de79e4158f8bcff9050c9d83b50de04a
2020-03-12 15:51:35 +00:00
Shuo Qian
9378eb9362 Fix CallRedirectionService Doc issue
Bug: 149210664
Test: Treehugger; No function change
Change-Id: Ib8afac47d4a3237d7ce829a18566ca212fee8420
Merged-In: Ib8afac47d4a3237d7ce829a18566ca212fee8420
(cherry picked from commit e212f0d7cf)
2020-03-12 03:45:08 +00:00
Hall Liu
97363dce3c Merge "Hide APIs introduced in earlier commit" into rvc-dev 2020-03-12 01:31:41 +00:00
Automerger Merge Worker
2b25119612 Merge "Fix CallRedirectionService Doc issue" am: ed90e72dde am: 6051bfbc91
Change-Id: Idbbd1a6ac8c7836deaab18d6a061aa4efa2b40cc
2020-03-11 20:30:56 +00:00
Treehugger Robot
ed90e72dde Merge "Fix CallRedirectionService Doc issue" 2020-03-11 17:41:04 +00:00
Hall Liu
dbb17f1754 Hide APIs introduced in earlier commit
Fixes: 151184696
Test: NA
Change-Id: I5ad3229158a140c4d27cb3bd9b608e7dc165a044
2020-03-10 18:35:04 -07:00
Automerger Merge Worker
ab9d09ec88 Merge "Fix Telecom ConnectionTest." into rvc-dev am: 0ea5bf3ddf
Change-Id: I7556a175cad8c896fcfa8a9d18e4ad90635277c3
2020-03-07 00:04:21 +00:00
Tyler Gunn
81ea3ffa50 Fix Telecom ConnectionTest.
A recent Telephony change was made to support missed calls reported
over SMS; this change made FailureSignalingConnection fully mutable
which failed some CTS.
Given that its only the setAddress method which would fail the mutability
check, re-added immutability in the FailureSignalingConnection since
ultimately we do want to protect these from state changes, but removed
the mutability check in the setAddress method since its reasonable to
want to report an address in this case.

Test: cts-tradefed run cts-dev -m CtsTelecomTestCases -t android.telecom.cts.ConnectionTest
Fixes: 150811816
Change-Id: I7f37daf9ac65ff70eec7692410fa299cb30fdc38
2020-03-06 11:36:21 -08:00
Automerger Merge Worker
10e0a54632 Merge "Add CAPTURE_AUDIO_OUTPUT permission requirement" am: a90348248b am: c878a3cd8a
Change-Id: Id83a6787786803c7883ba4966d4e857b274df8ee
2020-03-06 11:37:29 +00:00
Treehugger Robot
a90348248b Merge "Add CAPTURE_AUDIO_OUTPUT permission requirement" 2020-03-06 11:06:16 +00:00
Shuo Qian
281e683591 Fix CallRedirectionService Doc issue
Bug: 149210664
Test: Treehugger; No function change
Change-Id: Ib8afac47d4a3237d7ce829a18566ca212fee8420
Merged-In: Ib8afac47d4a3237d7ce829a18566ca212fee8420
(cherry picked from commit e212f0d7cf)
2020-02-28 12:06:00 -08:00
Hall Liu
5508591b92 Update docs for getGenericConferenceActiveChildCall
Update the documentation for getGenericConferenceActiveChildCall to make
it more clear what a generic conference is and which call the method
will actually return.

Fixes: 148515394
Test: none, docs only change
Change-Id: Idfee3fc23c7f6035f7b980fbb4dfe68c2834c388
2020-02-27 18:35:14 -08:00
Jack Yu
6bff33b1a8 Added missed incoming call SMS support
Provided a way for carrier to notify their users
about missed incoming call via special SMS.

Bug: 144068181
Test: MissedIncomingCallSmsFilterTest
Merged-In: Iacf1ce5b2a79761536e2b31a0ea5644622b4913c
Change-Id: Iacf1ce5b2a79761536e2b31a0ea5644622b4913c
2020-02-25 17:29:13 -08:00
Jack Yu
1e1ff94bdb Added missed incoming call SMS support
Provided a way for carrier to notify their users
about missed incoming call via special SMS.

Bug: 144068181
Test: MissedIncomingCallSmsFilterTest
Merged-In: Iacf1ce5b2a79761536e2b31a0ea5644622b4913c
Change-Id: Iacf1ce5b2a79761536e2b31a0ea5644622b4913c
(cherry picked from commit 0630b6c358)
2020-02-24 11:58:30 -08:00
Automerger Merge Worker
b183da57f4 Merge "Make get/setCallerNumberVerificationStatus final." am: 4cbb288657 am: 329d286b88 am: 83d8de2f15
Change-Id: I209101a92935f377b3e562f65b9692113a6d9b03
2020-02-20 04:28:13 +00:00
Automerger Merge Worker
0a04056d35 Merge "IMS: Add support for IMS Explicit call transfer" am: 12f7f43ec8 am: 4c0cd62311 am: f65d00890f
Change-Id: Ic8231acd8330c91998f0cb479a7a6fbe3ea5bda1
2020-02-19 23:19:00 +00:00
Tyler Gunn
4cbb288657 Merge "Make get/setCallerNumberVerificationStatus final." 2020-02-19 22:03:52 +00:00
Ravi Paluri
f4b38e7ff1 IMS: Add support for IMS Explicit call transfer
Test: Manual
Bug: 62170207
Change-Id: I06a256adb0e1910d40809c91bcdd42c56a142842
2020-02-14 11:02:09 +05:30
Tyler Gunn
a131d6ee5f Make get/setCallerNumberVerificationStatus final.
Make new APIs final.

Test: make -j update-api
Test: run unit tests
Bug: 149316218
Change-Id: Ib3d4ceacff451ac646a504ab02f0242852228a32
2020-02-13 14:53:28 -08:00
Automerger Merge Worker
ec47b48311 Merge "Update InCallService API docs." am: 11e7b55ea9 am: 040db280fa am: 01bb7cef0e
Change-Id: Ie50b8f5173a16f34d9a9674a081ce62a45687656
2020-02-13 19:48:37 +00:00
Automerger Merge Worker
f8e30a1172 Merge changes from topic "add_participant" am: fdfc58fcd9 am: ac4f7edbd3 am: 0997ab95ae
Change-Id: I82f5641c95547646bf41a21c6ee4d4e0c4cc9aef
2020-02-13 18:50:54 +00:00
Tyler Gunn
11e7b55ea9 Merge "Update InCallService API docs." 2020-02-13 18:48:00 +00:00
Tyler Gunn
f2a5615087 Merge "API Review cleanups." 2020-02-13 18:16:25 +00:00
Tyler Gunn
c9503d6ea6 API Review cleanups.
- New @SystemApis on Conference and PhoneAccount were missing the required
permissions annotations.
- Rename PROPERTY_ASSISTED_DIALING_USED to PROPERTY_ASSISTED_DIALING
- Standardize get/setConnectionStartElapsedRealtimeMillis method naming
across Connection and Conference classes.
- Clarify Conference#sendConferenceEvent API documentation to match the
docs present for similar method in Connection; include some examples of
valid event/extras combinations.
- Update TelecomManager#getDefaultdialerPackage to use UserHandle instead
of userId.
- Move Conference#getConnectionStartElapsedRealtimeMillis to public API
since the setter is already part of the public API.

Test: Run Telecom and Telephony CTS tests.
Test: Run Telephony unit tests.
Test: Perform manual single-party-conference regression test to confirm
that conference behavior does not regress.

Bug: 147301297
Bug: 148286830
Bug: 148284863
Bug: 148284843
Bug: 148287068
Bug: 148285484
Bug: 148285560
Change-Id: I1f446d81859fa109d74af3661a42a0bd224de5aa
Merged-In: I1f446d81859fa109d74af3661a42a0bd224de5aa
2020-02-13 16:53:42 +00:00
Tyler Gunn
8d95abab29 Merge "API Review cleanups." 2020-02-13 16:05:53 +00:00