Skip to content

Commit

Permalink
Merge "TD_SCDMA signal strength support" into cm-10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
rmcc authored and Gerrit Code Review committed Oct 25, 2013
2 parents db6e470 + a2e75c2 commit e301d80
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions telephony/java/android/telephony/SignalStrength.java
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ public int getLevel() {
boolean lteChecks = (getLteRsrp() == INVALID && getLteRsrq() == INVALID && getLteRssnr() == INVALID && getLteSignalStrenght() == 99);
boolean oldRil = needsOldRilFeature("signalstrength");
level = getLteLevel();
if ((level == SIGNAL_STRENGTH_NONE_OR_UNKNOWN && getGsmAsuLevel() != 99 && lteChecks) || oldRil) {
if ((level == SIGNAL_STRENGTH_NONE_OR_UNKNOWN && (getGsmAsuLevel() != 99 || getTdScdmaAsuLevel() != 255) && lteChecks) || oldRil) {
level = getTdScdmaLevel();
if (level == SIGNAL_STRENGTH_NONE_OR_UNKNOWN) {
level = getGsmLevel();
Expand Down Expand Up @@ -546,7 +546,7 @@ public int getAsuLevel() {
if (isGsm) {
boolean oldRil = needsOldRilFeature("signalstrength");
boolean lteChecks = (getLteRsrp() == INVALID && getLteRsrq() == INVALID && getLteRssnr() == INVALID && getLteSignalStrenght() == 99);
if ((getLteLevel() == SIGNAL_STRENGTH_NONE_OR_UNKNOWN && getGsmAsuLevel() != 99 && lteChecks) || oldRil) {
if ((getLteLevel() == SIGNAL_STRENGTH_NONE_OR_UNKNOWN && (getGsmAsuLevel() != 99 || getTdScdmaAsuLevel() != 255) && lteChecks) || oldRil) {
if (getTdScdmaLevel() == SIGNAL_STRENGTH_NONE_OR_UNKNOWN) {
asuLevel = getGsmAsuLevel();
} else {
Expand Down Expand Up @@ -584,7 +584,7 @@ public int getDbm() {
if(isGsm()) {
boolean oldRil = needsOldRilFeature("signalstrength");
boolean lteChecks = (getLteRsrp() == INVALID && getLteRsrq() == INVALID && getLteRssnr() == INVALID && getLteSignalStrenght() == 99);
if ((getLteLevel() == SIGNAL_STRENGTH_NONE_OR_UNKNOWN && getGsmAsuLevel() != 99 && lteChecks) || oldRil) {
if ((getLteLevel() == SIGNAL_STRENGTH_NONE_OR_UNKNOWN && (getGsmAsuLevel() != 99 || getTdScdmaAsuLevel() != 255) && lteChecks) || oldRil) {
if (getTdScdmaLevel() == SIGNAL_STRENGTH_NONE_OR_UNKNOWN) {
dBm = getGsmDbm();
} else {
Expand Down

0 comments on commit e301d80

Please sign in to comment.