summaryrefslogtreecommitdiff
path: root/telephony/java/android
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2021-05-21 03:41:41 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2021-05-21 03:41:41 +0000
commit9e18139343dc3f322c0efd1108f06b13c62cb15f (patch)
tree9b97d8bf0da5ab063ed0cf8f9a03c23204875c65 /telephony/java/android
parentf369d35b27716363011640b8c56b742b55b4509e (diff)
parent2c2ae557596a2942fbcba7aa9df2e0d9b1f8eb61 (diff)
Merge "Add another OptionsBuilder constructor with the source type as one of its parameter." into sc-dev
Diffstat (limited to 'telephony/java/android')
-rw-r--r--telephony/java/android/telephony/ims/RcsContactUceCapability.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/ims/RcsContactUceCapability.java b/telephony/java/android/telephony/ims/RcsContactUceCapability.java
index acfa13380948..530003d6350a 100644
--- a/telephony/java/android/telephony/ims/RcsContactUceCapability.java
+++ b/telephony/java/android/telephony/ims/RcsContactUceCapability.java
@@ -128,6 +128,18 @@ public final class RcsContactUceCapability implements Parcelable {
}
/**
+ * Create the Builder, which can be used to set UCE capabilities as well as custom
+ * capability extensions.
+ * @param contact The contact URI that the capabilities are attached to.
+ * @param sourceType The type where the capabilities of this contact were retrieved from.
+ * @hide
+ */
+ public OptionsBuilder(@NonNull Uri contact, @SourceType int sourceType) {
+ mCapabilities = new RcsContactUceCapability(contact, CAPABILITY_MECHANISM_OPTIONS,
+ sourceType);
+ }
+
+ /**
* Set the result of the capabilities request.
* @param requestResult the request result
* @return this OptionBuilder