diff options
author | James.cf Lin <jamescflin@google.com> | 2021-05-19 23:10:30 +0800 |
---|---|---|
committer | James.cf Lin <jamescflin@google.com> | 2021-05-19 23:11:40 +0800 |
commit | 2c2ae557596a2942fbcba7aa9df2e0d9b1f8eb61 (patch) | |
tree | 25ee70e1cc6a1716638e6042987fe6d913e97514 /telephony/java | |
parent | eea27600d3ed6678035b05da6b661e7f8799ef6f (diff) |
Add another OptionsBuilder constructor with the source type as one of its parameter.
Bug: 187620915
Test: atest RcsUceAdapterTest ImsServiceTest
Change-Id: I74c69800125f8c4a243e80ed47c5134eda8d5a78
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 |