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

Commit 83cd2aee authored by Ling Ma's avatar Ling Ma
Browse files

Add satellite_roaming_turn_off_for_emergency_call_bool

For carrier roaming satellite case, the config determines whether to end satellite session to allow emergency call, if the session yet to estbalish any communication.

Bug: 350399866
Test: integration test for skylo and TMO attachment
Flag: com.android.internal.telephony.flags.carrier_roaming_nb_iot_ntn
Change-Id: I8241dcd12411c3586f1d288ffbbe676af762fe21
parent 9a20ed86
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -10002,6 +10002,19 @@ public class CarrierConfigManager {
    public static final String KEY_SATELLITE_NIDD_APN_NAME_STRING =
            "satellite_nidd_apn_name_string";
    /**
     * Default value {@code true}, meaning when an emergency call request comes in, if the device is
     * in emergency satellite mode but hasn't sent the first satellite datagram, then exits
     * satellite mode to allow the emergency call to go through.
     *
     * If {@code false}, the emergency call is always blocked if device is in emergency satellite
     * mode. Note if device is NOT in emergency satellite mode, emergency call is always allowed.
     *
     * @hide
     */
    public static final String KEY_SATELLITE_ROAMING_TURN_OFF_SESSION_FOR_EMERGENCY_CALL_BOOL =
            "satellite_roaming_turn_off_session_for_emergency_call_bool";
    /** @hide */
    @IntDef({
            CARRIER_ROAMING_NTN_CONNECT_AUTOMATIC,
@@ -11235,6 +11248,7 @@ public class CarrierConfigManager {
                (int) TimeUnit.SECONDS.toMillis(30));
        sDefaults.putBoolean(KEY_SATELLITE_ESOS_SUPPORTED_BOOL, false);
        sDefaults.putString(KEY_SATELLITE_NIDD_APN_NAME_STRING, "");
        sDefaults.putBoolean(KEY_SATELLITE_ROAMING_TURN_OFF_SESSION_FOR_EMERGENCY_CALL_BOOL, true);
        sDefaults.putInt(KEY_CARRIER_ROAMING_NTN_CONNECT_TYPE_INT, 0);
        sDefaults.putInt(KEY_CARRIER_ROAMING_NTN_EMERGENCY_CALL_TO_SATELLITE_HANDOVER_TYPE_INT,
                SatelliteManager.EMERGENCY_CALL_TO_SATELLITE_HANDOVER_TYPE_T911);