summaryrefslogtreecommitdiff
path: root/telecomm/java/android/telecom/TelecomManager.java
AgeCommit message (Collapse)Author
2019-02-19Merge QP1A.190212.003Scott Lobdell
Conflicts: core/java/android/view/SurfaceControl.java media/java/android/media/MediaCodecInfo.java packages/SettingsLib/res/values/strings.xml services/core/java/com/android/server/am/ActiveServices.java services/core/java/com/android/server/am/OomAdjuster.java services/core/java/com/android/server/audio/AudioDeviceInventory.java services/core/java/com/android/server/display/LocalDisplayAdapter.java services/core/java/com/android/server/wm/ActivityDisplay.java services/core/java/com/android/server/wm/DisplayPolicy.java Change-Id: Idc7582978996d2f7c44f599f221e8d7cc9eedf43
2019-02-13Populate 'hasKnownUserIntentEmergency'sqian
This is only used to specify when the dialed number is ambiguous, identified as both emergency number and any other non-emergency number; e.g. in some situation, 611 could be both an emergency number in a country and a non-emergency number of a carrier's customer service hotline. Test: Manual Bug: 123999640 Change-Id: I7b1a8832ab86b3e7d8f9af24eb4f7bde7d566612 Merged-In: I7b1a8832ab86b3e7d8f9af24eb4f7bde7d566612 (cherry picked from commit 6d9e7457dadaf683b2706ba1a41bd8385f25c9a2)
2019-02-14Merge "Populate 'hasKnownUserIntentEmergency'"Shuo Qian
2019-02-13Populate 'hasKnownUserIntentEmergency'sqian
This is only used to specify when the dialed number is ambiguous, identified as both emergency number and any other non-emergency number; e.g. in some situation, 611 could be both an emergency number in a country and a non-emergency number of a carrier's customer service hotline. Test: Manual Bug: 123999640 Change-Id: I7b1a8832ab86b3e7d8f9af24eb4f7bde7d566612
2019-02-11Merge QP1A.190205.002Steven Moreland
Change-Id: I8e29d3d840642579119f10af2f90dd536304070f
2019-02-11Merge "Expose some APIs as test APIs to facilitate CTS"Tyler Gunn
2019-02-05Add nuisance call reporting API to Telecom.Tyler Gunn
Adding new nuisance call reporting API to Telecom. Dialer will use this to report to Telecom when the user marks a call as nuisance or not nuisance. We relay this to the CallScreeningService the user has chosen to fill the call screening role, along with some basic information about the call type (missed, rejected, incoming) and a the coarse call duration bucket. These values can be used by the CallScreeningService to train the nuisance detection model it employs. Test: Manual tested using test app. Test: Added new CTS test coverage. Test: Added unit tests to Telecom Bug: 63966743 Merged-In: I389617491f640afd9ca28ec3f247912365e6cc53 Change-Id: I389617491f640afd9ca28ec3f247912365e6cc53
2019-02-04Expose some APIs as test APIs to facilitate CTSTyler Gunn
Test: added new cts tests Bug: 123896388 Change-Id: I742f23be57e731307338591d816f7888e198b333
2019-02-01Merge "Deprecate acceptRingingCall and endCall." am: 6e3a88a3e2 am: 280019629cTyler Gunn
am: 994c17768a Change-Id: I10fee83408de8a1af75555eedf2403dfdbc4b857
2019-01-31Deprecate acceptRingingCall and endCall.Tyler Gunn
These APIs are replaced by CallScreeningService and the new companion app roles in InCallService. Test: Update Apis and verify deprecated. Bug: 63966743 Change-Id: Ib4c4ac6b723ccd46d3052fb2b9c9f58b3151cc29
2019-01-23Merge "Add nuisance call reporting API to Telecom."Tyler Gunn
2019-01-22Merge "Add get/set user selected outgoing phone account APIs." am: ↵Tyler Gunn
bf10036306 am: 6e7caec9ae am: 5797bc598b Change-Id: Ic1fa374c80d478586bf61956c28eedef2ba5185d
2019-01-22Add nuisance call reporting API to Telecom.Tyler Gunn
Adding new nuisance call reporting API to Telecom. Dialer will use this to report to Telecom when the user marks a call as nuisance or not nuisance. We relay this to the CallScreeningService the user has chosen to fill the call screening role, along with some basic information about the call type (missed, rejected, incoming) and a the coarse call duration bucket. These values can be used by the CallScreeningService to train the nuisance detection model it employs. Test: Manual tested using test app. Test: Added new CTS test coverage. Test: Added unit tests to Telecom Bug: 63966743 Change-Id: I389617491f640afd9ca28ec3f247912365e6cc53
2019-01-22Add get/set user selected outgoing phone account APIs.Tyler Gunn
Promoting getUserSelectedOutgoingPhoneAccount to a public API accessible to the default dialer app, as well as to system priv apps such as the settings app. Promoting setUserSelectedOutgoingPhoneAccount to a system API accessible to apps such as the settings app. Add telecom shell commands to support changing the outgoing phone account in CTS tests. Bug: 119227574 Test: Manual Test: Added and ran new CTS test Change-Id: I204b2f01a1b6746aa35faf8aaacd30ebf53b9a5d
2019-01-11Add CallerIdentification to CallScreeningService API.Tyler Gunn
Updating the CallScreeningService to support passing call identification information for incoming/outgoing calls. Updating call log to log call identification information. Bug: 63966743 Test: Manual with test app. Merged-In: Ie6c172c09007eb5f4853d36ae0a99b782bfb5ddb Change-Id: Ie6c172c09007eb5f4853d36ae0a99b782bfb5ddb
2019-01-11Merge QP1A.190107.001Scott Lobdell
Change-Id: Ife0402f9f6166a53c75fa57f80dee0b442ce6d28
2018-12-14Merge "Add CallerIdentification to CallScreeningService API."Tyler Gunn
2018-12-13Fix SDK buildHector Dearman
See ag/5184749 Test: make Exempt-From-Owner-Approval: Build Cop Change-Id: I531364aeeb042b699b2cc2c4ff9b2139e1040cfc
2018-12-12Add CallerIdentification to CallScreeningService API.Tyler Gunn
Updating the CallScreeningService to support passing call identification information for incoming/outgoing calls. Updating call log to log call identification information. Bug: 63966743 Test: Manual with test app. Change-Id: Ie6c172c09007eb5f4853d36ae0a99b782bfb5ddb
2018-12-12Merge "Enable Telecom to bind third party InCallServices."Youming Ye
2018-12-12API: Clean up redundant and ineffective usages of SystemApi and TestApiAdrian Roos
Everything that is marked SystemApi or TestApi, but not @hide is still part of the public SDK, it is therefore not sound to have that combination. In the future, specifing such a combination will be considered an error to prevent inadvertently exposing SystemApi and TestApi as public API. Bug: 115333477 Change-Id: Ibd5d6a22862fdbc1e20a1cb3925280f5a682edea Merged-In: Ibd5d6a22862fdbc1e20a1cb3925280f5a682edea Test: METALAVA_PREPEND_ARGS="--error UnhiddenSystemApi" m checkapi Exempt-From-Owner-Approval: API cleanup
2018-12-11API: Clean up redundant and ineffective usages of SystemApi and TestApiAdrian Roos
Everything that is marked SystemApi or TestApi, but not @hide is still part of the public SDK, it is therefore not sound to have that combination. In the future, specifing such a combination will be considered an error to prevent inadvertently exposing SystemApi and TestApi as public API. Bug: 115333477 Change-Id: Ibd5d6a22862fdbc1e20a1cb3925280f5a682edea Test: METALAVA_PREPEND_ARGS="--error UnhiddenSystemApi" m checkapi Exempt-From-Owner-Approval: API cleanup
2018-12-11Enable Telecom to bind third party InCallServices.Youming Ye
Changes for Telecom to bind third party companion apps or automotive ui installed from Play Store. Add new permissions and settings for the third party InCallService APIs. Bug: 78174835 Test: Manual Change-Id: I1b4eff28b9dfd61f1c951d14b6c82395b51fe769
2018-12-05Merge QP1A.181119.002Diego Wilson
Change-Id: Ieb6ae3730e8b01f867f9b5120de1ab3067653d21
2018-11-12Unsupported app usage API cleanupTyler Gunn
This CL includes a number of cleanups related to unsupported app usage tags. TelecomManager#EXTRA_IS_HANDOVER - public APIS exist for this usecase; updated docs and limit to P with maxtarget sdk. TelecomManager#getSimCallManager(int userId) - marked as max target P; there is a public API available which can be used to accomplish the same thing. Nobody should be calling this. TelecomManager#getCallCapablePhoneAccounts(boolean) - marked as max target P; callers should use the version without the boolean parameter. Deprecate CAPABILITY_CAN_UPGRADE_TO_VIDEO; its redundant. New public API: Promote TelecomManager#getSystemDialerPackage() to public API; its a benign API and doesn't expose anything which can't be inferred other ways. New system APIs: TelecomManager#getCurrentTtyMode() - used by settings app. TelecomManager#setDefaultDialer() - used by useful for settings app. TelecomManager#TTY_MODE* constants - used by getCurrentTtyMode API. Test: Compile / run unit tests Bug: 119305590 Change-Id: I67d6213e6c689fb545fc9ceae4a359831f97c32f
2018-10-30[Call Screening]Programmatically changing the default call screening app.tonyzhu
Increase three methods in TelecomManager.java, modify ITelecomService.aidl to make sure framworks can comunicate with service. Bug: 113302920 Test: atest TelecomServiceImplTest. Test: simulate third party call screening application to use methods in TelecomManager.java, and triggle the activity to show the dialog of setting default call screeening application. Change-Id: I1e34061acd575813e92403c137731e618abb88d5
2018-10-26Revert "Revert "Telephony light grey list clean up for Q""Chen Xu
This reverts commit bab59cb9db0fe98550d12f03e210e3bc0efc775d. Reason for revert: Put maxTargetSdk=P now will move APIs onto light greylist because per-SDK versioned dark greylist is not yet supported by ART. We can keep doing annotation work without breaking existing apps targeting on P. Bug:117934933 Bug:112477300 Change-Id: I5e0e693dde49fac3044cd73fd6360c4485f312ec Merged-in: I5e0e693dde49fac3044cd73fd6360c4485f312ec
2018-10-19Revert "Telephony light grey list clean up for Q"Chen Xu
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
2018-10-15Merge QP1A.181008.001Bill Peckham
Change-Id: Iff68e8d0501ac5c2998c96f9df4042a94a1ce9e1
2018-10-15Telephony light grey list clean up for Qchen xu
Bug: 112477300 Test: Telehony unit test Change-Id: I5229224fe9a65b3647a42070f287e23f67084bda Merged-in: I5229224fe9a65b3647a42070f287e23f67084bda
2018-10-04Merge QP1A.180918.001Bill Peckham
Conflicts: telephony/java/android/telephony/ims/ImsReasonInfo.java Change-Id: I935fa14ebd4c23231c93729e55baf39265c05199
2018-09-28Add handleCallIntent method in TelecomManager.Tyler Gunn
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
2018-09-24Merge "Add support for network identified emergency calls."Tyler Gunn
2018-09-21Add support for network identified emergency calls.Tyler Gunn
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
2018-09-19Propagates voice call radio technology to connectionWei Huang
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
2018-09-08Merge QP1A.180823.001Bill Peckham
Change-Id: Ia2d6fa811b3c57185c1975db603d59e6eaef73fc
2018-09-06Add new telecom metrics for emergency dialerShaotang Li
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
2018-08-06Merge "Add @UnsupportedAppUsage annotations"Mathew Inwood
am: 44091cdb47 Change-Id: I1dfae6f3d8ba8d5ff63f378c71f9670199a3adc3
2018-08-02Merge QPR1.180718.001Jiyong Park
Conflicts: core/java/android/provider/Settings.java core/jni/android_view_InputEventReceiver.cpp core/res/res/values/config.xml core/res/res/values/symbols.xml media/jni/Android.bp packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java packages/SettingsLib/tests/robotests/src/com/android/settingslib/fuelgauge/PowerWhitelistBackendTest.java packages/SystemUI/res/layout/status_bar_mobile_signal_group.xml packages/SystemUI/res/values/config.xml packages/SystemUI/src/com/android/keyguard/KeyguardConstants.java packages/SystemUI/src/com/android/systemui/statusbar/StatusBarMobileView.java services/core/java/com/android/server/ConnectivityService.java services/core/java/com/android/server/NetworkTimeUpdateService.java services/core/java/com/android/server/StorageManagerService.java services/core/java/com/android/server/Watchdog.java services/core/java/com/android/server/am/ActiveServices.java services/core/java/com/android/server/am/ActivityManagerService.java services/core/java/com/android/server/am/ActivityStack.java services/core/java/com/android/server/am/AppTaskImpl.java services/core/java/com/android/server/audio/AudioService.java services/core/java/com/android/server/wm/DisplayContent.java services/tests/uiservicestests/src/com/android/server/notification/NotificationRecordTest.java telephony/java/android/telephony/CarrierConfigManager.java telephony/java/android/telephony/ims/ImsReasonInfo.java telephony/java/android/telephony/ims/feature/MmTelFeature.java telephony/java/com/android/internal/telephony/ISmsBaseImpl.java Change-Id: I3f98340699f9e31be03eaf23fdea70803c4cef42
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-06-14BT: Send info if call is CS type from telecomm service to BT apps.Sumit Bajpai
The change adds broadcast intent for updating call info from telecomm service to bluetooth application. CRs-Fixed: 2260445 Change-Id: I18d3a22d25099906d86efb0412f309696c02e321
2018-05-08Make TelecomManager#endCall a public API.Tyler Gunn
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
2018-05-07Merge "Make TelecomManager#endCall a public API." into pi-devTyler Gunn
am: 872a039ab3 Change-Id: Ic52e1705ce497b0a46bb4107ad854a8b939b38b0
2018-05-02Make TelecomManager#endCall a public API.Tyler Gunn
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
2018-03-14Merge "Update API docs for Telephony call state reporting." am: c2493ee1eeTyler Gunn
am: 1ba28fec3f Change-Id: I60014a59db60610746841840278adead80963db8
2018-03-13Update API docs for Telephony call state reporting.Tyler Gunn
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
2018-03-07API Documentation and Constant cleanup.Tyler Gunn
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)
2018-03-07Merge "API Documentation and Constant cleanup." am: 8882c55b21Tyler Gunn
am: 8917fc21cc Change-Id: Ic4a159b838c952594b0860ded69fc07c74180961
2018-03-07Merge "API Documentation and Constant cleanup."Treehugger Robot
2018-03-02API Documentation and Constant cleanup.Tyler Gunn
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