summaryrefslogtreecommitdiff
path: root/telecomm/java/android/telecom/Connection.java
AgeCommit message (Collapse)Author
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-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-07-14Merge SP1A.210709.002Haamed Gheibi
Change-Id: I4610885d5d770d858895057cdd9fea387a5e33dd
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-05-21Merge SP1A.210513.004Chris Gross
Change-Id: Ic23aece12c3bbd2b4dcf3205fdbcdd1601deabec
2021-05-07Add hidden extra for communicating whether D2D is availableTyler Gunn
Test: Added unit test Bug: 163085177 Change-Id: I65f7fb38f0582e20899a54859d850982c6637237
2021-04-09Merge SP1A.210407.002Scott Lobdell
Change-Id: Iaad2b7cc2aeba166f003d0d460bc8ce29d1caab3
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-24Merge SP1A.210311.001Scott Lobdell
Change-Id: Id1a205bf3f0609c0b13e4bea377056c3b06299fa
2021-03-19Propagate call quality reports from Telephony to CallDiagnosticService.Tyler Gunn
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-16Rename DiagnosticCall to CallDiagnostics.Tyler Gunn
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-03Merge "CallDiagnosticService API" am: c90335033b am: 9882ff4bf8 am: d3bf1aa209Tyler Gunn
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1607109 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ie91efc29698d27946f83b751bef2fe89d612c9a2
2021-03-01Merge SP1A.210222.001Scott Lobdell
Change-Id: If3509f3a660e820f4c8c0b29e007faa868e1f089
2021-02-25CallDiagnosticService APITyler Gunn
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-18User arg object in onCallFilteringCompletedHall Liu
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-12Refactor CallScreeningService's internal structureHall Liu
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-01Add relative APIs for InCallService that can support self-managedGrace Jia
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-01-26Merge SP1A.210122.003Scott Lobdell
Bug: 178561525 Change-Id: Ifb7c4a1c94e1f4cab710826d57282b981a46e990
2021-01-19Add relative APIs for InCallService that can support self-managedGrace Jia
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-15Add API to inform Telephony that call filtering is completeHall Liu
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-15Merge "Add intdef for Telecom connection states." am: 96cf67465b am: ↵Tyler Gunn
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-13Add intdef for Telecom connection states.Tyler Gunn
Bug: 163085177 Test: Annotation only change. Change-Id: Id3dbf9d38ff4467e94594bf7a75fb00750af64fe
2021-01-13Merge "Bulk apply PendingIntent.FLAG_MUTABLE_UNAUDITED."Ashwini Oruganti
2021-01-12Bulk apply PendingIntent.FLAG_MUTABLE_UNAUDITED.Ashwini Oruganti
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-12Introduce IMS Cross SIM registrationSooraj Sasindran
Introduce IMS Cross SIM registration Bug: 171391883 Test: Build Change-Id: Idd79a0a1f453a36587b89257e88437c96bf6ff4e
2020-12-09[automerger] IMS: Add property PROPERTY_IS_PARTICIPANT_HOST am: c5c90016dfZhao Fan
Change-Id: I698d15151febdf6d431f4c8c69c60bc810b4b240
2020-12-09IMS: Add property PROPERTY_IS_PARTICIPANT_HOSTZhao Fan
Add property PROPERTY_IS_PARTICIPANT_HOST to indicate that a Conference or Connection is participant host. Change-Id: I17991ba6ca08f22d45e23662e42e63341bd1f81e CRs-Fixed: 2812971
2020-11-17Merge SP1A.201116.001Scott Lobdell
Change-Id: I51f7864ca57206ba4034be7db7ae9f36d5c53f59
2020-11-13Merge SP1A.201105.002Scott Lobdell
Change-Id: Iec83a0c1f6f286a1e51abfc4356633ca9d8aea5f
2020-11-11Declare audio codec bitrate and bandwidthallenwtsu
Bug: 172304392 Test: atest Change-Id: Iea4de76a4c1628c8828ba84282ef014f94cc169a
2020-10-20Remove @TestApi from @SystemApi symbolsAnton Hansson
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
2020-10-19Remove @TestApi from @SystemApi symbolsAnton Hansson
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-09Merge SP1A.200921.001Scott Lobdell
Change-Id: I6a8d7215f874fed05e9fec71b17c8a3d1e2c94e0
2020-08-12Merge "Improve remote connection logging."Tyler Gunn
2020-08-05Improve remote connection logging.Tyler Gunn
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-07-30Merge "Update language to comply with Android's inclusive language guidance" ↵Tyler Gunn
am: a005cb30ed am: 3772a5b3fd Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1377136 Change-Id: I2f838a951cec8f6e7af82a0cd08d99d6045f3952
2020-07-30Merge "Update language to comply with Android's inclusive language guidance"Tyler Gunn
2020-07-29Update language to comply with Android's inclusive language guidanceTyler Gunn
See https://source.android.com/setup/contribute/respectful-code for reference Test: Presubmit Bug: 161896447 Change-Id: I4142f4819f5ed3e2ffddf471b90923985e72523a
2020-07-28Merge "Expose adhoc conference calling API as public." am: 8ebbe3c038 am: ↵Treehugger Robot
fb8f41f0c2 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1368819 Change-Id: Ia5e17f2dbbfbb539f2415348e1ddb960354d3662
2020-07-27Expose adhoc conference calling API as public.Grace Jia
Bug: 159944852 Test: make Change-Id: I2cf39a6fd8a02ca4f2d0c83c484ab12bb13f74c3
2020-07-08Add PROPERTY_DOWNGRADED_CONFERENCE to loggingHall Liu
Bug: 153530054 Test: manual Change-Id: I37558527ef867b49fc597ae2cdaf1620cfde0ab1
2020-04-23Merge RP1A.200423.002Steven Laver
Change-Id: I0ea2ec993e8aeb3cb3dd44e6b0bc19cbb5ecbad1
2020-04-17Improve remote connection logging.Tyler Gunn
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. Fixes: 154353494 Change-Id: Iee1b5cfd3334a5de08d7b04022b7c6d5af6a4b04
2020-03-30Fix Telecom ConnectionTest.Tyler Gunn
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-10Merge RP1A.200309.001Steven Laver
Change-Id: I361e48f7a2ab9e66e2677877751a3d390e565d32
2020-03-06Fix Telecom ConnectionTest.Tyler Gunn
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