summaryrefslogtreecommitdiff
path: root/telecomm/java/android/telecom/PhoneAccount.java
AgeCommit message (Collapse)Author
2021-05-18Clarify some UCE API docsBrad Ebinger
Adds some clarifications for how UCE operates in Android 12. Fixes: 188580687 Test: docs only change Change-Id: I139455c286378ccfac876014656f8d3177bdba9d
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
2020-11-25Add CAPABILITY_CALL_COMPOSER in PhoneAccount for enriched calling.Shuo Qian
Test: cts Bug: 173437870 Change-Id: Ibd1b0f0bc66487cfdb05d3de46c7e8df74eeb8cc
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-09-29Update documentation for phone account sort orderHall Liu
Update documentation to reflect that the sort order extra should contain integers. Bug: 169153499 Test: docs only Change-Id: Ic5269d577f007e01a0c9eaa95cd7e8814ab8f79a
2020-09-23API tweaks in response to feedbackHall Liu
Update documentation on PhoneAccount#EXTRA_SORT_ORDER to make it more clear what the sorting order is in edge cases. Make DisconnectCause#REASON_EMULATING_SINGLE_CALL public, since it might get propogated up to dialer apps. Fixes: 169153499 Test: docs only Change-Id: I7f810f909a8a61b422283c3bafcc97307e4d863b
2020-09-14Expose Telecom constants for use in TelephonyHall Liu
Expose Telecom constants that are used in Telephony in preparation for mainline. Exposure is a combination of public/system -- those which made sense for 3pty apps to access were made public. Fixes: 168551099 Test: atest CtsTelecomTestCases Change-Id: I688f04ba4ddf0498bad3463888fae71cdff2844a
2020-03-24Expose various Telecom constantsHall Liu
Expose constants in Telecom that are being used in Telephony. Note -- nothing is exposed here -- it's a modified cherry pick from internal where all the APIs have been rehidden. Bug: 146834818 Test: NA Change-Id: Ib5cf76183edced3eeffbca87a7c980a85288f937 Merged-In: Ib5cf76183edced3eeffbca87a7c980a85288f937
2020-02-13API Review cleanups.Tyler Gunn
- New @SystemApis on Conference and PhoneAccount were missing the required permissions annotations. - Rename PROPERTY_ASSISTED_DIALING_USED to PROPERTY_ASSISTED_DIALING - Standardize get/setConnectionStartElapsedRealtimeMillis method naming across Connection and Conference classes. - Clarify Conference#sendConferenceEvent API documentation to match the docs present for similar method in Connection; include some examples of valid event/extras combinations. - Update TelecomManager#getDefaultdialerPackage to use UserHandle instead of userId. - Move Conference#getConnectionStartElapsedRealtimeMillis to public API since the setter is already part of the public API. Test: Run Telecom and Telephony CTS tests. Test: Run Telephony unit tests. Test: Perform manual single-party-conference regression test to confirm that conference behavior does not regress. Bug: 147301297 Bug: 148286830 Bug: 148284863 Bug: 148284843 Bug: 148287068 Bug: 148285484 Bug: 148285560 Change-Id: I1f446d81859fa109d74af3661a42a0bd224de5aa Merged-In: I1f446d81859fa109d74af3661a42a0bd224de5aa
2020-01-22Ims: Add support for Adhoc Conference callsRavi Paluri
Add support for Adhoc Conference calls Test: Manual Bug: 62151032 Change-Id: Id50d235595d2133f867848ffdebdfe11e2f1c896
2019-11-08More telephony updates for mainline.Tyler Gunn
Add new TelecomManager#getDefaultDialerPackage which is multiuse aware; this is used when showing the voicemail notification. Remove some @hide methods from Conference; push these inline. Move ConferenceParticipantConnection into frameworks/opt/net/ims since it is just an IMS implementation detail. Bug: 141576016 Test: Manual smoke test. Test: Run unit tests. Test: Run CTS tests. Change-Id: I39b6955cb14cc1ca68b05c620c3d09a2cdfe30c9 Merged-In: I39b6955cb14cc1ca68b05c620c3d09a2cdfe30c9
2019-05-22Add CAPABILITY_EMERGENCY_PREFERRED in PhoneAccountBrad Ebinger
Allow Telephony to mark a SIM PhoneAccount as emergency preferred, meaning that Telecom will override a user's PhoneAccount preference for emergency calls if the PhoneAccount has the CAPABILITY_EMERGENCY_PREFERRED capability. Bug: 131203278 Test: Manual testing, Telecom/Telephony unit testing Change-Id: I88b8bbfa444f5445b2f0d6a1542c6406a19b240f
2019-02-28All Parcelable CREATOR fields are @NonNull.Jeff Sharkey
If they were null, then the Parcelable would fail to work. Bug: 126726802 Test: manual Change-Id: I7929ffa2f20e5de1c8e68e8263cca99496e9d014 Exempt-From-Owner-Approval: Trivial API annotations
2018-11-09Expose capabilitiesToString for use in Telecom.Tyler Gunn
We will use this in phone account registrar to make the logs more useful. Test: Manual Bug: 119306215 Change-Id: Ic882192bc5f135e70f37ddbba055127fdb9c1569
2018-08-28Merge "Add equality method for PhoneAccount."Tyler Gunn
2018-08-24Add equality method for PhoneAccount.Tyler Gunn
Checks for equality between two PhoneAccounts, not taking into account the icon, which cannot be compared with equality. Test: Manual as part of telephony account registry updates. Test: Added new unit tests to test equality. Bug: 112884689 Change-Id: I0129954b5c124e349b82fcc91604fdccf0bad089
2018-08-23Add EXTRA_SKIP_CALL_FILTERING PhoneAccount extraSean Kelley
This adds a new @hide extra to PhoneAccount which will allow TelecomService to skip call filtering on PhoneAccounts which set it to true. This will be useful to allow devices like Wear which receive bridged calls that have already undergone call filtering to avoid doing it again. Bug: 65223222 Change-Id: I5b9992735a8cc29c70282daf5c6e285bfc8a4217 Merged-In: I5b9992735a8cc29c70282daf5c6e285bfc8a4217
2018-04-05Update Javadoc to clarify which calls are logged.Tyler Gunn
Update javadoc to make it more clear tha tonly SIP or TEL scheme calls are logged at this time for self-managed CS. Test: Build - docs only change. Bug: 77581565 Change-Id: I1c5ef507077bc557f7af302a5b44c06bc90eef83
2018-01-30Add call recording tone support.Tyler Gunn
Adding carrier configuration option to specify whether the carrier requires the incall recording tone be played. Added phone account extra used in Telephony to communicate this to Telecom. Added permission pregrant for Telecom for MODIFY_AUDIO_ROUTING; this is needed as Telecom listening to the AudioRecordingConfiguration callback from the audio framework. It needs the permission so that it can be informed of the package names of recording apps. Test: Manually enabled for local carrier and confirmed that recording tone plays to remote party when a recording app is started on the device. Bug: 64138141 Change-Id: I1ab521b79cbeeb4ff4dcbf83de7c17c539637bdc
2017-12-11Add CarrierConfig key for RTT supportHall Liu
Add the carrier config key. Test: add fake support for some random carrier, look for the capability Bug: 63934808 Change-Id: I8a0e33a7ac10fbdcad356059913e7ddcba26bb6c
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-06-26Modify docs to clarify EXTRA_LOG_SELF_MANAGED_CALLS behavior.Brad Ebinger
We do not post a notification when a self-managed call is missed and we log it in the call log. Bug: 62999358 Test: Manual Change-Id: I0ae851e6fa17fbd3b7591b01745956feef4c57fd
2017-06-15Add EXTRA_ALWAYS_USE_VOIP_AUDIO_MODE extrs to phone accountSrikanth Chintala
Add EXTRA_ALWAYS_USE_VOIP_AUDIO_MODE extra to phone account so that all voip call audio mode will be set MODE_IN_COMMUNICATION Test: Manual Bug: 34869196 Change-Id: I367fbfb05779f80ebde78cb8dcebeafa3f885b3b
2017-06-02Add device and carrier flags for video calling fallbackTa-wei Yen
These flags let the system dialer/contacts/SMS app determine if integration with video calling apps are allowed if the carrier video calling is not available. EXTRA_SUPPORTS_VIDEO_CALLING_FALLBACK in PhoneAccount.getExtras() should be checked first. This flag is disabled by default and OEMs will need to enable it. If the device supports the fallback, then CarrierConfigManager.KEY_ALLOW_VIDEO_CALLING_FALLBACK_BOOL should be checked so individual carriers can ban the feature. This flag is allowed by default. Change-Id: Id46f684254402acb9142f87684ddff2d830f1701 Fixes: 62264468 Test: manual
2017-04-28Merge "Add sort order extra for phoneaccount"Tyler Gunn
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-26Add sort order extra for phoneaccountSrikanth Chintala
Add sort order extra for phoneaccount which will be used while sorting phone accounts in Telecomm Test: Manual Bug: 34872161 Change-Id: I268d2250cc9bcd1a5e9eb8be99dcb23e2bcceadc
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-30Self Managed CS ImplementationTyler Gunn
- Add API guide for developers giving an overview of what they need to implement. - Add @hide setLabel method in PhoneAccount; used when registering a self-managed CS's phone account; we override it with their app label to ensure they don't try to give themselves another name. Test: Unit Bug: 34159263 Change-Id: I0c890dc2feeb3ee438a80ed425db2aaf1f4c1fdd
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-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-11-14Merge "Add CAPABILITY_SUPPORTS_VIDEO_CALLING to PhoneAccount."Tyler Gunn
am: 8223dc1ae9 Change-Id: Id8c6077d099f9ef943c09242acb22173b6628c1a
2016-11-11Add CAPABILITY_SUPPORTS_VIDEO_CALLING to PhoneAccount.Tyler Gunn
Adding companion PhoneAccount capability which is used to indicate when a PhoneAccount supports video calling. That is, whether it can potentially make video calls, but not necessarily at the current time. This is an often requested OEM enhancement which is used to drive UX (e.g. imagine a video calling icon showing up if the device supports video, but only being enabled when the device is in range of a VT capable tower). See bug for reference to design doc. Merged-Id: I38379a3a1cf1be04c6136b89b93ee95193ee7b6f Bug: 27328615 Test: Manual Change-Id: I08fc18950e6d35a8a7df47ce37aa2326624b9fd3
2016-07-11Add Group Id to PhoneAccountBrad Ebinger
Add an api to set a group Id to a PhoneAccount. This functions as a marker that tells Telecom to replace an old registered PhoneAccount with a newly registered PhoneAccount if their Group Id is the same. This allows us to handle transparent PhoneAccount switching in Telecom without losing user specified enabled settings and user calling account defaults. Bug: 28173788 Change-Id: I270e766347d7f817c94f86503db2cdb1f93dafa4
2016-03-24Add hidden capability to indicate account supports emergency video calls.Tyler Gunn
This is used by Telephony to let Telecom know when emergency video calls are supported. Bug: 27484017 Change-Id: I317070b326e27e74d58afcb247746bdd2552d67b
2016-01-11Add KEY_USE_RCS_PRESENCE_BOOL carrier config option.Tyler Gunn
- New carrier config option is used to determine if presence is used to determine whether a contact is capable of video calling. - Also, improve logging for PhoneAccount capabilities. Bug: 20257833 Change-Id: Ifcc7df95677eb4399f08eb8849c4004892957e90
2015-12-09Add PhoneAccount capability to indicate if VT uses presence.Tyler Gunn
Added new PhoneAccount capability used to indicate whether the dialer should use the presence bit in the contacts provider to determine when the video call icon is shown or not. Bug: 20257833 Change-Id: Ifb3cc5b7ff1090d539dfb925dce9f6327de15c46
2015-10-21Merge "Add extras keys for instant lettering."Tyler Gunn
2015-10-16am adf38ccb: am b70426b1: am 4c9fcd54: Merge "Add capability to identify ↵Bryce Lee
phone accounts that are emergency only." into cw-e-dev * commit 'adf38ccb6ea0a3b406273061d1fc01f61bc6abb6': Add capability to identify phone accounts that are emergency only.
2015-10-14Add capability to identify phone accounts that are emergency only.Bryce Lee
Bug: 24756957 Change-Id: Id26eaa7f6632674f7122b4cd658cbe2bf9b04594
2015-10-13Add extras keys for instant lettering.Tyler Gunn
- Also fix bug where copy-builder for PA was not copying over the extras. Bug: 22806380 Change-Id: If25a1299bdd0a48340e9d13857f982a90d728af6
2015-10-08Move position of bundle parceling for PA extras.Tyler Gunn
Bug: 22806380 Change-Id: I9797ee0f6c9b5143ccd3417cfd5a7b631a4db480
2015-10-05Add "Extras" to PhoneAccount.Tyler Gunn
- Add extras to PhoneAccount, and associated builder. Bug: 22806380 Change-Id: I90f4c1a9b022eef7e6d2829d82851ac307ceafdf
2015-07-27Add "Call subject" capability to phone accounts.Tyler Gunn
Indicates whether the phone account supports displaying a subject line for incoming calls and sending a subject line for outgoing calls. Supports the IMS Instant Lettering feature. Bug: 22769741 Change-Id: I6d803dc288bfd6d4e356310a8d10d5468c5d4186
2015-06-29Telecom API council changes.Santos Cordon
- adding more javadocs. - fixing javadoc on isEnabled - renaming to CONFIGURE_PHONE_ACCOUNT Bug: 21573551 Change-Id: Ice035b8573a08ea18181a73c9e9a462520a934f1
2015-05-19Add enable/disable properties to phone accounts.Santos Cordon
Bug: 20303449 Change-Id: Ie6203a284454d43f4dd20917f0f1fda0b36484f8
2015-05-13[1/4] Use new Icon class in PhoneAccount.Santos Cordon
Bug: 21088522 Change-Id: Ia03171d4861f758701e89733f4082863587e8c11
2015-05-12Fixes for APi reviewYorke Lee
Move CameraCapabilities into VideoProfile Make PhoneAccount and PhoneAccountHandle final Bug: 21040387 Bug: 21066505 Change-Id: I72453c89ae3765f9b9cf263938fce96d5978d2e0
2015-04-15Make Telecom/InCallUI APIs publicJay Shrauner
Bug:20260870 Change-Id: Ie3a2db0685664f2f1ceea8f40b1249d01e9385b8