summaryrefslogtreecommitdiff
path: root/telecomm/java/android/telecom/TelecomManager.java
Commit message (Collapse)AuthorAgeFilesLines
...
* | Make getSimCallManager msim awareBrad Ebinger2019-05-101-9/+36
| | | | | | | | | | | | | | | | | | | | | | | | When there are multiple subscriptions available, the SIM call manager is currently resolved based on what the default voice subscription is. Add the ability for TelecomManager to get the SIM call manager for a Telephony subscription ID. Test: Manual; atest TelecomUnitTests Bug: 131627085 Change-Id: I748fcebb44f07fbc9deef0c6a07d2f15a44b22d3
* | Revert "RESTRICT AUTOMERGE Remove deprecated System APIs added in Q."Ian Pedowitz2019-05-021-1/+0
| | | | | | | | | | | | | | | | | | This reverts commit 02014297fd1c0e6673a91cf4b4215d4d2da8f133. Reason for revert: QT SDK Finalization. Will be merged again on/after May 13th Bug: 129975435 Change-Id: Ia054b193a982dee669630555974d2d7831fe2b50
* | RESTRICT AUTOMERGE Remove deprecated System APIs added in Q.Sudheer Shanka2019-04-301-0/+1
|/ | | | | | Test: Builds, boots Bug: 129975435 Change-Id: I4bfd0bfbbc52b7822477ec0c70a08de6f85a3672
* Telecom API doc cleanup.Tyler Gunn2019-04-111-3/+18
| | | | | | | | | | InCallService - remove references to roles cut in Q release. TelecomManager - make it more clear how to use the silenceRinger method and under which conditions it should be used. Test: Compile; docs only. Fixes: 130285730 Change-Id: I55f9c2df119140666f8167e8521a4372d1108e7a
* Remove call identification APIs.Tyler Gunn2019-04-011-27/+0
| | | | | | | | Removing the CallIdentification API surface. Test: Build, run tests. Bug: 129531123 Change-Id: I5f1451ffba04ee438df739a17472c028c44f19b2
* Merge "Remove support for event-based handovers." am: b2c1daf861 am: 3e232b28afTyler Gunn2019-03-131-1/+1
|\ | | | | | | | | | | am: 4b4d6f3072 Change-Id: I65d196d86eeda26c757adce77119cd5f62e9fbce
| * Merge "Remove support for event-based handovers."Tyler Gunn2019-03-131-1/+1
| |\ | | | | | | | | | | | | | | | am: b2c1daf861 Change-Id: I03aea3dffd4a7d1af24d281826f87945441d6d14
| | * Remove support for event-based handovers.Tyler Gunn2019-03-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Public APIs have been available for 2 releases; removing support for the EXTRA/EVENT-based handovers. Test: Manual Bug: 110846969 Change-Id: I4747a509a9fd4d41c161febb78fbb7e4e11699f2
| | * Correct nullability and final constraints on new APIs.Tyler Gunn2019-03-041-8/+13
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | Per API review, correct nullability and final constraints on new Telecom APIs. Test: Build API. Fixes: 126700293 Fixes: 126699447 Fixes: 126700465 Fixes: 126702895 Fixes: 126702527 Change-Id: Ic19664b156410e79a307b2af0d5672dc19f93c59 Merged-In: Icec15403493de596194a61b27bb3e1031fdc1099
* | Merge "Use a boolean Consumer instead of RoleManagerCallback."TreeHugger Robot2019-03-111-3/+2
|\ \
| * | Use a boolean Consumer instead of RoleManagerCallback.Hai Zhang2019-03-081-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And use RemoteCallback for it under the hood. This removes one AIDL interface and allows using lambda, while aligning with what PermissionControllerService does. Bug: 127691087 Test: manual Change-Id: Ia94e5bac59773380b2a4764d766bf6ff1dd5b7ff
* | | Merge "Remove TelecomManager#EXTRA_IS_ENABLED."Tyler Gunn2019-03-111-6/+0
|\ \ \ | |/ / |/| |
| * | Remove TelecomManager#EXTRA_IS_ENABLED.Tyler Gunn2019-03-071-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is not needed as part of the API given that RoleManager is used to tell if InCallServices are enabled when filling the companion app role. Test: Build/make api Bug: 126360569 Change-Id: I0da59cc17cf36e4a9e8cfacccce536c3e744bf53
* | | Revert "Revert "Revert "Revert "Correct nullability and final constraints on ↵Slava Shklyaev2019-03-041-8/+13
|/ / | | | | | | | | | | | | | | | | | | | | new APIs."""" This reverts commit 2fac9dd3d4d58229ff9edad75b00a28befb2ffc2. Reason for revert: the change being reverted was not supposed to be merged into git_master. Change-Id: Ieb9169fdd242edb72774e5c3d5824bc54b55cc05
* | Merge "Revert "Revert "Revert "Correct nullability and final constraints on ↵Slava Shklyaev2019-03-041-13/+8
|\| | | | | | | | | | | | | | | new APIs."""" am: 0bbf61f024 am: 08bc717117 am: 5317912537 Change-Id: Idab2d4174aa3d6a19f9573edf0d5ee3ecfa33201
| * Merge "Revert "Revert "Revert "Correct nullability and final constraints on ↵Slava Shklyaev2019-03-041-13/+8
| |\ | | | | | | | | | new APIs.""""
| | * Revert "Revert "Revert "Correct nullability and final constraints on new ↵Slava Shklyaev2019-03-041-13/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | APIs.""" This reverts commit b255be1307aeae47ca7e8ee72ab4da670a1c49f1. Reason for revert: the commit being reverted fixed git_master but broke aosp-master. This revert is aimed to fix aosp-master while not touching git_master. DO NOT MERGE: This change is aimed at aosp-master only and should not be merged into git_master. Change-Id: Ie5aaabb211affe2d21daaf87809641276d9d4707
* | | Merge "Revert "Revert "Correct nullability and final constraints on new ↵Slava Shklyaev2019-03-041-8/+13
|\| | | | | | | | | | | | | | | | | | | | | | | APIs.""" am: 86e2035208 am: 6ced2f195d am: 8e6b20f4f3 Change-Id: I0aa41b4fc5d08201deffccdaa25c50ae7942fe78
| * | Merge "Revert "Revert "Correct nullability and final constraints on new APIs."""Slava Shklyaev2019-03-041-8/+13
| |\|
| | * Revert "Revert "Correct nullability and final constraints on new APIs.""Slava Shklyaev2019-03-041-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 8462c66bd52f3132c3fa03475fcab2af30618f67. Reason for revert: Looks like this change broke the build. Change-Id: I4cff1ec1211e278d5e5734f1594c096722293662
* | | Merge "Revert "Correct nullability and final constraints on new APIs."" am: ↵Tyler Gunn2019-03-031-13/+8
|\| | | | | | | | | | | | | | | | | | | | | | | 049867e364 am: 80379f24ec am: 7b0b6677c2 Change-Id: I5c38019d99e6258002fb5017fdf88733b7d1ffe7
| * | Merge "Revert "Correct nullability and final constraints on new APIs.""Tyler Gunn2019-03-041-13/+8
| |\|
| | * Revert "Correct nullability and final constraints on new APIs."Tyler Gunn2019-03-041-13/+8
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit b6940c3ea6779bc6d062a430d9eebe192943f09a. Reason for revert: There appears to be a downstream issue with how the test API definitions are created; until I can figure out how to account for this I'll revert in AOSP (this is in internal master and its fine there). Change-Id: I840c3ed82afa18323408e161913a84858f7a1539
| * | Merge "Correct nullability and final constraints on new APIs."Tyler Gunn2019-03-041-8/+13
| |\|
| | * Correct nullability and final constraints on new APIs.Tyler Gunn2019-03-011-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Per API review, correct nullability and final constraints on new Telecom APIs. Test: Build API. Fixes: 126700293 Fixes: 126699447 Fixes: 126700465 Fixes: 126702895 Fixes: 126702527 Change-Id: Icec15403493de596194a61b27bb3e1031fdc1099 Merged-In: Icec15403493de596194a61b27bb3e1031fdc1099
| * | Expose some APIs as test APIs to facilitate CTSTyler Gunn2019-03-011-0/+8
| |/ | | | | | | | | | | | | Test: added new cts tests Bug: 123896388 Merged-In: I742f23be57e731307338591d816f7888e198b333 Change-Id: I742f23be57e731307338591d816f7888e198b333
| * Populate 'hasKnownUserIntentEmergency'sqian2019-02-131-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | 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)
| * Add nuisance call reporting API to Telecom.Tyler Gunn2019-02-051-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Correct nullability and final constraints on new APIs.Tyler Gunn2019-03-011-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | Per API review, correct nullability and final constraints on new Telecom APIs. Test: Build API. Fixes: 126700293 Fixes: 126699447 Fixes: 126700465 Fixes: 126702895 Fixes: 126702527 Change-Id: Icec15403493de596194a61b27bb3e1031fdc1099
* | Merge "Populate 'hasKnownUserIntentEmergency'"Shuo Qian2019-02-141-0/+13
|\ \
| * | Populate 'hasKnownUserIntentEmergency'sqian2019-02-131-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Expose some APIs as test APIs to facilitate CTS"Tyler Gunn2019-02-111-0/+8
|\ \ \ | |/ / |/| |
| * | Expose some APIs as test APIs to facilitate CTSTyler Gunn2019-02-041-0/+8
| | | | | | | | | | | | | | | | | | Test: added new cts tests Bug: 123896388 Change-Id: I742f23be57e731307338591d816f7888e198b333
* | | Merge "Deprecate acceptRingingCall and endCall." am: 6e3a88a3e2 am: 280019629cTyler Gunn2019-02-011-0/+13
|\ \ \ | |/ / |/| / | |/ | | | | am: 994c17768a Change-Id: I10fee83408de8a1af75555eedf2403dfdbc4b857
| * Deprecate acceptRingingCall and endCall.Tyler Gunn2019-01-311-0/+13
| | | | | | | | | | | | | | | | | | 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
* | Merge "Add nuisance call reporting API to Telecom."Tyler Gunn2019-01-231-0/+27
|\ \
| * | Add nuisance call reporting API to Telecom.Tyler Gunn2019-01-221-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Add get/set user selected outgoing phone account APIs." am: ↵Tyler Gunn2019-01-221-5/+11
|\ \ \ | |/ / |/| / | |/ | | | | | | | | bf10036306 am: 6e7caec9ae am: 5797bc598b Change-Id: Ic1fa374c80d478586bf61956c28eedef2ba5185d
| * Add get/set user selected outgoing phone account APIs.Tyler Gunn2019-01-221-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Add CallerIdentification to CallScreeningService API.Tyler Gunn2019-01-111-73/+4
| | | | | | | | | | | | | | | | | | | | | | 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
| * API: Clean up redundant and ineffective usages of SystemApi and TestApiAdrian Roos2018-12-121-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Add CallerIdentification to CallScreeningService API."Tyler Gunn2018-12-141-73/+7
|\ \
| * | Add CallerIdentification to CallScreeningService API.Tyler Gunn2018-12-121-73/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Fix SDK buildHector Dearman2018-12-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | See ag/5184749 Test: make Exempt-From-Owner-Approval: Build Cop Change-Id: I531364aeeb042b699b2cc2c4ff9b2139e1040cfc
* | | Merge "Enable Telecom to bind third party InCallServices."Youming Ye2018-12-121-3/+6
|\ \ \ | |/ / |/| |
| * | Enable Telecom to bind third party InCallServices.Youming Ye2018-12-111-3/+6
| |/ | | | | | | | | | | | | | | | | | | 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
* / API: Clean up redundant and ineffective usages of SystemApi and TestApiAdrian Roos2018-12-111-2/+0
|/ | | | | | | | | | | | | 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
* Unsupported app usage API cleanupTyler Gunn2018-11-121-11/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* [Call Screening]Programmatically changing the default call screening app.tonyzhu2018-10-301-0/+101
| | | | | | | | | | | | | 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
* Revert "Revert "Telephony light grey list clean up for Q""Chen Xu2018-10-261-1/+1
| | | | | | | | | | | | | | 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