summaryrefslogtreecommitdiff
path: root/telephony/api
diff options
context:
space:
mode:
authorHall Liu <hallliu@google.com>2020-10-09 18:58:45 -0700
committerHall Liu <hallliu@google.com>2020-10-14 11:22:11 -0700
commit0eca33ec91aeda3c3d1beceda1522be1a03d5831 (patch)
tree551c6b0317607efc567db679219d394b45d80263 /telephony/api
parentc48de401c5b3d00c16da789e298f68182602239b (diff)
Update and expose ModemActivityInfo
Update ModemActivityInfo to present a nicer API surface and expose it as a SystemApi. Also change clients in BatteryStats to match the new surface. This is part 1. Part 2 will modify the methods in TelephonyManager to use a more up-to-standards threading model. Bug: 170427831 Test: atest ModemActivityInfoTest Change-Id: I762ed949342861c75d94eafce88335e7bd8c9139
Diffstat (limited to 'telephony/api')
-rw-r--r--telephony/api/system-current.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/telephony/api/system-current.txt b/telephony/api/system-current.txt
index 4fb7302a5c5f..a67273cfc908 100644
--- a/telephony/api/system-current.txt
+++ b/telephony/api/system-current.txt
@@ -227,6 +227,25 @@ package android.telephony {
field public static final String MBMS_STREAMING_SERVICE_ACTION = "android.telephony.action.EmbmsStreaming";
}
+ public final class ModemActivityInfo implements android.os.Parcelable {
+ method public int describeContents();
+ method @NonNull public android.telephony.ModemActivityInfo getDelta(@NonNull android.telephony.ModemActivityInfo);
+ method public long getIdleTimeMillis();
+ method public static int getNumTxPowerLevels();
+ method public long getReceiveTimeMillis();
+ method public long getSleepTimeMillis();
+ method public long getTimestampMillis();
+ method public long getTransmitDurationMillisAtPowerLevel(int);
+ method @NonNull public android.util.Range<java.lang.Integer> getTransmitPowerRange(int);
+ 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_LEVEL_0 = 0; // 0x0
+ field public static final int TX_POWER_LEVEL_1 = 1; // 0x1
+ field public static final int TX_POWER_LEVEL_2 = 2; // 0x2
+ field public static final int TX_POWER_LEVEL_3 = 3; // 0x3
+ field public static final int TX_POWER_LEVEL_4 = 4; // 0x4
+ }
+
public final class NetworkRegistrationInfo implements android.os.Parcelable {
method @Nullable public android.telephony.DataSpecificRegistrationInfo getDataSpecificInfo();
method public int getRegistrationState();