summaryrefslogtreecommitdiff
path: root/telecomm/java/android/telecom/TelecomManager.java
AgeCommit message (Collapse)Author
2018-02-26Merge "Revert "Add deep link to the assisted dialing settings.""TreeHugger Robot
2018-02-26Merge "Revert "Add the assisted dialing carrier config.""TreeHugger Robot
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-21Revert "Add deep link to the assisted dialing settings."Eric Erfanian
This reverts commit 5ff756e6c8567768ea608c5533081b4a468e911b. Reason for revert: we're cutting the feature from P Change-Id: I74cc929ef1f7fd499feef9c68a95a34a3e15cbec Bug: 73727182
2018-02-09Merge "Pass calling package for invocations of endCall API." am: 44289caa11 ↵Tyler Gunn
am: e05da7e86b am: 654b7fc322 Change-Id: Id7c74fa539b7e7e26dfdc8b612d9299d8c20c19b
2018-02-07Pass calling package for invocations of endCall API.Tyler Gunn
Pass the calling package for debugging purposes. Test: Manual Bug: 73006395 Change-Id: I5ea7f1f0033438de3cdc2c47fc8a03f05d9e4590
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-24Add deep link to the assisted dialing settings.Eric Erfanian
This enables clients to reference the setting directly. Test: none Bug: 72162646 Change-Id: I58ccfa41e2fd4a6260fe4510fbbcd6067cd0d61f
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-13Merge "Add permission check for old call handover apis." am: e8fc3d2399 am: ↵Sanket Padawe
7a97ee9acd am: 440bd9cb05 Change-Id: Ibd08720dba54949234376d5a5ca021c722330091
2018-01-12Merge "Add permission check for old call handover apis."Sanket Padawe
2018-01-12Add permission check for old call handover apis.Sanket Padawe
Bug: 65415068 Test: manual Change-Id: I4784debf1be255de24c341fe5474fc529bc1cebe
2018-01-11Bluetooth in band ringJoseph Pirozzo
Prevent the telecom service from generating a ringer if there is already a ringer generated by a phone connected over bluetooth headset client service. Bug: 65673832 Test: runtest telecom-unit -c com.android.server.telecom.tests.RingerTest Change-Id: I40710787cab0215f0456153a3557aa8cf1a50cdf (cherry picked from commit 40ea5eea4194f56f63e6aa3383772f462306c02a)
2018-01-11Merge "Bluetooth in band ring"Joseph Pirozzo
2018-01-09Merge "Remove hashing for PII in Telecom Logging" am: e77808d936 am: 388aca53f1Brad Ebinger
am: d8b0a97ce4 Change-Id: I4867c726c391a346510c5579c7987bb868277f69
2018-01-09Bluetooth in band ringJoseph Pirozzo
Prevent the telecom service from generating a ringer if there is already a ringer generated by a phone connected over bluetooth headset client service. Bug: 65673832 Test: runtest telecom-unit -c com.android.server.telecom.tests.RingerTest Change-Id: I40710787cab0215f0456153a3557aa8cf1a50cdf
2017-12-22Remove hashing for PII in Telecom LoggingBrad Ebinger
Replaces the MD5 hash for logging PII in Telecom with "***" instead. Test: Manual Bug: 67823981 Change-Id: Ieb089fe806663062a551ce7b9071e8b8f5fa9af7
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-12-07Add assisted dialing properties to the framework.Eric Erfanian
This is a manual merge of the oc-mr1-dev change I086e761ada9a57dca61c3a412561ee54255d6260 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: I84343fb0cda16514c01997fd71d1e819b5b7eebb
2017-12-06Massage APIs for upcoming doclava change.Jeff Sharkey
These changes are needed to ensure that "checkapi" doesn't claim that we're changing the API after an upcoming doclava change. Test: manual inspection of API text files Bug: 69505783 Change-Id: I8292ba80cc65b7dd78f0e9dba4fcc7ffcedfab9c Merged-In: I8292ba80cc65b7dd78f0e9dba4fcc7ffcedfab9c
2017-12-05Enable outgoing emergency calls in LockTask mode.Charles He
As part of the LockTask 2.0 work, we allow DPCs to enable the system lock screen in LockTask mode. When the device is protected by a PIN, pattern, or password, the lock screen will have an entry point to the emergency dialer which allows the user to make emergency calls (e.g., 911). Therefore, we whitelist the activities that are necessary to place this outgoing emergency call when LOCK_TASK_FEATURE_KEYGUARD is enabled. Bug: 68750910 Test: bit FrameworksServicesTests:com.android.server.am.LockTaskControllerTest Test: CTS verifier > CTS verifier > Managed provisioning > Device owner tests > LockTask UI Change-Id: Iaeeec2c462b978d2d201c5660024a3dd7283ae07
2017-11-22Massage APIs for upcoming doclava change.Jeff Sharkey
These changes are needed to ensure that "checkapi" doesn't claim that we're changing the API after an upcoming doclava change. Test: manual inspection of API text files Bug: 69505783 Change-Id: I8292ba80cc65b7dd78f0e9dba4fcc7ffcedfab9c
2017-11-16Merge "API declarations for Call Handover." am: d88abc7b60 am: c376ca6bc1Sanket Padawe
am: 41cff321b6 Change-Id: Ia5013e7e0288f037cd94d24c40a72278a60cc50d
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-09-11Merge "Deprecate TelephonyManager APIs which are present in TelecomManager."Sanket Padawe
am: a90205492f Change-Id: I1d15e13cb3ae8fa8caf098e34587e3599b5bc967
2017-09-08Deprecate TelephonyManager APIs which are present in TelecomManager.Sanket Padawe
Bug: 62346128 Test: Build Change-Id: I4c3b4652f5d22215572d64b764bcd42bb7295ebe Merged-in: I4c3b4652f5d22215572d64b764bcd42bb7295ebe
2017-09-08Fix doc for Telephony Manager api and make isTtySupported public.Sanket Padawe
TelephonyManager.isTtyModeSupported is public and we are deprecating that to use TelecomManager.isTtySupported which was system api, so making it public. Test: Build Bug: 62346128 Change-Id: Idfa146b03a3c3fdb20c563c4ea0dddf2c3399da6
2017-06-13Add EXTRA_HANDOVER_FROM_PHONE_ACCOUNT.Tyler Gunn
Used in handovers to tell the account we're handing over to which account the call is from. Test: Manual Bug: 38027075 Change-Id: I9b61a5fce3e4f7344174a1b81f4964ca02b71ccd
2017-06-06Merge "Give Doclava our manifest; more permission docs." into oc-dev am: ↵Jeff Sharkey
65d4cbba37 am: 67cb5f5210 Change-Id: Ic4c30cdb8bbfda5b3703eb3c7c36c1bf8ab3a216
2017-06-06Merge "Annotate @SystemApi with required permissions." into oc-dev am: ↵Jeff Sharkey
c1406978a4 am: 7a2e4a8486 Change-Id: Ib629e25dbf047c110feaf03e4ff744b5c6df9aeb
2017-06-05Give Doclava our manifest; more permission docs.Jeff Sharkey
We've seen some @SystemApi methods protected with non-system permissions, so give Doclava the platform AndroidManifest.xml so it can parse the actual permission protection levels to look for APIs that are letting in non-system apps. Also document more @SystemApi permissions. This is purely a docs change; no logic changes are being made. Test: make -j32 update-api Bug: 62263906 Change-Id: Ie0f0a5fb0033817bcc95060f2183a52ae4ae7b06
2017-06-05Annotate @SystemApi with required permissions.Jeff Sharkey
Most @SystemApi methods should be protected with system (or higher) permissions, so annotate common methods with @RequiresPermission to make automatic verification easier. Verification is really only relevant when calling into system services (where permissions checking can happen on the other side of a Binder call), so annotate managers with the new @SystemService annotation, which is now automatically documented. This is purely a docs change; no logic changes are being made. Test: make -j32 update-api && make -j32 offline-sdk-docs Bug: 62263906 Change-Id: I2554227202d84465676aa4ab0dd336b5c45fc651
2017-04-27Merge "Further handover support changes."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-24Merge "More auto-doc work." into oc-dev am: 6bc03748a7Jeff Sharkey
am: f25b285706 Change-Id: Ic6b7c359259b6fd809b1a01ba249a7b44e15a29f
2017-04-21More auto-doc work.Jeff Sharkey
Add support for AnyThread, CallSuper, and UiThread. Another related CL started documenting @RequiresPermission, so remove duplicated information in existing APIs. Suppress auto-doc on a handful of classes that are already well-documented. Test: make -j32 offline-sdk-docs Bug: 37526420 Change-Id: I791437dccec0f11d5349a23b982ba098cb551af8
2017-04-17DO NOT MERGE Expose phone account register/unregister intents.Tyler Gunn
These were previously @SystemApi. Retaining the existing SystemAPI behavior which sends the intents to those with a private permission. Extending to ALSO send these intents to the default dialer app as well using an explicit intent. Cherry-pick from aosp-master to resolve merge conflicts. Test: Manual Bug: 37106957 Merged-In: Ifb72870105be5ba024af196a8c3165a9afb397ab Change-Id: Ifb72870105be5ba024af196a8c3165a9afb397ab (cherry picked from commit d9da6ce9938b4222cfb409f172cacfe4cf1593e6)
2017-04-14Expose phone account register/unregister intents.Tyler Gunn
These were previously @SystemApi. Retaining the existing SystemAPI behavior which sends the intents to those with a private permission. Extending to ALSO send these intents to the default dialer app as well using an explicit intent. Cherry-pick from aosp-master to resolve merge conflicts. Test: Manual Bug: 37106957 Change-Id: Ifb72870105be5ba024af196a8c3165a9afb397ab
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-04-10Add getSelfManagedPhoneAccounts() TelecomManager API.Tyler Gunn
This is consistent with the existing getCallCapablePhoneAccounts API which is used to get the phone accounts capable of placing phone calls. Test: CTS Bug: 34159263 Merged-In: I1396c63a6882947cd66721528e53b6964a9091e0 Change-Id: I1396c63a6882947cd66721528e53b6964a9091e0 (cherry picked from commit 8931707058c2680878aacc5e6b4150a9aedc0f4d)
2017-04-10Add getSelfManagedPhoneAccounts() TelecomManager API.Tyler Gunn
This is consistent with the existing getCallCapablePhoneAccounts API which is used to get the phone accounts capable of placing phone calls. Test: CTS Bug: 34159263 Change-Id: I1396c63a6882947cd66721528e53b6964a9091e0
2017-03-31Merge "Self Managed CS Implementation" am: 98fad21a8a am: 9fab4ad9b3Tyler Gunn
am: 72cb924f07 Change-Id: Ia16c6125567ceac4edfff095e737751c46fde7bf
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 Merged-In: I0c890dc2feeb3ee438a80ed425db2aaf1f4c1fdd Change-Id: I0c890dc2feeb3ee438a80ed425db2aaf1f4c1fdd
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-03-01Merge "Support for showing self-managed calls in IncallService." am: ↵Tyler Gunn
5a33057092 am: 8c7d28f163 am: fd0e1a9d93 Change-Id: I88170e214ca6c142e0445a814ad0e76064e72ba7
2017-03-01Merge "Support for showing self-managed calls in IncallService."Tyler Gunn
2017-02-24Introduce ANSWER_PHONE_CALLS permissionEugene Susla
This exposes an API to answer a ringing call, as well as a corresponding runtime permission and appop Test: Grant the permission and ensure the call gets answered. Deny the permission, and ensure that the API call throws an exception. Bug: 30932767 Change-Id: I4c33fcea6b95a30469fa6c0c37090be32b0ad52e
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