summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzoey chen <zoeychen@google.com>2019-11-18 19:11:54 +0800
committerzoey chen <zoeychen@google.com>2019-11-26 16:58:53 +0800
commitb588abe4bc4e893f71c8598f97f1395f6c827613 (patch)
treec48410e37eecb04a72232a0715bcd2e453aa536a
parent13ca467371e71b39f9fbc38b95504e7a0d5d6326 (diff)
downloadBlockedNumberProvider-b588abe4bc4e893f71c8598f97f1395f6c827613.tar.gz
[Telephony mainline] Move all METHOD_* constants from SystemContract to BlockedNumberContract
Bug: 143860012 Test: make Change-Id: I5c4380f9343fa50f469dc59a54900bbdc6ea3693 Merged-In: I5c4380f9343fa50f469dc59a54900bbdc6ea3693
-rw-r--r--src/com/android/providers/blockednumber/BlockedNumberProvider.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/com/android/providers/blockednumber/BlockedNumberProvider.java b/src/com/android/providers/blockednumber/BlockedNumberProvider.java
index 4d6a284..c70e1ee 100644
--- a/src/com/android/providers/blockednumber/BlockedNumberProvider.java
+++ b/src/com/android/providers/blockednumber/BlockedNumberProvider.java
@@ -326,17 +326,17 @@ public class BlockedNumberProvider extends ContentProvider {
res.putInt(BlockedNumberContract.RES_NUM_ROWS_DELETED, unblock(arg));
break;
- case SystemContract.METHOD_NOTIFY_EMERGENCY_CONTACT:
+ case BlockedNumberContract.METHOD_NOTIFY_EMERGENCY_CONTACT:
enforceSystemWritePermissionAndPrimaryUser();
notifyEmergencyContact();
break;
- case SystemContract.METHOD_END_BLOCK_SUPPRESSION:
+ case BlockedNumberContract.METHOD_END_BLOCK_SUPPRESSION:
enforceSystemWritePermissionAndPrimaryUser();
endBlockSuppression();
break;
- case SystemContract.METHOD_GET_BLOCK_SUPPRESSION_STATUS:
+ case BlockedNumberContract.METHOD_GET_BLOCK_SUPPRESSION_STATUS:
enforceSystemReadPermissionAndPrimaryUser();
SystemContract.BlockSuppressionStatus status = getBlockSuppressionStatus();
@@ -344,19 +344,19 @@ public class BlockedNumberProvider extends ContentProvider {
res.putLong(SystemContract.RES_BLOCKING_SUPPRESSED_UNTIL_TIMESTAMP,
status.untilTimestampMillis);
break;
- case SystemContract.METHOD_SHOULD_SYSTEM_BLOCK_NUMBER:
+ case BlockedNumberContract.METHOD_SHOULD_SYSTEM_BLOCK_NUMBER:
enforceSystemReadPermissionAndPrimaryUser();
int blockReason = shouldSystemBlockNumber(arg, extras);
res.putBoolean(BlockedNumberContract.RES_NUMBER_IS_BLOCKED,
blockReason != BlockedNumberContract.STATUS_NOT_BLOCKED);
res.putInt(BlockedNumberContract.RES_BLOCK_STATUS, blockReason);
break;
- case SystemContract.METHOD_SHOULD_SHOW_EMERGENCY_CALL_NOTIFICATION:
+ case BlockedNumberContract.METHOD_SHOULD_SHOW_EMERGENCY_CALL_NOTIFICATION:
enforceSystemReadPermissionAndPrimaryUser();
res.putBoolean(BlockedNumberContract.RES_SHOW_EMERGENCY_CALL_NOTIFICATION,
shouldShowEmergencyCallNotification());
break;
- case SystemContract.METHOD_GET_ENHANCED_BLOCK_SETTING:
+ case BlockedNumberContract.METHOD_GET_ENHANCED_BLOCK_SETTING:
enforceSystemReadPermissionAndPrimaryUser();
if (extras != null) {
String key = extras.getString(BlockedNumberContract.EXTRA_ENHANCED_SETTING_KEY);
@@ -364,7 +364,7 @@ public class BlockedNumberProvider extends ContentProvider {
res.putBoolean(BlockedNumberContract.RES_ENHANCED_SETTING_IS_ENABLED, value);
}
break;
- case SystemContract.METHOD_SET_ENHANCED_BLOCK_SETTING:
+ case BlockedNumberContract.METHOD_SET_ENHANCED_BLOCK_SETTING:
enforceSystemWritePermissionAndPrimaryUser();
if (extras != null) {
String key = extras.getString(BlockedNumberContract.EXTRA_ENHANCED_SETTING_KEY);