summaryrefslogtreecommitdiff
path: root/telephony
diff options
context:
space:
mode:
authorJames.cf Lin <jamescflin@google.com>2021-02-24 15:20:44 +0800
committerJames.cf Lin <jamescflin@google.com>2021-02-24 15:20:44 +0800
commit12b5644a43063c28b45b0100b3629975047f3b05 (patch)
treecf5c3e278ebbd8f476701bfd21a1c3387ab7e28f /telephony
parent6faddabeb7c80744694f59136a5189d4c0464df9 (diff)
Update the UCE OPTIONS API
Change the UCE OPTIONS api from "OptionsRequestCallback#onRespondToCapabilityRequest(RcsContactUceCapability caps)" to "OptionsRequestCallback#onRespondToCapabilityRequest(RcsContactUceCapability caps, boolean isBlocked)" Bug: 180619695 Test: atest -c CtsTelephonyTestCases:android.telephony.ims.cts.RcsUceAdapterTest Change-Id: I7ef0bc7142079b4bf2645f09ca710a13530a10c0
Diffstat (limited to 'telephony')
-rw-r--r--telephony/java/android/telephony/ims/stub/CapabilityExchangeEventListener.java23
1 files changed, 2 insertions, 21 deletions
diff --git a/telephony/java/android/telephony/ims/stub/CapabilityExchangeEventListener.java b/telephony/java/android/telephony/ims/stub/CapabilityExchangeEventListener.java
index 4967e5da7c9a..62955487897f 100644
--- a/telephony/java/android/telephony/ims/stub/CapabilityExchangeEventListener.java
+++ b/telephony/java/android/telephony/ims/stub/CapabilityExchangeEventListener.java
@@ -25,7 +25,6 @@ import android.telephony.ims.RcsContactUceCapability;
import android.telephony.ims.RcsUceAdapter;
import android.telephony.ims.feature.ImsFeature;
import android.telephony.ims.feature.RcsFeature;
-import android.util.Log;
import java.util.List;
@@ -44,30 +43,12 @@ public interface CapabilityExchangeEventListener {
* Respond to a remote capability request from the contact specified with the
* capabilities of this device.
* @param ownCapabilities The capabilities of this device.
- * @hide
- */
- default void onRespondToCapabilityRequest(
- @NonNull RcsContactUceCapability ownCapabilities) {}
-
- /**
- * Respond to a remote capability request from the contact specified with the
- * capabilities of this device.
- * @param ownCapabilities The capabilities of this device.
* @param isBlocked Whether or not the user has blocked the number requesting the
* capabilities of this device. If true, the device should respond to the OPTIONS
* request with a 200 OK response and no capabilities.
*/
- default void onRespondToCapabilityRequest(@NonNull RcsContactUceCapability ownCapabilities,
- boolean isBlocked) {
- Log.w("CapabilityExchangeEventListener", "implement "
- + "onRespondToCapabilityRequest(RcsContactUceCapability, boolean) instead!");
- // Fall back to old implementation
- if (isBlocked) {
- onRespondToCapabilityRequestWithError(200, "OK");
- } else {
- onRespondToCapabilityRequest(ownCapabilities);
- }
- }
+ void onRespondToCapabilityRequest(@NonNull RcsContactUceCapability ownCapabilities,
+ boolean isBlocked);
/**
* Respond to a remote capability request from the contact specified with the