1962 Commits

Author SHA1 Message Date
Hall Liu
5efe997539 Refactor CallScreeningService's internal structure
Use a single AIDL method and perform logic in Telecom instead of slicing
up the call response on the client side.

Also pass through the call response to the connection service.

Bug: 179412110
Test: atest ConnectionServiceTest CallScreeningServiceTest
Change-Id: I878c0ce34142da104dc0e2795487b03a6bdacb5f
2021-02-12 14:04:10 -08:00
Grace Jia
e7382b6103 Merge "Set default value of EXTRA_ADD_SELF_MANAGED_CALLS_TO_INCALLSERVICE true." am: f67a99fe60 am: a8cafc65ff am: b609dab7b7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1571460

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5cb615dd3bceee20b3fb43977a6792abc14302b4
2021-02-11 03:52:17 +00:00
Grace Jia
b609dab7b7 Merge "Set default value of EXTRA_ADD_SELF_MANAGED_CALLS_TO_INCALLSERVICE true." am: f67a99fe60 am: a8cafc65ff
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1571460

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I487626731aed71285fa359470b01e4227f5162c4
2021-02-11 03:48:52 +00:00
Grace Jia
f67a99fe60 Merge "Set default value of EXTRA_ADD_SELF_MANAGED_CALLS_TO_INCALLSERVICE true." 2021-02-11 03:23:42 +00:00
TreeHugger Robot
792a5985bb Merge "Fix faulty log statement" into sc-dev 2021-02-04 23:11:32 +00:00
Hall Liu
1ada30d51e Merge "Add Telecom command to reset car mode" into sc-dev 2021-02-04 22:51:01 +00:00
Adrian Roos
d68bee2746 API: Suppress existing NullableCollections lints am: 6a6aa5e23d am: 4da67dd2f6 am: 98eb82a6d3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1566096

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I314b97d2677f26b0a9c09a52918df49096450aea
2021-02-04 17:09:38 +00:00
Adrian Roos
98eb82a6d3 API: Suppress existing NullableCollections lints am: 6a6aa5e23d am: 4da67dd2f6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1566096

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I931b4ec091173789f480ecc761044a27944c4b85
2021-02-04 16:49:00 +00:00
Adrian Roos
4da67dd2f6 API: Suppress existing NullableCollections lints am: 6a6aa5e23d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1566096

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2d47151b7e26e82706f2d94a13c4067fe71fc168
2021-02-04 16:19:34 +00:00
Adrian Roos
60f3d5cee4 Merge changes from topic "nullablecollection"
* changes:
  API: Suppress existing NullableCollections lints (TaskOrganizer)
  API: Suppress existing NullableCollections lints
2021-02-04 15:53:34 +00:00
Hall Liu
589b00177c Add Telecom command to reset car mode
Add a command to do a system-wide clobber of car mode in order to
prevent cascading CTS failures.

Fixes: 179264757
Test: manually fail one of the car mode CTS tests and observe
Change-Id: Id363e04d212c5f4d01be23e818b5c5fd1d91eac5
2021-02-03 12:32:17 -08:00
Grace Jia
8b22bb4bce Set default value of EXTRA_ADD_SELF_MANAGED_CALLS_TO_INCALLSERVICE
true.

Self-managed connections need to bind to special in-call service in
order to expose itself to bluetooth stack.

Bug: 178679937
Test: Manually use duo to make self-managed calls and make sure it's
audible on BT

Change-Id: I7c3c56e9c65d43f598645aee5842e97fd73d300e
2021-02-02 15:37:32 -08:00
Nazanin Bakhshi
494a6eb0d3 Merge "Add an event and a parcelable to receive bluetooth framework call quality signal" am: 99955ce46b am: 63bb8c664e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1566906

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I52fc8a9d4f397c4076d966ae68ad8fe366f61f10
2021-02-02 21:02:16 +00:00
Hall Liu
b28a6e05cb Fix faulty log statement
Bug: 177613111
Test: manual
Change-Id: I95830d4af1542671e6a06596e2661d41f124838e
2021-02-02 11:28:28 -08:00
Nazanin Bakhshi
99955ce46b Merge "Add an event and a parcelable to receive bluetooth framework call quality signal" 2021-02-02 19:21:22 +00:00
Alvin Dey
2f37d778d6 IMS: Propagate RTT capability of the called party to UI
Propagate RTT capability of the called party to UI.

