Merge "Update BlockedNumberContract documentation." into nyc-dev

am: 9a2384a7a6

* commit '9a2384a7a6ad4ff630f125e844f7b202ec3cc649':
  Update BlockedNumberContract documentation.

Change-Id: I05aee9d3367e37f783eae34ec33025da463a8306
This commit is contained in:
Abhijith Shastry
2016-05-04 18:22:14 +00:00
committed by android-build-merger

View File

@@ -136,9 +136,9 @@ import android.os.Bundle;
* <p> * <p>
* Apps must use the method {@link #canCurrentUserBlockNumbers(Context)} before performing any * Apps must use the method {@link #canCurrentUserBlockNumbers(Context)} before performing any
* operation on the blocked number provider. If {@link #canCurrentUserBlockNumbers(Context)} returns * operation on the blocked number provider. If {@link #canCurrentUserBlockNumbers(Context)} returns
* {@code false}, all operations on the provider will fail with an * {@code false}, all operations on the provider will fail with a {@link SecurityException}. The
* {@link UnsupportedOperationException}. The platform will block calls, and messages from numbers * platform will block calls, and messages from numbers in the provider independent of the current
* in the provider independent of the current user. * user.
* </p> * </p>
*/ */
public class BlockedNumberContract { public class BlockedNumberContract {
@@ -236,7 +236,7 @@ public class BlockedNumberContract {
* {@code phoneNumber} with the {@link BlockedNumbers#COLUMN_E164_NUMBER} column. * {@code phoneNumber} with the {@link BlockedNumbers#COLUMN_E164_NUMBER} column.
* *
* <p> Note that if the {@link #canCurrentUserBlockNumbers} is {@code false} for the user * <p> Note that if the {@link #canCurrentUserBlockNumbers} is {@code false} for the user
* context {@code context}, this method will throw an {@link UnsupportedOperationException}. * context {@code context}, this method will throw a {@link SecurityException}.
*/ */
@WorkerThread @WorkerThread
public static boolean isBlocked(Context context, String phoneNumber) { public static boolean isBlocked(Context context, String phoneNumber) {
@@ -260,7 +260,7 @@ public class BlockedNumberContract {
* {@link BlockedNumbers#CONTENT_URI} URI. * {@link BlockedNumbers#CONTENT_URI} URI.
* *
* <p> Note that if the {@link #canCurrentUserBlockNumbers} is {@code false} for the user * <p> Note that if the {@link #canCurrentUserBlockNumbers} is {@code false} for the user
* context {@code context}, this method will throw an {@link UnsupportedOperationException}. * context {@code context}, this method will throw a {@link SecurityException}.
*/ */
@WorkerThread @WorkerThread
public static int unblock(Context context, String phoneNumber) { public static int unblock(Context context, String phoneNumber) {