summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Flavio Lerda <flerda@google.com> 2011-06-29 04:50:52 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2011-06-29 04:50:52 -0700
commit8734f31d48b7c7c2b47b69db5fa9fba4ec341ed3 (patch)
tree19ccbebd05c9e673abe24a64b31ac5c032295018
parent528b084be26ff6f5b5d8cf42007bf964857be8da (diff)
parent9ef78f00d2950ab7f31a22beaa54bf6ad4206886 (diff)
Merge "Constants for accessing call log with voicemails."
-rw-r--r--core/java/android/provider/CallLog.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/core/java/android/provider/CallLog.java b/core/java/android/provider/CallLog.java
index 09331939f616..39c6f576b5d7 100644
--- a/core/java/android/provider/CallLog.java
+++ b/core/java/android/provider/CallLog.java
@@ -57,6 +57,29 @@ public class CallLog {
Uri.parse("content://call_log/calls/filter");
/**
+ * An optional URI parameter which instructs the provider to allow the operation to be
+ * applied to voicemail records as well.
+ * <p>
+ * TYPE: Boolean
+ * <p>
+ * Using this parameter with a value of {@code true} will result in a security error if the
+ * calling package does not have appropriate permissions to access voicemails.
+ *
+ * @hide
+ */
+ public static final String ALLOW_VOICEMAILS_PARAM_KEY = "allow_voicemails";
+
+ /**
+ * Content uri with {@link #ALLOW_VOICEMAILS_PARAM_KEY} set. This can directly be used to
+ * access call log entries that includes voicemail records.
+ *
+ * @hide
+ */
+ public static final Uri CONTENT_URI_WITH_VOICEMAIL = CONTENT_URI.buildUpon()
+ .appendQueryParameter(ALLOW_VOICEMAILS_PARAM_KEY, "true")
+ .build();
+
+ /**
* The default sort order for this table
*/
public static final String DEFAULT_SORT_ORDER = "date DESC";