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

Commit ab48a9e7 authored by Jack Yu's avatar Jack Yu
Browse files

Fixed the spam debug message

2147483647 is a valid RSSI value returning from the underlying
modem. Should not generate any error messages.

Fix: 399481218
Test: atest CtsTelephonyTestCases:SignalStrengthTest#testSignalStrength
Flag: EXEMPT debug message fix
Change-Id: I3038d2f842bfa7c7680d3843a3befb1e74d70f5e
parent 1ee63562
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -614,7 +614,7 @@ public final class CellSignalStrengthLte extends CellSignalStrength implements P


    /** @hide */
    /** @hide */
    public static int convertRssiAsuToDBm(int rssiAsu) {
    public static int convertRssiAsuToDBm(int rssiAsu) {
        if (rssiAsu == SIGNAL_STRENGTH_LTE_RSSI_ASU_UNKNOWN) {
        if (rssiAsu == SIGNAL_STRENGTH_LTE_RSSI_ASU_UNKNOWN || rssiAsu == Integer.MAX_VALUE) {
            return CellInfo.UNAVAILABLE;
            return CellInfo.UNAVAILABLE;
        }
        }
        if ((rssiAsu < SIGNAL_STRENGTH_LTE_RSSI_VALID_ASU_MIN_VALUE
        if ((rssiAsu < SIGNAL_STRENGTH_LTE_RSSI_VALID_ASU_MIN_VALUE