Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 201c657c authored by Hui Wang's avatar Hui Wang
Browse files

Process rcsVolteSingleRegistration if it is not provided or roaming

Bug: 186884505
Test: atest TeleServiceTests:com.android.phone.RcsProvisioningMonitorTest
Test: atest FrameworksTelephonyTests:com.telephony.ims.RcsConfigTest
Change-Id: I0a33b4aaf2fb19cc93e449ccbecda1cc7b689e86
parent 155a9824
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -277,14 +277,17 @@ public final class RcsConfigTest {
    @Test
    @SmallTest
    public void testIsRcsVolteSingleRegistrationSupported() {
        String[] vals = new String[]{"0", "1", "false", "true"};
        boolean[] expectedRes = new boolean[]{false, true, false, true};
        String[] vals = new String[]{"0", "1", "2"};
        boolean[] expectedResHome = new boolean[]{false, true, true};
        boolean[] expectedResRoaming = new boolean[]{false, true, false};
        for (int i = 0; i < vals.length; i++) {
            String xml = "\t\t\t\t<characteristic type=\"GSMA\">\n"
                    + "\t\t\t\t\t<parm name=\"rcsVolteSingleRegistration\" value=\""
                    + vals[i] + "\"/>\n" + "\t\t\t\t</characteristic>\n";
            RcsConfig config = new RcsConfig(xml.getBytes());
            assertEquals(config.isRcsVolteSingleRegistrationSupported(), expectedRes[i]);
            assertEquals(config.isRcsVolteSingleRegistrationSupported(false), expectedResHome[i]);
            assertEquals(config.isRcsVolteSingleRegistrationSupported(true),
                    expectedResRoaming[i]);
        }
    }