summaryrefslogtreecommitdiff
path: root/telecomm/java/android/telecom/Phone.java
AgeCommit message (Collapse)Author
2021-08-23Add a lock for call read/write operations to avoidGrace Jia
ConcurrentModificationException. Bug: 189816293 Test: InCallService cts tests Change-Id: I123b2de55b856d12ee2a5e6d2fa49c15a74592fc
2020-01-08Use new UnsupportedAppUsage annotation.Artur Satayev
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv \ git diff HEAD^ HEAD | grep '^[+-][^+-]' | grep -v '.import' Change-Id: I853372f3c6fef905553bb31be4f1bb48df735f7a
2019-12-19Revert "Use new UnsupportedAppUsage annotation."Austin Wang
This reverts commit a5264903e22bc741add895133474ea13a370de4c. Reason for revert: Droidcop-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=git_master&target=sdk_phone_armv7-sdk&lkgb=6083299&lkbb=6085371&fkbb=6083313, bug b/146533269 Change-Id: Ie5b031d7b277cf0e09b0a9776b26bf74f5f69e70
2019-12-18Use new UnsupportedAppUsage annotation.Artur Satayev
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv \ git diff HEAD^ HEAD | grep '^[+-][^+-]' | grep -v '.import' Change-Id: I087bb1cecbe59f1cf0c2e770c735d7a433722c6f
2019-11-08Fix double-add of callsHall Liu
In the api compatibility logic for the new call states, we might end up adding a call by accident in internalUpdateCall if a call was updated in the NEW state, and it'd then get added again when internalAddCall gets called. To fix this, restrict the call states that would result in an add from internalUpdateCall, and also don't add the call again in internalAddCall if it's already present. Fixes: 143049799 Test: CTS Change-Id: I2a6b646a5200fedf9e02029a7120595210a24c76
2019-10-11Add SDK compatibility code for new call statesHall Liu
Add code that translates the new call states to old call states for in-call UIs that don't yet support background call screening. Test: CTS Bug: 140317205 Change-Id: I104f5f7ab3e3dc075e1d9ed5c64fcd924f9a977b
2019-03-05Cleanup unsupported appusage in Telecom apis.Tyler Gunn
Cleaning up some unsupport app usage tags in the Telecom APIs. See bug for more information on why. Test: Compile Fixes: 127403196 Change-Id: I7dec2db4671142dab9e677f909292dec03ff09d7
2018-08-01Add @UnsupportedAppUsage annotationsMathew Inwood
For packages: android.telecom.Logging android.telecom This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Change-Id: I540cb034b933c0d1417a138747ed347fcf0748d7 Merged-In: I04a94d7555be608dc3958787554a3d33b72158ec
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
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-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-03-07Merge "API review cleanups/changes." am: 9324d6513b am: dd4bc7c69cTyler Gunn
am: c49b011151 Change-Id: Ib3d76474bef8c911b2ec6a61b916e38af0a3b861
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-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-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
2016-03-14Add API support for multi-endpoint.Tyler Gunn
This CL includes changes required to support multi-endpoint (see the design doc linked off the bug). Main changes include: - support for indicating if a call/connection is "external" to the device. - support for indicating if an external call can be pulled from the remote device to the local device. - API used to initiate a pull of a call external to the current device to the current device. - Made the "connection event" API public (was previously @hide); this will be used to support passing some error events involving pulling calls to the incall ui. - Added new InCallService metadata which will be used to determine if an InCallService wants to be informed of external calls. - New disconnect causes which will be used to expose the fact that a multi-endpoint call was answered elsewhere and that a call ended because it was pulled to another device. - New call log call types to indicate if calls were answered elsewhere or pulled to another device. Bug: 27458894 Change-Id: I423f64ff965b5e50194635a51868c327782db2a1
2016-01-29Remove check for missing parent callsHall Liu
Telecom now guarantees that when sending a conference call to an in-call service, all children will be sent before any parents. Thus, it is acceptable for children to temporarily have invalid references to parent calls, but not vice versa. Bug: 26818778 Change-Id: Id34e4c3a773e6f7c75be8c85ec2642cf05dabe0a
2016-01-26Expose a meta-data value to allow dialer ringingSailesh Nepal
This CL exposes a new meta-data, IN_CALL_SERVICE_RINGING. If this is set to true then ringing is played by the dialer instead of Telecom. This CL also adds a new silenceRinger() API to InCallService. This is needed to implement ringer silence on volume key down. BUG: 22857261 Change-Id: I498538282eddbb727104f5b879f25adbef4e6cf6
2015-07-06MWI,phantom call,Suppl services, error codesShriram Ganesh
1. IMS MWI Feature - Add new API to update waiting voice message count, for UI propagation based on RFC 3842 2. phantom call support Supplementary services 3. IMS : Incoming Call Barring - Modified existing API to support request like registration,activation, deactivation,erasure,interogation. 4.Unsol supplementary service notification - send unsol supplementary notification to UI - add call history info Miscellaneous 5. Ims: Originate conference call in DIALING state 6. IMS: Addition of Extras to ImsCallProfile - Add EXTRA string definitions to ImsCallProfile 7. IMS: Definition of error code - answered elsewhere - FDN call failure 8. - Propagate IMS supplementary services to telephony framework - Introduce call forwarding history info. Bug: 21725750 Squash of 2 earlier CLs: Change-Id: I52a64e9a5df3479189f62921a01655a50fb386fc Change-Id: Idc3a433785e84a3d683cbcfc7fb90f0b89dced12 Change-Id: I428ce3c6a043e43b86dea41622e0a828d8b45e53
2015-05-13Rename AudioState to CallAudioStateYorke Lee
Deprecate AudioState class and make methods @SystemApi where necessary to minimize impact to SystemApi Replace usages of AudioState inside Telecom sub-systems Fire both onCallAudioStateChanged and onAudioStateChanged callbacks for backward compatibility Support both setAudioState and setCallAudioState for all classes Bug: 21040387 Bug: 21088300 Change-Id: I3ec7b3afdaa344c6d639d1c421f1842d67f7d0f7
2015-04-30Add handler parameter for callbacks.Andrew Lee
Bug: 20160491 Change-Id: I94639b06b8c97b6585e169d667a67ce328e716af
2015-04-24Rename removeVideoCallListener to unregisterCallbackEtan Cohen
Change-Id: Ie6b5ac9131e81900efc7d3fa67056aa47d566a44
2015-04-24Merge commit '7595842' into merge2Etan Cohen
Change-Id: I7e11e98e6d59562374195a8761d64a79dc0268e8
2015-04-16Unfinal getPhone.Santos Cordon
The change to make it final was breaking existing apps. ...and other changes. Bug: 20283873 Change-Id: I8db4243850ad15f688dbca59ff5427b4799cbd1b
2015-04-16Support for multiple VideoCall.Listeners for a VideoCall.Tyler Gunn
The current code assumes that only a single instance of VideoCall will be provided to the default system InCall UI. Ideally multiple InCallService implementations should be able to use the VideoCall APIs. Note: it only really makes sense for a single InCallService to get/set the video surfaces. - Fixed bug in ParcelableCall which would cause a new instance of VideoCallImpl to be created every time a call is updated from Telecom. Added a flag to ParcelableCall to indicate whether the parcel includes a change to the video provider information, which is used when unparceling to determine whether to set/create the video call impl. - Renamed "setVideoCallback" to "addVideocallback". - Modified Connection.VideoProvider code to keep a list of Video callbacks and fire off all of them when Video Provider changes occur. Bug: 20092420 Change-Id: Ic16b6afe1b7532cc64d006c133adbae57946d97d
2015-04-15DO NOT MERGE Make Telecom/InCallUI APIs publicJay Shrauner
Bug:20260870 Change-Id: Ie3a2db0685664f2f1ceea8f40b1249d01e9385b8
2015-04-15Make Telecom/InCallUI APIs publicJay Shrauner
Bug:20260870 Change-Id: Ie3a2db0685664f2f1ceea8f40b1249d01e9385b8
2015-04-14DO NOT MERGE Remove proximity methods in TelecomManagerYorke Lee
Bug: 20160495 Change-Id: Ib0156cf170d16b48f97e08027c912fc3f45691fb
2015-04-14Hide Phone proximity sensor methodsYorke Lee
Has to be done in master and not m-wireless-dev, because m-wireless-dev doesn't contain system-api/23.txt. Bug: 20160495 Change-Id: I910b3ecafd78c31081b38325b436b4f2b5a54c8d
2014-11-10Make add-call a global property of telecom. (1/4)Santos Cordon
ADD_CALL didn't make sense as a property of Connection or Call. This changes it to be a global property instead. Bug: 18285352 Change-Id: I658e7a6977a848600272cde2914612c8691bb801
2014-09-12Renaming Telecomm to Telecom.Tyler Gunn
- Changing package from android.telecomm to android.telecom - Changing package from com.android.telecomm to com.android.server.telecomm. - Renaming TelecommManager to TelecomManager. Bug: 17364651 Change-Id: I192cb5d189f55db012ea72ee82ccc5aedbc21638