diff options
| author | 2021-04-07 02:48:41 +0000 | |
|---|---|---|
| committer | 2021-04-07 02:48:41 +0000 | |
| commit | 9afeed433d529a9ba0431cd184b49162d0ae286c (patch) | |
| tree | fe213fc96f02f8aeb1d9282e72dc15db694d6948 | |
| parent | 2c862461e0a898ac37beab6040503dc1464e5f08 (diff) | |
| parent | a5d2fa58a8466446cbe2675ea90d9d76a5567dbf (diff) | |
Merge "isRcsVolteSingleRegistrationCapable need check provisioning status." am: e92c4e2d6f am: f473395dd1 am: a5d2fa58a8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1665801
Change-Id: If2c4c9f550af1ac3ca3631a12eaa6e9ddfc4390f
| -rw-r--r-- | telephony/java/android/telephony/ims/RcsConfig.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/ims/RcsConfig.java b/telephony/java/android/telephony/ims/RcsConfig.java index 07e95cc99290..8a3121118fde 100644 --- a/telephony/java/android/telephony/ims/RcsConfig.java +++ b/telephony/java/android/telephony/ims/RcsConfig.java @@ -48,6 +48,9 @@ public final class RcsConfig implements Parcelable { private static final String LOG_TAG = "RcsConfig"; private static final boolean DBG = Build.IS_ENG; + // Tag for Rcs Volte single registration defined in RCC.07 A.1.6.2 + private static final String TAG_SINGLE_REGISTRATION = "rcsVolteSingleRegistration"; + private final HashMap<String, String> mValues = new HashMap<>(); private RcsConfig(HashMap<String, String> values) { @@ -145,6 +148,14 @@ public final class RcsConfig implements Parcelable { return mValues.containsKey(tag); } + /** + * Check whether Rcs Volte single registration is supported by the config. + */ + public boolean isRcsVolteSingleRegistrationSupported() { + return getBoolean(TAG_SINGLE_REGISTRATION, false) + || getInteger(TAG_SINGLE_REGISTRATION, 0) != 0; + } + @Override public String toString() { final StringBuilder sb = new StringBuilder(); |