summaryrefslogtreecommitdiff
path: root/telecomm/java/android/telecom
AgeCommit message (Collapse)Author
2021-12-22Merge s-mpr-2021-12-05Eric Arseneau
Change-Id: Ic2889f5eb531008340529eadc36ec8efc62b1984
2021-12-13Merge mpr-2021-11-05Eric Arseneau
Change-Id: If7c68a17857eee4194f28413b938d5647820162c
2021-11-18IMS: Add logic for concurrent callAshit Sood
- Add new KEY_ALLOW_CONCURRENT_CALL_DURING_VIDEO_CALL_BOOL and EXTRA_DISABLE_SWAP_CALL for indicating if concurrent call is allowed or not during video call. Change-Id: Icaf86393c87edbdcae096804b9ca5f99dd63973a CRs-Fixed: 3066353
2021-10-04DSDA Framework changesSukanya Rajkhowa
- Add new event for RESUME fail case - Make certain ConnectionService methods protected Change-Id: Ib2a7cc13f6256fa3eef7d5dc77a6f66baa19e7ca CRs-Fixed: 3041636
2021-08-31Merge "Add a lock for call read/write operations to avoid ↵TreeHugger Robot
ConcurrentModificationException." into sc-qpr1-dev
2021-08-30Fix issue when adding existing connections via remote connection services.Tyler Gunn
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 (cherry picked from commit fdc4bff3198fcaedfa29f45d92525c0351acd583)
2021-08-23Add a lock for call read/write operations to avoidGrace Jia
ConcurrentModificationException. Bug: 189816293 Test: InCallService cts tests Change-Id: I123b2de55b856d12ee2a5e6d2fa49c15a74592fc
2021-08-13Fix issue when adding existing connections via remote connection services.Tyler Gunn
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-07-27Merge SP1A.210723.002Scott Lobdell
Change-Id: I220cdfc5cb9db40162fd33f400a54591018d54cf
2021-07-16Throw new IllegalStateException in CallRedirectionService when the call ↵Shuo Qian
redirection is not initialized yet Test: Build Bug: 193482535 Change-Id: I3609362043684249b6d6981fc7d2ab42c676db76
2021-07-14Merge SP1A.210709.002Haamed Gheibi
Change-Id: I4610885d5d770d858895057cdd9fea387a5e33dd
2021-07-09Merge SP1A.210624.001Scott Lobdell
Change-Id: I96a39cdca22771b76e89caebd53ed52416005092
2021-07-01Add a hidden extra key for caller number verification status.Tyler Gunn
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-06-21Merge SP1A.210616.001Daniel Norman
Change-Id: I9acdc955f698dbebb8fad19cfd5cb71fcdd27b45
2021-06-21Protect TelecomManager#getPhoneAccount with necessary permissions.Grace Jia
Bug: 183407956 Test: make, CTS test Change-Id: I0ff68f29865c0bb2b316b3fc73d2c5adc37e4a36 (cherry picked from commit b13eb2c476fbb403646e48ded69fbc6b26f55606)
2021-06-17Merge SP1A.210604.001Brian Orr
Change-Id: I5200ee05285ae422d5e9c1c00f45709a5d6188be
2021-06-04Merge "Add error log of addConnetionService in RemoteConnectionManager." ↵Grace Jia
into sc-dev
2021-05-24Merge "Fix potential exceptions in CallDiagnosticService and missing locks." ↵Tyler Gunn
into sc-dev
2021-05-21Fix potential exceptions in CallDiagnosticService and missing locks.Tyler Gunn
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-21Merge SP1A.210513.004Chris Gross
Change-Id: Ic23aece12c3bbd2b4dcf3205fdbcdd1601deabec
2021-05-18Clarify some UCE API docsBrad Ebinger
Adds some clarifications for how UCE operates in Android 12. Fixes: 188580687 Test: docs only change Change-Id: I139455c286378ccfac876014656f8d3177bdba9d
2021-05-13Merge SP1A.210510.001Brian Orr
Change-Id: Ia86f3e18206beabe334e3081cedbaf5b3274f78e
2021-05-12Merge "Add hidden extra for communicating whether D2D is available" into sc-devTyler Gunn
2021-05-11Add error log of addConnetionService in RemoteConnectionManager.Grace Jia
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-07Add hidden extra for communicating whether D2D is availableTyler Gunn
Test: Added unit test Bug: 163085177 Change-Id: I65f7fb38f0582e20899a54859d850982c6637237
2021-05-06Handles Telephony service not up fatal exception in CallerInfoAsyncQueryShuo Qian
Bug: 181062609 Test: Treehugger Change-Id: I5df03a61f55f863e17594aa3239433a5048a4890
2021-05-03Merge "Fix potential strict mode violation when stopping RTT." into sc-devTyler Gunn
2021-05-01Merge "Clarify API docs for setShouldScreenCallViaAudioProcessing." am: ↵Tyler Gunn
3b35faf805 am: d076349808 am: beab886f6f Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1692377 Change-Id: If9015713e366e211ba58d571666f307fcde92ac7
2021-04-30Merge "Clarify API docs for setShouldScreenCallViaAudioProcessing."Tyler Gunn
2021-04-30Fix potential strict mode violation when stopping RTT.Tyler Gunn
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-30Clarify API docs for setShouldScreenCallViaAudioProcessing.Tyler Gunn
Make it clear that this is only visible to the system dialer. Test: Build docs Fixes: 186671257 Change-Id: Ia4633d010ab7d48a7bae0afe3bd32bc9f16447d4
2021-04-30Merge "Remove deprecated at birth DiagnosticCall class." into sc-devTyler Gunn
2021-04-29Bound Telecom logging recursionBrad Ebinger
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-29Bound Telecom logging recursionBrad Ebinger
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-29Merge SP1A.210425.001Scott Lobdell
Change-Id: I8d45e47c131320cac5e794fd629fdef84dd3bcfc
2021-04-29Merge "Add unit test init method." into sc-devTreeHugger Robot
2021-04-28Remove deprecated at birth DiagnosticCall class.Tyler Gunn
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-21Merge "add more details for BluetoothCallQualityReport#isChoppyVoice Bug: ↵Nazanin Bakhshi
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-20add more details for BluetoothCallQualityReport#isChoppyVoiceNazanin
Bug: 175706147 Test: none Change-Id: Id47e10dbae7303dde04878745ffe7b08cf1507a7
2021-04-17Move READ_PHONE_STATE compat id to @hideBrad Ebinger
Bug: 185121376 Test: atest CtsTelephony2TestCases CtsTelecomTestCases2 Change-Id: I0207faf30c85cc3275e312939bec570390129304
2021-04-16[automerger] IMS: Fix issue with answering call for some 3rd party apps am: ↵Muhammed Siju
3d24e82f45 Change-Id: I69e7658cc70d6ccdc9aca92caa744c90ea6ba032
2021-04-16IMS: Fix issue with answering call for some 3rd party appsMuhammed Siju
Some 3rd party call manager apps, implement only onAnswer() method for answering calls. So make sure onAnswer() is invoked when answer call is requested without videostate. Change-Id: I033279e4bd17fa291ca2cb8f149e33264446d24a CRs-Fixed: 2921144
2021-04-09Merge SP1A.210407.002Scott Lobdell
Change-Id: Iaad2b7cc2aeba166f003d0d460bc8ce29d1caab3
2021-04-07Merge SP1A.210331.003Scott Lobdell
Change-Id: Iad00646ffe00e570d3a19d18431764371ecc9f0b
2021-04-06Add unit test init method.Tyler Gunn
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-02Merge SP1A.210329.001Scott Lobdell
Change-Id: I1e21c5890b5b2e2f2855f09960bc8eec8aa922bf
2021-03-31Merge "Add PROPERTY_DOWNGRADED_CONFERENCE to logging" am: 2e0c2171fd am: ↵Hall Liu
ff4a4a29e7 am: 9c05c40060 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1358163 Change-Id: Icf555d5e3bceda3bc1260b64c6d7394d4f9adb50
2021-03-31Merge "Add PROPERTY_DOWNGRADED_CONFERENCE to logging"Hall Liu
2021-03-25Enforce READ_PHONE_STATE for APIs involving call stateBrad Ebinger
For API version 31+, ensure that READ_PHONE_STATE is checked on APIs that retrieve/notify the call state of the device. Bug: 157233955 Test: atest CtsTelecomTestCases2 CtsTelephony2TestCases Change-Id: I9f8674a3075d3e0f75ee4f41eefce328c0fa6b91
2021-03-24Merge "Add more documentation to PROPERTY_CROSS_SIM" into sc-devSooraj Sasindran