diff --git a/api/current.txt b/api/current.txt index c8e23e409e363..a8f5244f0b03b 100644 --- a/api/current.txt +++ b/api/current.txt @@ -33065,7 +33065,6 @@ package android.provider { public static final class VoicemailContract.Status implements android.provider.BaseColumns { method public static android.net.Uri buildSourceUri(java.lang.String); - method public static void setQuota(android.content.Context, android.telecom.PhoneAccountHandle, int, int); field public static final java.lang.String CONFIGURATION_STATE = "configuration_state"; field public static final int CONFIGURATION_STATE_CAN_BE_CONFIGURED = 2; // 0x2 field public static final int CONFIGURATION_STATE_NOT_CONFIGURED = 1; // 0x1 diff --git a/api/system-current.txt b/api/system-current.txt index 5065962b40bae..38280de8827f7 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -35771,7 +35771,6 @@ package android.provider { public static final class VoicemailContract.Status implements android.provider.BaseColumns { method public static android.net.Uri buildSourceUri(java.lang.String); - method public static void setQuota(android.content.Context, android.telecom.PhoneAccountHandle, int, int); field public static final java.lang.String CONFIGURATION_STATE = "configuration_state"; field public static final int CONFIGURATION_STATE_CAN_BE_CONFIGURED = 2; // 0x2 field public static final int CONFIGURATION_STATE_NOT_CONFIGURED = 1; // 0x1 diff --git a/api/test-current.txt b/api/test-current.txt index 2b11adc6b504f..d52a0cf2956b4 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -33142,7 +33142,6 @@ package android.provider { public static final class VoicemailContract.Status implements android.provider.BaseColumns { method public static android.net.Uri buildSourceUri(java.lang.String); - method public static void setQuota(android.content.Context, android.telecom.PhoneAccountHandle, int, int); field public static final java.lang.String CONFIGURATION_STATE = "configuration_state"; field public static final int CONFIGURATION_STATE_CAN_BE_CONFIGURED = 2; // 0x2 field public static final int CONFIGURATION_STATE_NOT_CONFIGURED = 1; // 0x1 diff --git a/core/java/android/provider/VoicemailContract.java b/core/java/android/provider/VoicemailContract.java index 79e0a3018bc1d..55aac9f7b06e7 100644 --- a/core/java/android/provider/VoicemailContract.java +++ b/core/java/android/provider/VoicemailContract.java @@ -555,14 +555,17 @@ public class VoicemailContract { /** * Amount of resource that is used by existing voicemail in the visual voicemail inbox, - * or {@link #QUOTA_UNAVAILABLE}. Unit is not specified. + * or {@link #QUOTA_UNAVAILABLE} if the quota has never been updated before. This value is + * used to inform the client the situation on the remote server. Unit is not specified. *

Type: INTEGER

*/ public static final String QUOTA_OCCUPIED = "quota_occupied"; /** * Total resource in the visual voicemail inbox that can be used, or - * {@link #QUOTA_UNAVAILABLE}. Unit is not specified. + * {@link #QUOTA_UNAVAILABLE} if server either has unlimited quota or does not provide quota + * information. This value is used to inform the client the situation on the remote server. + * Unit is not specified. *

Type: INTEGER

*/ public static final String QUOTA_TOTAL = "quota_total"; @@ -620,6 +623,8 @@ public class VoicemailContract { * @param accountHandle The handle for the account the source is associated with. * @param occupied See {@link Status#QUOTA_OCCUPIED} * @param total See {@link Status#QUOTA_TOTAL} + * + * @hide */ public static void setQuota(Context context, PhoneAccountHandle accountHandle, int occupied, int total) {