Add carrier config for ignoring user RTT setting

Add a carrier config to ignore the user's RTT mode setting for purposes
of IMS registration and default outgoing/incoming call behavior.

Bug: 136035164
Test: manual
Change-Id: I481fb945fd76181a0c59cb433c2959b532127153
This commit is contained in:
Hall Liu
2019-07-23 18:39:15 -07:00
parent 403bf951fd
commit 788d01b71e

View File

@@ -1001,6 +1001,18 @@ public class CarrierConfigManager {
public static final String KEY_CALL_FORWARDING_MAP_NON_NUMBER_TO_VOICEMAIL_BOOL = public static final String KEY_CALL_FORWARDING_MAP_NON_NUMBER_TO_VOICEMAIL_BOOL =
"call_forwarding_map_non_number_to_voicemail_bool"; "call_forwarding_map_non_number_to_voicemail_bool";
/**
* When {@code true}, the phone will always tell the IMS stack to keep RTT enabled and
* determine on a per-call basis (based on extras from the dialer app) whether a call should be
* an RTT call or not.
*
* When {@code false}, the old behavior is used, where the toggle in accessibility settings is
* used to set the IMS stack's RTT enabled state.
* @hide
*/
public static final String KEY_IGNORE_RTT_MODE_SETTING_BOOL =
"ignore_rtt_mode_setting_bool";
/** /**
* Determines whether conference calls are supported by a carrier. When {@code true}, * Determines whether conference calls are supported by a carrier. When {@code true},
* conference calling is supported, {@code false otherwise}. * conference calling is supported, {@code false otherwise}.
@@ -3194,6 +3206,7 @@ public class CarrierConfigManager {
sDefaults.putInt(KEY_IMS_DTMF_TONE_DELAY_INT, 0); sDefaults.putInt(KEY_IMS_DTMF_TONE_DELAY_INT, 0);
sDefaults.putInt(KEY_CDMA_DTMF_TONE_DELAY_INT, 100); sDefaults.putInt(KEY_CDMA_DTMF_TONE_DELAY_INT, 100);
sDefaults.putBoolean(KEY_CALL_FORWARDING_MAP_NON_NUMBER_TO_VOICEMAIL_BOOL, false); sDefaults.putBoolean(KEY_CALL_FORWARDING_MAP_NON_NUMBER_TO_VOICEMAIL_BOOL, false);
sDefaults.putBoolean(KEY_IGNORE_RTT_MODE_SETTING_BOOL, false);
sDefaults.putInt(KEY_CDMA_3WAYCALL_FLASH_DELAY_INT , 0); sDefaults.putInt(KEY_CDMA_3WAYCALL_FLASH_DELAY_INT , 0);
sDefaults.putBoolean(KEY_SUPPORT_CONFERENCE_CALL_BOOL, true); sDefaults.putBoolean(KEY_SUPPORT_CONFERENCE_CALL_BOOL, true);
sDefaults.putBoolean(KEY_SUPPORT_IMS_CONFERENCE_CALL_BOOL, true); sDefaults.putBoolean(KEY_SUPPORT_IMS_CONFERENCE_CALL_BOOL, true);