OSDN Git Service

Update Wcdma and Tdscdma CellInfo for HAL 1.2
authorNathan Harold <nharold@google.com>
Wed, 28 Mar 2018 15:39:43 +0000 (08:39 -0700)
committerNathan Harold <nharold@google.com>
Fri, 6 Jul 2018 23:33:26 +0000 (16:33 -0700)
commit88f44024bb068829358d66107360223dc73131f7
tree84b6e4ace82bde71d9fc2d6a69cea6814554e710
parent6fa2b213b6203d2c0bb80d9bd41c279a1dceea96
Update Wcdma and Tdscdma CellInfo for HAL 1.2

In HAL 1.2 WCDMA and TDSCMA were updated to bring
them in line with the other CellInfo types. WCDMA
was missing support for Rscp and Ec/No; the former
being the primary measurement used for WCDMA signal
strength. TDSCDMA was missing support for RSSI, and
the definition for RSCP was incorrect, so it was fixed
to use the PCCPH RSCP.

Furthermore, TDSCDMA support was unavailable except
in the CellIdentity. This patch pipes support from the
HAL to the framework, adding CellInfoTdscdma, which is
primarily for Asia.

-Add RSCP and Ec/No fields to CellSignalStrengthWcdma
-Add CellInfoTdscdma and CellSignalStrengthTdscdma
-Add UARFCN and Alphas support for CellIdentityTdscdma
-Fix a bug in the equals() check for CellIdentity
-Update documentation for CellInfo<RAT> classes and
 the getLevel() methods of CellSignalStrength<RAT>

Bug: 76153768
Test: RILTests added for TDSCDMA
Change-Id: I71e0998f1a9bd7656d495003a8ee5ef616ca4f43
14 files changed:
telephony/java/android/telephony/CellIdentity.java
telephony/java/android/telephony/CellIdentityTdscdma.java
telephony/java/android/telephony/CellIdentityWcdma.java
telephony/java/android/telephony/CellInfo.java
telephony/java/android/telephony/CellInfoCdma.java
telephony/java/android/telephony/CellInfoGsm.java
telephony/java/android/telephony/CellInfoLte.java
telephony/java/android/telephony/CellInfoTdscdma.java [new file with mode: 0644]
telephony/java/android/telephony/CellInfoWcdma.java
telephony/java/android/telephony/CellSignalStrengthCdma.java
telephony/java/android/telephony/CellSignalStrengthGsm.java
telephony/java/android/telephony/CellSignalStrengthLte.java
telephony/java/android/telephony/CellSignalStrengthTdscdma.java [new file with mode: 0644]
telephony/java/android/telephony/CellSignalStrengthWcdma.java