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

Commit 7e47f391 authored by Jimmy Chen's avatar Jimmy Chen
Browse files

Wifi: define carrier config for IMS deregistration wifi off deferring time

Deferring time depends on the carrier requirement.

Bug: 142750916
Test: N/A
Change-Id: I102d255bac9d36abed2c5792310082a97ab5fcfc
parent 227f7799
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -45153,6 +45153,7 @@ package android.telephony {
  public static final class CarrierConfigManager.Ims {
    field public static final String KEY_PREFIX = "ims.";
    field public static final String KEY_WIFI_OFF_DEFERRING_TIME_INT = "ims.wifi_off_deferring_time_int";
  }
  public abstract class CellIdentity implements android.os.Parcelable {
+6 −1
Original line number Diff line number Diff line
@@ -3399,12 +3399,17 @@ public class CarrierConfigManager {
        /** Prefix of all Ims.KEY_* constants. */
        public static final String KEY_PREFIX = "ims.";

        //TODO: Add configs related to IMS.
        /**
         * Delay in milliseconds to turn off wifi when IMS is registered over wifi.
         */
        public static final String KEY_WIFI_OFF_DEFERRING_TIME_INT =
                KEY_PREFIX + "wifi_off_deferring_time_int";

        private Ims() {}

        private static PersistableBundle getDefaults() {
            PersistableBundle defaults = new PersistableBundle();
            defaults.putInt(KEY_WIFI_OFF_DEFERRING_TIME_INT, 0);
            return defaults;
        }
    }