From 467f067c8c4fecb1b633d9d99b29f9a376a8731f Mon Sep 17 00:00:00 2001 From: Ta-wei Yen Date: Thu, 19 May 2016 12:02:25 -0700 Subject: [PATCH] Hide VoicemailContract.setQuota() This method is a helper for internal use only. + Updated docs for QUOTA_OCCUPIED, QUOTA_TOTAL, and QUOTA_UNAVAILABLE. Change-Id: Ib146926cd2bff50affe970a0123bcbec62ac3e70 Fixes:28842445 --- api/current.txt | 1 - api/system-current.txt | 1 - api/test-current.txt | 1 - core/java/android/provider/VoicemailContract.java | 9 +++++++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/api/current.txt b/api/current.txt index af9a448b4b462..ca95b49964121 100644 --- a/api/current.txt +++ b/api/current.txt @@ -32954,7 +32954,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 dd77960385fc5..b50764887b2c3 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -35660,7 +35660,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 6f9b6d5e5d348..68b095096d47e 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -33030,7 +33030,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 8ee9d1eaf9149..ee7248f8bfed0 100644 --- a/core/java/android/provider/VoicemailContract.java +++ b/core/java/android/provider/VoicemailContract.java @@ -514,14 +514,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"; @@ -579,6 +582,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) {