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
diff --git a/api/current.txt b/api/current.txt
index af9a448..ca95b49 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -32954,7 +32954,6 @@
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 dd77960..b507648 100644
--- a/api/system-current.txt
+++ b/api/system-current.txt
@@ -35660,7 +35660,6 @@
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 6f9b6d5..68b0950 100644
--- a/api/test-current.txt
+++ b/api/test-current.txt
@@ -33030,7 +33030,6 @@
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 8ee9d1e..ee7248f 100644
--- a/core/java/android/provider/VoicemailContract.java
+++ b/core/java/android/provider/VoicemailContract.java
@@ -514,14 +514,17 @@
/**
* 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.
* <P>Type: INTEGER</P>
*/
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.
* <P>Type: INTEGER</P>
*/
public static final String QUOTA_TOTAL = "quota_total";
@@ -579,6 +582,8 @@
* @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) {