summaryrefslogtreecommitdiff
path: root/telecomm/java/android/telecom/PhoneAccount.java
Commit message (Collapse)AuthorAgeFilesLines
* enforce stricter rules when registering phoneAccountsThomas Stuart2023-03-281-0/+19
| | | | | | | | | | | | | | | | - include disable accounts when looking up accounts for a package to check if the limit is reached (10) - put a new limit of 10 supported schemes - put a new limit of 256 characters per scheme - put a new limit of 256 characters per address - ensure the Icon can write to memory w/o throwing an exception bug: 259064622 bug: 256819769 Test: cts + unit (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b07326f1fb3d0e42a6bab902c271974c42d93c06) Merged-In: Ia7d8d00d9de0fb6694ded6a80c40bd55d7fdf7a7 Change-Id: Ia7d8d00d9de0fb6694ded6a80c40bd55d7fdf7a7
* APIs for SIM call manager voice statusHunter Knepshield2022-01-241-3/+47
| | | | | | | | | | | | | | | This CL creates two new PhoneAccount capabilities for the SIM call manager (and potentially telephony itself for PSTN PhoneAccounts) to advertise that they support voice calling, potentially independent of voice service state. With this information, telecom will feed updated back into telephony for plumbing through the standard ServiceState-based APIs. Bug: 205737545 Test: atest android.telecom.cts.PhoneAccountOperationsTest (an additional CTS test for the TelephonyManager API will be added as a follow-up) Change-Id: If7a5b03a7aa630823ac238ef27721e5e6cc596e6
* Clarify some UCE API docsBrad Ebinger2021-05-181-2/+6
| | | | | | | | | Adds some clarifications for how UCE operates in Android 12. Fixes: 188580687 Test: docs only change Change-Id: I139455c286378ccfac876014656f8d3177bdba9d
* Add relative APIs for InCallService that can support self-managedGrace Jia2021-01-191-0/+9
| | | | | | | | | | | 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
* Add CAPABILITY_CALL_COMPOSER in PhoneAccount for enriched calling.Shuo Qian2020-11-251-1/+10
| | | | | | Test: cts Bug: 173437870 Change-Id: Ibd1b0f0bc66487cfdb05d3de46c7e8df74eeb8cc
* Remove @TestApi from @SystemApi symbolsAnton Hansson2020-10-201-2/+0
| | | | | | | | | | | | | 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
* Update documentation for phone account sort orderHall Liu2020-09-291-3/+2
| | | | | | | | | Update documentation to reflect that the sort order extra should contain integers. Bug: 169153499 Test: docs only Change-Id: Ic5269d577f007e01a0c9eaa95cd7e8814ab8f79a
* API tweaks in response to feedbackHall Liu2020-09-231-1/+11
| | | | | | | | | | | | 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
* Expose Telecom constants for use in TelephonyHall Liu2020-09-141-7/+14
| | | | | | | | | | 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
* Expose various Telecom constantsHall Liu2020-03-241-2/+4
| | | | | | | | | | | 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
* API Review cleanups.Tyler Gunn2020-02-131-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* Ims: Add support for Adhoc Conference callsRavi Paluri2020-01-221-1/+14
| | | | | | | | Add support for Adhoc Conference calls Test: Manual Bug: 62151032 Change-Id: Id50d235595d2133f867848ffdebdfe11e2f1c896
* More telephony updates for mainline.Tyler Gunn2019-11-081-1/+8
| | | | | | | | | | | | | | | 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
* Add CAPABILITY_EMERGENCY_PREFERRED in PhoneAccountBrad Ebinger2019-05-221-2/+20
| | | | | | | | | | | | 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
* All Parcelable CREATOR fields are @NonNull.Jeff Sharkey2019-02-281-1/+1
| | | | | | | | | 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
* Expose capabilitiesToString for use in Telecom.Tyler Gunn2018-11-091-2/+2
| | | | | | | | We will use this in phone account registrar to make the logs more useful. Test: Manual Bug: 119306215 Change-Id: Ic882192bc5f135e70f37ddbba055127fdb9c1569
* Merge "Add equality method for PhoneAccount."Tyler Gunn2018-08-281-0/+55
|\
| * Add equality method for PhoneAccount.Tyler Gunn2018-08-241-0/+55
| | | | | | | | | | | | | | | | | | | | 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
* | Add EXTRA_SKIP_CALL_FILTERING PhoneAccount extraSean Kelley2018-08-231-0/+12
|/ | | | | | | | | | | | 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
* Update Javadoc to clarify which calls are logged.Tyler Gunn2018-04-051-0/+3
| | | | | | | | | 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
* Add call recording tone support.Tyler Gunn2018-01-301-0/+19
| | | | | | | | | | | | | | | | | 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
* Add CarrierConfig key for RTT supportHall Liu2017-12-111-0/+3
| | | | | | | | Add the carrier config key. Test: add fake support for some random carrier, look for the capability Bug: 63934808 Change-Id: I8a0e33a7ac10fbdcad356059913e7ddcba26bb6c
* API declarations for Call Handover.Sanket Padawe2017-11-151-7/+3
| | | | | | | | | Design doc: https://docs.google.com/document/d/1qY3oAzjff_4A1ttYb_CGrE_OwTRmXMG_KGsIuPT1ey8/edit# Bug: 65415068 Test: manual. Change-Id: I0c2f561d92ad6504f858eadde09980fc1ce8727f
* Modify docs to clarify EXTRA_LOG_SELF_MANAGED_CALLS behavior.Brad Ebinger2017-06-261-0/+2
| | | | | | | | | 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
* Add EXTRA_ALWAYS_USE_VOIP_AUDIO_MODE extrs to phone accountSrikanth Chintala2017-06-151-0/+7
| | | | | | | | | 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
* Add device and carrier flags for video calling fallbackTa-wei Yen2017-06-021-0/+12
| | | | | | | | | | | | | | | | | | | 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
* Merge "Add sort order extra for phoneaccount"Tyler Gunn2017-04-281-0/+9
|\
| * Add sort order extra for phoneaccountSrikanth Chintala2017-04-261-0/+9
| | | | | | | | | | | | | | | | | | | | Add sort order extra for phoneaccount which will be used while sorting phone accounts in Telecomm Test: Manual Bug: 34872161 Change-Id: I268d2250cc9bcd1a5e9eb8be99dcb23e2bcceadc
* | Further handover support changes.Tyler Gunn2017-04-261-0/+12
|/ | | | | | | | | | | | 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
* Add connection handover APIs.Tyler Gunn2017-04-101-0/+28
| | | | | | | | | | 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
* Self Managed CS ImplementationTyler Gunn2017-03-301-0/+12
| | | | | | | | | | | | - 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
* Introduce APIs for RTT calls (part 1)Hall Liu2017-02-211-0/+12
| | | | | | | | Add signaling methods and data pipes for handling real-time text during a call. Change-Id: I876827c448252c5f786d7a4919c47891acb03877 Test: manual, through telecom testapps
* Adding self-managed connection service APIs.Tyler Gunn2017-01-181-0/+26
| | | | | | | | | 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
* Add ability to set supported audio routes on phone accounts and connectionChristine Hallstrom2016-12-131-12/+64
| | | | | | | | | | | | 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
* Merge "Add CAPABILITY_SUPPORTS_VIDEO_CALLING to PhoneAccount."Tyler Gunn2016-11-141-1/+24
|\ | | | | | | | | | | am: 8223dc1ae9 Change-Id: Id8c6077d099f9ef943c09242acb22173b6628c1a
| * Add CAPABILITY_SUPPORTS_VIDEO_CALLING to PhoneAccount.Tyler Gunn2016-11-111-1/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Add Group Id to PhoneAccountBrad Ebinger2016-07-111-2/+48
|/ | | | | | | | | | | | 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
* Add hidden capability to indicate account supports emergency video calls.Tyler Gunn2016-03-241-0/+12
| | | | | | | | This is used by Telephony to let Telecom know when emergency video calls are supported. Bug: 27484017 Change-Id: I317070b326e27e74d58afcb247746bdd2552d67b
* Add KEY_USE_RCS_PRESENCE_BOOL carrier config option.Tyler Gunn2016-01-111-1/+39
| | | | | | | | | - 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
* Add PhoneAccount capability to indicate if VT uses presence.Tyler Gunn2015-12-091-0/+14
| | | | | | | | | 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
* Merge "Add extras keys for instant lettering."Tyler Gunn2015-10-211-0/+27
|\
| * Add extras keys for instant lettering.Tyler Gunn2015-10-131-0/+27
| | | | | | | | | | | | | | - Also fix bug where copy-builder for PA was not copying over the extras. Bug: 22806380 Change-Id: If25a1299bdd0a48340e9d13857f982a90d728af6
* | am adf38ccb: am b70426b1: am 4c9fcd54: Merge "Add capability to identify ↵Bryce Lee2015-10-161-0/+8
|\ \ | | | | | | | | | | | | | | | | | | phone accounts that are emergency only." into cw-e-dev * commit 'adf38ccb6ea0a3b406273061d1fc01f61bc6abb6': Add capability to identify phone accounts that are emergency only.
| * | Add capability to identify phone accounts that are emergency only.Bryce Lee2015-10-141-0/+8
| | | | | | | | | | | | | | | Bug: 24756957 Change-Id: Id26eaa7f6632674f7122b4cd658cbe2bf9b04594
* | | Move position of bundle parceling for PA extras.Tyler Gunn2015-10-081-4/+3
| |/ |/| | | | | | | Bug: 22806380 Change-Id: I9797ee0f6c9b5143ccd3417cfd5a7b631a4db480
* | Add "Extras" to PhoneAccount.Tyler Gunn2015-10-051-0/+37
|/ | | | | | | - Add extras to PhoneAccount, and associated builder. Bug: 22806380 Change-Id: I90f4c1a9b022eef7e6d2829d82851ac307ceafdf
* Add "Call subject" capability to phone accounts.Tyler Gunn2015-07-271-0/+9
| | | | | | | | | 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
* Telecom API council changes.Santos Cordon2015-06-291-4/+5
| | | | | | | | | - adding more javadocs. - fixing javadoc on isEnabled - renaming to CONFIGURE_PHONE_ACCOUNT Bug: 21573551 Change-Id: Ice035b8573a08ea18181a73c9e9a462520a934f1
* Add enable/disable properties to phone accounts.Santos Cordon2015-05-191-3/+43
| | | | | Bug: 20303449 Change-Id: Ie6203a284454d43f4dd20917f0f1fda0b36484f8
* [1/4] Use new Icon class in PhoneAccount.Santos Cordon2015-05-131-186/+32
| | | | | Bug: 21088522 Change-Id: Ia03171d4861f758701e89733f4082863587e8c11