1962 Commits

Author SHA1 Message Date
Meng Wang
886bf03a2d Merge changes from topic "phonenumber"
* changes:
  Update javadocs based on API council feedback.
  Deprecate get/setLine1Number in favor of get/setPhoneNumber
2022-01-07 00:31:23 +00:00
Grace Jia
e43f70afc7 Merge "Add new API for new feature of display name." 2022-01-06 18:59:37 +00:00
Meng Wang
3e436616c6 Deprecate get/setLine1Number in favor of get/setPhoneNumber
Bug: 193539271
Test: make
Change-Id: I09bcdca9d44d6b6a6d4ca00b6d0bba4c45a39bac
Merged-In: I09bcdca9d44d6b6a6d4ca00b6d0bba4c45a39bac
(cherry picked from commit 8665b5105ecc4da80dd60296bac7f3e630edeef5)
2022-01-05 23:41:26 +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
cc16b0403c Add new API for new feature of display name.
Bug: 181383364
Test: BlockedNumberProvider test
Change-Id: I13c0ea3451b78ce5c7352f1f3fa15a28ae9bfa1f
2021-12-01 21:34:04 +00:00
Xin Li
10d9972786 Merge sc-qpr1-dev-plus-aosp-without-vendor@7810918
Bug: 205056467
Merged-In: I13199bc39e9445929195f3d15579cbffe94e92b0
Change-Id: I35fa3c6c2abf679c51033f1395a08d511ed8739f
2021-11-18 17:00:37 +00:00
Treehugger Robot
57954552ad Merge "API docs clarification for placing calls." 2021-11-11 19:07:28 +00:00
Tyler Gunn
272fd21493 API docs clarification for placing calls.
Clarifying that a dialer app should use TelecomManager to place calls
instead of relying on the Intent#ACTION_CALL intent.

Test: Docs only change.
Fixes: 202033596
Change-Id: Iac9358c5cd069f120a167c96aa6b9462313b2268
2021-10-12 09:22:24 -07:00
Xin Li
c03b0fa033 Merge "Merge Android 12" 2021-10-07 23:50:15 +00:00
Tyler Gunn
c799bb6a82 Merge "IMS: Propagate RTT capability of the called party to UI" am: 57704bd7a3 am: 86da26a494 am: bbdfc69dee
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/696027

Change-Id: I667b0a37e343a9ba0b37982d36fa0b0d0382e2b6
2021-10-07 16:18:49 +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
Brad Ebinger
cfc47f0ac9 Merge "Update API docs for InCallService." am: 733dd0f1e9 am: 550f4dd9a0 am: 79508c34ea
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1818366

Change-Id: Ib77547132105e530a95405d76e966b82c50fa606
2021-09-07 18:23:29 +00:00
Brad Ebinger
79508c34ea Merge "Update API docs for InCallService." am: 733dd0f1e9 am: 550f4dd9a0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1818366

Change-Id: Ice351654a7d59dafda8bc57009898d12e3d59c54
2021-09-07 18:03:22 +00:00
Brad Ebinger
550f4dd9a0 Merge "Update API docs for InCallService." am: 733dd0f1e9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1818366

Change-Id: I54c94567fa6677f1cfe2ca818c889275d8cb6f1c
2021-09-07 17:50:40 +00:00
Brad Ebinger
733dd0f1e9 Merge "Update API docs for InCallService." 2021-09-07 17:28:24 +00:00
Tyler Gunn
84421d74db Update API docs for InCallService.
Clarify that InCallService implementations should never indicate that they
are non-exported.

Test: Docs only fix
Bug: 198003282
Change-Id: I85f925775b12c994a028e14d7644c744a252ec33
2021-09-03 14:05:37 -07:00
TreeHugger Robot
91fc8566b6 Merge "Add a lock for call read/write operations to avoid ConcurrentModificationException." into sc-qpr1-dev am: 6ba0239947
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15662454

Change-Id: I461106440aca625975ff5cac0e60d1c597dc74fb
2021-08-31 22:29:17 +00:00
TreeHugger Robot
6ba0239947 Merge "Add a lock for call read/write operations to avoid ConcurrentModificationException." into sc-qpr1-dev 2021-08-31 22:12:30 +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
Grace Jia
c71732375d Add a lock for call read/write operations to avoid
ConcurrentModificationException.

Bug: 189816293
Test: InCallService cts tests
Change-Id: I123b2de55b856d12ee2a5e6d2fa49c15a74592fc
2021-08-23 22:31: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
Treehugger Robot
811de5db8c Merge "Add new API to notify CallRedirectionService timed out." am: 5a5c3d7562 am: 423dd00f7f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1782287

Change-Id: I44f952574d81b1ce6cc8d0f1c1e82d638c7fc558
2021-08-10 19:07:40 +00:00
Grace Jia
5400101ec6 Add new API to notify CallRedirectionService timed out.
Currently, CallRedirectionService is unable to know if a call failed due
to timeout. Add new API to notify them and call it when Telecom wait too
long to complete a call redirection request.

Bug: 187346611
Test: CTS test
Change-Id: I65aa0a893b3e35a412851ec969f6cdec74af8fab
2021-08-10 15:37:27 +00:00
Shuo Qian
e8021fb567 Merge "Throw new IllegalStateException in CallRedirectionService when the call redirection is not initialized yet" into sc-dev am: ba314fbb85
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15301694

