summaryrefslogtreecommitdiffstats
path: root/core/java/android/provider/VoicemailContract.java
diff options
context:
space:
mode:
authorNancy Chen <nancychen@google.com>2015-04-07 12:21:36 -0700
committerNancy Chen <nancychen@google.com>2015-04-07 12:21:36 -0700
commit1df9429b6b76710f8dd6458517d04feb7a63826e (patch)
tree0b12a3dd39c3a1b8e1e21f4b49ae1d20338abc7c /core/java/android/provider/VoicemailContract.java
parentb677e0a49643d265eb0fa5efc3666a1e9362477f (diff)
downloadframeworks_base-1df9429b6b76710f8dd6458517d04feb7a63826e.zip
frameworks_base-1df9429b6b76710f8dd6458517d04feb7a63826e.tar.gz
frameworks_base-1df9429b6b76710f8dd6458517d04feb7a63826e.tar.bz2
Hide and make systemapi visual voicemail-related apis.
Since there are no third-party apps expected to be using the visual voicemail related apps at the moment, best to keep these hidden for now. Bug: 19236241 Change-Id: I86f622208efcc89fab523f03d2bb70c244cdf867
Diffstat (limited to 'core/java/android/provider/VoicemailContract.java')
-rw-r--r--core/java/android/provider/VoicemailContract.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/java/android/provider/VoicemailContract.java b/core/java/android/provider/VoicemailContract.java
index efbb3b8..4712f97 100644
--- a/core/java/android/provider/VoicemailContract.java
+++ b/core/java/android/provider/VoicemailContract.java
@@ -19,6 +19,7 @@ package android.provider;
import android.Manifest;
import android.annotation.SdkConstant;
import android.annotation.SdkConstant.SdkConstantType;
+import android.annotation.SystemApi;
import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.Context;
@@ -254,7 +255,10 @@ public class VoicemailContract {
* @param context The context of the app doing the inserting
* @param voicemail Data to be inserted
* @return {@link Uri} of the newly inserted {@link Voicemail}
+ *
+ * @hide
*/
+ @SystemApi
public static Uri insert(Context context, Voicemail voicemail) {
ContentResolver contentResolver = context.getContentResolver();
ContentValues contentValues = getContentValues(voicemail);
@@ -267,7 +271,10 @@ public class VoicemailContract {
* @param context The context of the app doing the inserting
* @param voicemails Data to be inserted
* @return the number of voicemails inserted
+ *
+ * @hide
*/
+ @SystemApi
public static int insert(Context context, List<Voicemail> voicemails) {
ContentResolver contentResolver = context.getContentResolver();
int count = voicemails.size();
@@ -283,7 +290,10 @@ public class VoicemailContract {
* package. By default, a package only has permission to delete voicemails it inserted.
*
* @return the number of voicemails deleted
+ *
+ * @hide
*/
+ @SystemApi
public static int deleteAll(Context context) {
return context.getContentResolver().delete(
buildSourceUri(context.getPackageName()), "", new String[0]);
@@ -439,7 +449,10 @@ public class VoicemailContract {
* @param configurationState See {@link Status#CONFIGURATION_STATE}
* @param dataChannelState See {@link Status#DATA_CHANNEL_STATE}
* @param notificationChannelState See {@link Status#NOTIFICATION_CHANNEL_STATE}
+ *
+ * @hide
*/
+ @SystemApi
public static void setStatus(Context context, PhoneAccountHandle accountHandle,
int configurationState, int dataChannelState, int notificationChannelState) {
ContentResolver contentResolver = context.getContentResolver();