summaryrefslogtreecommitdiff
path: root/telecomm/java/android/telecom/Call.java
AgeCommit message (Collapse)Author
2018-02-28PPR1.180227.001_AOSP_MergeDivya Sharma
Change-Id: I8db050d250898d2732eeabd4f2478c560536f588
2018-02-27PPR1.180219.001_AOSP_MergeDivya Sharma
Conflicts: core/res/res/values/config.xml core/res/res/values/symbols.xml packages/SystemUI/res/values/config.xml packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java telecomm/java/android/telecom/Call.java telecomm/java/android/telecom/Connection.java telecomm/java/android/telecom/ConnectionService.java Change-Id: I524d38a61608069028b3496a189118d8eff75f4b
2018-02-26Merge "Revert "Add the assisted dialing carrier config.""TreeHugger Robot
2018-02-22RTT bugfixes, part 5Hall Liu
* 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
2018-02-21Revert "Add the assisted dialing carrier config."Eric Erfanian
This reverts commit af7b8c0a67f1f416e9156c375a940a47389ab838. Reason for revert: we're cutting the feature from P Change-Id: I1ccc2c36b480f64c3a8b3df7eee73f80b7863722 Bug: 73727182
2018-02-15IMS: Conference URI support.Suchand Ghosh
Add Telephony extras EXTRAS_IS_CONFERENCE_URI, EXTRA_DIAL_CONFERENCE_URI which will require by Telecomm, TeleService, Telephony, Framework, IMS framework etc. IMS: Allow placeCall with complete URI Add extra "org.codeaurora.extra.SKIP_SCHEMA_PARSING". Application need to set the intent extra to dial with complete uri. IMS: Add participant support. Add Phone Capabilities ADD_PARTICIPANT and Telephony Property ADD_PARTICIPANT_KEY. IMS: Allow add participant with normal IMS call We should allow add participant with normal IMS call to make it conference. Send add participant through existing connection of normal IMS call. IMS: Add Participant support. Do not create new connection while adding participant with existing call. Rather send add participant request through IMSConference. IMS: Rectify the capability mask for add participant Properly set the add participant capability mask. CRs-Fixed: 2189932 Change-Id: I5052710a2d11a57331bdfbe64247e6a39bf9147a
2018-02-14RTT bugfixes, part 5Hall Liu
* 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
2018-02-08Merge "IMS: Add support in frameworks for call deflection feature" am: ↵Pooja Jain
ba0f9d2973 am: f39bef4801 am: ac48eed9c0 Change-Id: I4695aca7d886f37341672ea5815770e3ccdf7a51
2018-02-07IMS: Add support in frameworks for call deflection featurePooja Jain
Call deflection feature is useful to deflect MT call to another number. Test: Manual Bug: 62170348 Change-Id: Idfbcc175a856aa0bb9476f8c73d7a614a3af0700
2018-01-25Add handover permission, fill in some missing API gaps.Tyler Gunn
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
2018-01-24Add handover permission, fill in some missing API gaps.Tyler Gunn
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
2018-01-22Add the assisted dialing carrier config.Eric Erfanian
This is used to activate the feature and show the settings. Remove @hide from the public APIS. Design doc: go/assisted-dialing-dd-v1 Test: manual Bug: 63934304 Change-Id: I09ea52720bf2439537e2f4ad32afb14f5df25f71
2018-01-12Add permission check for old call handover apis.Sanket Padawe
Bug: 65415068 Test: manual Change-Id: I4784debf1be255de24c341fe5474fc529bc1cebe
2017-12-19Implement 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 Merged-in: I692bb14fba66733154378c2dda525aa85c471a38
2017-12-12Add assisted dialing properties to the framework.Eric Erfanian
These properties allow the feature to be propogated from the outgoing call broadcast, to the connection, to the call, and finally to the call log as a feature. Test: no existing unit tests found. could use some pointers Bug: 35963245 Change-Id: I3ed8ac5ad7300c44f87e2573d9409b3a92b98ab6 Merged-In: I84343fb0cda16514c01997fd71d1e819b5b7eebb
2017-11-16Merge "API declarations for Call Handover."Sanket Padawe
am: d88abc7b60 Change-Id: I0be6f240073408bf9520766238ecf791c016a40b
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-08-02Do not throw IOException from RttCall.read()Hall Liu
Modify the signature of read() to no longer throw an IOException Change-Id: Ib5a1d8615a4bd66716a54c53865a2d560f33de83 Test: builds Fixes: 63769529
2017-06-23Merge "Define handover event sent when source disconnects prior to ↵Tyler Gunn
handover." into oc-dr1-dev am: 06c32f21fc am: f141183abe Change-Id: Ibd0612f738dfa727cb0c110ed801f568fc9c7f65
2017-06-23Define handover event sent when source disconnects prior to handover.Tyler Gunn
Define new event which is sent to the destination call if the source disconnects prior to the completion of the handover. Test: Manual using test app Bug: 62904673 Change-Id: I9fa74e374f78beb801f08ce1fd7260d7d7fe7cac
2017-06-12Revert "Hide APIs not intended to ship in DR."Jeff Sharkey
This reverts commit 0c28d43fe1423198f99a0518887b69a4205bc6f7.
2017-06-12Hide APIs not intended to ship in DR.Jeff Sharkey
This CL will be reverted once it merges into the next release branch to re-introduce the proposed APIs. This CL also makes the following code changes to preserve API compatibility: -- It keeps the recently added RemoteViews.clone() synchronized logic intact, but moves it inside the method to avoid changing the API signature. -- It reverts the RttCall.read() behavior to the oc-dev logic, since we can't throw IOException until we get an API level bump. (The original logic returned null instead of throwing.) Test: builds, boots Bug: 62427252, 62431886, 62427329 Bug: 62468911, 62431162, 62428935, 62429096 Bug: 37290820, 37359238, 36886243 Bug: 30143923, 35761231, 62192626, 29829689 Change-Id: I83d723f598cb0ee1fe198e65debd86ef7fd0420c
2017-04-26Further handover support changes.Tyler Gunn
Add handover extras key used when initiating handover. Add handover complete / fail connection events which are sent to the initiating IncallService when a handover is complete or fails. Adding PhoneAccount extra to indicate that a self-managed CS should have its calls logged to the call log. Test: Manual Bug: 37102939 Change-Id: Icbb6f1addf913de841a9c48089a7d8311668f3bc
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-04-05Merge "Add @TestApi annotations to CS-side RTT APIs for CTS" am: f6f3c16dfb ↵Hall Liu
am: 6689b57b66 am: bd2cf664ca Change-Id: I22bd2201b0cc2b3bcbf8d1eb740a91485735d03f
2017-04-04Merge "Add @TestApi annotations to CS-side RTT APIs for CTS"Hall Liu
2017-04-04Merge "Add api to retrieve call creation time." am: f19c52d20d am: 777adc636bTyler Gunn
am: eee4d5157a Change-Id: I9af3abdb0cf76b4e70547b1c58732fef3e07f86b
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-27Adding a comment specifying the timebase for emergency call timemike dooley
Test: none Bug: 35767700 Change-Id: Idac16da57d0a9f21804f9c515974d269c012796a
2017-03-24Add api to retrieve call creation time.Tyler Gunn
Test: CTS Bug: 36124432 Change-Id: Ic8288dec73adda7870377f189f560acef0a575f6
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-07Merge "Add further Connection-side APIs for RTT (part 2)"Hall Liu
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-01Merge "Support for showing self-managed calls in IncallService." am: ↵Tyler Gunn
5a33057092 am: 8c7d28f163 am: fd0e1a9d93 Change-Id: I88170e214ca6c142e0445a814ad0e76064e72ba7
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-03-01Merge "Support for showing self-managed calls in IncallService."Tyler Gunn
2017-03-01Merge "Add @hide to RttAudioMode IntDef" am: 22af0f3377 am: c284379659Hall Liu
am: f000639f82 Change-Id: Ibcb239e0aa3499386f6f71026084276b07554cdb
2017-02-28Add @hide to RttAudioMode IntDefHall Liu
IntDefs apparently require an @hide annotation to avoid breaking CTS tests. Adding it here. Change-Id: Ifd748b55e68091132571df7e74fdb797bd6a83fc Test: CTS Fix: 35808951
2017-02-22Merge "Introduce APIs for RTT calls (part 1)" am: 27ad05169e am: d83b06cd31Hall Liu
am: ba6c607728 Change-Id: I02e7291091d2452cb7cdb7351c8744606b340e76
2017-02-21Introduce APIs for RTT calls (part 1)Hall Liu
Add signaling methods and data pipes for handling real-time text during a call. Change-Id: I876827c448252c5f786d7a4919c47891acb03877 Test: manual, through telecom testapps
2017-02-12Support for showing self-managed calls in IncallService.Tyler Gunn
Also added new isInManagedCall TelecomManager API, used to determine if there are ongoing managed calls only. Test: Manual, cts Bug: 34159263 Change-Id: Ib8020617607ccb433c2eee9b9d5a2c929665214b
2017-02-06Perform camera permission and app ops check when setting camera for VT.Tyler Gunn
When a calling InCallService attempts to use the setCamera API on the VideoCall, Telecom will perform a permission check to ensure that the caller has the correct camera permission and passes the app-ops camera check. A failure to set the camera will result in a callback via the call session event API. This got a little messy as the app ops package name needs to come from the InCallService, and handler usage in the VideoProvider API means we had to pass around the uid/pid of the caller, obtained before we trampoline onto the handler. Test: Unit tests added, manual testing performed. Bug: 32747443 Change-Id: I555a04f9c3fb45e60bb811f64ba855ccf2e3b0e2
2017-01-10Adding extra key to indicate when the last emergency call was made.mike dooley
This can be used to determine if an incoming call is potentially an emergency callback. Bug: 30952524 Test: none Change-Id: I2d4ca8e6885c0314394b3a2ad389ad8115b79156
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 connection ↵Christine Hallstrom
am: 4e22d6dc45 am: bad3a2ab2e am: 22de17247b Change-Id: Ib2eab7f6bc9105977b586366b5bd46097e1aca1c
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-09Perform camera permission and app ops check when setting camera for VT.Tyler Gunn
When a calling InCallService attempts to use the setCamera API on the VideoCall, Telecom will perform a permission check to ensure that the caller has the correct camera permission and passes the app-ops camera check. A failure to set the camera will result in a callback via the call session event API. This got a little messy as the app ops package name needs to come from the InCallService, and handler usage in the VideoProvider API means we had to pass around the uid/pid of the caller, obtained before we trampoline onto the handler. Test: Unit tests added, manual testing performed. Bug: 32747443 Change-Id: I555a04f9c3fb45e60bb811f64ba855ccf2e3b0e2
2016-06-29API cleanups per API review.Tyler Gunn
1. removing deprecation for setExtras on Connection/Conference as these have legitimate use-cases going forward. 2. Expanded documentation on Call.Callback class to clarify how it is expected to be used. 3. Updated Callback#onConnectionEvent callback docs to clarify its usage. 4. Expanded Call#sendCallEvent docs to clarify expected namespacing of call event keys and extras keys, as well as clarification about backwards compatibility and expectations of ConnectionServices. 5. Standardized the "invoked" vs "notifies" language in the Conference docs. 6. Clarified how Connection callbacks from Telecom should be implemented. 7. Added Bundle parameter expectations for pre-defined connection events. 8. Documented capabilities and properties toString methods. 9. Documented expectations for onCallEvent method. 10. Expanded documentation for sendConnectionEvent method to clarify namespacing, use cases, etc. Bug: 29759275 Bug: 29759954 Bug: 29759773 Change-Id: Ib8c983af4dbbfee68edb60937b268e2c1a9b5e64