summaryrefslogtreecommitdiff
path: root/telephony
diff options
context:
space:
mode:
author Jack Yu <jackyu@google.com> 2025-03-11 17:31:26 -0700
committer Jack Yu <jackyu@google.com> 2025-03-11 17:31:26 -0700
commitab48a9e7e44b6a97964583c521aedd9b78ae1f46 (patch)
treefabace61872aee9ef8dd8b2e88421f80857f86ed /telephony
parent1ee63562f89e59e10a113a5c77af405eb9f864ce (diff)
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
Diffstat (limited to 'telephony')
-rw-r--r--telephony/java/android/telephony/CellSignalStrengthLte.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/telephony/java/android/telephony/CellSignalStrengthLte.java b/telephony/java/android/telephony/CellSignalStrengthLte.java
index f5282639ae6c..6e23edf936c7 100644
--- a/telephony/java/android/telephony/CellSignalStrengthLte.java
+++ b/telephony/java/android/telephony/CellSignalStrengthLte.java
@@ -614,7 +614,7 @@ public final class CellSignalStrengthLte extends CellSignalStrength implements P
/** @hide */
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;
}
if ((rssiAsu < SIGNAL_STRENGTH_LTE_RSSI_VALID_ASU_MIN_VALUE