OSDN Git Service

Add carrier's option to cancel CS reject cause notification
authorSeongho Kim <sh_tiger.kim@samsung.com>
Tue, 13 Nov 2018 06:08:34 +0000 (15:08 +0900)
committerJordan Liu <jminjie@google.com>
Tue, 12 Mar 2019 17:47:16 +0000 (10:47 -0700)
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

telephony/java/android/telephony/CarrierConfigManager.java [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 89c65a0..3454c1c
@@ -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.
@@ -2875,6 +2886,7 @@ public class CarrierConfigManager {
                 });
         sDefaults.putString(KEY_5G_ICON_CONFIGURATION_STRING,
                 "connected_mmwave:None,connected:5G,not_restricted:None,restricted:None");
+        sDefaults.putBoolean(KEY_AUTO_CANCEL_CS_REJECT_NOTIFICATION, false);
     }
 
     /**