summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Brad Ebinger <breadley@google.com> 2016-07-19 14:09:23 -0700
committer Brad Ebinger <breadley@google.com> 2016-07-19 14:09:23 -0700
commitc8601013d598444eec496bc6c75f5e1959d4ccae (patch)
tree8fcc1bb106bdab29c553bd788fad84cd991c82a3
parent142c4f7a9f16f3cfdf5c8cc5e185b8738f94c80f (diff)
Add CarrierConfig to remove hold during Ims Calls
Adds a Carrier Config key to specify whether an IMS call supports holding. If not, the CAPABILITY_HOLD and CAPABILITY_SUPPORT_HOLD are not added to the Connection. Bug: 30195356 Change-Id: I9b16b385a2b90118453d484be5af4f173b199ab1
-rw-r--r--telephony/java/android/telephony/CarrierConfigManager.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/CarrierConfigManager.java b/telephony/java/android/telephony/CarrierConfigManager.java
index 3052cdb20552..4a2da2778b53 100644
--- a/telephony/java/android/telephony/CarrierConfigManager.java
+++ b/telephony/java/android/telephony/CarrierConfigManager.java
@@ -837,6 +837,12 @@ public class CarrierConfigManager {
"allow_merge_wifi_calls_when_vowifi_off_bool";
/**
+ * Flag indicating whether the carrier supports the Hold command while in an IMS call.
+ * @hide
+ */
+ public static final String KEY_ALLOW_HOLD_IN_IMS_CALL_BOOL = "allow_hold_in_ims_call";
+
+ /**
* When true, indicates that adding a call is disabled when there is an ongoing video call
* or when there is an ongoing call on wifi which was downgraded from video and VoWifi is
* turned off.
@@ -868,6 +874,7 @@ public class CarrierConfigManager {
static {
sDefaults = new PersistableBundle();
+ sDefaults.putBoolean(KEY_ALLOW_HOLD_IN_IMS_CALL_BOOL, true);
sDefaults.putBoolean(KEY_ADDITIONAL_CALL_SETTING_BOOL, true);
sDefaults.putBoolean(KEY_ALLOW_EMERGENCY_NUMBERS_IN_CALL_LOG_BOOL, false);
sDefaults.putBoolean(KEY_ALLOW_LOCAL_DTMF_TONES_BOOL, true);