Commit Graph

279 Commits

Author SHA1 Message Date
Treehugger Robot
bf1d98de72 Merge "Update API documentation for onRttInitiationFailure." am: 7ee20f2830 am: 5badbebbf9 am: 2e658ce6fe
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1990510

Change-Id: I5c53a4d30a9dd1143d4bb723df69041bf2a355b2
2022-03-04 03:04:57 +00:00
Grace Jia
88c05c03f2 Revert "Add API for external call audio route."
Revert "Add CTS coverage for new external audio route API."

Revert submission 16308028-external-audio

Reason for revert: Don't want to launch this in T now
Reverted Changes:
I6634c752a:Add CTS coverage for new external audio route API....
Ibd1c2880e:Add API for external call audio route.
I3e262a913:Implement new external audio route.

Change-Id: I3a3eab1151b825523499058040c14696ea2887e9
2022-02-28 19:32:43 +00:00
Tyler Gunn
b9a0496258 Update API documentation for onRttInitiationFailure.
Add intdef for reason code.
Clarifying when this callback can be expected and how to handle RTT
state when requested at the start of a call.

Test: Docs only change
Bug: 216608696
Change-Id: I86e46fbb2b0693564a41d1ca0d9f8c180d775c1a
2022-02-17 15:56:55 -08:00
Grace Jia
e04723f178 Revert "Add API for cross device calling."
Revert "Add cts tests for new cross device calling api"

Revert submission 16308056-cross-api

Reason for revert: Don't want to launch this in T now
Reverted Changes:
I731226c0b:Add cts tests for new cross device calling api
I1a3aa6c1a:Add API for cross device calling.
I40f78925b:Implement new TelecomManager API for cross device ...

Change-Id: I687d94235b159d8daa20fe75de08394adc39f8c7
2022-02-07 19:42:49 +00:00
Grace Jia
e086d088a9 Add API for cross device calling.
Test: CTS test
Change-Id: I1a3aa6c1ae6d445a2f3b55e5f0d11918da5bed33
2022-01-12 13:50:52 -08:00
TreeHugger Robot
3907b90f84 Merge "Add API for external call audio route." 2022-01-11 19:16:34 +00:00
Bernardo Rufino
90bb3709dc Migrate unsafe parcel APIs in framework-minus-apex
Migrate the following unsafe parcel APIs in framework-minus-apex:
* Parcel.readSerializable()
* Parcel.readArrayList()
* Parcel.readList()
* Parcel.readParcelable()
* Parcel.readParcelableList()
* Parcel.readSparseArray()

This CL was generated by applying lint fixes that infer the expected
type from the caller code and provide that as the type parameter
(ag/16365240).

