Merge "Use Math.floor to convert RSSNR from ten db to DB" am: 457bfa1180 am: bba215b2fe am: 3e9d13a1e0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1910030 Change-Id: Idab7cb7140ffe7297da288a56269d109c246f96a
This commit is contained in:
@@ -600,7 +600,7 @@ public final class CellSignalStrengthLte extends CellSignalStrength implements P
|
||||
|
||||
/** @hide */
|
||||
public static int convertRssnrUnitFromTenDbToDB(int rssnr) {
|
||||
return rssnr / 10;
|
||||
return (int) Math.floor((float) rssnr / 10);
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
|
||||
Reference in New Issue
Block a user