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

Commit dda3d6df authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 11220357 from 05d8a25f to 24Q1-release

Change-Id: Ic91f805dc3a578bad764fcd28904928e0ff893b2
parents bebde2f3 05d8a25f
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -50,13 +50,6 @@ flag {
  bug: "310594186"
}

flag {
  name: "load_dds_on_create"
  namespace: "telephony"
  description: "Load default data subid on create in PhoneGlobals."
  bug: "310591561"
}

flag {
  name: "enable_telephony_analytics"
  namespace: "telephony"
+8 −1
Original line number Diff line number Diff line
@@ -6,3 +6,10 @@ flag {
    description: "This flag controls telephony feature flags mapping."
    bug:"297989574"
}

flag {
    name: "enforce_telephony_feature_mapping_for_public_apis"
    namespace: "telephony"
    description: "This flag controls telephony feature flags mapping for public APIs and CTS."
    bug:"297989574"
}
+6 −0
Original line number Diff line number Diff line
@@ -12,3 +12,9 @@ flag {
    description: "This flag controls to download the IMSI encryption keys after user unlocks the phone."
    bug:"303780982"
}
flag {
    name: "carrier_restriction_status"
    namespace: "telephony"
    description: "This flag control the visibility of the getCarrierRestrictionStatus in carrierRestrictionRules class."
    bug:"313553044"
}
 No newline at end of file
+33 −0
Original line number Diff line number Diff line
@@ -16,6 +16,9 @@

package com.android.internal.telephony.data;

import static android.telephony.data.ApnSetting.INFRASTRUCTURE_CELLULAR;
import static android.telephony.data.ApnSetting.INFRASTRUCTURE_SATELLITE;

import static junit.framework.Assert.assertFalse;
import static junit.framework.Assert.assertTrue;
import static junit.framework.Assert.fail;
@@ -381,4 +384,34 @@ public class ApnSettingTest extends TelephonyTest {
                .build();
        assertEquals("proxy.mobile.att.net", apn3.getMmsProxyAddressAsString());
    }

    @Test
    public void testBuild_InfrastructureBitmask() {
        int infrastructureBitmask = INFRASTRUCTURE_CELLULAR | INFRASTRUCTURE_SATELLITE;
        ApnSetting apn1 = new ApnSetting.Builder()
                .setId(1234)
                .setOperatorNumeric("310260")
                .setEntryName("mms")
                .setApnName("mms")
                .setApnTypeBitmask(ApnSetting.TYPE_MMS | ApnSetting.TYPE_DEFAULT)
                .setProtocol(ApnSetting.PROTOCOL_IPV4V6)
                .setNetworkTypeBitmask((int) (TelephonyManager.NETWORK_TYPE_BITMASK_LTE))
                .build();
        // InfrastructureBitmask default value set to '3(cellular|satellite)'
        assertEquals(infrastructureBitmask, apn1.getInfrastructureBitmask());

        infrastructureBitmask = INFRASTRUCTURE_CELLULAR;
        ApnSetting apn2 = new ApnSetting.Builder()
                .setId(1235)
                .setOperatorNumeric("310260")
                .setEntryName("mms")
                .setApnName("mms")
                .setApnTypeBitmask(ApnSetting.TYPE_MMS | ApnSetting.TYPE_DEFAULT)
                .setProtocol(ApnSetting.PROTOCOL_IPV4V6)
                .setNetworkTypeBitmask((int) (TelephonyManager.NETWORK_TYPE_BITMASK_LTE))
                .setInfrastructureBitmask(infrastructureBitmask)
                .build();
        // InfrastructureBitmask value set to '1(cellular)'
        assertEquals(infrastructureBitmask, apn2.getInfrastructureBitmask());
    }
}
+7 −0
Original line number Diff line number Diff line
@@ -1611,6 +1611,7 @@ public class DataProfileManagerTest extends TelephonyTest {
                                | TelephonyManager.NETWORK_TYPE_BITMASK_NR))
                        .setMvnoMatchData("")
                        .setApnSetId(DEFAULT_APN_SET_ID)
                        .setInfrastructureBitmask(1)
                        .build())
                .build();

@@ -1646,6 +1647,7 @@ public class DataProfileManagerTest extends TelephonyTest {
                        .setNetworkTypeBitmask((int) (TelephonyManager.NETWORK_TYPE_BITMASK_NR))
                        .setMvnoMatchData("")
                        .setApnSetId(DEFAULT_APN_SET_ID)
                        .setInfrastructureBitmask(1)
                        .build())
                .build();

@@ -1674,6 +1676,7 @@ public class DataProfileManagerTest extends TelephonyTest {
                                | TelephonyManager.NETWORK_TYPE_BITMASK_NR))
                        .setMvnoMatchData("")
                        .setApnSetId(APN_SET_ID_1)
                        .setInfrastructureBitmask(1)
                        .build())
                .build();

@@ -1702,6 +1705,7 @@ public class DataProfileManagerTest extends TelephonyTest {
                                | TelephonyManager.NETWORK_TYPE_BITMASK_NR))
                        .setMvnoMatchData("")
                        .setApnSetId(MATCH_ALL_APN_SET_ID)
                        .setInfrastructureBitmask(1)
                        .build())
                .build();

@@ -1737,6 +1741,7 @@ public class DataProfileManagerTest extends TelephonyTest {
                                | TelephonyManager.NETWORK_TYPE_BITMASK_NR))
                        .setMvnoMatchData("")
                        .setApnSetId(APN_SET_ID_1)
                        .setInfrastructureBitmask(1)
                        .build())
                .build();

@@ -1765,6 +1770,7 @@ public class DataProfileManagerTest extends TelephonyTest {
                        .setNetworkTypeBitmask((int) (TelephonyManager.NETWORK_TYPE_BITMASK_NR))
                        .setMvnoMatchData("")
                        .setApnSetId(DEFAULT_APN_SET_ID)
                        .setInfrastructureBitmask(1)
                        .build())
                .build();

@@ -1793,6 +1799,7 @@ public class DataProfileManagerTest extends TelephonyTest {
                                | TelephonyManager.NETWORK_TYPE_BITMASK_NR))
                        .setMvnoMatchData("")
                        .setApnSetId(MATCH_ALL_APN_SET_ID)
                        .setInfrastructureBitmask(1)
                        .build())
                .build();