Test: Manual

Bug: 80063808
Change-Id: Ia7d99e7b1f2e87ac7fb703333f5a4c617321e4ef
2021-02-02 23:51:46 +05:30
Nazanin
9bf6b3de91 Add an event and a parcelable to receive bluetooth framework call
quality signal

Bug: 173137125
Test: manual test check for regression
Change-Id: I38e70ea284707d39cec7cb4fbdfd36be4f83e403
Merged-In: I38e70ea284707d39cec7cb4fbdfd36be4f83e403
2021-02-01 21:36:48 +00:00
Grace Jia
3771f5e563 Merge "Add relative APIs for InCallService that can support self-managed connections that want to expose itself." am: 59c47d24fc am: f5468331b4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1526998

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I166bd3ba72e1ffa4e6297bd7ec69fde1f15bd1d7
2021-02-01 19:34:58 +00:00
Grace Jia
4e8dc10871 Add relative APIs for InCallService that can support self-managed
connections that want to expose itself.

Add PhoneAccount#EXTRA_ADD_SELF_MANAGED_CALLS_TO_INCALLSERVICE and
Connection#onInCallServiceTrackingChanged.

Bug: 161144815
Test: CtsTelecomTestCases
Change-Id: I0a42ea79a1cd46aa9df3399c4fa2e9396321778a
Merged-In: I0a42ea79a1cd46aa9df3399c4fa2e9396321778a
2021-02-01 14:51:31 +00:00
Adrian Roos
6a6aa5e23d API: Suppress existing NullableCollections lints
Bug: 152525509
Bug: 154763999
Test: make checkapi
Change-Id: Iecd0927e6be5496b2fbd1a49396db5439257ffe4
2021-02-01 15:04:10 +01:00
Hall Liu
8fee7eaa81 Rename TelecomManager.EXTRA_INCOMING_PICTURE
Rename to EXTRA_PICTURE_URI, since we also need to set it for outgoing
calls in order to write to the call log correctly.

Bug: 177613111
Test: atest CallComposerTest
Change-Id: Ie171c8f978db7de30e81800c464b2bd68aff73f8
Merged-In: Ie171c8f978db7de30e81800c464b2bd68aff73f8
2021-01-28 12:28:29 -08:00
Hall Liu
a749abcead Add support for integrating call composer
* Minor bugfix in call log to handle USER_CURRENT
* add TelephonyLocalConnection that allows frameworks/opt/telephony to
call code (indirectly) in packages/services/Telephony

Bug: 177613111
Test: atest CallComposerTest

Merged-In: I602b51da6009c884364a026781ca3c160978fbd1
Change-Id: I61af7553b4b3d71fe87c86fca62941747d43ef55
2021-01-28 12:28:25 -08:00
Grace Jia
41895157db Annotation and doc improvement for adhoc conference APIs.
Annotate Conference#onAnswer with @VideoState
Mark parameters of adhoc conference APIs with @NonNull.
Document the distinction between returning null and returning a failed conference.
Bug: 165801368
Test: make

Change-Id: Ic0bd1a1e431ca0dec52afc8a28996929684236ba
2021-01-20 14:21:04 -08:00
Grace Jia
e99fde9678 Add relative APIs for InCallService that can support self-managed
connections that want to expose itself.

Add PhoneAccount#EXTRA_ADD_SELF_MANAGED_CALLS_TO_INCALLSERVICE and
Connection#onInCallServiceTrackingChanged.

Bug: 161144815
Test: CtsTelecomTestCases
Change-Id: I0a42ea79a1cd46aa9df3399c4fa2e9396321778a
2021-01-19 15:04:09 -08:00
Hall Liu
49cabccc17 Add API to inform Telephony that call filtering is complete
Add an API that gets called once call filtering finishes. Meant to
trigger download of call composer images.

Bug: 177613111
Test: atest ConnectionServiceTest

