diff options
author | Hall Liu <hallliu@google.com> | 2021-02-04 13:09:45 -0800 |
---|---|---|
committer | Hall Liu <hallliu@google.com> | 2021-02-12 14:04:10 -0800 |
commit | 5efe99753969b0f4991e05830c4f6cc26bd1c2e1 (patch) | |
tree | b125257091f7ae96bc90adc06c264f8809fbc176 /telecomm/java/android/telecom/Connection.java | |
parent | 191b3b9db547b603b636aa3a9ce4db672401952e (diff) |
Refactor CallScreeningService's internal structure
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
Diffstat (limited to 'telecomm/java/android/telecom/Connection.java')
-rw-r--r-- | telecomm/java/android/telecom/Connection.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/telecomm/java/android/telecom/Connection.java b/telecomm/java/android/telecom/Connection.java index 089a948b6e55..942a54eb98ba 100644 --- a/telecomm/java/android/telecom/Connection.java +++ b/telecomm/java/android/telecom/Connection.java @@ -3390,11 +3390,20 @@ public abstract class Connection extends Conferenceable { * {@code true}, {@link #onDisconnect()} will be called soon after * this is called. * @param isInContacts Indicates whether the caller is in the user's contacts list. + * @param callScreeningResponse The response that was returned from the + * {@link CallScreeningService} that handled this call. If no + * response was received from a call screening service, + * this will be {@code null}. + * @param isResponseFromSystemDialer Whether {@code callScreeningResponse} was sent from the + * system dialer. If {@code callScreeningResponse} is + * {@code null}, this will be {@code false}. * @hide */ @SystemApi @RequiresPermission(Manifest.permission.READ_CONTACTS) - public void onCallFilteringCompleted(boolean isBlocked, boolean isInContacts) { } + public void onCallFilteringCompleted(boolean isBlocked, boolean isInContacts, + @Nullable CallScreeningService.CallResponse callScreeningResponse, + boolean isResponseFromSystemDialer) { } static String toLogSafePhoneNumber(String number) { // For unknown number, log empty string. |