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

Commit f13114fd authored by Jaime A Lopez-Sollano's avatar Jaime A Lopez-Sollano Committed by Ricardo Cerqueira
Browse files

telephony: add support for LTE and EHRPD

Change-Id: Iee182f4b982da6e2db9dadfc5b652b2f6507146e
parent 2474814f
Loading
Loading
Loading
Loading
+11 −0
Original line number Original line Diff line number Diff line
/*
/*
 * Copyright (C) 2006 The Android Open Source Project
 * Copyright (C) 2006 The Android Open Source Project
 * Copyright (c) 2010, Code Aurora Forum. All rights reserved.
 *
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * you may not use this file except in compliance with the License.
@@ -91,6 +92,10 @@ public class ServiceState implements Parcelable {
    public static final int RADIO_TECHNOLOGY_HSPA = 11;
    public static final int RADIO_TECHNOLOGY_HSPA = 11;
    /** @hide */
    /** @hide */
    public static final int RADIO_TECHNOLOGY_EVDO_B = 12;
    public static final int RADIO_TECHNOLOGY_EVDO_B = 12;
    /** @hide */
    public static final int RADIO_TECHNOLOGY_EHRPD = 13;
    /** @hide */
    public static final int RADIO_TECHNOLOGY_LTE = 14;


    /**
    /**
     * Available registration states for GSM, UMTS and CDMA.
     * Available registration states for GSM, UMTS and CDMA.
@@ -424,6 +429,12 @@ public class ServiceState implements Parcelable {
        case 12:
        case 12:
            radioTechnology = "EvDo rev. B";
            radioTechnology = "EvDo rev. B";
            break;
            break;
        case RADIO_TECHNOLOGY_EHRPD:
            radioTechnology = "EHRPD";
            break;
        case RADIO_TECHNOLOGY_LTE:
            radioTechnology = "LTE";
            break;
        default:
        default:
            Log.w(LOG_TAG, "mRadioTechnology variable out of range.");
            Log.w(LOG_TAG, "mRadioTechnology variable out of range.");
        break;
        break;
+6 −0
Original line number Original line Diff line number Diff line
@@ -415,6 +415,8 @@ public class TelephonyManager {
     * @see #NETWORK_TYPE_EVDO_A
     * @see #NETWORK_TYPE_EVDO_A
     * @see #NETWORK_TYPE_EVDO_B
     * @see #NETWORK_TYPE_EVDO_B
     * @see #NETWORK_TYPE_1xRTT
     * @see #NETWORK_TYPE_1xRTT
     * @see #NETWORK_TYPE_EHRPD
     * @see #NETWORK_TYPE_LTE
     */
     */
    public int getNetworkType() {
    public int getNetworkType() {
        try{
        try{
@@ -465,6 +467,10 @@ public class TelephonyManager {
                return "CDMA - EvDo rev. B";
                return "CDMA - EvDo rev. B";
            case NETWORK_TYPE_1xRTT:
            case NETWORK_TYPE_1xRTT:
                return "CDMA - 1xRTT";
                return "CDMA - 1xRTT";
            case NETWORK_TYPE_EHRPD:
                return "CDMA - EHRPD";
            case NETWORK_TYPE_LTE:
                return "LTE";
            default:
            default:
                return "UNKNOWN";
                return "UNKNOWN";
        }
        }
+2 −0
Original line number Original line Diff line number Diff line
@@ -46,6 +46,8 @@ public abstract class ServiceStateTracker extends Handler {
    protected static final int DATA_ACCESS_HSPA = 11;
    protected static final int DATA_ACCESS_HSPA = 11;
    protected static final int DATA_ACCESS_CDMA_EvDo_B = 12;
    protected static final int DATA_ACCESS_CDMA_EvDo_B = 12;


    protected static final int DATA_ACCESS_LTE = 13;

    protected CommandsInterface cm;
    protected CommandsInterface cm;


    public ServiceState ss;
    public ServiceState ss;