Change-Id: I4e06f19c859022ddb933f697dde13e459a3d354e
2021-01-15 17:52:37 -08:00
Tyler Gunn
0783c03683 Merge "Add intdef for Telecom connection states." am: 96cf67465b am: a452afcc1b am: 9cbd141892
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1548978

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I863e16f7c6d76882de27a8561e0934e9755f33cb
2021-01-15 18:28:34 +00:00
Tyler Gunn
9cbd141892 Merge "Add intdef for Telecom connection states." am: 96cf67465b am: a452afcc1b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1548978

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib48d977b744da3613932d3687d82a66bce6139e8
2021-01-15 18:00:31 +00:00
Tyler Gunn
50d437fb1e Add intdef for Telecom connection states.
Bug: 163085177
Test: Annotation only change.
Change-Id: Id3dbf9d38ff4467e94594bf7a75fb00750af64fe
2021-01-13 14:15:37 -08:00
Ashwini Oruganti
40449d8182 Merge "Bulk apply PendingIntent.FLAG_MUTABLE_UNAUDITED." 2021-01-13 16:08:07 +00:00
Ashwini Oruganti
f8191e8996 Bulk apply PendingIntent.FLAG_MUTABLE_UNAUDITED.
We've been working hard to require PendingIntents explicitly declare
if they allow their contents to be mutated or not, and to finish
landing that work this change applies the new FLAG_MUTABLE_UNAUDITED
flag to all remaining code locations until they can be manually
inspected.

Bug: 160794467
Test: manual
Change-Id: I8d7ec64ac89755c14b5959bb6ef0bce203c92bf0
2021-01-12 15:07:43 -08:00
Sooraj Sasindran
64f05b101d Introduce IMS Cross SIM registration
Introduce IMS Cross SIM registration

Bug: 171391883
Test: Build
Change-Id: Idd79a0a1f453a36587b89257e88437c96bf6ff4e
2021-01-12 04:51:05 +00:00
Shuo Qian
d56018852c Merge "Add CAPABILITY_CALL_COMPOSER in PhoneAccount for enriched calling." am: b31c9b4702 am: ce4f99fd74
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1535172

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iac83990d1dcd99a1024b6eb77fc4a0201b268b7f
2021-01-06 05:02:45 +00:00
Shuo Qian
3785d3adf8 Merge "Add Call Composer API extras in TelecomManager" am: 6e419a49a7 am: 9a1365f43d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1535166

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5539c70ff4019ed4c841155a8ad8bc029bd39344
2021-01-06 05:02:39 +00:00
Shuo Qian
b31c9b4702 Merge "Add CAPABILITY_CALL_COMPOSER in PhoneAccount for enriched calling." 2021-01-06 00:48:00 +00:00
Shuo Qian
abee612ab0 Add CAPABILITY_CALL_COMPOSER in PhoneAccount for enriched calling.
Test: cts
Bug: 173437870
Change-Id: Ibd1b0f0bc66487cfdb05d3de46c7e8df74eeb8cc
Merged-In: Ibd1b0f0bc66487cfdb05d3de46c7e8df74eeb8cc
(cherry picked from commit d24aea31483c70fa684f8b54965dc045b263f34b)
2020-12-23 00:00:44 +00:00
Shuo Qian
850627f948 Add Call Composer API extras in TelecomManager
Test: cts
Bug: 173437870
Change-Id: I46cd9ee72de3d217fa23b368c0b88811cf8ce555
Merged-In: I46cd9ee72de3d217fa23b368c0b88811cf8ce555
(cherry picked from commit 3ed3883ff684d4f1177497d697fc6a1a13a9dfe5)
2020-12-22 23:40:55 +00:00
Jeff Sharkey
0ab7007631 resolve merge conflicts of 358f0d4fc8c248498cf113c41e043877a14e89a1 to master
Bug: 174932174
Test: I solemnly swear I tested this conflict resolution.
Exempt-From-Owner-Approval: refactoring with team leads buy-in
Change-Id: I9262a08ffc1ccede8e519d0eed90ed2bfcf0232c
2020-12-08 11:01:05 -07:00
Jeff Sharkey
24d251403b Improve OWNERS coverage across frameworks/base/. am: fab0ab3c9c am: c7c4a74a78
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519383

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5120a3701af3564f363900b20bca75f3ad2a854c
2020-12-08 16:43:17 +00:00
Jeff Sharkey
c7c4a74a78 Improve OWNERS coverage across frameworks/base/. am: fab0ab3c9c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519383

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0211462ecbcd9ad66f66af87e31cf12e1582fc65
2020-12-08 16:01:16 +00:00
Jeff Sharkey
c2793cf12b Merge changes from topic "dec5"
* changes:
  Improve OWNERS coverage across frameworks/base/.
  Improve OWNERS coverage across frameworks/base/.
  Improve OWNERS coverage across frameworks/base/.
