Skip to content
Permalink
Browse files

Add LTE overlays for signal strength indicators.

Note that operators that wish to show "4G" instead of "LTE"
on these networks can set config_show4GForLTE to true.

Bug: 9265513
Bug: 9265217
Change-Id: If7f3580da7266b0d0c62639e30684393d4e03392
  • Loading branch information...
dsandler committed Jun 6, 2013
1 parent 38bdf10 commit 2fe71d013f373e8eca740781214c505792a9feb0
Showing with 32 additions and 5 deletions.
  1. BIN packages/SystemUI/res/drawable-hdpi/ic_qs_signal_full_lte.png
  2. BIN packages/SystemUI/res/drawable-hdpi/ic_qs_signal_lte.png
  3. BIN packages/SystemUI/res/drawable-hdpi/stat_sys_data_connected_lte.png
  4. BIN packages/SystemUI/res/drawable-hdpi/stat_sys_data_fully_connected_lte.png
  5. BIN packages/SystemUI/res/drawable-ldrtl-hdpi/ic_qs_signal_full_lte.png
  6. BIN packages/SystemUI/res/drawable-ldrtl-hdpi/ic_qs_signal_lte.png
  7. BIN packages/SystemUI/res/drawable-ldrtl-hdpi/stat_sys_data_connected_lte.png
  8. BIN packages/SystemUI/res/drawable-ldrtl-hdpi/stat_sys_data_fully_connected_lte.png
  9. BIN packages/SystemUI/res/drawable-ldrtl-mdpi/ic_qs_signal_full_lte.png
  10. BIN packages/SystemUI/res/drawable-ldrtl-mdpi/ic_qs_signal_lte.png
  11. BIN packages/SystemUI/res/drawable-ldrtl-mdpi/stat_sys_data_connected_lte.png
  12. BIN packages/SystemUI/res/drawable-ldrtl-mdpi/stat_sys_data_fully_connected_lte.png
  13. BIN packages/SystemUI/res/drawable-ldrtl-xhdpi/ic_qs_signal_full_lte.png
  14. BIN packages/SystemUI/res/drawable-ldrtl-xhdpi/ic_qs_signal_lte.png
  15. BIN packages/SystemUI/res/drawable-ldrtl-xhdpi/stat_sys_data_connected_lte.png
  16. BIN packages/SystemUI/res/drawable-ldrtl-xhdpi/stat_sys_data_fully_connected_lte.png
  17. BIN packages/SystemUI/res/drawable-mdpi/ic_qs_signal_full_lte.png
  18. BIN packages/SystemUI/res/drawable-mdpi/ic_qs_signal_lte.png
  19. BIN packages/SystemUI/res/drawable-mdpi/stat_sys_data_connected_lte.png
  20. BIN packages/SystemUI/res/drawable-mdpi/stat_sys_data_fully_connected_lte.png
  21. BIN packages/SystemUI/res/drawable-xhdpi/ic_qs_signal_full_lte.png
  22. BIN packages/SystemUI/res/drawable-xhdpi/ic_qs_signal_lte.png
  23. BIN packages/SystemUI/res/drawable-xhdpi/stat_sys_data_connected_lte.png
  24. BIN packages/SystemUI/res/drawable-xhdpi/stat_sys_data_fully_connected_lte.png
  25. +3 −0 packages/SystemUI/res/values/config.xml
  26. +3 −0 packages/SystemUI/res/values/strings.xml
  27. +15 −5 packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkController.java
  28. +11 −0 packages/SystemUI/src/com/android/systemui/statusbar/policy/TelephonyIcons.java
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -102,5 +102,8 @@

<!-- Enable the "flip settings" panel -->
<bool name="config_hasFlipSettingsPanel">true</bool>

<!-- Should "4G" be shown instead of "LTE" when the network is NETWORK_TYPE_LTE? -->
<bool name="config_show4GForLTE">false</bool>
</resources>

@@ -320,6 +320,9 @@
<!-- Content description of the data connection type 4G for accessibility (not shown on the screen). [CHAR LIMIT=NONE] -->
<string name="accessibility_data_connection_4g">4G</string>

<!-- Content description of the data connection type LTE for accessibility (not shown on the screen). [CHAR LIMIT=NONE] -->
<string name="accessibility_data_connection_lte">LTE</string>

<!-- Content description of the data connection type CDMA for accessibility (not shown on the screen). [CHAR LIMIT=NONE] -->
<string name="accessibility_data_connection_cdma">CDMA</string>

@@ -90,6 +90,7 @@
boolean mShowPhoneRSSIForData = false;
boolean mShowAtLeastThreeGees = false;
boolean mAlwaysShowCdmaRssi = false;
boolean mShow4GforLTE = false;

String mContentDescriptionPhoneSignal;
String mContentDescriptionWifi;
@@ -199,6 +200,7 @@ public NetworkController(Context context) {

mShowPhoneRSSIForData = res.getBoolean(R.bool.config_showPhoneRSSIForData);
mShowAtLeastThreeGees = res.getBoolean(R.bool.config_showMin3G);
mShow4GforLTE = res.getBoolean(R.bool.config_show4GForLTE);
mAlwaysShowCdmaRssi = res.getBoolean(
com.android.internal.R.bool.config_alwaysUseCdmaRssi);

@@ -678,11 +680,19 @@ private final void updateDataNetType() {
R.string.accessibility_data_connection_3g);
break;
case TelephonyManager.NETWORK_TYPE_LTE:
mDataIconList = TelephonyIcons.DATA_4G[mInetCondition];
mDataTypeIconId = R.drawable.stat_sys_data_connected_4g;
mQSDataTypeIconId = R.drawable.ic_qs_signal_4g;
mContentDescriptionDataType = mContext.getString(
R.string.accessibility_data_connection_4g);
if (mShow4GforLTE) {
mDataIconList = TelephonyIcons.DATA_4G[mInetCondition];
mDataTypeIconId = R.drawable.stat_sys_data_connected_4g;
mQSDataTypeIconId = R.drawable.ic_qs_signal_4g;
mContentDescriptionDataType = mContext.getString(
R.string.accessibility_data_connection_4g);
} else {
mDataIconList = TelephonyIcons.DATA_LTE[mInetCondition];
mDataTypeIconId = R.drawable.stat_sys_data_connected_lte;
mQSDataTypeIconId = R.drawable.ic_qs_signal_lte;
mContentDescriptionDataType = mContext.getString(
R.string.accessibility_data_connection_lte);
}
break;
default:
if (!mShowAtLeastThreeGees) {
@@ -136,6 +136,17 @@
R.drawable.stat_sys_data_fully_connected_4g }
};

// LTE branded "LTE"
static final int[][] DATA_LTE = {
{ R.drawable.stat_sys_data_connected_lte,
R.drawable.stat_sys_data_connected_lte,
R.drawable.stat_sys_data_connected_lte,
R.drawable.stat_sys_data_connected_lte },
{ R.drawable.stat_sys_data_fully_connected_lte,
R.drawable.stat_sys_data_fully_connected_lte,
R.drawable.stat_sys_data_fully_connected_lte,
R.drawable.stat_sys_data_fully_connected_lte }
};

}

0 comments on commit 2fe71d0

Please sign in to comment.
You can’t perform that action at this time.