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

Commit d59d93d0 authored by Jack Yu's avatar Jack Yu Committed by Automerger Merge Worker
Browse files

Merge "Supported UNKNOWN in IWLAN handover rule" into tm-d1-dev am: 2c6ac09b

parents f5b0a3e3 2c6ac09b
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -115,6 +115,7 @@ public final class AccessNetworkConstants {
        /** @hide */
        public static @RadioAccessNetworkType int fromString(@NonNull String str) {
            switch (str.toUpperCase()) {
                case "UNKNOWN": return UNKNOWN;
                case "GERAN": return GERAN;
                case "UTRAN": return UTRAN;
                case "EUTRAN": return EUTRAN;
@@ -122,8 +123,7 @@ public final class AccessNetworkConstants {
                case "IWLAN": return IWLAN;
                case "NGRAN": return NGRAN;
                default:
                    Rlog.e(TAG, "Invalid access network type " + str);
                    return UNKNOWN;
                    throw new IllegalArgumentException("Invalid access network type " + str);
            }
        }
    }
+7 −0
Original line number Diff line number Diff line
@@ -8550,6 +8550,13 @@ public class CarrierConfigManager {
     * IWLAN handover rules that determine whether handover is allowed or disallowed between
     * cellular and IWLAN.
     *
     * Rule syntax: "source=[GERAN|UTRAN|EUTRAN|NGRAN|IWLAN|UNKNOWN], target=[GERAN|UTRAN|EUTRAN
     * |NGRAN|IWLAN], type=[allowed|disallowed], roaming=[true|false], capabilities=[INTERNET|MMS
     * |FOTA|IMS|CBS|SUPL|EIMS|XCAP|DUN]"
     *
     * Note that UNKNOWN can be only specified in the source access network and can be only used
     * in the disallowed rule.
     *
     * The handover rules will be matched in the order. Here are some sample rules.
     * <string-array name="iwlan_handover_rules" num="5">
     *     <!-- Handover from IWLAN to 2G/3G is not allowed -->