Merge "isRcsVolteSingleRegistrationCapable need check provisioning status." am: e92c4e2d6f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1665801 Change-Id: I636d10dfeb1c7f030ef5c6548de21b845a4dfd4a
This commit is contained in:
@@ -48,6 +48,9 @@ public final class RcsConfig implements Parcelable {
|
|||||||
private static final String LOG_TAG = "RcsConfig";
|
private static final String LOG_TAG = "RcsConfig";
|
||||||
private static final boolean DBG = Build.IS_ENG;
|
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 final HashMap<String, String> mValues = new HashMap<>();
|
||||||
|
|
||||||
private RcsConfig(HashMap<String, String> values) {
|
private RcsConfig(HashMap<String, String> values) {
|
||||||
@@ -145,6 +148,14 @@ public final class RcsConfig implements Parcelable {
|
|||||||
return mValues.containsKey(tag);
|
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
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
final StringBuilder sb = new StringBuilder();
|
final StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
Reference in New Issue
Block a user