From 498cc25dc3d7e8238837b8bed664eb163859583c Mon Sep 17 00:00:00 2001 From: sqian Date: Mon, 27 Jan 2020 15:00:11 -0800 Subject: [PATCH] Make ModemActivityInfo isValid system Make ModemActivityInfo.isValid system because getIdleTimeMillis(), getSleepTimeMillis(), and getReceiveTimeMillis() are system. Bug: 146436760 Test: build Change-Id: Ifc1a1853fe0b7ca143ef95fe3a1abe70e2dc70d4 Merged-In: Ifc1a1853fe0b7ca143ef95fe3a1abe70e2dc70d4 (cherry picked from commit 3349553a99dad355886bc97e655e1f84d35011d8) --- api/system-current.txt | 1 + telephony/java/android/telephony/ModemActivityInfo.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/api/system-current.txt b/api/system-current.txt index 44a1c0d79c134..d76b5ffcb91de 100755 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -8986,6 +8986,7 @@ package android.telephony { method public int getSleepTimeMillis(); method public long getTimestamp(); method @NonNull public java.util.List getTransmitPowerInfo(); + method public boolean isValid(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public static final int TX_POWER_LEVELS = 5; // 0x5 diff --git a/telephony/java/android/telephony/ModemActivityInfo.java b/telephony/java/android/telephony/ModemActivityInfo.java index aee7cca752522..bd2375f7d2972 100644 --- a/telephony/java/android/telephony/ModemActivityInfo.java +++ b/telephony/java/android/telephony/ModemActivityInfo.java @@ -199,10 +199,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()) {