summaryrefslogtreecommitdiff
path: root/telecomm/java/android/telecom/CallScreeningService.java
Commit message (Collapse)AuthorAgeFilesLines
* Add new API for new feature of display name.Grace Jia2021-12-011-2/+3
| | | | | | Bug: 181383364 Test: BlockedNumberProvider test Change-Id: I13c0ea3451b78ce5c7352f1f3fa15a28ae9bfa1f
* Merge "Clarify API docs for setShouldScreenCallViaAudioProcessing." am: ↵Tyler Gunn2021-05-011-1/+1
|\ | | | | | | | | | | | | | | 3b35faf805 am: d076349808 am: beab886f6f Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1692377 Change-Id: If9015713e366e211ba58d571666f307fcde92ac7
| * Clarify API docs for setShouldScreenCallViaAudioProcessing.Tyler Gunn2021-04-301-1/+1
| | | | | | | | | | | | | | | | Make it clear that this is only visible to the system dialer. Test: Build docs Fixes: 186671257 Change-Id: Ia4633d010ab7d48a7bae0afe3bd32bc9f16447d4
| * Remove @TestApi from @SystemApi symbolsAnton Hansson2020-10-191-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 Merged-In: I772790b783b0a8730b8bf680c9e569a886b8d789
* | Add APIs to support call composer filteringHall Liu2021-02-121-13/+118
| | | | | | | | | | | | | | | | | | Add APIs in callscreeningservice to allow the screening service to specify which call composer attachments should be shown to the user. Fixes: 179412110 Test: atest ConnectionServiceTest ExtendedInCallServiceTest Change-Id: Ib7d3213ecda8f612461e6e36375c16261fc5492a
* | Refactor CallScreeningService's internal structureHall Liu2021-02-121-15/+145
| | | | | | | | | | | | | | | | | | | | | | Use a single AIDL method and perform logic in Telecom instead of slicing up the call response on the client side. Also pass through the call response to the connection service. Bug: 179412110 Test: atest ConnectionServiceTest CallScreeningServiceTest Change-Id: I878c0ce34142da104dc0e2795487b03a6bdacb5f
* | 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
* CallScreeningService API docs cleanup.Tyler Gunn2020-10-071-7/+45
| | | | | | | | | Cleanups for call screening service APIs and to provide more clarity for the lifecycle of the service. Fixes: 170286897 Test: make docs ; preview docs genreated. Change-Id: I487b438e39abb83cee1bd050889a6bce164247d7
* Merge "Update audio processing API docs." into rvc-dev am: 04e5ed5223Tyler Gunn2020-05-151-1/+13
|\ | | | | | | Change-Id: Ie0c28b5904df38f59dc6ca528e0269f95d4e54da
| * Update audio processing API docs.Tyler Gunn2020-05-151-1/+13
| | | | | | | | | | | | | | | | | | | | | | Updating the audio processing API docs to mention the fact that the app must indicate in their InCallService and CallScreeningService service entries that the service type is for "microphone" access, otherwise background audio access will not be permitted. Test: Docs only change. Bug: 156042528 Change-Id: I3576dba445497791e6fa4e0a2fa42cf10eb1df5b
* | Add CAPTURE_AUDIO_OUTPUT permission requirementHall Liu2020-01-011-0/+3
|/ | | | | | | | | | Add the CAPTURE_AUDIO_OUTPUT permission requirement annotation to setShouldScreenCallViaAudioProcessing -- this permission is needed to do call screening once the call has been placed into the special state. Fixes: 146563331 Test: atest BackgroundCallAudioTest Change-Id: I8eec1e19c6512d54f39cd9ad63347a2ac0ec2a98
* Merge "Change name of setShouldScreenCallFurther"Hall Liu2019-12-041-12/+13
|\
| * Change name of setShouldScreenCallFurtherHall Liu2019-11-111-12/+13
| | | | | | | | | | | | | | | | | | Change the name of the method to setShouldScreenCallViaAudioProcessing Also remove some commented out lines Fixes: 143564665 Test: CTS Change-Id: Ib163e3dad49ad2301238256339be9bb3ba5fec3a
* | Add response to notify that an outgoing call is screened.Grace Jia2019-11-061-2/+8
|/ | | | | | Test: CTS Bug: 135929421 Change-Id: Ied5076e1ac0dc4aca2e5709b2e817f6a6895c58b
* Add SDK compatibility code for new call statesHall Liu2019-10-111-0/+2
| | | | | | | | | Add code that translates the new call states to old call states for in-call UIs that don't yet support background call screening. Test: CTS Bug: 140317205 Change-Id: I104f5f7ab3e3dc075e1d9ed5c64fcd924f9a977b
* Merge "Add APIs to support background call screening"Hall Liu2019-10-021-2/+40
|\
| * Add APIs to support background call screeningHall Liu2019-10-011-2/+40
| | | | | | | | | | | | | | | | Add Telecom APIs and AIDL code. Test: CTS Bug: 140317205 Change-Id: I99970f5ce12442f307a656db76cb26f5101e6c7f
* | CallScreeningService API changed.Grace Jia2019-09-261-5/+1
|/ | | | | | Test: manual Merged-In: Idf44886158dcebf96e8bdffd98be3621f496deaa Change-Id: Idf44886158dcebf96e8bdffd98be3621f496deaa
* Remove call identification APIs.Tyler Gunn2019-04-011-159/+5
| | | | | | | | Removing the CallIdentification API surface. Test: Build, run tests. Bug: 129531123 Change-Id: I5f1451ffba04ee438df739a17472c028c44f19b2
* Add silence support to CallScreeningService/Call APIUsman Abdullah2019-03-141-2/+32
| | | | | | | | | | Test: CTS Test: Unit Tests Test: Manual Bug: 126590377 Bug: 122671585 Change-Id: I4e7c67784198678eef1926759ec1d8afb98438f4
* Add missing parts for renaming of the call redirection role.Hai Zhang2019-02-071-1/+1
| | | | | | | | Also drops the _APP suffix in role names, to be consistent with other roles. Test: manual Change-Id: Iee3566b353fdf49a916067dfffebcf3d5b87c326
* Add nuisance call reporting API to Telecom.Tyler Gunn2019-01-221-0/+126
| | | | | | | | | | | | | | | | 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
* Call Screening / Caller ID API ChangesTyler Gunn2019-01-081-8/+54
| | | | | | | | | | | | | | | | | | | | | - Fix bug in call identification parcelable; was reversing the app name and package name. - Add @hide RoleManager consts for the Telecom roles; this will be replaced by values in the library for public consumption as a later date. - Add new call direction attribute to the Call.Details class; this is needed so that a CallScreeningService can know if a call is incoming or outgoing. This way it knows whether it needs to perform call blocking or just caller ID. - Update CallScreeningService API docs to explain how to request the call screening role. - Update InCallService API docs to explain the 3 roles related to this service and how you declare an appropriate IncallService to fill each of them. Bug: 63966743 Test: Manual, CTS Change-Id: Ic4547b8ead791690305f7be58e43272c4155b7fb
* Add CallerIdentification to CallScreeningService API.Tyler Gunn2018-12-121-2/+47
| | | | | | | | | | 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
* Update CallScreeningService API docs.Tyler Gunn2018-12-031-5/+20
| | | | | | | | | | | | Cleanup some formatting issues. Update the docs to more clearly indicate what data will be passed to the CallScreeningService about a call. Update the docs to clearly indicate the new behavior for setSkipCallLog with respect to logging of calls. Bug: 63966743 Test: API doc only change; build. Change-Id: I5daeea32f6cfbef1b94105a826925a878ac98596
* [Call Screening]Logging of calls blocked by call blocking feature, call ↵tonyzhu2018-11-081-1/+3
| | | | | | | | | | | | screening app. Add three call log entries, ALL_SCREENING_COMPONENT_NAME, CALL_SCREENING_APP_NAME, BLOCK_REASON, and call block reasons. Add new parameter to get the package name and component name of the implementation of CallScreenService.java. Bug: 113243596 Test: Build pass Change-Id: I63debd80d7f4a92278fdbb84b64ff1199591349c
* Make CallScreening.CallResponse staticSailesh Nepal2016-01-271-2/+2
| | | | | | | A small mistake in my previous CL. The response object needs to be static. Change-Id: Idf9bca7a7076275f53475c2531090f406daecab9
* Add new public API to allow call screeningSailesh Nepal2016-01-271-0/+239
This CL adds a new service that the default dialer can implement to screen incoming calls. If the service is implemented then Telecom uses it to decide if a call should be shown to the user or rejected. Note, I initially tried to simply extend InCallService instead of creating a whole new service. The problem with this approach is that: - this breaks some in call services which show UI as soon as they are bound to - the in call service lifecycle is tightly coupled to adding and removing calls. Call screening happens before a call is added which makes it a bad fit to in call service - call screening is a function of only the default dialer's in call service but the existing code also binds to "controller" call services For these reasons it seemed simpler to just create a new optional service. BUG: 22857261 Change-Id: I53f2ef93360e0af19b6ce45af21026be6cf3a7f3