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

Commit 0a5174a6 authored by Naveen Kalla's avatar Naveen Kalla Committed by Wink Saville
Browse files

Add support for EVDO Rev B

Change-Id: I8588e8b342c51f4b79bced8ef8fe60d57f07aefa
parent 24440cf8
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -127479,6 +127479,17 @@
 visibility="public"
>
</field>
<field name="NETWORK_TYPE_EVDO_B"
 type="int"
 transient="false"
 volatile="false"
 value="12"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="NETWORK_TYPE_GPRS"
 type="int"
 transient="false"
+3 −0
Original line number Diff line number Diff line
@@ -304,6 +304,9 @@ public class MobileDataStateTracker extends NetworkStateTracker {
        case TelephonyManager.NETWORK_TYPE_EVDO_A:
            networkTypeStr = "evdo";
            break;
        case TelephonyManager.NETWORK_TYPE_EVDO_B:
            networkTypeStr = "evdo";
            break;
        }
        return "net.tcp.buffersize." + networkTypeStr;
    }
+4 −2
Original line number Diff line number Diff line
@@ -843,7 +843,9 @@ public class StatusBarPolicy {
                 && ((mServiceState.getRadioTechnology()
                        == ServiceState.RADIO_TECHNOLOGY_EVDO_0)
                     || (mServiceState.getRadioTechnology()
                        == ServiceState.RADIO_TECHNOLOGY_EVDO_A)));
                        == ServiceState.RADIO_TECHNOLOGY_EVDO_A)
                     || (mServiceState.getRadioTechnology()
                        == ServiceState.RADIO_TECHNOLOGY_EVDO_B)));
    }

    private boolean hasService() {
@@ -958,7 +960,6 @@ public class StatusBarPolicy {
    }

    private final void updateDataNetType(int net) {

        switch (net) {
        case TelephonyManager.NETWORK_TYPE_EDGE:
            mDataIconList = sDataNetType_e;
@@ -984,6 +985,7 @@ public class StatusBarPolicy {
            break;
        case TelephonyManager.NETWORK_TYPE_EVDO_0: //fall through
        case TelephonyManager.NETWORK_TYPE_EVDO_A:
        case TelephonyManager.NETWORK_TYPE_EVDO_B:
            mDataIconList = sDataNetType_3g;
            break;
        default:
+5 −1
Original line number Diff line number Diff line
@@ -89,6 +89,8 @@ public class ServiceState implements Parcelable {
    public static final int RADIO_TECHNOLOGY_HSUPA = 10;
    /** @hide */
    public static final int RADIO_TECHNOLOGY_HSPA = 11;
    /** @hide */
    public static final int RADIO_TECHNOLOGY_EVDO_B = 12;

    /**
     * Available registration states for GSM, UMTS and CDMA.
@@ -365,7 +367,6 @@ public class ServiceState implements Parcelable {
    @Override
    public String toString() {
        String radioTechnology = new String("Error in radioTechnology");

        switch(this.mRadioTechnology) {
        case 0:
            radioTechnology = "Unknown";
@@ -403,6 +404,9 @@ public class ServiceState implements Parcelable {
        case 11:
            radioTechnology = "HSPA";
            break;
        case 12:
            radioTechnology = "EvDo rev. B";
            break;
        default:
            Log.w(LOG_TAG, "mRadioTechnology variable out of range.");
        break;
+6 −0
Original line number Diff line number Diff line
@@ -386,6 +386,9 @@ public class TelephonyManager {
    public static final int NETWORK_TYPE_HSUPA = 9;
    /** Current network is HSPA */
    public static final int NETWORK_TYPE_HSPA = 10;
    /** Current network is EVDO revision B*/
    public static final int NETWORK_TYPE_EVDO_B = 12;


    /**
     * Returns a constant indicating the radio technology (network type)
@@ -402,6 +405,7 @@ public class TelephonyManager {
     * @see #NETWORK_TYPE_CDMA
     * @see #NETWORK_TYPE_EVDO_0
     * @see #NETWORK_TYPE_EVDO_A
     * @see #NETWORK_TYPE_EVDO_B
     * @see #NETWORK_TYPE_1xRTT
     */
    public int getNetworkType() {
@@ -449,6 +453,8 @@ public class TelephonyManager {
                return "CDMA - EvDo rev. 0";
            case NETWORK_TYPE_EVDO_A:
                return "CDMA - EvDo rev. A";
            case NETWORK_TYPE_EVDO_B:
                return "CDMA - EvDo rev. B";
            case NETWORK_TYPE_1xRTT:
                return "CDMA - 1xRTT";
            default:
Loading