diff options
author | Ricardo Cerqueira <ricardo@cyngn.com> | 2015-08-15 00:03:52 +0100 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2015-12-04 19:25:37 -0800 |
commit | 71fa17cf5342830d5882673cdb1b7a226257cf0d (patch) | |
tree | 1485bc236446d6e16a87b22c49fcf41537c0af9d /telephony | |
parent | d1e6240bf4a73c4c08347e1ebe85cd6f20e36cb1 (diff) | |
download | frameworks_base-71fa17cf5342830d5882673cdb1b7a226257cf0d.zip frameworks_base-71fa17cf5342830d5882673cdb1b7a226257cf0d.tar.gz frameworks_base-71fa17cf5342830d5882673cdb1b7a226257cf0d.tar.bz2 |
SignalStrength: Allow for custom signal buckets in LTE
STRICT levels are too low, LENIENT levels are too high. Let us
use something in between...
Change-Id: I134774ed471e1805eac95cfbf8af957378fd8293
Diffstat (limited to 'telephony')
-rw-r--r-- | telephony/java/android/telephony/SignalStrength.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/SignalStrength.java b/telephony/java/android/telephony/SignalStrength.java index c941a28..1bb7b3a 100644 --- a/telephony/java/android/telephony/SignalStrength.java +++ b/telephony/java/android/telephony/SignalStrength.java @@ -53,6 +53,7 @@ public class SignalStrength implements Parcelable { public static final int INVALID = 0x7FFFFFFF; private static final int RSRP_THRESH_TYPE_STRICT = 0; + private static final int RSRP_THRESH_TYPE_CUSTOM = 2; private static final int[] RSRP_THRESH_STRICT = new int[] {-140, -115, -105, -95, -85, -44}; private static final int[] RSRP_THRESH_LENIENT = new int[] {-140, -128, -118, -108, -98, -44}; @@ -811,6 +812,9 @@ public class SignalStrength implements Parcelable { int[] threshRsrp; if (rsrpThreshType == RSRP_THRESH_TYPE_STRICT) { threshRsrp = RSRP_THRESH_STRICT; + } else if (rsrpThreshType == RSRP_THRESH_TYPE_CUSTOM) { + threshRsrp = Resources.getSystem().getIntArray(com.android.internal.R.array. + config_LTE_RSRP_custom_levels); } else { threshRsrp = RSRP_THRESH_LENIENT; } |