diff options
| author | 2021-05-19 23:10:30 +0800 | |
|---|---|---|
| committer | 2021-05-21 20:32:44 +0800 | |
| commit | 3a2c53106ad15f665f647859fec9cd29adefe1d8 (patch) | |
| tree | 7cbdc89b25212c7502e0ad90ab2a2b7f27405703 | |
| parent | d4a99869a8a6226a98b8f5ae7c42ea167c16e9db (diff) | |
Add another OptionsBuilder constructor with the source type as one of its parameter.
Bug: 187620915
Test: atest RcsUceAdapterTest ImsServiceTest
Merged-In: I74c69800125f8c4a243e80ed47c5134eda8d5a78
Change-Id: I74c69800125f8c4a243e80ed47c5134eda8d5a78
| -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 |