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

Commit 425a1ffb authored by Hui Wang's avatar Hui Wang Committed by Automerger Merge Worker
Browse files

Merge "isRcsVolteSingleRegistrationCapable need check provisioning status." am: bab5dcdd

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

Change-Id: Ifeb6979c8a9653ede77662c2fc3a20ecebcf0e30
parents 63da3d86 bab5dcdd
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";