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

Commit 0b9b53fd authored by Hui Wang's avatar Hui Wang Committed by Automerger Merge Worker
Browse files

Merge "isRcsVolteSingleRegistrationCapable need check provisioning status."...

Merge "isRcsVolteSingleRegistrationCapable need check provisioning status." am: bab5dcdd am: 425a1ffb am: 36cbe162

Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/1665724

Change-Id: I5417f058f953f21d2e48b984043410ea990b039d
parents 1d196753 36cbe162
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -144,6 +144,19 @@ public final class RcsConfigTest {
        assertTrue(config.equals(config2));
    }

    @Test
    @SmallTest
    public void testIsRcsVolteSingleRegistrationSupported() {
        String[] vals = new String[]{"0", "1", "false", "true"};
        boolean[] expectedRes = new boolean[]{false, true, false, true};
        for (int i = 0; i < vals.length; i++) {
            String xml = "<RCSConfig>\n" + "\t<rcsVolteSingleRegistration>" + vals[i]
                    + "</rcsVolteSingleRegistration>\n" + "</RCSConfig>\n";
            RcsConfig config = new RcsConfig(xml.getBytes());
            assertEquals(config.isRcsVolteSingleRegistrationSupported(), expectedRes[i]);
        }
    }

    private void createFakeSimInfo() {
        ContentValues contentValues = new ContentValues();
        final String fakeIccId = "fakeleIccId";