diff options
| author | 2020-01-27 15:00:11 -0800 | |
|---|---|---|
| committer | 2020-01-27 23:33:33 +0000 | |
| commit | 498cc25dc3d7e8238837b8bed664eb163859583c (patch) | |
| tree | 48573495c05c8a9f2751b0f812e6ee3fcf98bbe7 | |
| parent | 9f85cd1bdbd4bbfcc2b6b92433972c7a7e6ef07d (diff) | |
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)
| -rwxr-xr-x | api/system-current.txt | 1 | ||||
| -rw-r--r-- | 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 44a1c0d79c13..d76b5ffcb91d 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<android.telephony.ModemActivityInfo.TransmitPower> getTransmitPowerInfo(); + method public boolean isValid(); method public void writeToParcel(@NonNull 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 diff --git a/telephony/java/android/telephony/ModemActivityInfo.java b/telephony/java/android/telephony/ModemActivityInfo.java index aee7cca75252..bd2375f7d297 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()) { |