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

Commit ecd66c12 authored by Matthias Bosc's avatar Matthias Bosc Committed by Giulio Cervera
Browse files

Frameworks & SystemUI - additional DC-HSPAP support

This commit adds some more informations about Dual-Carrier HSPAP
It allows displaying a "DC" icon on status bar for compatible devices
and add a "DCHSPAP" value in state phone
patch 1: add TelephonyManager to fix build
patch 2: modify ServiceState
patch 3: switch to cm_strings
patch 4: fix a mistake
patch 5: upload a new set of icons, a bit prettier than previous
patch 6: update icons (more opacity to match colors)
patch 7: removed drawable-sw*

here is a screenshot for example: http://imgur.com/mQ2du3l,PSyHoqC

Change-Id: I77d05e23c8ad3efdfeb19cf06ed92e7c57105ebe
parent 13da52a2
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -827,12 +827,14 @@ public abstract class BatteryStats implements Parcelable {
    public static final int DATA_CONNECTION_LTE = 13;
    public static final int DATA_CONNECTION_EHRPD = 14;
    public static final int DATA_CONNECTION_HSPAP = 15;
    public static final int DATA_CONNECTION_OTHER = 16;
    public static final int DATA_CONNECTION_DCHSPAP = 16;
    public static final int DATA_CONNECTION_OTHER = 17;


    static final String[] DATA_CONNECTION_NAMES = {
        "none", "gprs", "edge", "umts", "cdma", "evdo_0", "evdo_A",
        "1xrtt", "hsdpa", "hsupa", "hspa", "iden", "evdo_b", "lte",
        "ehrpd", "hspap", "other"
        "ehrpd", "hspap", "dchspap", "other"
    };
    
    public static final int NUM_DATA_CONNECTION_TYPES = DATA_CONNECTION_OTHER+1;
+3 −0
Original line number Diff line number Diff line
@@ -2018,6 +2018,9 @@ public final class BatteryStatsImpl extends BatteryStats {
                case TelephonyManager.NETWORK_TYPE_HSPAP:
                    bin = DATA_CONNECTION_HSPAP;
                    break;
                case TelephonyManager.NETWORK_TYPE_DCHSPAP:
                    bin = DATA_CONNECTION_DCHSPAP;
                    break;
                default:
                    bin = DATA_CONNECTION_OTHER;
                    break;
+543 B
Loading image diff...
+554 B
Loading image diff...
+359 B
Loading image diff...
Loading