isRcsVolteSingleRegistrationCapable need check provisioning status.

Bug: 181986114
Test: atest TeleServiceTests:RcsProvisioningMonitorTest
Test: atest FrameworksTelephonyTests:com.telephony.ims.RcsConfigTest
Test: atest CtsTelephonyTestCases:android.telephony.ims.cts.ImsServiceTest
Change-Id: I8006910b57a02bb71691f1a8ce03aba6f89fd5c3
This commit is contained in:
Hui Wang
2021-04-06 19:02:44 +00:00
parent a997cf4420
commit 831c860514

View File

@@ -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();