Merge "Add LTE overlays for signal strength indicators." into jb-mr2-dev
BIN
packages/SystemUI/res/drawable-hdpi/ic_qs_signal_full_lte.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
packages/SystemUI/res/drawable-hdpi/ic_qs_signal_lte.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
BIN
packages/SystemUI/res/drawable-ldrtl-hdpi/ic_qs_signal_lte.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
BIN
packages/SystemUI/res/drawable-ldrtl-mdpi/ic_qs_signal_lte.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
BIN
packages/SystemUI/res/drawable-ldrtl-xhdpi/ic_qs_signal_lte.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
BIN
packages/SystemUI/res/drawable-mdpi/ic_qs_signal_full_lte.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
packages/SystemUI/res/drawable-mdpi/ic_qs_signal_lte.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
BIN
packages/SystemUI/res/drawable-xhdpi/ic_qs_signal_full_lte.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
packages/SystemUI/res/drawable-xhdpi/ic_qs_signal_lte.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
@@ -102,5 +102,8 @@
|
|||||||
|
|
||||||
<!-- Enable the "flip settings" panel -->
|
<!-- Enable the "flip settings" panel -->
|
||||||
<bool name="config_hasFlipSettingsPanel">true</bool>
|
<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>
|
</resources>
|
||||||
|
|
||||||
|
|||||||
@@ -320,6 +320,9 @@
|
|||||||
<!-- Content description of the data connection type 4G for accessibility (not shown on the screen). [CHAR LIMIT=NONE] -->
|
<!-- 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>
|
<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] -->
|
<!-- 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>
|
<string name="accessibility_data_connection_cdma">CDMA</string>
|
||||||
|
|
||||||
|
|||||||
@@ -90,6 +90,7 @@ public class NetworkController extends BroadcastReceiver {
|
|||||||
boolean mShowPhoneRSSIForData = false;
|
boolean mShowPhoneRSSIForData = false;
|
||||||
boolean mShowAtLeastThreeGees = false;
|
boolean mShowAtLeastThreeGees = false;
|
||||||
boolean mAlwaysShowCdmaRssi = false;
|
boolean mAlwaysShowCdmaRssi = false;
|
||||||
|
boolean mShow4GforLTE = false;
|
||||||
|
|
||||||
String mContentDescriptionPhoneSignal;
|
String mContentDescriptionPhoneSignal;
|
||||||
String mContentDescriptionWifi;
|
String mContentDescriptionWifi;
|
||||||
@@ -199,6 +200,7 @@ public class NetworkController extends BroadcastReceiver {
|
|||||||
|
|
||||||
mShowPhoneRSSIForData = res.getBoolean(R.bool.config_showPhoneRSSIForData);
|
mShowPhoneRSSIForData = res.getBoolean(R.bool.config_showPhoneRSSIForData);
|
||||||
mShowAtLeastThreeGees = res.getBoolean(R.bool.config_showMin3G);
|
mShowAtLeastThreeGees = res.getBoolean(R.bool.config_showMin3G);
|
||||||
|
mShow4GforLTE = res.getBoolean(R.bool.config_show4GForLTE);
|
||||||
mAlwaysShowCdmaRssi = res.getBoolean(
|
mAlwaysShowCdmaRssi = res.getBoolean(
|
||||||
com.android.internal.R.bool.config_alwaysUseCdmaRssi);
|
com.android.internal.R.bool.config_alwaysUseCdmaRssi);
|
||||||
|
|
||||||
@@ -678,11 +680,19 @@ public class NetworkController extends BroadcastReceiver {
|
|||||||
R.string.accessibility_data_connection_3g);
|
R.string.accessibility_data_connection_3g);
|
||||||
break;
|
break;
|
||||||
case TelephonyManager.NETWORK_TYPE_LTE:
|
case TelephonyManager.NETWORK_TYPE_LTE:
|
||||||
mDataIconList = TelephonyIcons.DATA_4G[mInetCondition];
|
if (mShow4GforLTE) {
|
||||||
mDataTypeIconId = R.drawable.stat_sys_data_connected_4g;
|
mDataIconList = TelephonyIcons.DATA_4G[mInetCondition];
|
||||||
mQSDataTypeIconId = R.drawable.ic_qs_signal_4g;
|
mDataTypeIconId = R.drawable.stat_sys_data_connected_4g;
|
||||||
mContentDescriptionDataType = mContext.getString(
|
mQSDataTypeIconId = R.drawable.ic_qs_signal_4g;
|
||||||
R.string.accessibility_data_connection_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;
|
break;
|
||||||
default:
|
default:
|
||||||
if (!mShowAtLeastThreeGees) {
|
if (!mShowAtLeastThreeGees) {
|
||||||
|
|||||||
@@ -136,6 +136,17 @@ class TelephonyIcons {
|
|||||||
R.drawable.stat_sys_data_fully_connected_4g }
|
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 }
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||