From af672b9910c534f035bbcad42fc79dffd8327b88 Mon Sep 17 00:00:00 2001 From: Amit Mahajan Date: Wed, 9 Oct 2019 17:19:30 -0700 Subject: [PATCH] Make getEcno() public. Test: atest CellInfoTest#verifyCellSignalStrengthWcdma Bug: 139417139 Merged-in: Ic70af2ca0d60fbf43a929982d8b6853c7b7da049 Change-Id: Ic70af2ca0d60fbf43a929982d8b6853c7b7da049 (cherry picked from commit 3a3c09610a302703eeb2d3eb36bfa1d5192a865d) --- api/current.txt | 1 + .../java/android/telephony/CellSignalStrengthWcdma.java | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/api/current.txt b/api/current.txt index c818205e56f11..cd6ec95cd162e 100644 --- a/api/current.txt +++ b/api/current.txt @@ -44439,6 +44439,7 @@ package android.telephony { method public int describeContents(); method public int getAsuLevel(); method public int getDbm(); + method public int getEcNo(); method @IntRange(from=android.telephony.CellSignalStrength.SIGNAL_STRENGTH_NONE_OR_UNKNOWN, to=android.telephony.CellSignalStrength.SIGNAL_STRENGTH_GREAT) public int getLevel(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; diff --git a/telephony/java/android/telephony/CellSignalStrengthWcdma.java b/telephony/java/android/telephony/CellSignalStrengthWcdma.java index cdf01dab00593..4dc54f0fef585 100644 --- a/telephony/java/android/telephony/CellSignalStrengthWcdma.java +++ b/telephony/java/android/telephony/CellSignalStrengthWcdma.java @@ -245,9 +245,12 @@ public final class CellSignalStrengthWcdma extends CellSignalStrength implements } /** - * Get the Ec/No as dB + * Get the Ec/No (Energy per chip over the noise spectral density) as dB. * - * @hide + * Reference: TS 25.133 Section 9.1.2.3 + * + * @return the Ec/No of the measured cell in the range [-24, 1] or + * {@link android.telephony.CellInfo#UNAVAILABLE UNAVAILABLE} if unavailable */ public int getEcNo() { return mEcNo;