From 675df994592317e0ee78831f058bfad7b1f46113 Mon Sep 17 00:00:00 2001 From: Daniel Bright Date: Wed, 9 Dec 2020 16:19:23 -0800 Subject: [PATCH] Hide NO_THROTTLE_EXPIRY_TIME There is no reason to expose NO_THROTTLE_EXPIRY_TIME since the fact that the apn was not throttle can be explicitly checked for by checking the throttle type. Test: N/A Bug: 175092152 Change-Id: I8888fae0037fd04e1668ab51eff91dd2bcb5e057 --- core/api/system-current.txt | 1 - telephony/java/android/telephony/data/ApnThrottleStatus.java | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/core/api/system-current.txt b/core/api/system-current.txt index 5270d0054cf45..05669848cc515 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -11153,7 +11153,6 @@ package android.telephony.data { method @NonNull public android.telephony.data.ApnThrottleStatus.Builder setSlotIndex(int); method @NonNull public android.telephony.data.ApnThrottleStatus.Builder setThrottleExpiryTimeMillis(long); method @NonNull public android.telephony.data.ApnThrottleStatus.Builder setTransportType(int); - field public static final long NO_THROTTLE_EXPIRY_TIME = -1L; // 0xffffffffffffffffL } public final class DataCallResponse implements android.os.Parcelable { diff --git a/telephony/java/android/telephony/data/ApnThrottleStatus.java b/telephony/java/android/telephony/data/ApnThrottleStatus.java index 51461d17690a8..eec140869466a 100644 --- a/telephony/java/android/telephony/data/ApnThrottleStatus.java +++ b/telephony/java/android/telephony/data/ApnThrottleStatus.java @@ -261,6 +261,10 @@ public final class ApnThrottleStatus implements Parcelable { private long mThrottleExpiryTimeMillis; private @RetryType int mRetryType; private @ThrottleType int mThrottleType; + + /** + * @hide + */ public static final long NO_THROTTLE_EXPIRY_TIME = DataCallResponse.RETRY_DURATION_UNDEFINED;