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

Commit 65e1615e authored by Etan Cohen's avatar Etan Cohen
Browse files

[Provider Model] Carrier configurations to allow CWF configurations

Add a Carrier Configuration which indicates that the carrier will
configure Carrier Wi-Fi offload networks.

Bug: 181277417
Test: atest com.android.server.wifi
Test: atest android.net.wifi
Change-Id: I7308ab465a5de34f103e20c4f7f974114d5dbb1f
parent e1ca2891
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -40367,6 +40367,7 @@ package android.telephony {
    field public static final String KEY_CARRIER_NAME_OVERRIDE_BOOL = "carrier_name_override_bool";
    field public static final String KEY_CARRIER_NAME_STRING = "carrier_name_string";
    field public static final String KEY_CARRIER_NR_AVAILABILITY_INT = "carrier_nr_availability_int";
    field public static final String KEY_CARRIER_PROVISIONS_WIFI_MERGED_NETWORKS_BOOL = "carrier_provisions_wifi_merged_networks_bool";
    field public static final String KEY_CARRIER_RCS_PROVISIONING_REQUIRED_BOOL = "carrier_rcs_provisioning_required_bool";
    field public static final String KEY_CARRIER_SETTINGS_ACTIVITY_COMPONENT_NAME_STRING = "carrier_settings_activity_component_name_string";
    field public static final String KEY_CARRIER_SETTINGS_ENABLE_BOOL = "carrier_settings_enable_bool";
+11 −0
Original line number Diff line number Diff line
@@ -4854,6 +4854,16 @@ public class CarrierConfigManager {
    public static final String KEY_ALLOWED_INITIAL_ATTACH_APN_TYPES_STRING_ARRAY =
            "allowed_initial_attach_apn_types_string_array";

    /**
     * Indicates whether or not the carrier will provision merged carrier Wi-Fi offload networks.
     * Such networks are considered part of the core carrier network.
     *
     * This configuration will be use to gate whether such configurations are allowed to the carrier
     * and correspondingly enable UI elements which are required for such configurations.
     */
    public static final String KEY_CARRIER_PROVISIONS_WIFI_MERGED_NETWORKS_BOOL =
            "carrier_provisions_wifi_merged_networks_bool";

    /** The default value for every variable. */
    private final static PersistableBundle sDefaults;

@@ -5417,6 +5427,7 @@ public class CarrierConfigManager {
        sDefaults.putBoolean(KEY_HIDE_ENABLE_2G, false);
        sDefaults.putStringArray(KEY_ALLOWED_INITIAL_ATTACH_APN_TYPES_STRING_ARRAY,
                new String[]{"ia", "default", "ims", "mms", "dun", "emergency"});
        sDefaults.putBoolean(KEY_CARRIER_PROVISIONS_WIFI_MERGED_NETWORKS_BOOL, false);
    }

    /**