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

Commit ed40c750 authored by Yashdev Singh's avatar Yashdev Singh Committed by Steve Kondik
Browse files

Telephony: Implementation for IWLAN.

- Introduce new RAT as IWLAN.
- Allow MDST to enable non-default APN availability when radio is off.

CRs-Fixed: 600118
Change-Id: Ifc9a0928cbda1d89a95d27a276a20a2d8e1cc8ca
parent 313eb858
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -476,6 +476,7 @@ public class MobileDataStateTracker extends BaseNetworkStateTracker {
            networkTypeStr = "iden";
            break;
        case TelephonyManager.NETWORK_TYPE_LTE:
        case TelephonyManager.NETWORK_TYPE_IWLAN:
            networkTypeStr = "lte";
            break;
        case TelephonyManager.NETWORK_TYPE_EHRPD:
+4 −0
Original line number Diff line number Diff line
@@ -1482,4 +1482,8 @@
    <!-- Configuration to set delete any partial segments expire age -->
    <!-- 30 days by default (60 * 60 * 1000) * 24 * 30 , no long so use string-->
    <string name="config_partial_segment_expire_age">2592000000</string>

    <!-- Configuration to enable non-default PDP during IWLAN -->
    <bool name="config_feature_iwlan_enabled">false</bool>

</resources>
+1 −0
Original line number Diff line number Diff line
@@ -294,6 +294,7 @@
  <java-symbol type="bool" name="config_radio_reset_on_regular_deactivation" />
  <java-symbol type="bool" name="config_send_sms1x_on_voice_call" />
  <java-symbol type="bool" name="config_ascii_7bit_support_for_long_message" />
  <java-symbol type="bool" name="config_feature_iwlan_enabled" />

  <java-symbol type="integer" name="config_cursorWindowSize" />
  <java-symbol type="integer" name="config_extraFreeKbytesAdjust" />
+10 −2
Original line number Diff line number Diff line
@@ -153,7 +153,11 @@ public class ServiceState implements Parcelable {
     * @hide
     */
    public static final int RIL_RADIO_TECHNOLOGY_TD_SCDMA = 17;

    /**
     * IWLAN
     * @hide
     */
    public static final int RIL_RADIO_TECHNOLOGY_IWLAN = 18;
    /**
     * Available registration states for GSM, UMTS and CDMA.
     */
@@ -544,6 +548,9 @@ public class ServiceState implements Parcelable {
            case RIL_RADIO_TECHNOLOGY_TD_SCDMA:
                rtString = "TD-SCDMA";
                break;
            case RIL_RADIO_TECHNOLOGY_IWLAN:
                rtString = "IWLAN";
                break;
            default:
                rtString = "Unexpected";
                Rlog.w(LOG_TAG, "Unexpected radioTechnology=" + rt);
@@ -864,7 +871,8 @@ public class ServiceState implements Parcelable {
                || radioTechnology == RIL_RADIO_TECHNOLOGY_HSPAP
                || radioTechnology == RIL_RADIO_TECHNOLOGY_DCHSPAP
                || radioTechnology == RIL_RADIO_TECHNOLOGY_GSM
                || radioTechnology == RIL_RADIO_TECHNOLOGY_TD_SCDMA;
                || radioTechnology == RIL_RADIO_TECHNOLOGY_TD_SCDMA
                || radioTechnology == RIL_RADIO_TECHNOLOGY_IWLAN;
    }

    /** @hide */
+5 −1
Original line number Diff line number Diff line
@@ -669,7 +669,8 @@ public class TelephonyManager {
    public static final int NETWORK_TYPE_GSM = 16;
    /** Current network is TD_SCDMA {@hide} */
    public static final int NETWORK_TYPE_TD_SCDMA = 17;

    /** Current network is IWLAN {@hide} */
    public static final int NETWORK_TYPE_IWLAN = 18;

    /**
     * @return the NETWORK_TYPE_xxxx for current data connection.
@@ -791,6 +792,7 @@ public class TelephonyManager {
            case NETWORK_TYPE_TD_SCDMA:
                return NETWORK_CLASS_3_G;
            case NETWORK_TYPE_LTE:
            case NETWORK_TYPE_IWLAN:
                return NETWORK_CLASS_4_G;
            default:
                return NETWORK_CLASS_UNKNOWN;
@@ -845,6 +847,8 @@ public class TelephonyManager {
                return "GSM";
            case NETWORK_TYPE_TD_SCDMA:
                return "TD-SCDMA";
            case NETWORK_TYPE_IWLAN:
                return "IWLAN";
            default:
                return "UNKNOWN";
        }
Loading