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

Commit 283bbead authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Initialize mWcdmaRscpAsu and fix invalid value for asu" into pi-dev

parents 805a5ece 67bbf700
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -161,6 +161,7 @@ public class SignalStrength implements Parcelable {
        mTdScdmaRscp = INVALID;
        mWcdmaSignalStrength = 99;
        mWcdmaRscp = INVALID;
        mWcdmaRscpAsu = 255;
        mLteRsrpBoost = 0;
        mIsGsm = gsmFlag;
        mUseOnlyRsrpForLteLevel = false;
@@ -383,7 +384,7 @@ public class SignalStrength implements Parcelable {
        // but are reported in ASU which is 0 through 96, so we do the conversion here
        mWcdmaRscpAsu =
                ((mWcdmaRscpAsu - 120 >= MIN_WCDMA_RSCP) && (mWcdmaRscpAsu - 120 <= MAX_WCDMA_RSCP))
                ? mWcdmaRscpAsu : INVALID;
                ? mWcdmaRscpAsu : 255;
        mWcdmaRscp = ((mWcdmaRscp >= MIN_WCDMA_RSCP) && (mWcdmaRscp <= MAX_WCDMA_RSCP))
                ? mWcdmaRscp : INVALID;