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

Commit cd880e95 authored by Shuo Qian's avatar Shuo Qian Committed by Android (Google) Code Review
Browse files

Merge "Make ModemActivityInfo isValid system"

parents 4b90597d 3349553a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -9216,6 +9216,7 @@ package android.telephony {
    method public int getSleepTimeMillis();
    method public long getTimestamp();
    method @NonNull public java.util.List<android.telephony.ModemActivityInfo.TransmitPower> getTransmitPowerInfo();
    method public boolean isValid();
    method public void writeToParcel(android.os.Parcel, int);
    field @NonNull public static final android.os.Parcelable.Creator<android.telephony.ModemActivityInfo> CREATOR;
    field public static final int TX_POWER_LEVELS = 5; // 0x5
+2 −2
Original line number Diff line number Diff line
@@ -205,10 +205,10 @@ public final class ModemActivityInfo implements Parcelable {
    }

    /**
     * Indicate if the ModemActivityInfo is invalid due to modem's invalid reporting.
     *
     * @return {@code true} if this {@link ModemActivityInfo} record is valid,
     * {@code false} otherwise.
     *
     * @hide
     */
    public boolean isValid() {
        for (TransmitPower powerInfo : getTransmitPowerInfo()) {