2020-12-08 15:39:59 +00:00
Jeff Sharkey
fab0ab3c9c Improve OWNERS coverage across frameworks/base/.
As general background, OWNERS files expedite code reviews by helping
code authors quickly find relevant reviewers, and they also ensure
that stakeholders are involved in code changes in their areas.

Some teams under frameworks/base/ have been using OWNERS files
successfully for many years, and we're ready to expand them to cover
more areas.  Here's the historical coverage statistics for the last
two years of changes before these new OWNERS changes land:

-- 56% of changes are fully covered by OWNERS
-- 17% of changes are partially covered by OWNERS
-- 25% of changes have no OWNERS coverage

Working closely with team leads, we've now identified clear OWNERS on
a per-package basis, and we're using "include" directives whenever
possible to to simplify future maintenance.  With this extensive
effort, we've now improved our coverage as follows:

-- 98% of changes are fully covered by OWNERS
-- 1% of changes are partially covered by OWNERS
-- 1% of changes have no OWNERS coverage

This specific change is automatically generated by a script from
detailed ownership information confirmed by team leads.

Bug: 174932174
Test: manual
Exempt-From-Owner-Approval: refactoring with team leads buy-in
Merged-In: I9789c97c1de8e5d962b48c29c57d82fe83729eba
Change-Id: I9789c97c1de8e5d962b48c29c57d82fe83729eba
2020-12-08 08:36:27 -07:00
Brad Ebinger
057a181dfc Merge "Use phoneAccountHandle based on connection" am: eb87a5267f am: 4ab9a5ea60 am: c2d35bfa32
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1428408

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I757c8b75b292f2d560c320e36c58eae41c24b6b2
2020-12-07 21:30:28 +00:00
Brad Ebinger
c2d35bfa32 Merge "Use phoneAccountHandle based on connection" am: eb87a5267f am: 4ab9a5ea60
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1428408

Change-Id: Ibe583151729e8d9683b3df2159689e9e7249b7cc
2020-12-07 20:54:41 +00:00
Brad Ebinger
eb87a5267f Merge "Use phoneAccountHandle based on connection" 2020-12-07 19:04:12 +00:00
Dan Shi
90637223dd Merge "Move CtsTelecomTestCases to group presubmit-large" am: 471929b98f am: 9586d4d46c am: e555468ed8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1516543

Change-Id: I4c7168c4e2cd436c83ca26244b4de984f4d54e61
2020-12-05 22:15:08 +00:00
Dan Shi
e555468ed8 Merge "Move CtsTelecomTestCases to group presubmit-large" am: 471929b98f am: 9586d4d46c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1516543

Change-Id: I9acb97948b599479ee2055508a7aa94c3ffb53a5
2020-12-05 02:19:53 +00:00
Shuo Qian
160ea24999 Merge "Add Call Composer API extras in TelecomManager" 2020-12-04 21:34:04 +00:00
Dan Shi
4d46518b6f Move CtsTelecomTestCases to group presubmit-large
Also move OverlayRemountedTest, RollbackTest

The test config takes longer than 15mins to run. Move it to a dedicated
group for running slow presubmit Test Mapping test.

Bug: 174654670
Bug: 174495337
Test: none
Change-Id: Ie134c5d171bd99cca908f316d03050001c22ac32
2020-12-04 18:14:10 +00:00
Shuo Qian
3ed3883ff6 Add Call Composer API extras in TelecomManager
Test: cts
Bug: 173437870
Change-Id: I46cd9ee72de3d217fa23b368c0b88811cf8ce555
2020-12-03 04:51:57 +00:00
Nazanin Bakhshi
f1f5b25df3 Merge "Add an event and a parcelable to receive bluetooth framework call quality signal" 2020-12-02 19:58:58 +00:00