diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2021-05-21 03:41:41 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2021-05-21 03:41:41 +0000 |
commit | 9e18139343dc3f322c0efd1108f06b13c62cb15f (patch) | |
tree | 9b97d8bf0da5ab063ed0cf8f9a03c23204875c65 /telephony/java | |
parent | f369d35b27716363011640b8c56b742b55b4509e (diff) | |
parent | 2c2ae557596a2942fbcba7aa9df2e0d9b1f8eb61 (diff) |
Merge "Add another OptionsBuilder constructor with the source type as one of its parameter." into sc-dev
Diffstat (limited to 'telephony/java')
-rw-r--r-- | telephony/java/android/telephony/ims/RcsContactUceCapability.java | 12 |
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 |