summaryrefslogtreecommitdiff
path: root/telecomm/java/android/telecom/ConnectionService.java
AgeCommit message (Collapse)Author
2017-12-04Add connection serivce focus api interfacePengquan Meng
This add new api interface to ConnectionService to support the connection service focus api. Bug: 69651192 Test: manually Change-Id: Iea49d95b086d32a0ebaf8e9f34fe4556953a0fd5
2017-12-01Implement Call handover initiation side APIs.Sanket Padawe
Bug: 65415068 Test: Manual Design doc: https://docs.google.com/document/d/1qY3oAzjff_4A1ttYb_CGrE_OwTRmXMG_KGsIuPT1ey8/edit# Change-Id: I692bb14fba66733154378c2dda525aa85c471a38
2017-11-16Merge "API declarations for Call Handover." am: d88abc7b60 am: c376ca6bc1Sanket Padawe
am: 41cff321b6 Change-Id: Ia5013e7e0288f037cd94d24c40a72278a60cc50d
2017-11-15Merge "[Telecom] Improve hold capability signal"Pengquan Meng
2017-11-15API declarations for Call Handover.Sanket Padawe
Design doc: https://docs.google.com/document/d/1qY3oAzjff_4A1ttYb_CGrE_OwTRmXMG_KGsIuPT1ey8/edit# Bug: 65415068 Test: manual. Change-Id: I0c2f561d92ad6504f858eadde09980fc1ce8727f
2017-11-09Update Telecom APIs to include multi-hfpHall Liu
* 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
2017-10-27Ensure CallId is not null when connection creation is complete.Tyler Gunn
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
2017-10-20[Telecom] Improve hold capability signalPengquan Meng
Add some method to the ConnectionService in order to notify the connection changed. Test: manually test and unit test Bug: 66949982 Change-Id: I077902474f9af70e00a383aa269e1ae6ff9230a9
2017-08-25Merge "Emergency redial implementation"Brad Ebinger
am: b3b09849bc Change-Id: If7fe179da4eb4c639dad1e2957f091bbee9e54f9
2017-08-25Emergency redial implementationSrikanth Chintala
Define connection event to notify Telecom/InCallUi about change in account handle after redial and extra for emergency phone handle. Bug: 27059146 Change-Id: Ie72ab2901ec05d972204ed11f115a05b79173c1d
2017-08-25Merge "Emergency redial implementation"Brad Ebinger
2017-08-24Merge "Track conference start in system elapsed time."Tyler Gunn
am: 3b166fba8a Change-Id: I8b78aaa447adcc1bfce0fec8f50857daa37d0575
2017-08-24Emergency redial implementationSrikanth Chintala
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
2017-08-23Track conference start in system elapsed time.Tyler Gunn
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
2017-08-22Track conference start in system elapsed time.Tyler Gunn
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
2017-08-14Ensure CallId is not null when connection creation is complete.Tyler Gunn
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
2017-05-25Merge "Add ability to add existing connection AND set parent at the same ↵Tyler Gunn
time." into oc-dev am: 95f4f14e0b am: 0aea0d2c53 Change-Id: I76805ba85bfac39cdaa3ddd2b8340423e4c7ffbe
2017-05-25Merge "Add ability to add existing connection AND set parent at the same ↵Tyler Gunn
time." into oc-dev am: 95f4f14e0b Change-Id: If762616920b266064cd1ee5520d5778ebb1475a7
2017-05-25Merge "Add ability to add existing connection AND set parent at the same ↵Tyler Gunn
time." into oc-dev
2017-05-24Add ability to add existing connection AND set parent at the same time.Tyler Gunn
This is useful for IMS conferences where we want to add a connection and set it as a child of a conference at the same time. Test: Manual Bug: 37581781 Change-Id: Id09c8296ffe18893c5642d403c6a69ad6c9765e2
2017-05-24Add ConnectionService callback invoked when connection creation complete.Tyler Gunn
Adding a new @hide callback in ConnectionService which a CS implementation can implement. A callback from Telecom is responsible for invoking this method. Test: Manual Bug: 33272455 Change-Id: Id17cf0fd8fd491b7677f9b7a7b52c76270b1c8c9 (cherry picked from commit d104a4f7f67ad6ca098bef0dc3824c5c47e7bcaf)
2017-05-24Merge "Add ConnectionService callback invoked when connection creation ↵Tyler Gunn
complete." into oc-dev am: 71d051ad2c Change-Id: I901377bda1364f0cb7b28bcb699a647627f775a9
2017-05-15Add ConnectionService callback invoked when connection creation complete.Tyler Gunn
Adding a new @hide callback in ConnectionService which a CS implementation can implement. A callback from Telecom is responsible for invoking this method. Test: Manual Bug: 33272455 Change-Id: Id17cf0fd8fd491b7677f9b7a7b52c76270b1c8c9
2017-04-11Remove handover token.Tyler Gunn
Removing handover token and cleaning up the references to it in the docs. This was supposed to go into the original CL but it looks like the upload failed. Test: Manual Bug: 37102939 Change-Id: I98f392119258d059669ca68b50184b8bdadbcf0f
2017-04-10Add connection handover APIs.Tyler Gunn
Add new call/connection event keys for handover. Add TelecomManager extra keys used for handover. Add PhoneAccount extra keys used to control availability of handover. Test: Test app/harness. Bug: 37102939 Change-Id: Icc5db7209362f04c4e3be397fee692bbf4a6a473
2017-03-30Add @TestApi annotations to CS-side RTT APIs for CTSHall Liu
CTS tests need both the in-call and connection service sides of the APIs to test Telecom functionality properly, so annotating the hidden-for-now connection service APIs with TestApi. Test: part of CTS Change-Id: I3711729d7e8c8aff2735f4da9fbd04bcca6b4942
2017-03-07Merge "Add further Connection-side APIs for RTT (part 2)"Hall Liu
2017-03-07Merge "API review cleanups/changes." am: 9324d6513b am: dd4bc7c69cTyler Gunn
am: c49b011151 Change-Id: Ib3d76474bef8c911b2ec6a61b916e38af0a3b861
2017-03-06Add further Connection-side APIs for RTT (part 2)Hall Liu
Add methods and callbacks to facilitate local and remote RTT initiation and termination in the middle of a call. Adds @hide Connection-side APIs to communicate with the ConnectionService, as well as plumbing for RemoteConnections. Test: manual, through telecom testapps Merged-In: Ia80604b7dff8586ff222dbccdbe55e91aab02178 Change-Id: Ia80604b7dff8586ff222dbccdbe55e91aab02178
2017-03-06API review cleanups/changes.Tyler Gunn
- Change onCreateIncomingConnectionFailed/onCreateOutgoingConnectionFailed to accept the connection mgr phone account as the first parameter. - For the video APIs, pass the target SDK of the caller into along so that the Telecom permission check can have fallback behavior for older API versions. - Add guidance for how UX should be shown in onShowIncomingCallUi API. API guidance follows how the Dialer app shows its notification and full screen UX. Test: Manual, CTS. Bug: 35767711 Bug: 35767096 Change-Id: Ib343f0eda1a4d067a38c553f33f140b4efcf3e48
2017-03-01Add further Connection-side APIs for RTT (part 2)Hall Liu
Add methods and callbacks to facilitate local and remote RTT initiation and termination in the middle of a call. Adds @hide Connection-side APIs to communicate with the ConnectionService, as well as plumbing for RemoteConnections. Test: manual, through telecom testapps Change-Id: Ia80604b7dff8586ff222dbccdbe55e91aab02178
2017-02-06Merge "Self managed CS implementation."Tyler Gunn
2017-02-06Framework fixes to support VoLTE conf calls via RemoteConnectionServices.Tyler Gunn
Fixing some issues with the addExistingConnection and addConference APIs on ConnectionService. When a connection manager relays the addition of an existing connection or a conference to Telecom, it will assign a new ID to the new connection/conference. Due to how RemoteCSes work, the Connection/Conf will be added directly via TelephonyConnectionService and also via the connection manager's connection service. Because the ID changes, we ended up adding these twice. Conferences weren't a problem in the GSM conference case because the TElephonyConnectionService's ConnectionServiceWrapper didn't know of the IDs for the children of the conference. However, due to how the existing connections work its not the case for VoLTE conferences. To mitigate this, I'm passing the original connection/conference ID to the connection manager via extras (ugh) and using this to ensure that when the new existing connection/conference is added to telecom that the same ID is used. This ensures that we can properly de-dupe the requests from TelephonyConnectionService and the connection manager. Also, there was some missing code in RemoteConnectionService which would cause it to not properly track existing connections. Bug: 31464792 Change-Id: I436f4438fd000ea48ebea7ceb75105bd3f456e46
2017-02-06Self managed CS implementation.Tyler Gunn
Add required AIDL changes to pass along connection fails. Test: Manual Bug: 34159263 Merged-In: I0a24ff786b2867aa4e19ac79959df54a04983251 Change-Id: I0a24ff786b2867aa4e19ac79959df54a04983251
2017-02-03Self managed CS implementation.Tyler Gunn
Add required AIDL changes to pass along connection fails. Test: Manual Bug: 34159263 Change-Id: I0a24ff786b2867aa4e19ac79959df54a04983251
2017-01-19Merge "Adding self-managed connection service APIs." am: 3a7253a09dTyler Gunn
am: 2155be0218 Change-Id: I75319e09f352905ffa45194086b11711f9070c70
2017-01-18Adding self-managed connection service APIs.Tyler Gunn
1. Adding new APIs for self-managed connection services. 2. Adding Telecom package-level documentation. Test: Manual (unit, cts pending; this is just scaffolding for now) Bug: 34159263 Change-Id: Ic226ec8bfcb2fbcc02fe802b47499e47aab17d0a
2016-12-13Add ability to set supported audio routes on phone accounts and connectionChristine Hallstrom
The set audio routes are used by Telecom to restrict where the audio may be routed to. For example, an account can specify that calls may not be routed over bluetooth headsets, which will prevent a new call from being routed to this source. This is a cherry-pick of abandoned ag/1521009. Bug: 32958838 Change-Id: Idd5e4d38b157f11454f3d991385644f2f384596e
2016-12-02Add ability to set supported audio routes on phone accounts and connectionChristine Hallstrom
am: 4e22d6dc45 Change-Id: I5144f403e9dcdc7934fa56e045e2f95703af7ad6
2016-12-01Add ability to set supported audio routes on phone accounts and connectionChristine Hallstrom
The set audio routes are used by Telecom to restrict where the audio may be routed to. For example, an account can specify that calls may not be routed over bluetooth headsets, which will prevent a new call from being routed to this source. This is a cherry-pick of abandoned ag/1521009. Bug: 32958838 Change-Id: Idd5e4d38b157f11454f3d991385644f2f384596e
2016-11-17Merge "Readability improvements in Logging" am: d51df736f6Brad Ebinger
am: 90b6e78657 Change-Id: I51e87f2a8146e1e60d3610bbdc791b40fc8ba972
2016-11-17Merge "Readability improvements in Logging"Brad Ebinger
am: d51df736f6 Change-Id: If7bb6955d615b8369ac41d3bb8ba96aa0cc752d2
2016-11-16Readability improvements in LoggingBrad Ebinger
We now truncate Session method paths and IDs based on the Logging level to improve Session Logging readability in logcat. If another external session is started off of an existing external Session, the preceding histories are replaced with "..." so that the Session information is not overwhelming. Bug: 26571395 Test: Unit Tests and manual tests pass Change-Id: I9ffda3d64f1072fa6228a82a86116a5e47d18c96
2016-10-28Modify AIDLs to include Session.InfoBrad Ebinger
am: b32d4f8b5c Change-Id: Ibbac4c74b5a0c4fcd5524c97acef5fc078d80cb7
2016-10-28Modify AIDLs to include Session.InfoBrad Ebinger
Modifies the IConnectionService.aidl file to include Session.Info information to pass from Telecom to Telephony, which is used to start external Sessions in Telephony from Telecom. Test: Manual testing and Unit Tests pass Bug: 26571395 Change-Id: Ia09a0abfa13d5167542d4c67465ea9aa1930b58b
2016-10-27Modify AIDLs to include Session.InfoBrad Ebinger
Modifies the IConnectionService.aidl file to include Session.Info information to pass from Telecom to Telephony, which is used to start external Sessions in Telephony from Telecom. Test: Manual testing and Unit Tests pass Bug: 26571395 Change-Id: Ia09a0abfa13d5167542d4c67465ea9aa1930b58b
2016-10-20Framework fixes to support VoLTE conf calls via RemoteConnectionServices. ↵Tyler Gunn
am: 2282bb97e7 am: 7f4abb2a05 Change-Id: I2320cc580dba98b40a4ed630ad52d1c6b55a6349
2016-10-17Framework fixes to support VoLTE conf calls via RemoteConnectionServices.Tyler Gunn
Fixing some issues with the addExistingConnection and addConference APIs on ConnectionService. When a connection manager relays the addition of an existing connection or a conference to Telecom, it will assign a new ID to the new connection/conference. Due to how RemoteCSes work, the Connection/Conf will be added directly via TelephonyConnectionService and also via the connection manager's connection service. Because the ID changes, we ended up adding these twice. Conferences weren't a problem in the GSM conference case because the TElephonyConnectionService's ConnectionServiceWrapper didn't know of the IDs for the children of the conference. However, due to how the existing connections work its not the case for VoLTE conferences. To mitigate this, I'm passing the original connection/conference ID to the connection manager via extras (ugh) and using this to ensure that when the new existing connection/conference is added to telecom that the same ID is used. This ensures that we can properly de-dupe the requests from TelephonyConnectionService and the connection manager. Also, there was some missing code in RemoteConnectionService which would cause it to not properly track existing connections. Bug: 31464792 Change-Id: I436f4438fd000ea48ebea7ceb75105bd3f456e46
2016-09-20Merge "Fix parameter description" am: 750b523aa2 am: df5f3e6db8Cuihtlauac ALVARADO
am: b2a1ee15c9 Change-Id: I97356fde75e28e6074a819814353070a7e3327c0
2016-09-13Fix parameter descriptionCuihtlauac ALVARADO
Correct parameter description text according to method name. Change-Id: If6bd8254386a84efd338b58797c2c338ccb513b7