summaryrefslogtreecommitdiffstats
path: root/telephony
diff options
context:
space:
mode:
authorSungmin Choi <sungmin.choi@lge.com>2015-12-23 14:10:41 +0900
committerPavel Zhamaitsiak <pavelz@google.com>2016-01-11 11:07:06 -0800
commitd3b2826a1a3ff128db1e89a081124192ac70c509 (patch)
tree642dc1aaab1edaab1d374d78522cd86fa7049a96 /telephony
parent4c042b096e3b25f7292d13b4c44d79cb79ebeb36 (diff)
downloadframeworks_base-d3b2826a1a3ff128db1e89a081124192ac70c509.zip
frameworks_base-d3b2826a1a3ff128db1e89a081124192ac70c509.tar.gz
frameworks_base-d3b2826a1a3ff128db1e89a081124192ac70c509.tar.bz2
Add carrier config variable to support editable wfc mode
Some operators support Wi-Fi Calling only, not VoLTE. They don't need "Cellular preferred" option. In this case, set uneditalbe attribute for preferred preference. Bug: 26299288 Change-Id: I58b44bbd85bb5ef436d32a5e34d7372532695b91
Diffstat (limited to 'telephony')
-rw-r--r--telephony/java/android/telephony/CarrierConfigManager.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/CarrierConfigManager.java b/telephony/java/android/telephony/CarrierConfigManager.java
index eda71e8..7dee48b 100644
--- a/telephony/java/android/telephony/CarrierConfigManager.java
+++ b/telephony/java/android/telephony/CarrierConfigManager.java
@@ -428,6 +428,15 @@ public class CarrierConfigManager {
public static final String KEY_HIDE_PREFERRED_NETWORK_TYPE_BOOL = "hide_preferred_network_type_bool";
/**
+ * Determine whether user can switch Wi-Fi preferred or Cellular preferred in calling preference.
+ * Some operators support Wi-Fi Calling only, not VoLTE.
+ * They don't need "Cellular preferred" option.
+ * In this case, set uneditalbe attribute for preferred preference.
+ * @hide
+ */
+ public static final String KEY_EDITABLE_WFC_MODE_BOOL = "editable_wfc_mode_bool";
+
+ /**
* Specifies the amount of gap to be added in millis between postdial DTMF tones. When a
* non-zero value is specified, the UE shall wait for the specified amount of time before it
* sends out successive DTMF tones on the network.
@@ -560,6 +569,7 @@ public class CarrierConfigManager {
sDefaults.putBoolean(KEY_EDITABLE_ENHANCED_4G_LTE_BOOL, true);
sDefaults.putBoolean(KEY_HIDE_IMS_APN_BOOL, false);
sDefaults.putBoolean(KEY_HIDE_PREFERRED_NETWORK_TYPE_BOOL, false);
+ sDefaults.putBoolean(KEY_EDITABLE_WFC_MODE_BOOL, true);
sDefaults.putInt(KEY_CDMA_DTMF_TONE_DELAY_INT, 100);
// MMS defaults