summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Seongho Kim <sh_tiger.kim@samsung.com> 2018-11-13 15:08:34 +0900
committer Jordan Liu <jminjie@google.com> 2019-03-12 15:34:16 -0700
commit431e03a6f8b987bda909df7cab8bb80f211c2522 (patch)
treeb92026dd80bec1fde48adeef825a166057c6d6dc
parentc3b48be4937bbaf40cdc0b165d226219640321ca (diff)
Add carrier's option to cancel CS reject cause notification
Some carrier still want to cancel CS reject notification automatically when it gets service. So, we need a way to set carrier's option for it. Bug: 79889307 Test: Manual Change-Id: If4c696e8116094d0cb555fe87c92243af1f34cec Merged-In: If4c696e8116094d0cb555fe87c92243af1f34cec
-rwxr-xr-x[-rw-r--r--]telephony/java/android/telephony/CarrierConfigManager.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/CarrierConfigManager.java b/telephony/java/android/telephony/CarrierConfigManager.java
index 258fe6cd3462..9f85ca0bface 100644..100755
--- a/telephony/java/android/telephony/CarrierConfigManager.java
+++ b/telephony/java/android/telephony/CarrierConfigManager.java
@@ -2454,6 +2454,17 @@ public class CarrierConfigManager {
*/
public static final String KEY_OPPORTUNISTIC_NETWORK_DATA_SWITCH_HYSTERESIS_TIME_LONG =
"opportunistic_network_data_switch_hysteresis_time_long";
+ /**
+ * Determines whether the carrier wants to cancel the cs reject notification automatically
+ * when the voice registration state changes.
+ * If true, the notification will be automatically removed
+ * when the voice registration state changes.
+ * If false, the notification will persist until the user dismisses it,
+ * the SIM is removed, or the device is rebooted.
+ * @hide
+ */
+ public static final String KEY_AUTO_CANCEL_CS_REJECT_NOTIFICATION =
+ "carrier_auto_cancel_cs_notification";
/**
* An int array containing CDMA enhanced roaming indicator values for Home (non-roaming) network.
@@ -2880,6 +2891,7 @@ public class CarrierConfigManager {
sDefaults.putString(KEY_5G_ICON_CONFIGURATION_STRING,
"connected_mmwave:None,connected:5G,not_restricted:None,restricted:None");
sDefaults.putBoolean(KEY_USE_USIM_BOOL, false);
+ sDefaults.putBoolean(KEY_AUTO_CANCEL_CS_REJECT_NOTIFICATION, false);
}
/**