summaryrefslogtreecommitdiff
path: root/telecomm/java/android/telecom/ConnectionService.java
Commit message (Collapse)AuthorAgeFilesLines
...
* Make queryRemoteConnectionServices DSDS aware.Tyler Gunn2019-05-171-1/+3
| | | | | | | | | | | | | | | | The method queryRemoteConnectionServices had the issue that it assumes there is a single connection manager for the device. This assumption does not work on a multisim device. Since the ConnectionManager is associated with a particular carrier, this means that the connection mgr for one carrier could try to impact calls destined for another carrier. This change ensures that the calling package is passed into Telecom so that we can determine which RemoteConnectionServices which are available to the calling connection manager. Test: Manual test on DSDS with a connection mgr carrier and another carrier. Bug: 131856987 Change-Id: I46d80dc68adaab7fd4374f023d7ba4242804c253
* Make connection events work for conferencesHall Liu2019-04-161-0/+8
| | | | | | | | | Pipe through the onConnectionEvent call between the conference host connection and the android.telecom.Conference object. Fixes: 130404376 Test: manual Change-Id: Ifad3e59dc9764aa2efb2b9766271e18853bf1c76
* Merge "Support for treating single party IMS conference as a standalone ↵Tyler Gunn2019-01-221-0/+25
|\ | | | | | | | | | | | | | | call." am: 89e53d81ce am: 955c9adb36 am: 4fd8e1b376 Change-Id: I7ab00c1b82858014fb3135474a64a9fa44d8283b
| * Merge "Support for treating single party IMS conference as a standalone ↵Tyler Gunn2019-01-221-0/+25
| |\ | | | | | | | | | | | | | | | | | | | | | call." am: 89e53d81ce am: 955c9adb36 Change-Id: I5af4c4591cd825adfeab8be56d7c60d29905f1c4
| | * Support for treating single party IMS conference as a standalone call.Tyler Gunn2019-01-191-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | Adding @hide APIs which Telephony can use to make a conference call with a single participant look like its a standalone call. Test: Manual testing Bug: 75975913 Change-Id: Id8532234ab295785fc749b120898f43911e12637
* | | Merge "docs: fixing 'mange' instead of 'manage'" into pi-dev am: 14aa42cfdakopriva2018-10-081-1/+1
|\| | | | | | | | | | | | | | | | | am: 57adb99451 Change-Id: I477a610e0602e464847c1a1ccb13b21644ee1ae8
| * | Merge "docs: fixing 'mange' instead of 'manage'" into pi-devkopriva2018-10-081-1/+1
| |\ \ | | |/ | |/| | | | | | | | | | am: 14aa42cfda Change-Id: Id461e2430301c62be5ee76f5046370069cb1a34c
| | * docs: fixing 'mange' instead of 'manage'kopriva2018-10-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Test: make ds-docs Bug: 117449040 Change-Id: I282a2e960bbf722bf3a72dd932e3bf685abb74e5 Exempt-From-Owner-Approval: Docs-only change
| | * API Documentation and Constant cleanup.Tyler Gunn2018-03-071-11/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Update handover API docs for clarity. 2. Added an unknown value per API review comments. 3. Renamed HANDOVER_FAILURE_DEST_USER_REJECTED to HANDOVER_FAILURE_USER_REJECTED 3. Removed the HANDOVER_FAILURE_DEST_INVALID_PERM constant since it isn't used (methods which deal with permissions throw security exceptions). Test: Make doc and verify documentation. Fixes: 73751004 Fixes: 73750515 Fixes: 73750817 Merged-In: I7860fcd813f25adaaccf632f2c61dd4138a0a889 Change-Id: I7860fcd813f25adaaccf632f2c61dd4138a0a889 (cherry picked from commit c7a86b14a8e50d979b6b1c9e3dffe94748e2bc93)
* | | Merge "Telecom: Reset the duration after the CDMA call is accepted" am: ↵Hall Liu2018-08-011-0/+7
|\| | | | | | | | | | | | | | | | | | | | | | | 2cbf44dc2f am: e784d5e5ca am: a4c0632746 am: 47dceea7d8 Change-Id: I28e69d1b32e71b467dded2d90118a46f9ef3fffc
| * | Merge "Telecom: Reset the duration after the CDMA call is accepted"Hall Liu2018-08-011-0/+7
| |\ \ | | | | | | | | | | | | | | | | | | | | am: 2cbf44dc2f Change-Id: I823efd5765b77fcf55f4c38a6091d980530abae8
| | * | Telecom: Reset the duration after the CDMA call is acceptedMengjun Leng2018-07-311-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In android original design, the duration of CDMA MO call is started from the dial command sent, so it is not the real duration of the active time. In this patch, a new message is registered to listen the event of the call accepted, and then reset the duration when the event happens. Change-Id: Icc447012030ae243f200ec2c83b7d5210af9b31c
* | | | Merge "Merge "Ensure self-managed calls use voip audio mode." am: b62aa315d1 ↵Tyler Gunn2018-06-061-3/+9
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: fd3e10b1bc" into pi-dev-plus-aosp am: 6823c8a822 Change-Id: I1352a44cbb55fdeeb79771b27055a70b83a3cbb8
| * | | Merge "Ensure self-managed calls use voip audio mode." am: b62aa315d1Tyler Gunn2018-06-061-3/+9
| |\| | | | | | | | | | | | | | | | | | | | | | am: fd3e10b1bc Change-Id: I8f7842fa84fcce91a292b32189cd827b4a125fb0
| | * | Ensure self-managed calls use voip audio mode.Tyler Gunn2018-05-241-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Although Telecom ensures that new calls use voip audio mode, the default value from a Connection would override the Telecom default. Bug: 76362663 Test: Modify test app to ensure it does not set voip audio mode, ensure Telecom uses voip audio mode for new calls. Change-Id: Ie6477659cf6dabd08f371d4958ece1d258cd3106
* | | | Merge "API Documentation and Constant cleanup." am: 8882c55b21 am: 8917fc21ccTyler Gunn2018-03-071-11/+87
|\| | | | | | | | | | | | | | | | | | | | | | | am: 168a77237f Change-Id: I7860fcd813f25adaaccf632f2c61dd4138a0a889
| * | | Merge "API Documentation and Constant cleanup." am: 8882c55b21Tyler Gunn2018-03-071-11/+87
| |\| | | | |/ | |/| | | | | | | | | | am: 8917fc21cc Change-Id: Ic4a159b838c952594b0860ded69fc07c74180961
| | * Merge "API Documentation and Constant cleanup."Treehugger Robot2018-03-071-11/+87
| | |\
| | | * API Documentation and Constant cleanup.Tyler Gunn2018-03-021-11/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Update handover API docs for clarity. 2. Added an unknown value per API review comments. 3. Renamed HANDOVER_FAILURE_DEST_USER_REJECTED to HANDOVER_FAILURE_USER_REJECTED 3. Removed the HANDOVER_FAILURE_DEST_INVALID_PERM constant since it isn't used (methods which deal with permissions throw security exceptions). Test: Make doc and verify documentation. Change-Id: Id21d6b4c83d5c773ab38d78eb6b1886a1ac4dadf Fixes: 73751004 Fixes: 73750515 Fixes: 73750817
| | * | RTT bugfixes, part 5Hall Liu2018-02-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add a new API to allow Telecom to inform ConnectionServices when the RTT text stream changes * No longer set the RTT property from ConnectionService. Client apps should be setting properties themselves. * Add Dialer-side RTT property in order to remove the dependence on checking the RTT streams, which have a complex lifecycle Bug: 72951201 Bug: 72648661 Test: manual, with real RTT calls and Dialer's SimulatorConnection, also cts Change-Id: Ic4c7d883d2dc6baf8e8c0eaa4df58d7de8762b9e Merged-In: Ic4c7d883d2dc6baf8e8c0eaa4df58d7de8762b9e
* | | | Update ConnectionService API commentPengquan Meng2018-03-051-0/+4
|/ / / | | | | | | | | | | | | | | | Bug: 73750116 Test: current telecom test Change-Id: I74e9636c305b164bf01c3136c53e9a432101945b
* | | Merge "RTT bugfixes, part 5"Hall Liu2018-02-151-1/+1
|\ \ \
| * | | RTT bugfixes, part 5Hall Liu2018-02-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add a new API to allow Telecom to inform ConnectionServices when the RTT text stream changes * No longer set the RTT property from ConnectionService. Client apps should be setting properties themselves. * Add Dialer-side RTT property in order to remove the dependence on checking the RTT streams, which have a complex lifecycle Bug: 72951201 Bug: 72648661 Test: manual, with real RTT calls and Dialer's SimulatorConnection, also cts Change-Id: Ic4c7d883d2dc6baf8e8c0eaa4df58d7de8762b9e
* | | | Merge "Rename Conference#setConnectionElapsedTime to clarity." am: ↵Tyler Gunn2018-02-141-2/+1
|\ \ \ \ | |/ / / |/| / / | |/ / | | | | | | | | | | | | d1134525fc am: a0b41a82ce am: 4c09901931 Change-Id: I493ade2029398983a76fd41fcf9f080ee2f06b95
| * | Merge "Rename Conference#setConnectionElapsedTime to clarity."Treehugger Robot2018-02-131-2/+1
| |\ \ | | |/ | |/|
| | * Rename Conference#setConnectionElapsedTime to clarity.Tyler Gunn2018-02-121-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change name of conference connection elapsed time method to make it more clear what it is for. Updated documentation of this method and its companion to make it more clear what they are for. Test: Compile - this is a docs and naming change only. Bug: 70639525 Change-Id: I02662cb0331cba0d1fe2d4353438a68f334f9192
* | | Merge "IMS: Add support in frameworks for call deflection feature" am: ↵Pooja Jain2018-02-081-0/+32
|\| | | | | | | | | | | | | | | | | | | | | | | ba0f9d2973 am: f39bef4801 am: ac48eed9c0 Change-Id: I4695aca7d886f37341672ea5815770e3ccdf7a51
| * | IMS: Add support in frameworks for call deflection featurePooja Jain2018-02-071-0/+32
| |/ | | | | | | | | | | | | | | | | | | Call deflection feature is useful to deflect MT call to another number. Test: Manual Bug: 62170348 Change-Id: Idfbcc175a856aa0bb9476f8c73d7a614a3af0700
| * Add handover permission, fill in some missing API gaps.Tyler Gunn2018-01-251-8/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding the ACCEPT_HANDOVER runtime permission which an app must have in order to accept handovers (this is per design). Adding missing onHandoverComplete method in the android.telecom.Connection API (per design). Finishing plumbing for android.telecom.Call#onHandoverComplete API. Fix issue where the new handover API methods would never get called; the legacy handover extra was being used in this case when it should not have been. Bug: 65415068 Test: Verified using new CTS tests Change-Id: If1558f6a23911862c02ac5b18fb62d86911ed7e2 Merged-In: If1558f6a23911862c02ac5b18fb62d86911ed7e2
| * Add connection serivce focus api interfacePengquan Meng2018-01-091-0/+54
| | | | | | | | | | | | | | | | | | | | | | This add new api interface to ConnectionService to support the connection service focus api. Bug: 69651192 Test: manually Change-Id: Iea49d95b086d32a0ebaf8e9f34fe4556953a0fd5 Merged-In: Iea49d95b086d32a0ebaf8e9f34fe4556953a0fd5
* | Add handover permission, fill in some missing API gaps.Tyler Gunn2018-01-241-8/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding the ACCEPT_HANDOVER runtime permission which an app must have in order to accept handovers (this is per design). Adding missing onHandoverComplete method in the android.telecom.Connection API (per design). Finishing plumbing for android.telecom.Call#onHandoverComplete API. Fix issue where the new handover API methods would never get called; the legacy handover extra was being used in this case when it should not have been. Bug: 65415068 Test: Verified using new CTS tests Change-Id: If1558f6a23911862c02ac5b18fb62d86911ed7e2
* | Merge "Add logging and disconnect reason for null connections." am: ↵Tyler Gunn2017-12-211-1/+2
|\| | | | | | | | | | | | | | | 7661e81f85 am: c840efcf7e am: 5d7c823e16 Change-Id: I57395d052d284ca3b8071b71dc762c1147d1107a
| * Merge "Add logging and disconnect reason for null connections."Tyler Gunn2017-12-211-1/+2
| |\
| | * Add logging and disconnect reason for null connections.Tyler Gunn2017-12-191-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a ConnectionService implementation returns a null connection, log this and also set a unique disconnect reason to indicate in the telecom dumpsys what happened. Test: Manual Bug: 70385625 Change-Id: Iff9846d434d400c4cf036e9ac46167cfb6f6b58c
| * | Receiving side Call handover API implementation.Sanket Padawe2017-12-201-3/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 65415068 Test: Manual Design doc: https://docs.google.com/document/d/1qY3oAzjff_4A1ttYb_CGrE_OwTRmXMG_KGsIuPT1ey8/edit#Bug: Change-Id: Ic0c4af19098252389648007628affc19a44f89dd Merged-in: Ic0c4af19098252389648007628affc19a44f89dd
| * | Implement Call handover initiation side APIs.Sanket Padawe2017-12-191-3/+13
| |/ | | | | | | | | | | | | | | | | | | | | Bug: 65415068 Test: Manual Design doc: https://docs.google.com/document/d/1qY3oAzjff_4A1ttYb_CGrE_OwTRmXMG_KGsIuPT1ey8/edit# Change-Id: I692bb14fba66733154378c2dda525aa85c471a38 Merged-in: I692bb14fba66733154378c2dda525aa85c471a38
* | Receiving side Call handover API implementation.Sanket Padawe2017-12-111-3/+60
| | | | | | | | | | | | | | | | | | | | Bug: 65415068 Test: Manual Design doc: https://docs.google.com/document/d/1qY3oAzjff_4A1ttYb_CGrE_OwTRmXMG_KGsIuPT1ey8/edit#Bug: Change-Id: Ic0c4af19098252389648007628affc19a44f89dd
* | Add connection serivce focus api interfacePengquan Meng2017-12-041-0/+54
| | | | | | | | | | | | | | | | | | | | This add new api interface to ConnectionService to support the connection service focus api. Bug: 69651192 Test: manually Change-Id: Iea49d95b086d32a0ebaf8e9f34fe4556953a0fd5
* | Implement Call handover initiation side APIs.Sanket Padawe2017-12-011-3/+13
| | | | | | | | | | | | | | | | | | | | Bug: 65415068 Test: Manual Design doc: https://docs.google.com/document/d/1qY3oAzjff_4A1ttYb_CGrE_OwTRmXMG_KGsIuPT1ey8/edit# Change-Id: I692bb14fba66733154378c2dda525aa85c471a38
* | Merge "API declarations for Call Handover." am: d88abc7b60 am: c376ca6bc1Sanket Padawe2017-11-161-0/+37
|\| | | | | | | | | | | am: 41cff321b6 Change-Id: Ia5013e7e0288f037cd94d24c40a72278a60cc50d
| * API declarations for Call Handover.Sanket Padawe2017-11-151-0/+37
| | | | | | | | | | | | | | | | | | Design doc: https://docs.google.com/document/d/1qY3oAzjff_4A1ttYb_CGrE_OwTRmXMG_KGsIuPT1ey8/edit# Bug: 65415068 Test: manual. Change-Id: I0c2f561d92ad6504f858eadde09980fc1ce8727f
* | Merge "[Telecom] Improve hold capability signal"Pengquan Meng2017-11-151-3/+33
|\ \ | |/ |/|
| * [Telecom] Improve hold capability signalPengquan Meng2017-10-201-3/+33
| | | | | | | | | | | | | | | | | | | | Add some method to the ConnectionService in order to notify the connection changed. Test: manually test and unit test Bug: 66949982 Change-Id: I077902474f9af70e00a383aa269e1ae6ff9230a9
| * Merge "Emergency redial implementation"Brad Ebinger2017-08-251-0/+8
| |\
| | * Emergency redial implementationSrikanth Chintala2017-08-241-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Define connection event to notify Telecom/InCallUi about change in account handle after redial and extra for emergency phone handle. Test: Unit Tests Bug: 27059146 Change-Id: Ie72ab2901ec05d972204ed11f115a05b79173c1d
| * | Track conference start in system elapsed time.Tyler Gunn2017-08-231-0/+3
| |/ | | | | | | | | | | | | | | | | This is important so that Telecom can track the duration of the call, which is tracked using wall clock time. Test: Manual, unit test Bug: 64068300 Change-Id: If642d282cd8134060acf6ffe8d81215c394d800c
| * Ensure CallId is not null when connection creation is complete.Tyler Gunn2017-08-141-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When calling "get" on the mConnectoinById map, a null callId will result in an NPE. In findConnectionForAction, defaulting to returning the "null" connection which is the same behavior as if it isn't found. In notifyCreateConnectionComplete, specifically checking if the callId is null and skipping the onCreateConnectionComplete callback. This scenario is possible if the connection is remove from the ConnectionService before the connection complete callback comes back from Telecom. Test: Manual Fixes: 62588734 Change-Id: Ie610c51155ed417e0f916000fe20e4484bdb6603
* | Update Telecom APIs to include multi-hfpHall Liu2017-11-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | * Add bluetooth devices to CallAudioState * Add methods for specifying a bluetooth device to InCallService * Add methods for specifying a bluetooth device to Connection (for self-managed connections) Bug: 64767509 Test: unit tests Change-Id: I286b19b423dc2ee417dbc90eda7e8055b2da2444
* | Ensure CallId is not null when connection creation is complete.Tyler Gunn2017-10-271-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When calling "get" on the mConnectoinById map, a null callId will result in an NPE. In findConnectionForAction, defaulting to returning the "null" connection which is the same behavior as if it isn't found. In notifyCreateConnectionComplete, specifically checking if the callId is null and skipping the onCreateConnectionComplete callback. This scenario is possible if the connection is remove from the ConnectionService before the connection complete callback comes back from Telecom. Test: Manual Fixes: 62588734 Merged-In: I1de7a0a4cc9c630019e38b8154bfc1d470f56ae3 Change-Id: Ie610c51155ed417e0f916000fe20e4484bdb6603
* | Merge "Emergency redial implementation"Brad Ebinger2017-08-251-0/+8
|\ \ | | | | | | | | | | | | | | | am: b3b09849bc Change-Id: If7fe179da4eb4c639dad1e2957f091bbee9e54f9