OSDN Git Service

Fix Order of Operations for Converting RSSI to ASU
authorNathan Harold <nharold@google.com>
Mon, 25 Feb 2019 18:31:08 +0000 (10:31 -0800)
committerNathan Harold <nharold@google.com>
Tue, 26 Feb 2019 01:55:40 +0000 (01:55 +0000)
commit11cbc3b9f2aed6b2ca492ad2cc25a00c4669588f
treecc928623256d3fb386c799ce55e7413d73785c0b
parent7db49c554acb7475ce3daa16ec355b49949622c5
Fix Order of Operations for Converting RSSI to ASU

Due to the wrong order of operations, the conversion
from RSSI to ASU was returning bad results. Fix the
equation so that the ASU is correctly calculated.

Bug: 126199198
Test: (force device to GSM) - atest CellInfoTest
      verified on aosp_taimen

Change-Id: Iaeb9a2a6d8efb5b39fc1f81e8d2969694cc06422
telephony/java/android/telephony/CellSignalStrength.java