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

Commit 2d0c7bca authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "[VCN19.1] Rename get/setSubIds to get/setSubscriptionIds"

parents e9b54543 c1c2d184
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1853,7 +1853,7 @@ public class DataConnection extends StateMachine {

        builder.setNetworkSpecifier(new TelephonyNetworkSpecifier.Builder()
                .setSubscriptionId(mSubId).build());
        builder.setSubIds(Collections.singleton(mSubId));
        builder.setSubscriptionIds(Collections.singleton(mSubId));

        if (!mPhone.getServiceState().getDataRoaming()) {
            builder.addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING);
+2 −2
Original line number Diff line number Diff line
@@ -826,13 +826,13 @@ public class DataConnectionTest extends TelephonyTest {
    }

    @Test
    public void testSubIds() throws Exception {
    public void testSubscriptionIds() throws Exception {
        mContextFixture.getCarrierConfigBundle().putStringArray(
                CarrierConfigManager.KEY_CARRIER_METERED_APN_TYPES_STRINGS,
                new String[] { "default" });
        testConnectEvent();

        assertEquals(Collections.singleton(0), getNetworkCapabilities().getSubIds());
        assertEquals(Collections.singleton(0), getNetworkCapabilities().getSubscriptionIds());
    }

    @Test