summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Franck Mevaa <gillesd@google.com>2016-02-17 16:53:01 -0800
committerGilles Franck Mevaa <gillesd@google.com>2016-02-29 15:00:28 -0800
commit6a87f4406af8ba5861c025bab12333ab6d40ae19 (patch)
tree55ff1439b376e7428483cc88246dfec4e4a61e39
parent1f6979dfa24dcde0e11c21e35f3e5e65faac052e (diff)
Allowing FilteredNumberAQHelper to be stubbed
Just by making its apis not 'final'. Change-Id: Ia05b8562fc983da0fdd76b83b5240f30eb2faf7b
-rw-r--r--src/com/android/dialer/database/FilteredNumberAsyncQueryHandler.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/com/android/dialer/database/FilteredNumberAsyncQueryHandler.java b/src/com/android/dialer/database/FilteredNumberAsyncQueryHandler.java
index 39ae1caa0..6e64c6098 100644
--- a/src/com/android/dialer/database/FilteredNumberAsyncQueryHandler.java
+++ b/src/com/android/dialer/database/FilteredNumberAsyncQueryHandler.java
@@ -149,7 +149,7 @@ public class FilteredNumberAsyncQueryHandler extends AsyncQueryHandler {
* @return {@code false} if the number was invalid and couldn't be checked,
* {@code true} otherwise,
*/
- public final boolean isBlockedNumber(
+ public boolean isBlockedNumber(
final OnCheckBlockedListener listener, String number, String countryIso) {
final String normalizedNumber = PhoneNumberUtils.formatNumberToE164(number, countryIso);
if (TextUtils.isEmpty(normalizedNumber)) {
@@ -183,7 +183,7 @@ public class FilteredNumberAsyncQueryHandler extends AsyncQueryHandler {
return true;
}
- public final void blockNumber(
+ public void blockNumber(
final OnBlockNumberListener listener, String number, String countryIso) {
blockNumber(listener, null, number, countryIso);
}
@@ -191,7 +191,7 @@ public class FilteredNumberAsyncQueryHandler extends AsyncQueryHandler {
/**
* Add a number manually blocked by the user.
*/
- public final void blockNumber(
+ public void blockNumber(
final OnBlockNumberListener listener,
String normalizedNumber,
String number,
@@ -212,7 +212,7 @@ public class FilteredNumberAsyncQueryHandler extends AsyncQueryHandler {
* Block a number with specified ContentValues. Can be manually added or a restored row
* from performing the 'undo' action after unblocking.
*/
- public final void blockNumber(final OnBlockNumberListener listener, ContentValues values) {
+ public void blockNumber(final OnBlockNumberListener listener, ContentValues values) {
startInsert(NO_TOKEN,
new Listener() {
@Override
@@ -229,7 +229,7 @@ public class FilteredNumberAsyncQueryHandler extends AsyncQueryHandler {
* Caller should call {@link FilteredNumberAsyncQueryHandler#startBlockedQuery} first.
* @param id The ID of row to remove, from {@link FilteredNumberAsyncQueryHandler#startBlockedQuery}.
*/
- public final void unblock(final OnUnblockNumberListener listener, Integer id) {
+ public void unblock(final OnUnblockNumberListener listener, Integer id) {
if (id == null) {
throw new IllegalArgumentException("Null id passed into unblock");
}
@@ -241,7 +241,7 @@ public class FilteredNumberAsyncQueryHandler extends AsyncQueryHandler {
* @param uri The uri of row to remove, from
* {@link FilteredNumberAsyncQueryHandler#blockNumber}.
*/
- public final void unblock(final OnUnblockNumberListener listener, final Uri uri) {
+ public void unblock(final OnUnblockNumberListener listener, final Uri uri) {
startQuery(NO_TOKEN, new Listener() {
@Override
public void onQueryComplete(int token, Object cookie, Cursor cursor) {