summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMakoto Onuki <omakoto@google.com>2012-04-13 12:56:42 -0700
committerMakoto Onuki <omakoto@google.com>2012-04-13 13:18:22 -0700
commit7ebbfd0f0cd70e9cd4abbd9eccfc068e5959d94c (patch)
tree2b064ff5019a429861f0f8178588f0fc753b2592 /core
parent22bf2a6e1472a3308e3c41b4dea45763874e79be (diff)
downloadframeworks_base-7ebbfd0f0cd70e9cd4abbd9eccfc068e5959d94c.zip
frameworks_base-7ebbfd0f0cd70e9cd4abbd9eccfc068e5959d94c.tar.gz
frameworks_base-7ebbfd0f0cd70e9cd4abbd9eccfc068e5959d94c.tar.bz2
Introduce new URI to clear data usage information
We were going to piggyback existing DataUsageFeedback.FEEDBACK_URI, but decided to introduce a new URI for this. Bug 5475575 Change-Id: I6d467e5342f551142f047aa1b0b3503c5bf9b7fd
Diffstat (limited to 'core')
-rw-r--r--core/java/android/provider/ContactsContract.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/core/java/android/provider/ContactsContract.java b/core/java/android/provider/ContactsContract.java
index e4729c7..d1fffd9 100644
--- a/core/java/android/provider/ContactsContract.java
+++ b/core/java/android/provider/ContactsContract.java
@@ -7500,7 +7500,7 @@ public final class ContactsContract {
* <p>
* Applications can also clear all usage information with:
* <pre>
- * boolean successful = resolver.delete(DataUsageFeedback.FEEDBACK_URI, null, null) > 0;
+ * boolean successful = resolver.delete(DataUsageFeedback.DELETE_USAGE_URI, null, null) > 0;
* </pre>
* </p>
*/
@@ -7514,6 +7514,14 @@ public final class ContactsContract {
Uri.withAppendedPath(Data.CONTENT_URI, "usagefeedback");
/**
+ * The content:// style URI for deleting all usage information.
+ * Must be used with {@link ContentResolver#delete(Uri, String, String[])}.
+ * The {@code where} and {@code selectionArgs} parameters are ignored.
+ */
+ public static final Uri DELETE_USAGE_URI =
+ Uri.withAppendedPath(Contacts.CONTENT_URI, "delete_usage");
+
+ /**
* <p>
* Name for query parameter specifying the type of data usage.
* </p>