Merge "Make getEcno() public."

This commit is contained in:
Amit Mahajan
2019-11-01 23:11:33 +00:00
committed by Gerrit Code Review
2 changed files with 6 additions and 2 deletions

View File

@@ -44439,6 +44439,7 @@ package android.telephony {
method public int describeContents(); method public int describeContents();
method public int getAsuLevel(); method public int getAsuLevel();
method public int getDbm(); 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 @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); method public void writeToParcel(android.os.Parcel, int);
field @NonNull public static final android.os.Parcelable.Creator<android.telephony.CellSignalStrengthWcdma> CREATOR; field @NonNull public static final android.os.Parcelable.Creator<android.telephony.CellSignalStrengthWcdma> CREATOR;

View File

@@ -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() { public int getEcNo() {
return mEcNo; return mEcNo;