summaryrefslogtreecommitdiff
path: root/telecomm/java/android/telecom/TelecomManager.java
Commit message (Collapse)AuthorAgeFilesLines
...
* Revert "Telephony light grey list clean up for Q"Chen Xu2018-10-191-1/+1
| | | | | | | | | | | | | This reverts commit 253bdb7175036472d3f75422f5bc9ac51949431e. Reason for revert: This CL caused MMS break because Bugle is using the hidden API in Q's darkgrey list. The proper fix should either come from Bugle team if their apk moved to Q, or compat team to explore why this caused issue for app target on P. Change-Id: Icc6c190cde79c10d9045183c0b80cdf008e95578 Bug: 117899984
* Telephony light grey list clean up for Qchen xu2018-10-151-1/+1
| | | | | | | Bug: 112477300 Test: Telehony unit test Change-Id: I5229224fe9a65b3647a42070f287e23f67084bda Merged-in: I5229224fe9a65b3647a42070f287e23f67084bda
* Add handleCallIntent method in TelecomManager.Tyler Gunn2018-09-281-0/+16
| | | | | | | | | | | | This is an @hide method usable only from within Telecom itself in order to trampoline an ACTION_CALL intent from the UserCallActivity to Telecom's system service. Bug: 116719392 Test: Verify that calls initiated via CALL intent no longer get rebroadcast and are instead sent directly to Telecom. Change-Id: Ie765631bef8329a8ed12723d9c037a44b4f80882
* Merge "Add support for network identified emergency calls."Tyler Gunn2018-09-241-0/+21
|\
| * Add support for network identified emergency calls.Tyler Gunn2018-09-211-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for the IMS call profile to indicate that a call is an emergency call. Add supporting connection and call properties so that this can be propagated to Telecom and ultimately the Dialer app. Add System API to determine if the device is in a network IDed or dialed emergency call (used in Telephony). Test: Manual test using test intents and ecclist property. Test: Added new telecom unit tests. Bug: 77565333 Change-Id: I769e7b5000b10662c08fe53c91ef99edc685d2b1
* | Propagates voice call radio technology to connectionWei Huang2018-09-191-0/+9
|/ | | | | | | | | | This patch mainly takes below changes: 1) Add new extra to indicates the call network technology. 2) Provides basic function to set/get call radio technology. Bug: 67856372 Test: Manual Change-Id: I1a12382fdb589ce823fe7af025832db4cdc152c2
* Add new telecom metrics for emergency dialerShaotang Li2018-09-061-0/+12
| | | | | | | | | | | These includes, 1. The source where user initiated the call. 2. The duration between START_CONNECTION and REQUEST_DISCONNECT. Bug: 111818008 Test: manual and check the result of 'adb shell dumpsys telecom' for metrics data Change-Id: Iddc7f256362abe9fe252bd12cead05a7d77d329e
* Merge "Add @UnsupportedAppUsage annotations"Mathew Inwood2018-08-061-0/+11
|\ | | | | | | | | | | am: 44091cdb47 Change-Id: I1dfae6f3d8ba8d5ff63f378c71f9670199a3adc3
| * Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-011-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Make TelecomManager#endCall a public API.Tyler Gunn2018-05-081-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A broad category of apps such as wearable companion apps and call blocking apps rely on the ability to reject a ringing call. Previously this was achieved using a broken TelephonyManager API which lacked permission checks. To support these applications, removing the @hide attribute on the existing TelecomManager#endCall API so that apps with the existing ANSWER_PHONE_CALLS permission can reject ringing calls and end ongoing calls. Logically if an app has permission to answer a call, it should be able to end it. Test: Created test app to verify API permission checks. Test: Added new CTS tests to cover this API. Bug: 78290258 Merged-In: Ic6527969793ebe05eb9c5fa8205558ae788ea572 Change-Id: Ic6527969793ebe05eb9c5fa8205558ae788ea572
* | Merge "Make TelecomManager#endCall a public API." into pi-devTyler Gunn2018-05-071-5/+10
|\ \ | | | | | | | | | | | | | | | am: 872a039ab3 Change-Id: Ic52e1705ce497b0a46bb4107ad854a8b939b38b0
| * | Make TelecomManager#endCall a public API.Tyler Gunn2018-05-021-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A broad category of apps such as wearable companion apps and call blocking apps rely on the ability to reject a ringing call. Previously this was achieved using a broken TelephonyManager API which lacked permission checks. To support these applications, removing the @hide attribute on the existing TelecomManager#endCall API so that apps with the existing ANSWER_PHONE_CALLS permission can reject ringing calls and end ongoing calls. Logically if an app has permission to answer a call, it should be able to end it. Test: Created test app to verify API permission checks. Test: Added new CTS tests to cover this API. Bug: 78290258 Change-Id: Ic6527969793ebe05eb9c5fa8205558ae788ea572
| * | API Documentation and Constant cleanup.Tyler Gunn2018-03-071-3/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Update handover API docs for clarity. 2. Added an unknown value per API review comments. 3. Renamed HANDOVER_FAILURE_DEST_USER_REJECTED to HANDOVER_FAILURE_USER_REJECTED 3. Removed the HANDOVER_FAILURE_DEST_INVALID_PERM constant since it isn't used (methods which deal with permissions throw security exceptions). Test: Make doc and verify documentation. Fixes: 73751004 Fixes: 73750515 Fixes: 73750817 Merged-In: I7860fcd813f25adaaccf632f2c61dd4138a0a889 Change-Id: I7860fcd813f25adaaccf632f2c61dd4138a0a889 (cherry picked from commit c7a86b14a8e50d979b6b1c9e3dffe94748e2bc93)
* | | Merge "Update API docs for Telephony call state reporting." am: c2493ee1eeTyler Gunn2018-03-141-1/+1
|\ \ \ | | |/ | |/| | | | | | | | | | am: 1ba28fec3f Change-Id: I60014a59db60610746841840278adead80963db8
| * | Update API docs for Telephony call state reporting.Tyler Gunn2018-03-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update TelephonyManager#getCallState, PhoneStateListener#onCallStateChanged to make it clear which calls each method considers in determining call state. Added intdef for call state (allows auto doc generation of valid values for parameters). Test: make docs Bug: 73245376 Change-Id: I70ebd0f00ae3f0e1370ae275be8f8ef6f008523d
* | | Merge "API Documentation and Constant cleanup." am: 8882c55b21Tyler Gunn2018-03-071-3/+21
|\| | | |/ |/| | | | | | | am: 8917fc21cc Change-Id: Ic4a159b838c952594b0860ded69fc07c74180961
| * Merge "API Documentation and Constant cleanup."Treehugger Robot2018-03-071-3/+21
| |\
| | * API Documentation and Constant cleanup.Tyler Gunn2018-03-021-3/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Update handover API docs for clarity. 2. Added an unknown value per API review comments. 3. Renamed HANDOVER_FAILURE_DEST_USER_REJECTED to HANDOVER_FAILURE_USER_REJECTED 3. Removed the HANDOVER_FAILURE_DEST_INVALID_PERM constant since it isn't used (methods which deal with permissions throw security exceptions). Test: Make doc and verify documentation. Change-Id: Id21d6b4c83d5c773ab38d78eb6b1886a1ac4dadf Fixes: 73751004 Fixes: 73750515 Fixes: 73750817
* | | Merge "Revert "Add deep link to the assisted dialing settings.""TreeHugger Robot2018-02-261-6/+0
|\ \ \
| * | | Revert "Add deep link to the assisted dialing settings."Eric Erfanian2018-02-211-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 5ff756e6c8567768ea608c5533081b4a468e911b. Reason for revert: we're cutting the feature from P Change-Id: I74cc929ef1f7fd499feef9c68a95a34a3e15cbec Bug: 73727182
* | | | Merge "Revert "Add the assisted dialing carrier config.""TreeHugger Robot2018-02-261-6/+1
|\ \ \ \
| * | | | Revert "Add the assisted dialing carrier config."Eric Erfanian2018-02-211-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit af7b8c0a67f1f416e9156c375a940a47389ab838. Reason for revert: we're cutting the feature from P Change-Id: I1ccc2c36b480f64c3a8b3df7eee73f80b7863722 Bug: 73727182
* | | | | Merge "Pass calling package for invocations of endCall API." am: 44289caa11 ↵Tyler Gunn2018-02-091-1/+1
|\ \ \ \ \ | | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e05da7e86b am: 654b7fc322 Change-Id: Id7c74fa539b7e7e26dfdc8b612d9299d8c20c19b
| * | | | Pass calling package for invocations of endCall API.Tyler Gunn2018-02-071-1/+1
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Pass the calling package for debugging purposes. Test: Manual Bug: 73006395 Change-Id: I5ea7f1f0033438de3cdc2c47fc8a03f05d9e4590
| * | | Add handover permission, fill in some missing API gaps.Tyler Gunn2018-01-251-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Add handover permission, fill in some missing API gaps.Tyler Gunn2018-01-241-0/+11
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Add deep link to the assisted dialing settings.Eric Erfanian2018-01-241-0/+6
| |/ |/| | | | | | | | | | | | | This enables clients to reference the setting directly. Test: none Bug: 72162646 Change-Id: I58ccfa41e2fd4a6260fe4510fbbcd6067cd0d61f
* | Add the assisted dialing carrier config.Eric Erfanian2018-01-221-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Add permission check for old call handover apis." am: e8fc3d2399 am: ↵Sanket Padawe2018-01-131-0/+8
|\| | | | | | | | | | | | | | | 7a97ee9acd am: 440bd9cb05 Change-Id: Ibd08720dba54949234376d5a5ca021c722330091
| * Merge "Add permission check for old call handover apis."Sanket Padawe2018-01-121-0/+8
| |\
| | * Add permission check for old call handover apis.Sanket Padawe2018-01-121-0/+8
| | | | | | | | | | | | | | | | | | Bug: 65415068 Test: manual Change-Id: I4784debf1be255de24c341fe5474fc529bc1cebe
| * | Bluetooth in band ringJoseph Pirozzo2018-01-111-0/+9
| |/ | | | | | | | | | | | | | | | | | | | | | | | | 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)
* | Merge "Bluetooth in band ring"Joseph Pirozzo2018-01-111-0/+9
|\ \
| * | Bluetooth in band ringJoseph Pirozzo2018-01-091-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Remove hashing for PII in Telecom Logging" am: e77808d936 am: 388aca53f1Brad Ebinger2018-01-091-1/+0
|\ \ \ | |/ / |/| / | |/ | | | | am: d8b0a97ce4 Change-Id: I4867c726c391a346510c5579c7987bb868277f69
| * Remove hashing for PII in Telecom LoggingBrad Ebinger2017-12-221-1/+0
| | | | | | | | | | | | | | | | | | Replaces the MD5 hash for logging PII in Telecom with "***" instead. Test: Manual Bug: 67823981 Change-Id: Ieb089fe806663062a551ce7b9071e8b8f5fa9af7
| * Add assisted dialing properties to the framework.Eric Erfanian2017-12-121-0/+8
| | | | | | | | | | | | | | | | | | | | | | 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
| * Massage APIs for upcoming doclava change.Jeff Sharkey2017-12-061-0/+1
| | | | | | | | | | | | | | | | | | | | 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
* | Add assisted dialing properties to the framework.Eric Erfanian2017-12-071-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Enable outgoing emergency calls in LockTask mode.Charles He2017-12-051-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Massage APIs for upcoming doclava change.Jeff Sharkey2017-11-221-1/+1
| | | | | | | | | | | | | | | | | | 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
* | Merge "API declarations for Call Handover." am: d88abc7b60 am: c376ca6bc1Sanket Padawe2017-11-161-0/+35
|\| | | | | | | | | | | am: 41cff321b6 Change-Id: Ia5013e7e0288f037cd94d24c40a72278a60cc50d
| * API declarations for Call Handover.Sanket Padawe2017-11-151-0/+35
| | | | | | | | | | | | | | | | | | Design doc: https://docs.google.com/document/d/1qY3oAzjff_4A1ttYb_CGrE_OwTRmXMG_KGsIuPT1ey8/edit# Bug: 65415068 Test: manual. Change-Id: I0c2f561d92ad6504f858eadde09980fc1ce8727f
| * Merge "Deprecate TelephonyManager APIs which are present in TelecomManager."Sanket Padawe2017-09-111-3/+0
| |\ | | | | | | | | | | | | | | | am: a90205492f Change-Id: I1d15e13cb3ae8fa8caf098e34587e3599b5bc967
| | * Deprecate TelephonyManager APIs which are present in TelecomManager.Sanket Padawe2017-09-081-3/+0
| | | | | | | | | | | | | | | | | | | | | Bug: 62346128 Test: Build Change-Id: I4c3b4652f5d22215572d64b764bcd42bb7295ebe Merged-in: I4c3b4652f5d22215572d64b764bcd42bb7295ebe
* | | Fix doc for Telephony Manager api and make isTtySupported public.Sanket Padawe2017-09-081-3/+1
|/ / | | | | | | | | | | | | | | | | | | 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
* | Add EXTRA_HANDOVER_FROM_PHONE_ACCOUNT.Tyler Gunn2017-06-131-0/+9
| | | | | | | | | | | | | | | | | | 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
* | Merge "Give Doclava our manifest; more permission docs." into oc-dev am: ↵Jeff Sharkey2017-06-061-0/+18
|\| | | | | | | | | | | | | | | 65d4cbba37 am: 67cb5f5210 Change-Id: Ic4c30cdb8bbfda5b3703eb3c7c36c1bf8ab3a216
| * Give Doclava our manifest; more permission docs.Jeff Sharkey2017-06-051-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Annotate @SystemApi with required permissions." into oc-dev am: ↵Jeff Sharkey2017-06-061-0/+3
|\| | | | | | | | | | | | | | | c1406978a4 am: 7a2e4a8486 Change-Id: Ib629e25dbf047c110feaf03e4ff744b5c6df9aeb