Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c190b46 authored by Mingming Cai's avatar Mingming Cai Committed by Gerrit Code Review
Browse files

Merge "Make CQI APIs public"

parents 19eb4c31 dc160baf
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -40506,7 +40506,8 @@ package android.telephony {
  public final class CellSignalStrengthLte extends android.telephony.CellSignalStrength implements android.os.Parcelable {
    method public int describeContents();
    method public int getAsuLevel();
    method public int getCqi();
    method @IntRange(from=0, to=15) public int getCqi();
    method @IntRange(from=1, to=6) public int getCqiTableIndex();
    method public int getDbm();
    method @IntRange(from=android.telephony.CellSignalStrength.SIGNAL_STRENGTH_NONE_OR_UNKNOWN, to=android.telephony.CellSignalStrength.SIGNAL_STRENGTH_GREAT) public int getLevel();
    method public int getRsrp();
@@ -40521,6 +40522,8 @@ package android.telephony {
  public final class CellSignalStrengthNr extends android.telephony.CellSignalStrength implements android.os.Parcelable {
    method public int describeContents();
    method public int getAsuLevel();
    method @IntRange(from=0, to=15) @NonNull public java.util.List<java.lang.Integer> getCsiCqiReport();
    method @IntRange(from=1, to=3) public int getCsiCqiTableIndex();
    method public int getCsiRsrp();
    method public int getCsiRsrq();
    method public int getCsiSinr();
+6 −1
Original line number Diff line number Diff line
@@ -443,10 +443,12 @@ public final class CellSignalStrengthLte extends CellSignalStrength implements P
    /**
     * Get table index for channel quality indicator
     *
     * Reference: 3GPP TS 136.213 section 7.2.3.
     *
     * @return the CQI table index if available or
     *         {@link android.telephony.CellInfo#UNAVAILABLE UNAVAILABLE} if unavailable.
     */
    /** @hide */
    @IntRange(from = 1, to = 6)
    public int getCqiTableIndex() {
        return mCqiTableIndex;
    }
@@ -454,9 +456,12 @@ public final class CellSignalStrengthLte extends CellSignalStrength implements P
    /**
     * Get channel quality indicator
     *
     * Reference: 3GPP TS 136.213 section 7.2.3.
     *
     * @return the CQI if available or
     *         {@link android.telephony.CellInfo#UNAVAILABLE UNAVAILABLE} if unavailable.
     */
    @IntRange(from = 0, to = 15)
    public int getCqi() {
        return mCqi;
    }
+5 −4
Original line number Diff line number Diff line
@@ -294,9 +294,10 @@ public final class CellSignalStrengthNr extends CellSignalStrength implements Pa
     *
     * Reference: 3GPP TS 138.214 section 5.2.2.1.
     *
     * Range [1, 3].
     * @return the CQI table index if available or
     *         {@link android.telephony.CellInfo#UNAVAILABLE UNAVAILABLE} if unavailable.
     */
    /** @hide */
    @IntRange(from = 1, to = 3)
    public int getCsiCqiTableIndex() {
        return mCsiCqiTableIndex;
    }
@@ -310,10 +311,10 @@ public final class CellSignalStrengthNr extends CellSignalStrength implements Pa
     *
     * Reference: 3GPP TS 138.214 section 5.2.2.1.
     *
     * Range [0, 15] for each CQI.
     * @return the CQIs for all subbands if available or empty list if unavailable.
     */
    /** @hide */
    @NonNull
    @IntRange(from = 0, to = 15)
    public List<Integer> getCsiCqiReport() {
        return mCsiCqiReport;
    }