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