A few observations:
* In some classes we couldn't migrate because the class also belonged to
another build module whose min SDK wasn't current (as is the case for
framework-minus-apex), hence I suppressed the lint check
(since I'll eventually submit the lint check to the tree).
* In some cases, I needed to do the cast in
https://stackoverflow.com/a/1080525/5765705 to make the compiler happy
since there isn't another way of providing a class of type
Class<MyClassWithGenerics<T>>.
* In the readSerializable() case, the new API also requires the class
loader, that was inferred to by InferredClass.class.getClassLoader().
* Note that automatic formatting and import rely on running hooked up
to the IDE, which wasn't the case here.

Bug: 195622897
Test: TH passes
Change-Id: I11a27b9bdab7959ee86e90aa1e1cbebd7aaf883c
2021-12-15 18:21:38 +00:00
Sooraj Sasindran
fffe4f6865 Merge "Provide last known cell id for emergency call" am: 761ad6eaf8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1870513

Change-Id: I4891c23dc6b5dd78618913d365c858f1c4b270bf
2021-12-08 22:52:32 +00:00
Sooraj Sasindran
81be082283 Provide last known cell id for emergency call
Provide last known cell id to connection service
for emergency calls.

Bug: 198533763
Test: unit test
Change-Id: I8b660c0b5fbe095e3b9b67129b7404ebd7ec5ccd
2021-12-06 12:52:31 -08:00
Grace Jia
22c8b96152 Add API for external call audio route.
Test: CTS test
Change-Id: Ibd1c2880e732f39281f5f6616465bf2c680c1b0d
2021-11-29 13:09:22 -08:00
Xin Li
c03b0fa033 Merge "Merge Android 12" 2021-10-07 23:50:15 +00:00
Tyler Gunn
bbdfc69dee Merge "IMS: Propagate RTT capability of the called party to UI" am: 57704bd7a3 am: 86da26a494
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/696027

Change-Id: I389a90e671bea7920f20e97ca4335cfc6e938fea
2021-10-07 16:05:50 +00:00
Tyler Gunn
86da26a494 Merge "IMS: Propagate RTT capability of the called party to UI" am: 57704bd7a3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/696027

Change-Id: Ia408690d5a0f4969572757d2c4c7ebe7bbe72739
2021-10-07 15:51:05 +00:00
Tyler Gunn
57704bd7a3 Merge "IMS: Propagate RTT capability of the called party to UI" 2021-10-07 15:35:35 +00:00
Tyler Gunn
e0eaef7772 Merge "Fix issue when adding existing connections via remote connection services." into sc-dev am: 5f54351908
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15113691

Change-Id: I99a561193225b6abb9c3d9b36ca7a004406662f7
2021-08-25 17:00:53 +00:00
Tyler Gunn
fdc4bff319 Fix issue when adding existing connections via remote connection services.
When an existing connection is added to represent an IMS conference
participant, it is added with an associated parent conference specified.
This was NOT passed along to the connection manager via the
RemoteConnectionService API since there is no equivalent API present for
that operation.  To work around this, we stash the parent conference's
ID into the connection extras.  We will use that later so that Telecom
can know which conference is the parent of this call.

Also, removing restriction in RemoteConnectionService which would ignore
conferences with no children.  This assumption was incorrect for VOLTE
conferences since they will start with no children.  As a consequence we
would ALWAYS skip adding IMS conferences to the connection manager, which
would mean that it had no way of knowing about the conference that the
existing connections are associated with.

Test: Manual test with connection manager APIS on live network; make
conference and verify that the correct objects are being created wrapped
by the connection manager.
Bug: 188420526
Change-Id: Ie58afed7a3b7eeaa7e329e80479d273e4c50ec82

Change-Id: I4250f9459c7a1b82936583a10e93d049fdfb4c5d
2021-08-13 18:29:40 +00:00
Tyler Gunn
8325992809 Merge "Add a hidden extra key for caller number verification status." into sc-dev am: 7402d904f2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15180465

Change-Id: I2d2e7e1ec9d9793444eb4c77ab1eb261b91a54fe
2021-07-02 16:39:10 +00:00
Tyler Gunn
60e5eb6d61 Add a hidden extra key for caller number verification status.
This is used to work around a bug in the remote connection service API
where this property is not being passed through to Telecom.

Test: Use connection manager carrier and verify that VERSTAT is now
propagated to Telecom.
Bug: 192608283

Change-Id: Ie45e7c05d78623085cd2be32470a5870d243745c
2021-07-01 16:55:32 -07:00
Tyler Gunn
c0d45c4a42 Merge "Clarify the video API "setZoom" ratio." am: 6cf21bae3b am: 9d0f657ddc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1737273

Change-Id: Ib914f83b7029d2a2ef3d9584175d2f96944956cd
2021-06-15 16:45:49 +00:00
Tyler Gunn
c603b46215 Clarify the video API "setZoom" ratio.
This should ideally be a valid in terms of the reported camera
characteristics.

Test: Docs only change
Bug: 190804553
Change-Id: I35e0148e6e9d90d991b556e5c6db4bbd77ce39a0
2021-06-14 17:24:40 -07:00
Tyler Gunn
78a59ff70b Add hidden extra for communicating whether D2D is available
Test: Added unit test
Bug: 163085177
Change-Id: I65f7fb38f0582e20899a54859d850982c6637237
2021-05-07 16:41:19 -07:00
Hall Liu
1b53c7b5e1 Merge "Add PROPERTY_DOWNGRADED_CONFERENCE to logging" am: 2e0c2171fd am: ff4a4a29e7 am: 9c05c40060
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1358163

Change-Id: Icf555d5e3bceda3bc1260b64c6d7394d4f9adb50
2021-03-31 23:30:47 +00:00
Hall Liu
2e0c2171fd Merge "Add PROPERTY_DOWNGRADED_CONFERENCE to logging" 2021-03-31 22:38:53 +00:00
Tyler Gunn
0a1c6d1bb4 Propagate call quality reports from Telephony to CallDiagnosticService.
Complete plumbing for call quality reports to get to the CDS.

Test: Manual network testing.
Test: Modify CTS tests to cover these cases.
Bug: 163085177
Change-Id: I2bb68d29c4ad11cc8738c26cd69404fde4348843
2021-03-19 16:39:11 +00:00
Tyler Gunn
066de6034e Rename DiagnosticCall to CallDiagnostics.
Keep DiagnosticAll in a deprecated form to maintain binary compatibility
with ongoing work in other repos.

Test: run CTS
Test: run unit tests
Fixes: 182241145
Change-Id: Ia14113bcce344bb589408b74eaab74d413de9e7e
2021-03-16 16:17:50 -07:00
Tyler Gunn
4b033d7316 Merge "CallDiagnosticService API" am: c90335033b am: 9882ff4bf8 am: d3bf1aa209
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1607109

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie91efc29698d27946f83b751bef2fe89d612c9a2
2021-03-03 00:16:56 +00:00
Tyler Gunn
d582184178 CallDiagnosticService API
The CallDiagnosticService API is an OEM-backed API which allows an OEM
provided app to monitor the state of ongoing telephony calls on the
device and to help the user navigate connectivity or audio issues
related to these calls.  It also provides a means for the app to send
and receive device to device messages between devices during an ongoing
call (where supported) in order to facilitate a better calling experience.

Test: Added new CTS test suite for API.
Test: Manual test of CDS behavior using telecom command line option to
override the active CDS to the telecom test app implementation.
Bug: 163085177

Change-Id: I1f37408d2aa6c630f0f9e3d6b6eb8a390d804d7e
2021-02-25 23:08:29 +00:00
Hall Liu
7390314002 User arg object in onCallFilteringCompleted
In Connection#onCallFilteringCompleted, use a single data class argument
instead of making a hodgepodge of args.

Fixes: 180616846
Test: atest CtsTelecomTestCases
Change-Id: I33e80e3f59418c5d87799661c0764da029cc9f62
2021-02-18 18:52:07 -08:00
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
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
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
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
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
allenwtsu
6ec972a72a Declare audio codec bitrate and bandwidth
Bug: 172304392
Test: atest
Change-Id: Iea4de76a4c1628c8828ba84282ef014f94cc169a
2020-11-11 00:55:52 +08:00
Anton Hansson
dd7d52f963 Remove @TestApi from @SystemApi symbols
I ran these commands:
    cd frameworks/base
    grep -rl '@TestApi' --include '*.java' | xargs perl -i -p0e \
        's/\@SystemApi[\s\n]+(\@\w+[\s\n]+)?\@TestApi/\@SystemApi\1/gs'
    grep -rl '@TestApi' --include '*.java' | xargs perl -i -p0e \
        's/\@TestApi[\s\n]+(\@\w+[\s\n]+)?\@SystemApi/\1\@SystemApi/gs'

Bug: 171179806
Test: m checkapi
Change-Id: I772790b783b0a8730b8bf680c9e569a886b8d789
Merged-In: I772790b783b0a8730b8bf680c9e569a886b8d789
2020-10-19 16:41:01 +01:00
Tyler Gunn
560c97bc25 Merge "Improve remote connection logging." 2020-08-12 18:27:36 +00:00
Tyler Gunn
c59fd0cd80 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.
Bug: 154353494
Fixes: 155097158
Merged-In: I916750e0f558db1eb9e581bab7a9fbc71f781709
Change-Id: Iee1b5cfd3334a5de08d7b04022b7c6d5af6a4b04
2020-08-05 13:45:33 -07:00
Tyler Gunn
a005cb30ed Merge "Update language to comply with Android's inclusive language guidance" 2020-07-30 20:42:55 +00:00
Tyler Gunn
460360d6b8 Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference

Test: Presubmit
Bug: 161896447
Change-Id: I4142f4819f5ed3e2ffddf471b90923985e72523a
2020-07-29 10:23:07 -07:00
Grace Jia
8587ee5cd5 Expose adhoc conference calling API as public.
Bug: 159944852
Test: make
Change-Id: I2cf39a6fd8a02ca4f2d0c83c484ab12bb13f74c3
2020-07-27 11:18:36 -07:00
Hall Liu
e0f787cc61 Add PROPERTY_DOWNGRADED_CONFERENCE to logging
Bug: 153530054
Test: manual
Change-Id: I37558527ef867b49fc597ae2cdaf1620cfde0ab1
2020-07-08 11:25:56 -07:00
Tyler Gunn
2915af73d5 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-30 09:28:50 -07: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
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