Change-Id: I1341b9b3e8dcf09cfec276752ec57a4858f01c17
2021-07-19 23:07:36 +00:00
Shuo Qian
f5f508c01d Throw new IllegalStateException in CallRedirectionService when the call redirection is not initialized yet
Test: Build
Bug: 193482535
Change-Id: I3609362043684249b6d6981fc7d2ab42c676db76
2021-07-16 20:18:21 +00:00
Treehugger Robot
d6217b06d8 Merge "Add a lock for call add/remove operations to avoid ConcurrentModificationException." am: 584003dd0d am: cb477fc498
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1768612

Change-Id: Icf9b0cbb36422f725a8808f771dca7a45df68e0d
2021-07-16 12:39:23 +00:00
Grace Jia
a5e7d3cdf9 Add a lock for call add/remove operations to avoid
ConcurrentModificationException.

Bug: 189816293
Test: InCallService cts tests
Change-Id: I123b2de55b856d12ee2a5e6d2fa49c15a74592fc
2021-07-15 12:20:59 -07:00
Treehugger Robot
a8c44879f1 Merge "Update PhoneAccountHandle API docs." am: 95a0ece6cc am: 36b124ccb7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1755371

Change-Id: I131e8b037099a84b9f43aba0a681ec9ddcf12644
2021-07-13 05:50:07 +00:00
Treehugger Robot
95a0ece6cc Merge "Update PhoneAccountHandle API docs." 2021-07-13 05:20:14 +00:00
Tyler Gunn
c9bdcb49bd Update PhoneAccountHandle API docs.
Ensure docs clearly state that handle id should not contain PII.

Test: Docs only change.
Fixes: 192673156
Change-Id: I4a612876fa5e2aac2159928b4c6cfde253d7395a
2021-07-02 11:28:23 -07: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
TreeHugger Robot
e6a8019fff Merge "Protect TelecomManager#getPhoneAccount with necessary permissions." into sc-dev am: d62464f4fe
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15053492

Change-Id: Ic268df757b86a33992a7fb0cf4fa5b5872f7e152
2021-06-22 23:02:24 +00:00
Grace Jia
3ad3cb75af Protect TelecomManager#getPhoneAccount with necessary permissions.
Bug: 183407956
Test: make, CTS test
Change-Id: I0ff68f29865c0bb2b316b3fc73d2c5adc37e4a36
(cherry picked from commit b13eb2c476fbb403646e48ded69fbc6b26f55606)
2021-06-21 18:37:05 +00: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
Grace Jia
b150ae9b2a Merge "Add error log of addConnetionService in RemoteConnectionManager." into sc-dev 2021-06-04 16:36:21 +00:00
Tyler Gunn
4fab561f27 Merge "Fix potential exceptions in CallDiagnosticService and missing locks." into sc-dev 2021-05-24 20:26:49 +00:00
Tyler Gunn
07d3736f5d Fix potential exceptions in CallDiagnosticService and missing locks.
There is a possibility of a call receiving a details update when it has
already been removed from the CallDiagnosticService.  Handling this case
by just ignoring the details update (since it isn't relevant as the call
is now removed).
Also noted there were a number of places where access to the shared
maps was not synchronized as it should be.

Test: Run manual tests and note no more CDS crashes from SCONE app.
Fixes: 188939131
Change-Id: Ic1f96fd60a70432bef0daaa2e9729c66401ba4ac
2021-05-21 16:20:16 -07:00
Brad Ebinger
bd5ef43130 Merge "Clarify some UCE API docs" 2021-05-19 17:08:42 +00:00
Brad Ebinger
7fc88ee1c5 Clarify some UCE API docs
Adds some clarifications for how UCE operates
in Android 12.

Bug: 188580687
Test: docs only change
Merged-In: I139455c286378ccfac876014656f8d3177bdba9d
Change-Id: I139455c286378ccfac876014656f8d3177bdba9d
2021-05-18 23:01:27 +00:00
Brad Ebinger
722cacf24d Clarify some UCE API docs
Adds some clarifications for how UCE operates
in Android 12.

Fixes: 188580687
Test: docs only change
Change-Id: I139455c286378ccfac876014656f8d3177bdba9d
2021-05-18 23:00:26 +00:00
Tyler Gunn
177d3788ac Merge "Add hidden extra for communicating whether D2D is available" into sc-dev 2021-05-12 16:54:43 +00:00
Treehugger Robot
9955752655 Merge "Revert "Use TelephonyManager#isEmergencyNumber() instead"" 2021-05-11 17:10:29 +00:00
Grace Jia
6caf1e22d0 Add error log of addConnetionService in RemoteConnectionManager.
There's UnsupportedOperationException in RemoteConnectionManager which
means sometimes we can't find corresponding ConnectionService and we
can't find the root cause of this. Try to print more log if there's
RemoteException when we add ConnectionService.

Bug: 175466894
Test: Manual test
Change-Id: Ia34cf8777c17c3eb45476018125d9b92db391e28
2021-05-11 06:12:01 -07:00
Shuo Qian
68417637dd Revert "Use TelephonyManager#isEmergencyNumber() instead"
Revert submission 1453740-replace_with_isEmergencyNumber

Reason for revert: <Telephony service may not up while calling this, causing failures.>

This also cherry picks ag/14444738

Change-Id: I5aa71917ce1b2abcdfcf78b8988d128982a6b3ec
Bug: 132703886
Bug: 181062609
Bug: 187720309
Merged-In: I5df03a61f55f863e17594aa3239433a5048a4890
2021-05-11 01:32:44 +00: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