summaryrefslogtreecommitdiffstats
path: root/core/java/android/provider/CallLog.java
diff options
context:
space:
mode:
authorFlavio Lerda <flerda@google.com>2011-06-29 10:51:59 +0100
committerFlavio Lerda <flerda@google.com>2011-06-29 10:51:59 +0100
commit9ef78f00d2950ab7f31a22beaa54bf6ad4206886 (patch)
treec39dda965652828a975279e8226b2f5e8f0b236e /core/java/android/provider/CallLog.java
parentb0b713f25b5cf6bf4b855cbcef3ce42cb030ab8e (diff)
downloadframeworks_base-9ef78f00d2950ab7f31a22beaa54bf6ad4206886.zip
frameworks_base-9ef78f00d2950ab7f31a22beaa54bf6ad4206886.tar.gz
frameworks_base-9ef78f00d2950ab7f31a22beaa54bf6ad4206886.tar.bz2
Constants for accessing call log with voicemails.
Move the constants from the contacts provider implementation to the framework. These constants will remain hidden as currently only the system is allowed access to the voicemail, protected by a signature permission. Change-Id: I7cdb0fe217603b3d755238067a877f4209f4c26c
Diffstat (limited to 'core/java/android/provider/CallLog.java')
-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 0933193..39c6f57 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";