From 211c1c2ca815b101ed9bc65a9ab0407c3ce97836 Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Tue, 8 Nov 2016 17:59:19 -0800 Subject: [PATCH] Expose getters for RSRP, RSRQ, RSSNR, and CQI in CellSignalStrengthLte. Regenerate api accordingly. BUG: 32609966 Test: CTS Testing new API Change-Id: I2603fc0001f31ff23f02f4fdf2a72b33f2750a4c --- api/current.txt | 4 ++++ api/system-current.txt | 4 ++++ api/test-current.txt | 4 ++++ .../telephony/CellSignalStrengthLte.java | 18 ++++++++++++++++-- 4 files changed, 28 insertions(+), 2 deletions(-) diff --git a/api/current.txt b/api/current.txt index 9cfbbc7d4ef3f..858374907c448 100644 --- a/api/current.txt +++ b/api/current.txt @@ -36864,8 +36864,12 @@ package android.telephony { method public int describeContents(); method public boolean equals(java.lang.Object); method public int getAsuLevel(); + method public int getCqi(); method public int getDbm(); method public int getLevel(); + method public int getRsrp(); + method public int getRsrq(); + method public int getRssnr(); method public int getTimingAdvance(); method public int hashCode(); method public void writeToParcel(android.os.Parcel, int); diff --git a/api/system-current.txt b/api/system-current.txt index fab5e00919234..973a43a1ad328 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -39799,8 +39799,12 @@ package android.telephony { method public int describeContents(); method public boolean equals(java.lang.Object); method public int getAsuLevel(); + method public int getCqi(); method public int getDbm(); method public int getLevel(); + method public int getRsrp(); + method public int getRsrq(); + method public int getRssnr(); method public int getTimingAdvance(); method public int hashCode(); method public void writeToParcel(android.os.Parcel, int); diff --git a/api/test-current.txt b/api/test-current.txt index 7a58e1e17177a..9cbddf94c16d0 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -36941,8 +36941,12 @@ package android.telephony { method public int describeContents(); method public boolean equals(java.lang.Object); method public int getAsuLevel(); + method public int getCqi(); method public int getDbm(); method public int getLevel(); + method public int getRsrp(); + method public int getRsrq(); + method public int getRssnr(); method public int getTimingAdvance(); method public int hashCode(); method public void writeToParcel(android.os.Parcel, int); diff --git a/telephony/java/android/telephony/CellSignalStrengthLte.java b/telephony/java/android/telephony/CellSignalStrengthLte.java index 3c0a8d6f8a38d..434caadeedc67 100644 --- a/telephony/java/android/telephony/CellSignalStrengthLte.java +++ b/telephony/java/android/telephony/CellSignalStrengthLte.java @@ -168,19 +168,33 @@ public final class CellSignalStrengthLte extends CellSignalStrength implements P } /** - * @hide + * Get reference signal received quality */ public int getRsrq() { return mRsrq; } /** - * @hide + * Get reference signal signal-to-noise ratio */ public int getRssnr() { return mRssnr; } + /** + * Get reference signal received power + */ + public int getRsrp() { + return mRsrp; + } + + /** + * Get channel quality indicator + */ + public int getCqi() { + return mCqi; + } + /** * Get signal strength as dBm */