1943 Commits

Author SHA1 Message Date
Xin Li
c03b0fa033 Merge "Merge Android 12" 2021-10-07 23:50:15 +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
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
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
Shuo Qian
839508eea2 Handles Telephony service not up fatal exception in CallerInfoAsyncQuery
Bug: 181062609
Test: Treehugger
Change-Id: I5df03a61f55f863e17594aa3239433a5048a4890
2021-05-06 16:26:33 +00:00
Tyler Gunn
11b91fa682 Merge "Fix potential strict mode violation when stopping RTT." into sc-dev 2021-05-03 22:45:06 +00:00
Tyler Gunn
a9d2a35854 Merge "Clarify API docs for setShouldScreenCallViaAudioProcessing." am: 3b35faf805 am: d076349808 am: beab886f6f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1692377

Change-Id: If9015713e366e211ba58d571666f307fcde92ac7
2021-05-01 01:49:22 +00:00
Tyler Gunn
3b35faf805 Merge "Clarify API docs for setShouldScreenCallViaAudioProcessing." 2021-04-30 23:27:59 +00:00
Tyler Gunn
4cd4248dce Fix potential strict mode violation when stopping RTT.
When the RTT call was cleaned up, the "close()" method was not being
called.  In practice I think the Dialer app never really stops RTT, but
the APIs (and test app) do allow it to be stopped mid-session.  I'm
hypothesizing that is why we don't see this.

Test: Use Telecom test dialer to start and end RTT session.  Observe no
strict mode violation.
Fixes: 186869727

Change-Id: Id474b493ac3fe39e97360f3ac326279fc9a9a5eb
2021-04-30 16:23:15 -07:00
Tyler Gunn
a5ee1ca4e0 Clarify API docs for setShouldScreenCallViaAudioProcessing.
Make it clear that this is only visible to the system dialer.

Test: Build docs
Fixes: 186671257
Change-Id: Ia4633d010ab7d48a7bae0afe3bd32bc9f16447d4
2021-04-30 10:41:54 -07:00
Tyler Gunn
a6502cc4d6 Merge "Remove deprecated at birth DiagnosticCall class." into sc-dev 2021-04-30 15:54:09 +00:00
Brad Ebinger
bde5c37520 Bound Telecom logging recursion
Put a bound on the recursion in Session#toString
to ensure we do not accidently cause a Stack overflow

Bug: 186694546
AOSP: aosp/1691210
Test: atest TeleServiceTests
Change-Id: I52f44dd02d0d860d0894e9b84fded8cf5ff5a18e
2021-04-29 21:18:17 +00:00
Brad Ebinger
9ee6f30273 Bound Telecom logging recursion
Put a bound on the recursion in Session#toString
to ensure we do not accidently cause a Stack overflow

Bug: 186694546
Test: atest TeleServiceTests
Merged-In: I52f44dd02d0d860d0894e9b84fded8cf5ff5a18e
Change-Id: I52f44dd02d0d860d0894e9b84fded8cf5ff5a18e
2021-04-29 21:15:21 +00:00
TreeHugger Robot
2ac5334517 Merge "Add unit test init method." into sc-dev 2021-04-29 04:53:40 +00:00
Tyler Gunn
5ea5afff1e Remove deprecated at birth DiagnosticCall class.
This was left in place for Google3 compatibility during development; this
is no longer required as the usages have been cleaned up.

Test: Build / run CTS
Fixes: 186659702
Change-Id: Ib386c3f9912870b11b1a37863dccfa9d3b5cb7a9
2021-04-28 13:15:30 -07:00
Nazanin Bakhshi
08b9d388b4 Merge "add more details for BluetoothCallQualityReport#isChoppyVoice Bug: 175706147 Test: none" am: 1c09bf0d67 am: 1b6140c6c0 am: c9c6f3ad64
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1682049

Change-Id: Ic6ffdfc765e780ff2596d44ede8bbe97e5fab7bc
2021-04-21 17:56:13 +00:00
Nazanin
fa513c770e add more details for BluetoothCallQualityReport#isChoppyVoice
Bug: 175706147
Test: none

Change-Id: Id47e10dbae7303dde04878745ffe7b08cf1507a7
2021-04-20 13:49:52 -07:00
Brad Ebinger
d0812639e0 Move READ_PHONE_STATE compat id to @hide
Bug: 185121376
Test: atest CtsTelephony2TestCases CtsTelecomTestCases2
Change-Id: I0207faf30c85cc3275e312939bec570390129304
2021-04-17 16:24:06 -07:00
Tyler Gunn
c7e07b99a5 Add unit test init method.
When trying to write some connectionservice unit tests, it became clear
that the mAreAccountsInitialized precondition adds a LOT of overhead
and test scaffolding.  It was easier to just be able to bypass that
in the unit tests.

Test: Added as part of unit test.
Bug: 178649879
Change-Id: Ibed3e69215dad59b252193f701508c18f43b59a2
2021-04-06 12:15:04 -07:00
Treehugger Robot
9864e155a8 Merge "[LSC] Add LOCAL_LICENSE_KINDS to frameworks/base" am: 7226ad3729 am: a087245e03 am: 3dd40d172b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1661581

Change-Id: I99cb5fd94c4ee02688709ad00e3ffbc3e2f388e7
2021-04-01 13:47:07 +00:00
Bob Badour
de423b7a58 [LSC] Add LOCAL_LICENSE_KINDS to frameworks/base
Added SPDX-license-identifier-Apache-2.0 to:
  drm/java/Android.bp
  graphics/java/Android.bp
  identity/Android.bp
  identity/java/Android.bp
  keystore/java/Android.bp
  location/java/Android.bp
  location/tests/Android.bp
  lowpan/java/Android.bp
  media/mca/effect/java/Android.bp
  media/mca/filterfw/java/Android.bp
  media/mca/filterpacks/java/Android.bp
  mime/java/Android.bp
  mms/java/Android.bp
  opengl/java/Android.bp
  rs/java/Android.bp
  sax/java/Android.bp
  services/tests/servicestests/test-apps/PackageParsingTestManifests/Android.bp
  telecomm/java/Android.bp
  telephony/common/Android.bp
  tests/FlickerTests/test-apps/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to:
  telephony/java/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: I2ee0af9ce8f74de2172b359b41d2c52a8b8f7e6c
2021-03-31 19:55:25 -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