diff --git a/api/system-current.txt b/api/system-current.txt index b28e7afddbe31..44c1886c954a1 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -12070,7 +12070,7 @@ package android.telephony.data { method public int getMtuV6(); method @NonNull public java.util.List getPcscfAddresses(); method public int getProtocolType(); - method public long getRetryIntervalMillis(); + method public long getRetryDurationMillis(); method @Deprecated public int getSuggestedRetryTime(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; @@ -12083,7 +12083,7 @@ package android.telephony.data { field public static final int LINK_STATUS_DORMANT = 1; // 0x1 field public static final int LINK_STATUS_INACTIVE = 0; // 0x0 field public static final int LINK_STATUS_UNKNOWN = -1; // 0xffffffff - field public static final int RETRY_INTERVAL_UNDEFINED = -1; // 0xffffffff + field public static final int RETRY_DURATION_UNDEFINED = -1; // 0xffffffff } public static final class DataCallResponse.Builder { @@ -12102,7 +12102,7 @@ package android.telephony.data { method @NonNull public android.telephony.data.DataCallResponse.Builder setMtuV6(int); method @NonNull public android.telephony.data.DataCallResponse.Builder setPcscfAddresses(@NonNull java.util.List); method @NonNull public android.telephony.data.DataCallResponse.Builder setProtocolType(int); - method @NonNull public android.telephony.data.DataCallResponse.Builder setRetryIntervalMillis(long); + method @NonNull public android.telephony.data.DataCallResponse.Builder setRetryDurationMillis(long); method @Deprecated @NonNull public android.telephony.data.DataCallResponse.Builder setSuggestedRetryTime(int); } diff --git a/core/api/system-current.txt b/core/api/system-current.txt index 8b15ec3b19214..5f8d8307e0b2b 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -10912,7 +10912,7 @@ package android.telephony.data { method public int getMtuV6(); method @NonNull public java.util.List getPcscfAddresses(); method public int getProtocolType(); - method public long getRetryIntervalMillis(); + method public long getRetryDurationMillis(); method @Deprecated public int getSuggestedRetryTime(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; @@ -10925,7 +10925,7 @@ package android.telephony.data { field public static final int LINK_STATUS_DORMANT = 1; // 0x1 field public static final int LINK_STATUS_INACTIVE = 0; // 0x0 field public static final int LINK_STATUS_UNKNOWN = -1; // 0xffffffff - field public static final int RETRY_INTERVAL_UNDEFINED = -1; // 0xffffffff + field public static final int RETRY_DURATION_UNDEFINED = -1; // 0xffffffff } public static final class DataCallResponse.Builder { @@ -10944,7 +10944,7 @@ package android.telephony.data { method @NonNull public android.telephony.data.DataCallResponse.Builder setMtuV6(int); method @NonNull public android.telephony.data.DataCallResponse.Builder setPcscfAddresses(@NonNull java.util.List); method @NonNull public android.telephony.data.DataCallResponse.Builder setProtocolType(int); - method @NonNull public android.telephony.data.DataCallResponse.Builder setRetryIntervalMillis(long); + method @NonNull public android.telephony.data.DataCallResponse.Builder setRetryDurationMillis(long); method @Deprecated @NonNull public android.telephony.data.DataCallResponse.Builder setSuggestedRetryTime(int); } diff --git a/telephony/java/android/telephony/data/DataCallResponse.java b/telephony/java/android/telephony/data/DataCallResponse.java index b054dfcab2b6a..993e07a55794f 100644 --- a/telephony/java/android/telephony/data/DataCallResponse.java +++ b/telephony/java/android/telephony/data/DataCallResponse.java @@ -110,10 +110,10 @@ public final class DataCallResponse implements Parcelable { public static final int HANDOVER_FAILURE_MODE_NO_FALLBACK_RETRY_SETUP_NORMAL = 3; /** - * Indicates that data retry interval is not specified. Platform can determine when to + * Indicates that data retry duration is not specified. Platform can determine when to * perform data setup appropriately. */ - public static final int RETRY_INTERVAL_UNDEFINED = -1; + public static final int RETRY_DURATION_UNDEFINED = -1; private final @DataFailureCause int mCause; private final long mSuggestedRetryTime; @@ -236,12 +236,12 @@ public final class DataCallResponse implements Parcelable { /** * @return The suggested data retry time in milliseconds. * - * @deprecated Use {@link #getRetryIntervalMillis()} instead. + * @deprecated Use {@link #getRetryDurationMillis()} instead. */ @Deprecated public int getSuggestedRetryTime() { // To match the pre-deprecated getSuggestedRetryTime() behavior. - if (mSuggestedRetryTime == RETRY_INTERVAL_UNDEFINED) { + if (mSuggestedRetryTime == RETRY_DURATION_UNDEFINED) { return 0; } else if (mSuggestedRetryTime > Integer.MAX_VALUE) { return Integer.MAX_VALUE; @@ -250,11 +250,11 @@ public final class DataCallResponse implements Parcelable { } /** - * @return The network suggested data retry interval in milliseconds. {@code Long.MAX_VALUE} - * indicates data retry should not occur. {@link #RETRY_INTERVAL_UNDEFINED} indicates network - * did not suggest any retry interval. + * @return The network suggested data retry duration in milliseconds. {@code Long.MAX_VALUE} + * indicates data retry should not occur. {@link #RETRY_DURATION_UNDEFINED} indicates network + * did not suggest any retry duration. */ - public long getRetryIntervalMillis() { + public long getRetryDurationMillis() { return mSuggestedRetryTime; } @@ -472,7 +472,7 @@ public final class DataCallResponse implements Parcelable { public static final class Builder { private @DataFailureCause int mCause; - private long mSuggestedRetryTime = RETRY_INTERVAL_UNDEFINED; + private long mSuggestedRetryTime = RETRY_DURATION_UNDEFINED; private int mId; @@ -521,7 +521,7 @@ public final class DataCallResponse implements Parcelable { * @param suggestedRetryTime The suggested data retry time in milliseconds. * @return The same instance of the builder. * - * @deprecated Use {@link #setRetryIntervalMillis(long)} instead. + * @deprecated Use {@link #setRetryDurationMillis(long)} instead. */ @Deprecated public @NonNull Builder setSuggestedRetryTime(int suggestedRetryTime) { @@ -530,13 +530,13 @@ public final class DataCallResponse implements Parcelable { } /** - * Set the network suggested data retry interval. + * Set the network suggested data retry duration. * - * @param retryIntervalMillis The suggested data retry interval in milliseconds. + * @param retryDurationMillis The suggested data retry duration in milliseconds. * @return The same instance of the builder. */ - public @NonNull Builder setRetryIntervalMillis(long retryIntervalMillis) { - mSuggestedRetryTime = retryIntervalMillis; + public @NonNull Builder setRetryDurationMillis(long retryDurationMillis) { + mSuggestedRetryTime = retryDurationMillis; return this; }