Skip to content

Commit e64d187

Browse files
Makoto OnukiAndroid (Google) Code Review
authored andcommitted
Merge "Introduce new URI to clear data usage information"
2 parents aa7a8a8 + 7ebbfd0 commit e64d187

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

api/current.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16944,6 +16944,7 @@ package android.provider {
1694416944

1694516945
public static final class ContactsContract.DataUsageFeedback {
1694616946
ctor public ContactsContract.DataUsageFeedback();
16947+
field public static final android.net.Uri DELETE_USAGE_URI;
1694716948
field public static final android.net.Uri FEEDBACK_URI;
1694816949
field public static final java.lang.String USAGE_TYPE = "type";
1694916950
field public static final java.lang.String USAGE_TYPE_CALL = "call";

core/java/android/provider/ContactsContract.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7504,7 +7504,7 @@ private ProviderStatus() {
75047504
* <p>
75057505
* Applications can also clear all usage information with:
75067506
* <pre>
7507-
* boolean successful = resolver.delete(DataUsageFeedback.FEEDBACK_URI, null, null) > 0;
7507+
* boolean successful = resolver.delete(DataUsageFeedback.DELETE_USAGE_URI, null, null) > 0;
75087508
* </pre>
75097509
* </p>
75107510
*/
@@ -7517,6 +7517,14 @@ public static final class DataUsageFeedback {
75177517
public static final Uri FEEDBACK_URI =
75187518
Uri.withAppendedPath(Data.CONTENT_URI, "usagefeedback");
75197519

7520+
/**
7521+
* The content:// style URI for deleting all usage information.
7522+
* Must be used with {@link ContentResolver#delete(Uri, String, String[])}.
7523+
* The {@code where} and {@code selectionArgs} parameters are ignored.
7524+
*/
7525+
public static final Uri DELETE_USAGE_URI =
7526+
Uri.withAppendedPath(Contacts.CONTENT_URI, "delete_usage");
7527+
75207528
/**
75217529
* <p>
75227530
* Name for query parameter specifying the type of data usage.

0 commit comments

Comments
 (0)