• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2015 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package android.telephony;
18 
19 import android.Manifest;
20 import android.annotation.IntDef;
21 import android.annotation.NonNull;
22 import android.annotation.Nullable;
23 import android.annotation.RequiresFeature;
24 import android.annotation.RequiresPermission;
25 import android.annotation.SuppressAutoDoc;
26 import android.annotation.SuppressLint;
27 import android.annotation.SystemApi;
28 import android.annotation.SystemService;
29 import android.compat.annotation.UnsupportedAppUsage;
30 import android.content.ComponentName;
31 import android.content.Context;
32 import android.content.pm.PackageManager;
33 import android.net.NetworkCapabilities;
34 import android.net.ipsec.ike.SaProposal;
35 import android.os.Build;
36 import android.os.PersistableBundle;
37 import android.os.RemoteException;
38 import android.service.carrier.CarrierService;
39 import android.telecom.TelecomManager;
40 import android.telephony.AccessNetworkConstants.AccessNetworkType;
41 import android.telephony.data.ApnSetting;
42 import android.telephony.data.DataCallResponse;
43 import android.telephony.gba.TlsParams;
44 import android.telephony.gba.UaSecurityProtocolIdentifier;
45 import android.telephony.ims.ImsReasonInfo;
46 import android.telephony.ims.ImsRegistrationAttributes;
47 import android.telephony.ims.ImsSsData;
48 import android.telephony.ims.RcsUceAdapter;
49 import android.telephony.ims.feature.MmTelFeature;
50 import android.telephony.ims.feature.RcsFeature;
51 
52 import com.android.internal.telephony.ICarrierConfigLoader;
53 import com.android.telephony.Rlog;
54 
55 import java.util.List;
56 import java.util.concurrent.TimeUnit;
57 
58 /**
59  * Provides access to telephony configuration values that are carrier-specific.
60  */
61 @SystemService(Context.CARRIER_CONFIG_SERVICE)
62 @RequiresFeature(PackageManager.FEATURE_TELEPHONY_SUBSCRIPTION)
63 public class CarrierConfigManager {
64     private final static String TAG = "CarrierConfigManager";
65 
66     /**
67      * Extra included in {@link #ACTION_CARRIER_CONFIG_CHANGED} to indicate the slot index that the
68      * broadcast is for.
69      */
70     public static final String EXTRA_SLOT_INDEX = "android.telephony.extra.SLOT_INDEX";
71 
72     /**
73      * {@link #ACTION_CARRIER_CONFIG_CHANGED} is broadcast once on device bootup and then again when
74      * the device is unlocked. Direct-Boot-aware applications may use the first broadcast as an
75      * early signal that the carrier config has been loaded, but other applications will only
76      * receive the second broadcast, when the device is unlocked.
77      *
78      * This extra is included in {@link #ACTION_CARRIER_CONFIG_CHANGED} to indicate whether this is
79      * a rebroadcast on unlock.
80      */
81     public static final String EXTRA_REBROADCAST_ON_UNLOCK =
82             "android.telephony.extra.REBROADCAST_ON_UNLOCK";
83 
84     /**
85      * Optional extra included in {@link #ACTION_CARRIER_CONFIG_CHANGED} to indicate the
86      * subscription index that the broadcast is for, if a valid one is available.
87      */
88     public static final String EXTRA_SUBSCRIPTION_INDEX =
89             SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX;
90 
91     /**
92      * Service class flag if no specific service class is specified.
93      * Reference: 3GPP TS 27.007 Section 7.4 Facility lock +CLCK
94      */
95     public static final int SERVICE_CLASS_NONE = ImsSsData.SERVICE_CLASS_NONE;
96 
97     /**
98      * Service class flag for voice telephony.
99      * Reference: 3GPP TS 27.007 Section 7.4 Facility lock +CLCK
100      */
101     public static final int SERVICE_CLASS_VOICE = ImsSsData.SERVICE_CLASS_VOICE;
102 
103     /**
104      * Only send USSD over IMS while CS is out of service, otherwise send USSD over CS.
105      * {@link #KEY_CARRIER_USSD_METHOD_INT}
106      */
107     public static final int USSD_OVER_CS_PREFERRED   = 0;
108 
109     /**
110      * Send USSD over IMS or CS while IMS is out of service or silent redial over CS if needed.
111      * {@link #KEY_CARRIER_USSD_METHOD_INT}
112      */
113     public static final int USSD_OVER_IMS_PREFERRED  = 1;
114 
115     /**
116      * Only send USSD over CS.
117      * {@link #KEY_CARRIER_USSD_METHOD_INT}
118      */
119     public static final int USSD_OVER_CS_ONLY        = 2;
120 
121     /**
122      * Only send USSD over IMS and disallow silent redial over CS.
123      * {@link #KEY_CARRIER_USSD_METHOD_INT}
124      */
125     public static final int USSD_OVER_IMS_ONLY       = 3;
126 
127     /**
128      * Indicates CARRIER_NR_AVAILABILITY_NSA determine that the carrier enable the non-standalone
129      * (NSA) mode of 5G NR.
130      */
131     public static final int CARRIER_NR_AVAILABILITY_NSA = 1;
132 
133     /**
134      * Indicates CARRIER_NR_AVAILABILITY_SA determine that the carrier enable the standalone (SA)
135      * mode of 5G NR.
136      */
137     public static final int CARRIER_NR_AVAILABILITY_SA = 2;
138 
139     private final Context mContext;
140 
141     /**
142      * @hide
143      */
CarrierConfigManager(Context context)144     public CarrierConfigManager(Context context) {
145         mContext = context;
146     }
147 
148     /**
149      * This intent is broadcast by the system when carrier config changes. An int is specified in
150      * {@link #EXTRA_SLOT_INDEX} to indicate the slot index that this is for. An optional int extra
151      * {@link #EXTRA_SUBSCRIPTION_INDEX} is included to indicate the subscription index if a valid
152      * one is available for the slot index. An optional int extra
153      * {@link TelephonyManager#EXTRA_CARRIER_ID} is included to indicate the carrier id for the
154      * changed carrier configuration. An optional int extra
155      * {@link TelephonyManager#EXTRA_SPECIFIC_CARRIER_ID} is included to indicate the precise
156      * carrier id for the changed carrier configuration.
157      * @see TelephonyManager#getSimCarrierId()
158      * @see TelephonyManager#getSimSpecificCarrierId()
159      */
160     public static final String
161             ACTION_CARRIER_CONFIG_CHANGED = "android.telephony.action.CARRIER_CONFIG_CHANGED";
162 
163     // Below are the keys used in carrier config bundles. To add a new variable, define the key and
164     // give it a default value in sDefaults. If you need to ship a per-network override in the
165     // system image, that can be added in packages/apps/CarrierConfig.
166 
167     /**
168      * Specifies a value that identifies the version of the carrier configuration that is
169      * currently in use. This string is displayed on the UI.
170      * The format of the string is not specified.
171      */
172     public static final String KEY_CARRIER_CONFIG_VERSION_STRING =
173             "carrier_config_version_string";
174 
175     /**
176      * This flag specifies whether VoLTE availability is based on provisioning. By default this is
177      * false.
178      * Used for UCE to determine if EAB provisioning checks should be based on provisioning.
179      * @deprecated Use {@link Ims#KEY_CARRIER_RCS_PROVISIONING_REQUIRED_BOOL} instead.
180      */
181     @Deprecated
182     public static final String
183             KEY_CARRIER_VOLTE_PROVISIONED_BOOL = "carrier_volte_provisioned_bool";
184 
185     /**
186      * Boolean indicating the Supplementary Services(SS) is disable when airplane mode on in the
187      * Call Settings menu.
188      * {@code true}: SS is disable when airplane mode on.
189      * {@code false}: SS is enable when airplane mode on.
190      * The default value for this key is {@code false}
191      */
192     public static final String KEY_DISABLE_SUPPLEMENTARY_SERVICES_IN_AIRPLANE_MODE_BOOL =
193             "disable_supplementary_services_in_airplane_mode_bool";
194 
195     /**
196      * Boolean indicating if the "Call forwarding" item is visible in the Call Settings menu.
197      * true means visible. false means gone.
198      * @hide
199      */
200     public static final String KEY_CALL_FORWARDING_VISIBILITY_BOOL =
201             "call_forwarding_visibility_bool";
202 
203     /**
204      * Boolean indicating if carrier supports call forwarding option "When unreachable".
205      *
206      * {@code true}: Call forwarding option "When unreachable" is supported.
207      * {@code false}: Call forwarding option "When unreachable" is not supported. Option will be
208      * removed in the UI.
209      *
210      * By default this value is true.
211      * @hide
212      */
213     public static final String KEY_CALL_FORWARDING_WHEN_UNREACHABLE_SUPPORTED_BOOL =
214             "call_forwarding_when_unreachable_supported_bool";
215 
216      /**
217       * Boolean indicating if carrier supports call forwarding option "When unanswered".
218       *
219       * {@code true}: Call forwarding option "When unanswered" is supported.
220       * {@code false}: Call forwarding option "When unanswered" is not supported. Option will be
221       * removed in the UI.
222       *
223       * By default this value is true.
224       * @hide
225       */
226     public static final String KEY_CALL_FORWARDING_WHEN_UNANSWERED_SUPPORTED_BOOL =
227             "call_forwarding_when_unanswered_supported_bool";
228 
229      /**
230       * Boolean indicating if carrier supports call forwarding option "When busy".
231       *
232       * {@code true}: Call forwarding option "When busy" is supported.
233       * {@code false}: Call forwarding option "When busy" is not supported. Option will be
234       * removed in the UI.
235       *
236       * By default this value is true.
237       * @hide
238       */
239     public static final String KEY_CALL_FORWARDING_WHEN_BUSY_SUPPORTED_BOOL =
240             "call_forwarding_when_busy_supported_bool";
241 
242     /**
243      * Boolean indicating if the "Caller ID" item is visible in the Additional Settings menu.
244      * true means visible. false means gone.
245      * @hide
246      */
247     public static final String KEY_ADDITIONAL_SETTINGS_CALLER_ID_VISIBILITY_BOOL =
248             "additional_settings_caller_id_visibility_bool";
249 
250     /**
251      * Boolean indicating if the "Call Waiting" item is visible in the Additional Settings menu.
252      * true means visible. false means gone.
253      * @hide
254      */
255     public static final String KEY_ADDITIONAL_SETTINGS_CALL_WAITING_VISIBILITY_BOOL =
256             "additional_settings_call_waiting_visibility_bool";
257 
258    /**
259     * Boolean indicating if the "Call barring" item is visible in the Call Settings menu.
260     * If true, the "Call Barring" menu will be visible. If false, the menu will be gone.
261     *
262     * Disabled by default.
263     */
264     public static final String KEY_CALL_BARRING_VISIBILITY_BOOL =
265             "call_barring_visibility_bool";
266 
267     /**
268      * Flag indicating whether or not changing the call barring password via the "Call Barring"
269      * settings menu is supported. If true, the option will be visible in the "Call
270      * Barring" settings menu. If false, the option will not be visible.
271      *
272      * Enabled by default.
273      */
274     public static final String KEY_CALL_BARRING_SUPPORTS_PASSWORD_CHANGE_BOOL =
275             "call_barring_supports_password_change_bool";
276 
277     /**
278      * Flag indicating whether or not deactivating all call barring features via the "Call Barring"
279      * settings menu is supported. If true, the option will be visible in the "Call
280      * Barring" settings menu. If false, the option will not be visible.
281      *
282      * Enabled by default.
283      */
284     public static final String KEY_CALL_BARRING_SUPPORTS_DEACTIVATE_ALL_BOOL =
285             "call_barring_supports_deactivate_all_bool";
286 
287     /**
288      * Specifies the service class for call barring service. Default value is
289      * {@link #SERVICE_CLASS_VOICE}.
290      * The value set as below:
291      * <ul>
292      * <li>0: {@link #SERVICE_CLASS_NONE}</li>
293      * <li>1: {@link #SERVICE_CLASS_VOICE}</li>
294      * </ul>
295      */
296     public static final String KEY_CALL_BARRING_DEFAULT_SERVICE_CLASS_INT =
297             "call_barring_default_service_class_int";
298 
299     /**
300      * This carrier supports dialing USSD codes to enable/disable supplementary services such as
301      * call forwarding and call waiting over CDMA.
302      * <p>
303      * The supplementary service menu will still need to be set as visible, see
304      * {@link #KEY_CALL_FORWARDING_VISIBILITY_BOOL} and
305      * {@link #KEY_ADDITIONAL_SETTINGS_CALL_WAITING_VISIBILITY_BOOL}.
306      * <p>
307      * If this is set as false and the supplementary service menu is visible, the associated setting
308      * will be enabled and disabled based on the availability of supplementary services over UT. See
309      * {@link #KEY_CARRIER_SUPPORTS_SS_OVER_UT_BOOL}.
310      * @hide
311      */
312     public static final String KEY_SUPPORT_SS_OVER_CDMA_BOOL = "support_ss_over_cdma_bool";
313 
314     /**
315      * Flag indicating whether the Phone app should ignore EVENT_SIM_NETWORK_LOCKED
316      * events from the Sim.
317      * If true, this will prevent the IccNetworkDepersonalizationPanel from being shown, and
318      * effectively disable the "Sim network lock" feature.
319      */
320     public static final String
321             KEY_IGNORE_SIM_NETWORK_LOCKED_EVENTS_BOOL = "ignore_sim_network_locked_events_bool";
322 
323     /**
324      * When checking if a given number is the voicemail number, if this flag is true
325      * then in addition to comparing the given number to the voicemail number, we also compare it
326      * to the mdn. If this flag is false, the given number is only compared to the voicemail number.
327      * By default this value is false.
328      */
329     public static final String KEY_MDN_IS_ADDITIONAL_VOICEMAIL_NUMBER_BOOL =
330             "mdn_is_additional_voicemail_number_bool";
331 
332     /**
333      * Flag indicating whether the Phone app should provide a "Dismiss" button on the SIM network
334      * unlock screen. The default value is true. If set to false, there will be *no way* to dismiss
335      * the SIM network unlock screen if you don't enter the correct unlock code. (One important
336      * consequence: there will be no way to make an Emergency Call if your SIM is network-locked and
337      * you don't know the PIN.)
338      */
339     public static final String
340             KEY_SIM_NETWORK_UNLOCK_ALLOW_DISMISS_BOOL = "sim_network_unlock_allow_dismiss_bool";
341 
342     /**
343      * Flag indicating whether or not sending emergency SMS messages over IMS
344      * is supported when in LTE/limited LTE (Emergency only) service mode..
345      *
346      */
347     public static final String
348             KEY_SUPPORT_EMERGENCY_SMS_OVER_IMS_BOOL = "support_emergency_sms_over_ims_bool";
349 
350     /** Flag indicating if the phone is a world phone */
351     public static final String KEY_WORLD_PHONE_BOOL = "world_phone_bool";
352 
353     /**
354      * Flag to require or skip entitlement checks.
355      * If true, entitlement checks will be executed if device has been configured for it,
356      * If false, entitlement checks will be skipped.
357      */
358     public static final String
359             KEY_REQUIRE_ENTITLEMENT_CHECKS_BOOL = "require_entitlement_checks_bool";
360 
361     /**
362      * Flag indicating if the carrier supports tethering of mobile data.
363      */
364     public static final String KEY_CARRIER_SUPPORTS_TETHERING_BOOL =
365             "carrier_supports_tethering_bool";
366 
367     /**
368      * Flag indicating whether radio is to be restarted on error PDP_FAIL_REGULAR_DEACTIVATION
369      * This is false by default.
370      *
371      * @deprecated Use {@link #KEY_RADIO_RESTART_FAILURE_CAUSES_INT_ARRAY} instead
372      */
373     @Deprecated
374     public static final String KEY_RESTART_RADIO_ON_PDP_FAIL_REGULAR_DEACTIVATION_BOOL =
375             "restart_radio_on_pdp_fail_regular_deactivation_bool";
376 
377     /**
378      * A list of failure cause codes that will trigger a modem restart when telephony receiving
379      * one of those during data setup. The cause codes are defined in 3GPP TS 24.008 Annex I and
380      * TS 24.301 Annex B.
381      */
382     public static final String KEY_RADIO_RESTART_FAILURE_CAUSES_INT_ARRAY =
383             "radio_restart_failure_causes_int_array";
384 
385     /**
386      * If true, enable vibration (haptic feedback) for key presses in the EmergencyDialer activity.
387      * The pattern is set on a per-platform basis using config_virtualKeyVibePattern. To be
388      * consistent with the regular Dialer, this value should agree with the corresponding values
389      * from config.xml under apps/Contacts.
390      */
391     public static final String
392             KEY_ENABLE_DIALER_KEY_VIBRATION_BOOL = "enable_dialer_key_vibration_bool";
393 
394     /** Flag indicating if dtmf tone type is enabled */
395     public static final String KEY_DTMF_TYPE_ENABLED_BOOL = "dtmf_type_enabled_bool";
396 
397     /** Flag indicating if auto retry is enabled */
398     public static final String KEY_AUTO_RETRY_ENABLED_BOOL = "auto_retry_enabled_bool";
399 
400     /**
401      * Determine whether we want to play local DTMF tones in a call, or just let the radio/BP handle
402      * playing of the tones.
403      */
404     public static final String KEY_ALLOW_LOCAL_DTMF_TONES_BOOL = "allow_local_dtmf_tones_bool";
405 
406     /**
407      * Determines if the carrier requires that a tone be played to the remote party when an app is
408      * recording audio during a call (e.g. using a call recording app).
409      * <p>
410      * Note: This requires the Telephony config_supports_telephony_audio_device overlay to be true
411      * in order to work.
412      * @hide
413      */
414     public static final String KEY_PLAY_CALL_RECORDING_TONE_BOOL = "play_call_recording_tone_bool";
415     /**
416      * Determines if the carrier requires converting the destination number before sending out an
417      * SMS. Certain networks and numbering plans require different formats.
418      */
419     public static final String KEY_SMS_REQUIRES_DESTINATION_NUMBER_CONVERSION_BOOL=
420             "sms_requires_destination_number_conversion_bool";
421 
422     /**
423      * If true, show an onscreen "Dial" button in the dialer. In practice this is used on all
424      * platforms, even the ones with hard SEND/END keys, but for maximum flexibility it's controlled
425      * by a flag here (which can be overridden on a per-product basis.)
426      */
427     public static final String KEY_SHOW_ONSCREEN_DIAL_BUTTON_BOOL = "show_onscreen_dial_button_bool";
428 
429     /** Determines if device implements a noise suppression device for in call audio. */
430     public static final String
431             KEY_HAS_IN_CALL_NOISE_SUPPRESSION_BOOL = "has_in_call_noise_suppression_bool";
432 
433     /**
434      * Determines if the current device should allow emergency numbers to be logged in the Call Log.
435      * (Some carriers require that emergency calls *not* be logged, presumably to avoid the risk of
436      * accidental redialing from the call log UI. This is a good idea, so the default here is
437      * false.)
438      */
439     public static final String
440             KEY_ALLOW_EMERGENCY_NUMBERS_IN_CALL_LOG_BOOL = "allow_emergency_numbers_in_call_log_bool";
441 
442     /**
443      * A string array containing numbers that shouldn't be included in the call log.
444      */
445     public static final String KEY_UNLOGGABLE_NUMBERS_STRING_ARRAY =
446             "unloggable_numbers_string_array";
447 
448     /** If true, removes the Voice Privacy option from Call Settings */
449     public static final String KEY_VOICE_PRIVACY_DISABLE_UI_BOOL = "voice_privacy_disable_ui_bool";
450 
451     /** Control whether users can reach the carrier portions of Cellular Network Settings. */
452     public static final String
453             KEY_HIDE_CARRIER_NETWORK_SETTINGS_BOOL = "hide_carrier_network_settings_bool";
454 
455     /**
456      * Only allow auto selection in Advanced Network Settings when in home network.
457      * Manual selection is allowed when in roaming network.
458      */
459     public static final String KEY_ONLY_AUTO_SELECT_IN_HOME_NETWORK_BOOL =
460             "only_auto_select_in_home_network";
461 
462     /**
463      * Flag indicating whether to show single operator row in the choose network setting.
464      *
465      * The device configuration value {@code config_enableNewAutoSelectNetworkUI} ultimately
466      * controls whether this carrier configuration option is used.  Where
467      * {@code config_enableNewAutoSelectNetworkUI} is false, the value of the
468      * {@link #KEY_SHOW_SINGLE_OPERATOR_ROW_IN_CHOOSE_NETWORK_SETTING_BOOL} carrier configuration
469      * option is ignored.
470      *
471      * If {@code true}, default value, merge the duplicate networks which with the same plmn, keep
472      * the one that with the higher signal strength level.
473      * If {@code false}, show all operators without merging.
474      * @hide
475      */
476     public static final String KEY_SHOW_SINGLE_OPERATOR_ROW_IN_CHOOSE_NETWORK_SETTING_BOOL =
477             "show_single_operator_row_in_choose_network_setting_bool";
478 
479     /**
480      * Flag indicating whether to display SPN as network name for home network in choose
481      * network setting.
482      *
483      * If {@code true}, display SPN as network name in choose network setting.
484      * If {@code false}, display PLMN in choose network setting.
485      * @hide
486      */
487     public static final String KEY_SHOW_SPN_FOR_HOME_IN_CHOOSE_NETWORK_SETTING_BOOL =
488             "show_spn_for_home_in_choose_network_setting_bool";
489 
490     /**
491      * Control whether users receive a simplified network settings UI and improved network
492      * selection.
493      */
494     public static final String
495             KEY_SIMPLIFIED_NETWORK_SETTINGS_BOOL = "simplified_network_settings_bool";
496 
497     /** Control whether users can reach the SIM lock settings. */
498     public static final String
499             KEY_HIDE_SIM_LOCK_SETTINGS_BOOL = "hide_sim_lock_settings_bool";
500 
501     /** Control whether users can edit APNs in Settings. */
502     public static final String KEY_APN_EXPAND_BOOL = "apn_expand_bool";
503 
504     /** Control whether users can choose a network operator. */
505     public static final String KEY_OPERATOR_SELECTION_EXPAND_BOOL = "operator_selection_expand_bool";
506 
507     /**
508      * Used in the Preferred Network Types menu to determine if the 2G option is displayed.
509      * Value defaults to false as of Android T to discourage the use of insecure 2G protocols.
510      *
511      * @see #KEY_HIDE_ENABLE_2G
512      */
513     public static final String KEY_PREFER_2G_BOOL = "prefer_2g_bool";
514 
515     /**
516      * Used in Cellular Network Settings for preferred network type to show 4G only mode.
517      * @hide
518      */
519     public static final String KEY_4G_ONLY_BOOL = "4g_only_bool";
520 
521     /** Show cdma network mode choices 1x, 3G, global etc. */
522     public static final String KEY_SHOW_CDMA_CHOICES_BOOL = "show_cdma_choices_bool";
523 
524     /** CDMA activation goes through HFA */
525     public static final String KEY_USE_HFA_FOR_PROVISIONING_BOOL = "use_hfa_for_provisioning_bool";
526 
527     /**
528      * CDMA activation goes through OTASP.
529      * <p>
530      * TODO: This should be combined with config_use_hfa_for_provisioning and implemented as an enum
531      * (NONE, HFA, OTASP).
532      */
533     public static final String KEY_USE_OTASP_FOR_PROVISIONING_BOOL = "use_otasp_for_provisioning_bool";
534 
535     /** Display carrier settings menu if true */
536     public static final String KEY_CARRIER_SETTINGS_ENABLE_BOOL = "carrier_settings_enable_bool";
537 
538     /** Does not display additional call setting for IMS phone based on GSM Phone */
539     public static final String KEY_ADDITIONAL_CALL_SETTING_BOOL = "additional_call_setting_bool";
540 
541     /** Show APN Settings for some CDMA carriers */
542     public static final String KEY_SHOW_APN_SETTING_CDMA_BOOL = "show_apn_setting_cdma_bool";
543 
544     /** After a CDMA conference call is merged, the swap button should be displayed. */
545     public static final String KEY_SUPPORT_SWAP_AFTER_MERGE_BOOL = "support_swap_after_merge_bool";
546 
547     /**
548      * Determine whether user can edit voicemail number in Settings.
549      */
550     public static final String KEY_EDITABLE_VOICEMAIL_NUMBER_SETTING_BOOL =
551             "editable_voicemail_number_setting_bool";
552 
553     /**
554      * Since the default voicemail number is empty, if a SIM card does not have a voicemail number
555      * available the user cannot use voicemail. This flag allows the user to edit the voicemail
556      * number in such cases, and is false by default.
557      */
558     public static final String KEY_EDITABLE_VOICEMAIL_NUMBER_BOOL= "editable_voicemail_number_bool";
559 
560     /**
561      * Determine whether the voicemail notification is persistent in the notification bar. If true,
562      * the voicemail notifications cannot be dismissed from the notification bar.
563      */
564     public static final String
565             KEY_VOICEMAIL_NOTIFICATION_PERSISTENT_BOOL = "voicemail_notification_persistent_bool";
566 
567     /** For IMS video over LTE calls, determines whether video pause signalling is supported. */
568     public static final String
569             KEY_SUPPORT_PAUSE_IMS_VIDEO_CALLS_BOOL = "support_pause_ims_video_calls_bool";
570 
571     /**
572      * Disables dialing "*228" (OTASP provisioning) on CDMA carriers where it is not supported or is
573      * potentially harmful by locking the SIM to 3G.
574      */
575     public static final String
576             KEY_DISABLE_CDMA_ACTIVATION_CODE_BOOL = "disable_cdma_activation_code_bool";
577 
578     /**
579      * List of network type constants which support only a single data connection at a time.
580      * Some carriers do not support multiple PDP on UMTS.
581      * @see TelephonyManager NETWORK_TYPE_*
582      */
583     public static final String
584             KEY_ONLY_SINGLE_DC_ALLOWED_INT_ARRAY = "only_single_dc_allowed_int_array";
585 
586     /**
587      * List of network capabilities which, if requested, will exempt the request from single PDN
588      * connection checks.
589      * @see NetworkCapabilities NET_CAPABILITY_*
590      * @see #KEY_ONLY_SINGLE_DC_ALLOWED_INT_ARRAY
591      *
592      * @hide
593      */
594     public static final String KEY_CAPABILITIES_EXEMPT_FROM_SINGLE_DC_CHECK_INT_ARRAY =
595             "capabilities_exempt_from_single_dc_check_int_array";
596 
597     /**
598      * Override the platform's notion of a network operator being considered roaming.
599      * Value is string array of MCCMNCs to be considered roaming for 3GPP RATs.
600      */
601     public static final String
602             KEY_GSM_ROAMING_NETWORKS_STRING_ARRAY = "gsm_roaming_networks_string_array";
603 
604     /**
605      * Override the platform's notion of a network operator being considered not roaming.
606      * Value is string array of MCCMNCs to be considered not roaming for 3GPP RATs.
607      */
608     public static final String
609             KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY = "gsm_nonroaming_networks_string_array";
610 
611     /**
612      * The package name containing the ImsService that will be bound to the telephony framework to
613      * support both IMS MMTEL and RCS feature functionality instead of the device default
614      * ImsService for this subscription.
615      * @deprecated Use {@link #KEY_CONFIG_IMS_MMTEL_PACKAGE_OVERRIDE_STRING} and
616      * {@link #KEY_CONFIG_IMS_RCS_PACKAGE_OVERRIDE_STRING} instead to configure these values
617      * separately. If any of those values are not empty, they will override this value.
618      */
619     public static final String KEY_CONFIG_IMS_PACKAGE_OVERRIDE_STRING =
620             "config_ims_package_override_string";
621 
622     /**
623      * The package name containing the ImsService that will be bound to the telephony framework to
624      * support IMS MMTEL feature functionality instead of the device default ImsService for this
625      * subscription.
626      */
627     public static final String KEY_CONFIG_IMS_MMTEL_PACKAGE_OVERRIDE_STRING =
628             "config_ims_mmtel_package_override_string";
629 
630     /**
631      * The package name containing the ImsService that will be bound to the telephony framework to
632      * support IMS RCS feature functionality instead of the device default ImsService for this
633      * subscription.
634      */
635     public static final String KEY_CONFIG_IMS_RCS_PACKAGE_OVERRIDE_STRING =
636             "config_ims_rcs_package_override_string";
637 
638     /**
639      * Override the package that will manage {@link SubscriptionPlan}
640      * information instead of the {@link CarrierService} that defines this
641      * value.
642      *
643      * @see SubscriptionManager#getSubscriptionPlans(int)
644      * @see SubscriptionManager#setSubscriptionPlans(int, java.util.List)
645      */
646     public static final String KEY_CONFIG_PLANS_PACKAGE_OVERRIDE_STRING =
647             "config_plans_package_override_string";
648 
649     /**
650      * Override the platform's notion of a network operator being considered roaming.
651      * Value is string array of SIDs to be considered roaming for 3GPP2 RATs.
652      */
653     public static final String
654             KEY_CDMA_ROAMING_NETWORKS_STRING_ARRAY = "cdma_roaming_networks_string_array";
655 
656     /**
657      * Override the platform's notion of a network operator being considered non roaming.
658      * Value is string array of SIDs to be considered not roaming for 3GPP2 RATs.
659      */
660     public static final String
661             KEY_CDMA_NONROAMING_NETWORKS_STRING_ARRAY = "cdma_nonroaming_networks_string_array";
662 
663     /**
664      * Override the platform's notion of a network operator being considered non roaming.
665      * If true all networks are considered as home network a.k.a non-roaming.  When false,
666      * the 2 pairs of CMDA and GSM roaming/non-roaming arrays are consulted.
667      *
668      * @see #KEY_GSM_ROAMING_NETWORKS_STRING_ARRAY
669      * @see #KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY
670      * @see #KEY_CDMA_ROAMING_NETWORKS_STRING_ARRAY
671      * @see #KEY_CDMA_NONROAMING_NETWORKS_STRING_ARRAY
672      */
673     public static final String
674             KEY_FORCE_HOME_NETWORK_BOOL = "force_home_network_bool";
675 
676     /**
677      * Flag specifying whether VoLTE should be available for carrier, independent of carrier
678      * provisioning. If false: hard disabled. If true: then depends on carrier provisioning,
679      * availability, etc.
680      */
681     public static final String KEY_CARRIER_VOLTE_AVAILABLE_BOOL = "carrier_volte_available_bool";
682 
683     /**
684      * Flag specifying whether video telephony is available for carrier. If false: hard disabled.
685      * If true: then depends on carrier provisioning, availability, etc.
686      */
687     public static final String KEY_CARRIER_VT_AVAILABLE_BOOL = "carrier_vt_available_bool";
688 
689     /**
690      * Specify the method of selection for UE sending USSD requests. The default value is
691      * {@link #USSD_OVER_CS_PREFERRED}.
692      * <p> Available options:
693      * <ul>
694      *   <li>0: {@link #USSD_OVER_CS_PREFERRED} </li>
695      *   <li>1: {@link #USSD_OVER_IMS_PREFERRED} </li>
696      *   <li>2: {@link #USSD_OVER_CS_ONLY} </li>
697      *   <li>3: {@link #USSD_OVER_IMS_ONLY} </li>
698      * </ul>
699      */
700     public static final String KEY_CARRIER_USSD_METHOD_INT =
701             "carrier_ussd_method_int";
702 
703     /**
704      * Flag specifying whether to show an alert dialog for 5G disable when the user disables VoLTE.
705      * By default this value is {@code false}.
706      *
707      * @hide
708      */
709     public static final String KEY_VOLTE_5G_LIMITED_ALERT_DIALOG_BOOL =
710             "volte_5g_limited_alert_dialog_bool";
711 
712     /**
713      * Flag specifying whether the carrier wants to notify the user when a VT call has been handed
714      * over from WIFI to LTE.
715      * <p>
716      * The handover notification is sent as a
717      * {@link TelephonyManager#EVENT_HANDOVER_VIDEO_FROM_WIFI_TO_LTE}
718      * {@link android.telecom.Connection} event, which an {@link android.telecom.InCallService}
719      * should use to trigger the display of a user-facing message.
720      * <p>
721      * The Connection event is sent to the InCallService only once, the first time it occurs.
722      * @hide
723      */
724     public static final String KEY_NOTIFY_HANDOVER_VIDEO_FROM_WIFI_TO_LTE_BOOL =
725             "notify_handover_video_from_wifi_to_lte_bool";
726 
727     /**
728      * Flag specifying whether the carrier supports merging a RTT call with a voice call,
729      * downgrading the call in the process.
730      * @hide
731      */
732     public static final String KEY_ALLOW_MERGING_RTT_CALLS_BOOL =
733              "allow_merging_rtt_calls_bool";
734 
735     /**
736      * Flag specifying whether the carrier wants to notify the user when a VT call has been handed
737      * over from LTE to WIFI.
738      * <p>
739      * The handover notification is sent as a
740      * {@link TelephonyManager#EVENT_HANDOVER_VIDEO_FROM_LTE_TO_WIFI}
741      * {@link android.telecom.Connection} event, which an {@link android.telecom.InCallService}
742      * should use to trigger the display of a user-facing message.
743      * @hide
744      */
745     public static final String KEY_NOTIFY_HANDOVER_VIDEO_FROM_LTE_TO_WIFI_BOOL =
746             "notify_handover_video_from_lte_to_wifi_bool";
747 
748     /**
749      * Flag specifying whether the carrier supports downgrading a video call (tx, rx or tx/rx)
750      * directly to an audio call.
751      * @hide
752      */
753     public static final String KEY_SUPPORT_DOWNGRADE_VT_TO_AUDIO_BOOL =
754             "support_downgrade_vt_to_audio_bool";
755 
756     /**
757      * Where there is no preloaded voicemail number on a SIM card, specifies the carrier's default
758      * voicemail number.
759      * When empty string, no default voicemail number is specified.
760      */
761     public static final String KEY_DEFAULT_VM_NUMBER_STRING = "default_vm_number_string";
762 
763     /**
764      * Where there is no preloaded voicemail number on a SIM card, specifies the carrier's default
765      * voicemail number for roaming network.
766      * When empty string, no default voicemail number is specified for roaming network.
767      * @hide
768      */
769     public static final String KEY_DEFAULT_VM_NUMBER_ROAMING_STRING =
770             "default_vm_number_roaming_string";
771 
772     /**
773      * Where there is no preloaded voicemail number on a SIM card, specifies the carrier's default
774      * voicemail number while the device is both roaming and not registered for IMS.
775      * When empty string, no default voicemail number is specified for roaming network and
776      * unregistered state in IMS.
777      */
778     public static final String KEY_DEFAULT_VM_NUMBER_ROAMING_AND_IMS_UNREGISTERED_STRING =
779             "default_vm_number_roaming_and_ims_unregistered_string";
780 
781     /**
782      * Flag that specifies to use the user's own phone number as the voicemail number when there is
783      * no pre-loaded voicemail number on the SIM card.
784      * <p>
785      * {@link #KEY_DEFAULT_VM_NUMBER_STRING} takes precedence over this flag.
786      * <p>
787      * If false, the system default (*86) will be used instead.
788      */
789     public static final String KEY_CONFIG_TELEPHONY_USE_OWN_NUMBER_FOR_VOICEMAIL_BOOL =
790             "config_telephony_use_own_number_for_voicemail_bool";
791 
792     /**
793      * When {@code true}, changes to the mobile data enabled switch will not cause the VT
794      * registration state to change.  That is, turning on or off mobile data will not cause VT to be
795      * enabled or disabled.
796      * When {@code false}, disabling mobile data will cause VT to be de-registered.
797      */
798     public static final String KEY_IGNORE_DATA_ENABLED_CHANGED_FOR_VIDEO_CALLS =
799             "ignore_data_enabled_changed_for_video_calls";
800 
801     /**
802      * Flag indicating whether data used for a video call over LTE is metered or not.
803      * <p>
804      * When {@code true}, if the device hits the data limit or data is disabled during a ViLTE call,
805      * the call will be downgraded to audio-only (or paused if
806      * {@link #KEY_SUPPORT_PAUSE_IMS_VIDEO_CALLS_BOOL} is {@code true}).
807      *
808      * @hide
809      */
810     public static final String KEY_VILTE_DATA_IS_METERED_BOOL = "vilte_data_is_metered_bool";
811 
812     /**
813      * Flag specifying whether WFC over IMS should be available for carrier: independent of
814      * carrier provisioning. If false: hard disabled. If true: then depends on carrier
815      * provisioning, availability etc.
816      */
817     public static final String KEY_CARRIER_WFC_IMS_AVAILABLE_BOOL = "carrier_wfc_ims_available_bool";
818 
819     /**
820      * Flag specifying whether Cross SIM over IMS should be available for carrier.
821      * When {@code false} the carrier does not support cross SIM calling.
822      * When {@code true} the carrier does support cross sim calling, where available
823      */
824     public static final String KEY_CARRIER_CROSS_SIM_IMS_AVAILABLE_BOOL =
825             "carrier_cross_sim_ims_available_bool";
826 
827     /**
828      * Flag specifying whether cross sim calling on opportunistic data is supported for carrier.
829      * When {@code false} the carrier does not support cross sim calling on opportunistic data.
830      * When {@code true} the carrier does support cross sim calling on opportunistic data.
831      */
832     public static final String KEY_ENABLE_CROSS_SIM_CALLING_ON_OPPORTUNISTIC_DATA_BOOL =
833             "enable_cross_sim_calling_on_opportunistic_data_bool";
834 
835     /**
836      * Specifies a map from dialstrings to replacements for roaming network service numbers which
837      * cannot be replaced on the carrier side.
838      * <p>
839      * Individual entries have the format:
840      * [dialstring to replace]:[replacement]
841      */
842     public static final String KEY_DIAL_STRING_REPLACE_STRING_ARRAY =
843             "dial_string_replace_string_array";
844 
845     /**
846      * Specifies a map from dialstrings to replacements for international roaming network service
847      * numbers which cannot be replaced on the carrier side.
848      * <p>
849      * Individual entries have the format:
850      * [dialstring to replace]:[replacement]
851      * @hide
852      */
853     public static final String KEY_INTERNATIONAL_ROAMING_DIAL_STRING_REPLACE_STRING_ARRAY =
854             "international_roaming_dial_string_replace_string_array";
855 
856     /**
857      * Flag specifying whether WFC over IMS supports the "wifi only" option.  If false, the wifi
858      * calling settings will not include an option for "wifi only".  If true, the wifi calling
859      * settings will include an option for "wifi only"
860      * <p>
861      * By default, it is assumed that WFC supports "wifi only".
862      */
863     public static final String KEY_CARRIER_WFC_SUPPORTS_WIFI_ONLY_BOOL =
864             "carrier_wfc_supports_wifi_only_bool";
865 
866     /**
867      * Default mode for WFC over IMS on home network:
868      * <ul>
869      *   <li>0: Wi-Fi only
870      *   <li>1: prefer mobile network
871      *   <li>2: prefer Wi-Fi
872      * </ul>
873      */
874     public static final String KEY_CARRIER_DEFAULT_WFC_IMS_MODE_INT =
875             "carrier_default_wfc_ims_mode_int";
876 
877     /**
878      * Default mode for WFC over IMS on roaming network.
879      * See {@link #KEY_CARRIER_DEFAULT_WFC_IMS_MODE_INT} for meaning of values.
880      */
881     public static final String KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_MODE_INT =
882             "carrier_default_wfc_ims_roaming_mode_int";
883 
884     /**
885      * Default WFC_IMS_enabled: true VoWiFi by default is on
886      *                          false VoWiFi by default is off
887      */
888     public static final String KEY_CARRIER_DEFAULT_WFC_IMS_ENABLED_BOOL =
889             "carrier_default_wfc_ims_enabled_bool";
890 
891     /**
892      * Default WFC_IMS_roaming_enabled: true VoWiFi roaming by default is on
893      *                                  false VoWiFi roaming by default is off
894      * @hide
895      */
896     public static final String KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_ENABLED_BOOL =
897             "carrier_default_wfc_ims_roaming_enabled_bool";
898 
899     /**
900      * Flag indicating whether failed calls due to no service should prompt the user to enable
901      * WIFI calling.  When {@code true}, if the user attempts to establish a call when there is no
902      * service available, they are connected to WIFI, and WIFI calling is disabled, a different
903      * call failure message will be used to encourage the user to enable WIFI calling.
904      * @hide
905      */
906     public static final String KEY_CARRIER_PROMOTE_WFC_ON_CALL_FAIL_BOOL =
907             "carrier_promote_wfc_on_call_fail_bool";
908 
909     /**
910      * Flag specifying whether provisioning is required for RCS.
911      */
912     public static final String KEY_CARRIER_RCS_PROVISIONING_REQUIRED_BOOL =
913             "carrier_rcs_provisioning_required_bool";
914 
915     /**
916      * Flag specifying whether provisioning is required for VoLTE, Video Telephony, and WiFi
917      * Calling.
918 
919      * Combines VoLTE, VT, VoWiFI calling provisioning into one parameter.
920      * @deprecated Use {@link Ims#KEY_MMTEL_REQUIRES_PROVISIONING_BUNDLE} instead for
921      * finer-grained control.
922      * changing carrier_volte_provisioning_required_bool requires changes to
923      * mmtel_requires_provisioning_bundle and vice versa
924      * {@link Ims#KEY_MMTEL_REQUIRES_PROVISIONING_BUNDLE}
925      */
926     @Deprecated
927     public static final String KEY_CARRIER_VOLTE_PROVISIONING_REQUIRED_BOOL
928             = "carrier_volte_provisioning_required_bool";
929 
930     /**
931      * Flag indicating whether or not the IMS MmTel UT capability requires carrier provisioning
932      * before it can be set as enabled.
933      *
934      * If true, the UT capability will be set to false for the newly loaded subscription
935      * and will require the carrier provisioning app to set the persistent provisioning result.
936      * If false, the platform will not wait for provisioning status updates for the UT capability
937      * and enable the UT over IMS capability for the subscription when the subscription is loaded.
938      *
939      * The default value for this key is {@code false}.
940      *
941      * @deprecated Use {@link Ims#KEY_MMTEL_REQUIRES_PROVISIONING_BUNDLE} instead for
942      * determining if UT requires provisioning.
943      */
944     @Deprecated
945     public static final String KEY_CARRIER_UT_PROVISIONING_REQUIRED_BOOL =
946             "carrier_ut_provisioning_required_bool";
947 
948     /**
949      * Flag indicating whether or not the carrier supports Supplementary Services over the UT
950      * interface for this subscription.
951      *
952      * If true, the device will use Supplementary Services over UT when provisioned (see
953      * {@link #KEY_CARRIER_UT_PROVISIONING_REQUIRED_BOOL}). If false, this device will fallback to
954      * circuit switch for supplementary services and will disable this capability for IMS entirely.
955      *
956      * The default value for this key is {@code false}.
957      */
958     public static final String KEY_CARRIER_SUPPORTS_SS_OVER_UT_BOOL =
959             "carrier_supports_ss_over_ut_bool";
960 
961     /**
962      * Flag specifying if WFC provisioning depends on VoLTE provisioning.
963      *
964      * {@code false}: default value; honor actual WFC provisioning state.
965      * {@code true}: when VoLTE is not provisioned, treat WFC as not provisioned; when VoLTE is
966      *               provisioned, honor actual WFC provisioning state.
967      *
968      * As of now, Verizon is the only carrier enforcing this dependency in their
969      * WFC awareness and activation requirements.
970      */
971     public static final String KEY_CARRIER_VOLTE_OVERRIDE_WFC_PROVISIONING_BOOL
972             = "carrier_volte_override_wfc_provisioning_bool";
973 
974     /**
975      * Override the device's configuration for the cellular data service to use for this SIM card.
976      * @hide
977      */
978     public static final String KEY_CARRIER_DATA_SERVICE_WWAN_PACKAGE_OVERRIDE_STRING
979             = "carrier_data_service_wwan_package_override_string";
980 
981     /**
982      * Override the device's configuration for the IWLAN data service to use for this SIM card.
983      * @hide
984      */
985     public static final String KEY_CARRIER_DATA_SERVICE_WLAN_PACKAGE_OVERRIDE_STRING
986             = "carrier_data_service_wlan_package_override_string";
987 
988     /**
989      * Override the device's configuration for the cellular data service class to use
990      * for this SIM card.
991      * @hide
992      */
993     public static final String KEY_CARRIER_DATA_SERVICE_WWAN_CLASS_OVERRIDE_STRING =
994             "carrier_data_service_wwan_class_override_string";
995 
996     /**
997      * Override the device's configuration for the IWLAN data service class to use
998      * for this SIM card.
999      * @hide
1000      */
1001     public static final String KEY_CARRIER_DATA_SERVICE_WLAN_CLASS_OVERRIDE_STRING =
1002             "carrier_data_service_wlan_class_override_string";
1003 
1004     /** Flag specifying whether VoLTE TTY is supported. */
1005     public static final String KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL
1006             = "carrier_volte_tty_supported_bool";
1007 
1008     /** Flag specifying whether VoWIFI TTY is supported.
1009      * @hide
1010      */
1011     public static final String KEY_CARRIER_VOWIFI_TTY_SUPPORTED_BOOL =
1012             "carrier_vowifi_tty_supported_bool";
1013 
1014     /**
1015      * Flag specifying whether IMS service can be turned off. If false then the service will not be
1016      * turned-off completely, but individual features can be disabled.
1017      */
1018     public static final String KEY_CARRIER_ALLOW_TURNOFF_IMS_BOOL
1019             = "carrier_allow_turnoff_ims_bool";
1020 
1021     /**
1022      * Flag specifying whether Generic Bootstrapping Architecture capable SIM is required for IMS.
1023      */
1024     public static final String KEY_CARRIER_IMS_GBA_REQUIRED_BOOL
1025             = "carrier_ims_gba_required_bool";
1026 
1027     /**
1028      * Flag specifying whether IMS instant lettering is available for the carrier.  {@code True} if
1029      * instant lettering is available for the carrier, {@code false} otherwise.
1030      */
1031     public static final String KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL =
1032             "carrier_instant_lettering_available_bool";
1033 
1034     /*
1035      * Flag specifying whether IMS should be the first phone attempted for E911 even if the
1036      * phone is not in service.
1037      */
1038     public static final String KEY_CARRIER_USE_IMS_FIRST_FOR_EMERGENCY_BOOL
1039             = "carrier_use_ims_first_for_emergency_bool";
1040 
1041     /**
1042      * When {@code true}, the determination of whether to place a call as an emergency call will be
1043      * based on the known {@link android.telephony.emergency.EmergencyNumber}s for the SIM on which
1044      * the call is being placed.  In a dual SIM scenario, if Sim A has the emergency numbers
1045      * 123, 456 and Sim B has the emergency numbers 789, and the user places a call on SIM A to 789,
1046      * it will not be treated as an emergency call in this case.
1047      * When {@code false}, the determination is based on the emergency numbers from all device SIMs,
1048      * regardless of which SIM the call is being placed on.  If Sim A has the emergency numbers
1049      * 123, 456 and Sim B has the emergency numbers 789, and the user places a call on SIM A to 789,
1050      * the call will be dialed as an emergency number, but with an unspecified routing.
1051      * @hide
1052      */
1053     public static final String KEY_USE_ONLY_DIALED_SIM_ECC_LIST_BOOL =
1054             "use_only_dialed_sim_ecc_list_bool";
1055 
1056     /**
1057      * When IMS instant lettering is available for a carrier (see
1058      * {@link #KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL}), determines the list of characters
1059      * which may not be contained in messages.  Should be specified as a regular expression suitable
1060      * for use with {@link String#matches(String)}.
1061      */
1062     public static final String KEY_CARRIER_INSTANT_LETTERING_INVALID_CHARS_STRING =
1063             "carrier_instant_lettering_invalid_chars_string";
1064 
1065     /**
1066      * When IMS instant lettering is available for a carrier (see
1067      * {@link #KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL}), determines a list of characters which
1068      * must be escaped with a backslash '\' character.  Should be specified as a string containing
1069      * the characters to be escaped.  For example to escape quote and backslash the string would be
1070      * a quote and a backslash.
1071      */
1072     public static final String KEY_CARRIER_INSTANT_LETTERING_ESCAPED_CHARS_STRING =
1073             "carrier_instant_lettering_escaped_chars_string";
1074 
1075     /**
1076      * When IMS instant lettering is available for a carrier (see
1077      * {@link #KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL}), determines the character encoding
1078      * which will be used when determining the length of messages.  Used in the InCall UI to limit
1079      * the number of characters the user may type.  If empty-string, the instant lettering
1080      * message size limit will be enforced on a 1:1 basis.  That is, each character will count
1081      * towards the messages size limit as a single bye.  If a character encoding is specified, the
1082      * message size limit will be based on the number of bytes in the message per the specified
1083      * encoding.
1084      */
1085     public static final String KEY_CARRIER_INSTANT_LETTERING_ENCODING_STRING =
1086             "carrier_instant_lettering_encoding_string";
1087 
1088     /**
1089      * When IMS instant lettering is available for a carrier (see
1090      * {@link #KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL}), the length limit for messages.  Used
1091      * in the InCall UI to ensure the user cannot enter more characters than allowed by the carrier.
1092      * See also {@link #KEY_CARRIER_INSTANT_LETTERING_ENCODING_STRING} for more information on how
1093      * the length of the message is calculated.
1094      */
1095     public static final String KEY_CARRIER_INSTANT_LETTERING_LENGTH_LIMIT_INT =
1096             "carrier_instant_lettering_length_limit_int";
1097 
1098     /**
1099      * If Voice Radio Technology is RIL_RADIO_TECHNOLOGY_LTE:14 or RIL_RADIO_TECHNOLOGY_UNKNOWN:0
1100      * this is the value that should be used instead. A configuration value of
1101      * RIL_RADIO_TECHNOLOGY_UNKNOWN:0 means there is no replacement value and that the default
1102      * assumption for phone type (GSM) should be used.
1103      */
1104     public static final String KEY_VOLTE_REPLACEMENT_RAT_INT = "volte_replacement_rat_int";
1105 
1106     /**
1107      * The default sim call manager to use when the default dialer doesn't implement one. A sim call
1108      * manager can control and route outgoing and incoming phone calls, even if they're placed
1109      * using another connection service (PSTN, for example).
1110      */
1111     public static final String KEY_DEFAULT_SIM_CALL_MANAGER_STRING = "default_sim_call_manager_string";
1112 
1113     /**
1114      * The default flag specifying whether ETWS/CMAS test setting is forcibly disabled in
1115      * Settings->More->Emergency broadcasts menu even though developer options is turned on.
1116      * @deprecated Use {@code com.android.cellbroadcastreceiver.CellBroadcastReceiver} resource
1117      * {@code show_test_settings} to control whether to show test alert settings or not.
1118      */
1119     @Deprecated
1120     public static final String KEY_CARRIER_FORCE_DISABLE_ETWS_CMAS_TEST_BOOL =
1121             "carrier_force_disable_etws_cmas_test_bool";
1122 
1123     /**
1124      * The default flag specifying whether "Allow alerts" option will be always shown in
1125      * emergency alerts settings regardless developer options is turned on or not.
1126      *
1127      * @deprecated The allow alerts option is always shown now. No longer need a config for that.
1128      */
1129     @Deprecated
1130     public static final String KEY_ALWAYS_SHOW_EMERGENCY_ALERT_ONOFF_BOOL =
1131             "always_show_emergency_alert_onoff_bool";
1132 
1133     /**
1134      * Default mobile network MTU value, in bytes.
1135      * @hide
1136      */
1137     public static final String KEY_DEFAULT_MTU_INT = "default_mtu_int";
1138 
1139     /**
1140      * The data call retry configuration for different types of APN.
1141      * @hide
1142      */
1143     public static final String KEY_CARRIER_DATA_CALL_RETRY_CONFIG_STRINGS =
1144             "carrier_data_call_retry_config_strings";
1145 
1146     /**
1147      * Delay in milliseconds between trying APN from the pool
1148      * @hide
1149      */
1150     public static final String KEY_CARRIER_DATA_CALL_APN_DELAY_DEFAULT_LONG =
1151             "carrier_data_call_apn_delay_default_long";
1152 
1153     /**
1154      * Faster delay in milliseconds between trying APN from the pool
1155      * @hide
1156      */
1157     public static final String KEY_CARRIER_DATA_CALL_APN_DELAY_FASTER_LONG =
1158             "carrier_data_call_apn_delay_faster_long";
1159 
1160     /**
1161      * Delay in milliseconds for retrying APN after disconnect
1162      * @hide
1163      */
1164     public static final String KEY_CARRIER_DATA_CALL_APN_RETRY_AFTER_DISCONNECT_LONG =
1165             "carrier_data_call_apn_retry_after_disconnect_long";
1166 
1167     /**
1168      * The maximum times for telephony to retry data setup on the same APN requested by
1169      * network through the data setup response retry timer
1170      * {@link DataCallResponse#getRetryDurationMillis()}. This is to prevent that network keeps
1171      * asking device to retry data setup forever and causes power consumption issue. For infinite
1172      * retring same APN, configure this as 2147483647 (i.e. {@link Integer#MAX_VALUE}).
1173      *
1174      * Note if network does not suggest any retry timer, frameworks uses the retry configuration
1175      * from {@link #KEY_CARRIER_DATA_CALL_RETRY_CONFIG_STRINGS}, and the maximum retry times could
1176      * be configured there.
1177      * @hide
1178      */
1179     public static final String KEY_CARRIER_DATA_CALL_RETRY_NETWORK_REQUESTED_MAX_COUNT_INT =
1180             "carrier_data_call_retry_network_requested_max_count_int";
1181 
1182     /**
1183      * Data call setup permanent failure causes by the carrier.
1184      *
1185      * This API key was added in mistake and is not used anymore by the telephony data
1186      * frameworks.
1187      */
1188     public static final String KEY_CARRIER_DATA_CALL_PERMANENT_FAILURE_STRINGS =
1189             "carrier_data_call_permanent_failure_strings";
1190 
1191     /**
1192      * Default APN types that are metered by the carrier
1193      * @hide
1194      */
1195     public static final String KEY_CARRIER_METERED_APN_TYPES_STRINGS =
1196             "carrier_metered_apn_types_strings";
1197     /**
1198      * Default APN types that are roaming-metered by the carrier
1199      * @hide
1200      */
1201     public static final String KEY_CARRIER_METERED_ROAMING_APN_TYPES_STRINGS =
1202             "carrier_metered_roaming_apn_types_strings";
1203 
1204     /**
1205      * APN types that are not allowed on cellular
1206      * @hide
1207      */
1208     public static final String KEY_CARRIER_WWAN_DISALLOWED_APN_TYPES_STRING_ARRAY =
1209             "carrier_wwan_disallowed_apn_types_string_array";
1210 
1211     /**
1212      * APN types that are not allowed on IWLAN
1213      * @hide
1214      */
1215     public static final String KEY_CARRIER_WLAN_DISALLOWED_APN_TYPES_STRING_ARRAY =
1216             "carrier_wlan_disallowed_apn_types_string_array";
1217     /**
1218      * CDMA carrier ERI (Enhanced Roaming Indicator) file name
1219      * @hide
1220      */
1221     public static final String KEY_CARRIER_ERI_FILE_NAME_STRING =
1222             "carrier_eri_file_name_string";
1223 
1224     /* The following 3 fields are related to carrier visual voicemail. */
1225 
1226     /**
1227      * The carrier number mobile outgoing (MO) sms messages are sent to.
1228      */
1229     public static final String KEY_VVM_DESTINATION_NUMBER_STRING = "vvm_destination_number_string";
1230 
1231     /**
1232      * The port through which the mobile outgoing (MO) sms messages are sent through.
1233      */
1234     public static final String KEY_VVM_PORT_NUMBER_INT = "vvm_port_number_int";
1235 
1236     /**
1237      * The type of visual voicemail protocol the carrier adheres to. See {@link TelephonyManager}
1238      * for possible values. For example {@link TelephonyManager#VVM_TYPE_OMTP}.
1239      */
1240     public static final String KEY_VVM_TYPE_STRING = "vvm_type_string";
1241 
1242     /**
1243      * Whether cellular data is required to access visual voicemail.
1244      */
1245     public static final String KEY_VVM_CELLULAR_DATA_REQUIRED_BOOL =
1246         "vvm_cellular_data_required_bool";
1247 
1248     /**
1249      * The default OMTP visual voicemail client prefix to use. Defaulted to "//VVM"
1250      */
1251     public static final String KEY_VVM_CLIENT_PREFIX_STRING =
1252             "vvm_client_prefix_string";
1253 
1254     /**
1255      * Whether to use SSL to connect to the visual voicemail IMAP server. Defaulted to false.
1256      */
1257     public static final String KEY_VVM_SSL_ENABLED_BOOL = "vvm_ssl_enabled_bool";
1258 
1259     /**
1260      * A set of capabilities that should not be used even if it is reported by the visual voicemail
1261      * IMAP CAPABILITY command.
1262      */
1263     public static final String KEY_VVM_DISABLED_CAPABILITIES_STRING_ARRAY =
1264             "vvm_disabled_capabilities_string_array";
1265 
1266     /**
1267      * Whether legacy mode should be used when the visual voicemail client is disabled.
1268      *
1269      * <p>Legacy mode is a mode that on the carrier side visual voicemail is still activated, but on
1270      * the client side all network operations are disabled. SMSs are still monitored so a new
1271      * message SYNC SMS will be translated to show a message waiting indicator, like traditional
1272      * voicemails.
1273      *
1274      * <p>This is for carriers that does not support VVM deactivation so voicemail can continue to
1275      * function without the data cost.
1276      */
1277     public static final String KEY_VVM_LEGACY_MODE_ENABLED_BOOL =
1278             "vvm_legacy_mode_enabled_bool";
1279 
1280     /**
1281      * Whether to prefetch audio data on new voicemail arrival, defaulted to true.
1282      */
1283     public static final String KEY_VVM_PREFETCH_BOOL = "vvm_prefetch_bool";
1284 
1285     /**
1286      * The package name of the carrier's visual voicemail app to ensure that dialer visual voicemail
1287      * and carrier visual voicemail are not active at the same time.
1288      *
1289      * @deprecated use {@link #KEY_CARRIER_VVM_PACKAGE_NAME_STRING_ARRAY}.
1290      */
1291     @Deprecated
1292     public static final String KEY_CARRIER_VVM_PACKAGE_NAME_STRING = "carrier_vvm_package_name_string";
1293 
1294     /**
1295      * A list of the carrier's visual voicemail app package names to ensure that dialer visual
1296      * voicemail and carrier visual voicemail are not active at the same time.
1297      */
1298     public static final String KEY_CARRIER_VVM_PACKAGE_NAME_STRING_ARRAY =
1299             "carrier_vvm_package_name_string_array";
1300 
1301     /**
1302      * Flag specifying whether ICCID is showed in SIM Status screen, default to false.
1303      */
1304     public static final String KEY_SHOW_ICCID_IN_SIM_STATUS_BOOL = "show_iccid_in_sim_status_bool";
1305 
1306     /**
1307      * Flag specifying whether the {@link android.telephony.SignalStrength} is shown in the SIM
1308      * Status screen. The default value is true.
1309      */
1310     public static final String KEY_SHOW_SIGNAL_STRENGTH_IN_SIM_STATUS_BOOL =
1311         "show_signal_strength_in_sim_status_bool";
1312 
1313     /**
1314      * Flag specifying if we should interpret all signal strength as one bar higher
1315      * This is a replacement for the former resource config_inflateSignalStrength
1316      * The default value is false.
1317      * @hide
1318      */
1319     public static final String KEY_INFLATE_SIGNAL_STRENGTH_BOOL =
1320             "inflate_signal_strength_bool";
1321 
1322     /**
1323      * Flag specifying whether an additional (client initiated) intent needs to be sent on System
1324      * update
1325      */
1326     public static final String KEY_CI_ACTION_ON_SYS_UPDATE_BOOL = "ci_action_on_sys_update_bool";
1327 
1328     /**
1329      * Intent to be sent for the additional action on System update
1330      */
1331     public static final String KEY_CI_ACTION_ON_SYS_UPDATE_INTENT_STRING =
1332             "ci_action_on_sys_update_intent_string";
1333 
1334     /**
1335      * Extra to be included in the intent sent for additional action on System update
1336      */
1337     public static final String KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_STRING =
1338             "ci_action_on_sys_update_extra_string";
1339 
1340     /**
1341      * Value of extra included in intent sent for additional action on System update
1342      */
1343     public static final String KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_VAL_STRING =
1344             "ci_action_on_sys_update_extra_val_string";
1345 
1346     /**
1347      * Specifies the amount of gap to be added in millis between postdial DTMF tones. When a
1348      * non-zero value is specified, the UE shall wait for the specified amount of time before it
1349      * sends out successive DTMF tones on the network.
1350      */
1351     public static final String KEY_GSM_DTMF_TONE_DELAY_INT = "gsm_dtmf_tone_delay_int";
1352 
1353     /**
1354      * Specifies the amount of gap to be added in millis between DTMF tones. When a non-zero value
1355      * is specified, the UE shall wait for the specified amount of time before it sends out
1356      * successive DTMF tones on the network.
1357      */
1358     public static final String KEY_IMS_DTMF_TONE_DELAY_INT = "ims_dtmf_tone_delay_int";
1359 
1360     /**
1361      * Specifies the amount of gap to be added in millis between postdial DTMF tones. When a
1362      * non-zero value is specified, the UE shall wait for the specified amount of time before it
1363      * sends out successive DTMF tones on the network.
1364      */
1365     public static final String KEY_CDMA_DTMF_TONE_DELAY_INT = "cdma_dtmf_tone_delay_int";
1366 
1367     /**
1368      * Some carriers will send call forwarding responses for voicemail in a format that is not 3gpp
1369      * compliant, which causes issues during parsing. This causes the
1370      * {@link com.android.internal.telephony.CallForwardInfo#number} to contain non-numerical
1371      * characters instead of a number.
1372      *
1373      * If true, we will detect the non-numerical characters and replace them with "Voicemail".
1374      * @hide
1375      */
1376     public static final String KEY_CALL_FORWARDING_MAP_NON_NUMBER_TO_VOICEMAIL_BOOL =
1377             "call_forwarding_map_non_number_to_voicemail_bool";
1378 
1379     /**
1380      * When {@code true}, the phone will always tell the IMS stack to keep RTT enabled and
1381      * determine on a per-call basis (based on extras from the dialer app) whether a call should be
1382      * an RTT call or not.
1383      *
1384      * When {@code false}, the old behavior is used, where the toggle in accessibility settings is
1385      * used to set the IMS stack's RTT enabled state.
1386      */
1387     public static final String KEY_IGNORE_RTT_MODE_SETTING_BOOL =
1388             "ignore_rtt_mode_setting_bool";
1389 
1390 
1391     /**
1392      * Determines whether adhoc conference calls are supported by a carrier.  When {@code true},
1393      * adhoc conference calling is supported, {@code false otherwise}.
1394      */
1395     public static final String KEY_SUPPORT_ADHOC_CONFERENCE_CALLS_BOOL =
1396             "support_adhoc_conference_calls_bool";
1397 
1398     /**
1399      * Determines whether conference participants can be added to existing call to form an adhoc
1400      * conference call (in contrast to merging calls to form a conference).  When {@code true},
1401      * adding conference participants to existing call is supported, {@code false otherwise}.
1402      */
1403     public static final String KEY_SUPPORT_ADD_CONFERENCE_PARTICIPANTS_BOOL =
1404             "support_add_conference_participants_bool";
1405 
1406     /**
1407      * Determines whether conference calls are supported by a carrier.  When {@code true},
1408      * conference calling is supported, {@code false otherwise}.
1409      */
1410     public static final String KEY_SUPPORT_CONFERENCE_CALL_BOOL = "support_conference_call_bool";
1411 
1412     /**
1413      * Determines whether a maximum size limit for IMS conference calls is enforced on the device.
1414      * When {@code true}, IMS conference calls will be limited to at most
1415      * {@link #KEY_IMS_CONFERENCE_SIZE_LIMIT_INT} participants.  When {@code false}, no attempt is
1416      * made to limit the number of participants in a conference (the carrier will raise an error
1417      * when an attempt is made to merge too many participants into a conference).
1418      * <p>
1419      * Note: The maximum size of a conference can ONLY be supported where
1420      * {@link #KEY_SUPPORT_IMS_CONFERENCE_EVENT_PACKAGE_BOOL} is {@code true} since the platform
1421      * needs conference event package data to accurately know the number of participants in the
1422      * conference.
1423      */
1424     public static final String KEY_IS_IMS_CONFERENCE_SIZE_ENFORCED_BOOL =
1425             "is_ims_conference_size_enforced_bool";
1426 
1427     /**
1428      * Determines the maximum number of participants the carrier supports for a conference call.
1429      * This number is exclusive of the current device.  A conference between 3 devices, for example,
1430      * would have a size limit of 2 participants.
1431      * Enforced when {@link #KEY_IS_IMS_CONFERENCE_SIZE_ENFORCED_BOOL} is {@code true}.
1432      */
1433     public static final String KEY_IMS_CONFERENCE_SIZE_LIMIT_INT = "ims_conference_size_limit_int";
1434 
1435     /**
1436      * Determines whether manage IMS conference calls is supported by a carrier.  When {@code true},
1437      * manage IMS conference call is supported, {@code false otherwise}.
1438      * @hide
1439      */
1440     public static final String KEY_SUPPORT_MANAGE_IMS_CONFERENCE_CALL_BOOL =
1441             "support_manage_ims_conference_call_bool";
1442 
1443     /**
1444      * Determines whether the IMS conference merge process supports and returns its participants
1445      * data. When {@code true}, on merge complete, conference call would have a list of its
1446      * participants returned in XML format, {@code false otherwise}.
1447      */
1448     public static final String KEY_SUPPORT_IMS_CONFERENCE_EVENT_PACKAGE_BOOL =
1449             "support_ims_conference_event_package_bool";
1450 
1451     /**
1452      * Determines whether processing of conference event package data received on a device other
1453      * than the conference host is supported.
1454      * <p>
1455      * When a device A merges calls B and C into a conference it is considered the conference host
1456      * and B and C are considered the conference peers.
1457      * <p>
1458      * When {@code true}, the conference peer will display the conference state if it receives
1459      * conference event package data from the network.  When {@code false}, the conference peer will
1460      * ignore conference event package data received from the network.
1461      * @hide
1462      */
1463     public static final String KEY_SUPPORT_IMS_CONFERENCE_EVENT_PACKAGE_ON_PEER_BOOL =
1464             "support_ims_conference_event_package_on_peer_bool";
1465 
1466     /**
1467      * Indicates whether the carrier supports the use of RFC8285 compliant RTP header extensions for
1468      * the purpose of device to device communication while in a call.
1469      * <p>
1470      * See also {@link #KEY_SUPPORTS_SDP_NEGOTIATION_OF_D2D_RTP_HEADER_EXTENSIONS_BOOL}.
1471      */
1472     public static final String KEY_SUPPORTS_DEVICE_TO_DEVICE_COMMUNICATION_USING_RTP_BOOL =
1473             "supports_device_to_device_communication_using_rtp_bool";
1474 
1475     /**
1476      * Indicates whether the carrier supports the negotiations of RFC8285 compliant RTP header
1477      * extensions supported on a call during the Session Description Protocol (SDP).  This option
1478      * is only used when {@link #KEY_SUPPORTS_DEVICE_TO_DEVICE_COMMUNICATION_USING_RTP_BOOL} is
1479      * {@code true}.
1480      * <p>
1481      * When {@code true}, the RTP header extensions the platform uses for device to device
1482      * communication will be offered to the remote end during the SDP negotiation process.
1483      * When {@code false}, the RTP header extensions will not be negotiated during the SDP
1484      * negotiation process and the platform will send RTP header extensions without prior
1485      * negotiation if {@link #KEY_SUPPORTS_DEVICE_TO_DEVICE_COMMUNICATION_USING_RTP_BOOL} is
1486      * {@code true}.
1487      */
1488     public static final String KEY_SUPPORTS_SDP_NEGOTIATION_OF_D2D_RTP_HEADER_EXTENSIONS_BOOL =
1489             "supports_sdp_negotiation_of_d2d_rtp_header_extensions_bool";
1490 
1491     /**
1492      * Indicates whether the carrier supports the use of DTMF digits A-D for the purpose of device
1493      * to device communication while in a call.
1494      */
1495     public static final String KEY_SUPPORTS_DEVICE_TO_DEVICE_COMMUNICATION_USING_DTMF_BOOL =
1496             "supports_device_to_device_communication_using_dtmf_bool";
1497 
1498     /**
1499      * Determines whether High Definition audio property is displayed in the dialer UI.
1500      * If {@code false}, remove the HD audio property from the connection so that HD audio related
1501      * UI is not displayed. If {@code true}, keep HD audio property as it is configured.
1502      */
1503     public static final String KEY_DISPLAY_HD_AUDIO_PROPERTY_BOOL =
1504             "display_hd_audio_property_bool";
1505 
1506     /**
1507      * Determines whether IMS conference calls are supported by a carrier.  When {@code true},
1508      * IMS conference calling is supported, {@code false} otherwise.
1509      * @hide
1510      */
1511     public static final String KEY_SUPPORT_IMS_CONFERENCE_CALL_BOOL =
1512             "support_ims_conference_call_bool";
1513 
1514     /**
1515      * Determines whether the device will locally disconnect an IMS conference when the participant
1516      * count drops to zero.  When {@code true}, it is assumed the carrier does NOT disconnect a
1517      * conference when the participant count drops to zero and that the device must do this by
1518      * disconnecting the conference locally.  When {@code false}, it is assumed that the carrier
1519      * is responsible for disconnecting the conference when there are no longer any participants
1520      * present.
1521      * <p>
1522      * Note: both {@link #KEY_SUPPORT_IMS_CONFERENCE_CALL_BOOL} and
1523      * {@link #KEY_SUPPORT_IMS_CONFERENCE_EVENT_PACKAGE_BOOL} must be true for this configuration to
1524      * have any effect.
1525      * <p>
1526      * Defaults to {@code false}, meaning the carrier network is responsible for disconnecting an
1527      * empty IMS conference.
1528      * @hide
1529      */
1530     public static final String KEY_LOCAL_DISCONNECT_EMPTY_IMS_CONFERENCE_BOOL =
1531             "local_disconnect_empty_ims_conference_bool";
1532 
1533     /**
1534      * Determines whether video conference calls are supported by a carrier.  When {@code true},
1535      * video calls can be merged into conference calls, {@code false} otherwiwse.
1536      * <p>
1537      * Note: even if video conference calls are not supported, audio calls may be merged into a
1538      * conference if {@link #KEY_SUPPORT_CONFERENCE_CALL_BOOL} is {@code true}.
1539      * @hide
1540      */
1541     public static final String KEY_SUPPORT_VIDEO_CONFERENCE_CALL_BOOL =
1542             "support_video_conference_call_bool";
1543 
1544     /**
1545      * Determine whether user can toggle Enhanced 4G LTE Mode in Settings.
1546      */
1547     public static final String KEY_EDITABLE_ENHANCED_4G_LTE_BOOL = "editable_enhanced_4g_lte_bool";
1548 
1549     /**
1550      * Determines whether the Enhanced 4G LTE toggle will be shown in the settings. When this
1551      * option is {@code true}, the toggle will be hidden regardless of whether the device and
1552      * carrier supports 4G LTE or not.
1553      */
1554     public static final String KEY_HIDE_ENHANCED_4G_LTE_BOOL = "hide_enhanced_4g_lte_bool";
1555 
1556     /**
1557      * Sets the default state for the "Enhanced 4G LTE" or "Advanced Calling" mode toggle set by the
1558      * user. When this is {@code true}, this mode by default is on, otherwise if {@code false},
1559      * this mode by default is off.
1560      */
1561     public static final String KEY_ENHANCED_4G_LTE_ON_BY_DEFAULT_BOOL =
1562             "enhanced_4g_lte_on_by_default_bool";
1563 
1564     /**
1565      * Determine whether IMS apn can be shown.
1566      */
1567     public static final String KEY_HIDE_IMS_APN_BOOL = "hide_ims_apn_bool";
1568 
1569     /**
1570      * Determine whether preferred network type can be shown.
1571      */
1572     public static final String KEY_HIDE_PREFERRED_NETWORK_TYPE_BOOL = "hide_preferred_network_type_bool";
1573 
1574     /**
1575      * String array for package names that need to be enabled for this carrier.
1576      * If user has explicitly disabled some packages in the list, won't re-enable.
1577      * Other carrier specific apps which are not in this list may be disabled for current carrier,
1578      * and only be re-enabled when this config for another carrier includes it.
1579      *
1580      * @hide
1581      */
1582     public static final String KEY_ENABLE_APPS_STRING_ARRAY = "enable_apps_string_array";
1583 
1584     /**
1585      * Determine whether user can switch Wi-Fi preferred or Cellular preferred
1586      * in calling preference.
1587      * Some operators support Wi-Fi Calling only, not VoLTE.
1588      * They don't need "Cellular preferred" option.
1589      * In this case, set uneditable attribute for preferred preference.
1590      */
1591     public static final String KEY_EDITABLE_WFC_MODE_BOOL = "editable_wfc_mode_bool";
1592 
1593     /**
1594      * Flag to indicate if Wi-Fi needs to be disabled in ECBM.
1595      */
1596     public static final String KEY_CONFIG_WIFI_DISABLE_IN_ECBM = "config_wifi_disable_in_ecbm";
1597 
1598     /**
1599      * List operator-specific error codes and indices of corresponding error strings in
1600      * wfcOperatorErrorAlertMessages and wfcOperatorErrorNotificationMessages.
1601      *
1602      * Example: "REG09|0" specifies error code "REG09" and index "0". This index will be
1603      * used to find alert and notification messages in wfcOperatorErrorAlertMessages and
1604      * wfcOperatorErrorNotificationMessages.
1605      *
1606      * @hide
1607      */
1608     public static final String KEY_WFC_OPERATOR_ERROR_CODES_STRING_ARRAY =
1609             "wfc_operator_error_codes_string_array";
1610 
1611     /**
1612      * Indexes of SPN format strings in wfcSpnFormats.
1613      *
1614      * <p>Available options are:
1615      * <ul>
1616      * <li>  0: %s</li>
1617      * <li>  1: %s Wi-Fi Calling</li>
1618      * <li>  2: WLAN Call</li>
1619      * <li>  3: %s WLAN Call</li>
1620      * <li>  4: %s Wi-Fi</li>
1621      * <li>  5: WiFi Calling | %s</li>
1622      * <li>  6: %s VoWifi</li>
1623      * <li>  7: Wi-Fi Calling</li>
1624      * <li>  8: Wi-Fi</li>
1625      * <li>  9: WiFi Calling</li>
1626      * <li> 10: VoWifi</li>
1627      * <li> 11: %s WiFi Calling</li>
1628      * @hide
1629      */
1630     public static final String KEY_WFC_SPN_FORMAT_IDX_INT = "wfc_spn_format_idx_int";
1631 
1632     /**
1633      * Indexes of data SPN format strings in wfcSpnFormats.
1634      *
1635      * @see KEY_WFC_SPN_FORMAT_IDX_INT for available options.
1636      * @hide
1637      */
1638     public static final String KEY_WFC_DATA_SPN_FORMAT_IDX_INT = "wfc_data_spn_format_idx_int";
1639 
1640     /**
1641      * Indexes of SPN format strings in wfcSpnFormats used during flight mode.
1642      *
1643      * Set to -1 to use the value from KEY_WFC_SPN_FORMAT_IDX_INT also in this case.
1644      * @see KEY_WFC_SPN_FORMAT_IDX_INT for other available options.
1645      * @hide
1646      */
1647     public static final String KEY_WFC_FLIGHT_MODE_SPN_FORMAT_IDX_INT =
1648             "wfc_flight_mode_spn_format_idx_int";
1649 
1650     /**
1651      * Use root locale when reading wfcSpnFormats.
1652      *
1653      * If true, then the root locale will always be used when reading wfcSpnFormats. This means the
1654      * non localized version of wfcSpnFormats will be used.
1655      * @hide
1656      */
1657     public static final String KEY_WFC_SPN_USE_ROOT_LOCALE = "wfc_spn_use_root_locale";
1658 
1659     /**
1660      * The Component Name of the activity that can setup the emergency address for WiFi Calling
1661      * as per carrier requirement.
1662      */
1663      public static final String KEY_WFC_EMERGENCY_ADDRESS_CARRIER_APP_STRING =
1664             "wfc_emergency_address_carrier_app_string";
1665 
1666     /**
1667      * Unconditionally override the carrier name string using #KEY_CARRIER_NAME_STRING.
1668      *
1669      * If true, then the carrier name string will be #KEY_CARRIER_NAME_STRING, unconditionally.
1670      *
1671      * <p>If false, then the override will be performed conditionally and the
1672      * #KEY_CARRIER_NAME_STRING will have the lowest-precedence; it will only be used in the event
1673      * that the name string would otherwise be empty, allowing it to serve as a last-resort. If
1674      * used, this value functions in place of the SPN on any/all ICC records for the corresponding
1675      * subscription.
1676      */
1677     public static final String KEY_CARRIER_NAME_OVERRIDE_BOOL = "carrier_name_override_bool";
1678 
1679     /**
1680      * String to identify carrier name in CarrierConfig app. This string overrides SPN if
1681      * #KEY_CARRIER_NAME_OVERRIDE_BOOL is true; otherwise, it will be used if its value is provided
1682      * and SPN is unavailable
1683      */
1684     public static final String KEY_CARRIER_NAME_STRING = "carrier_name_string";
1685 
1686     /**
1687      * To override wifi calling's carrier name string using ef_pnn from sim card when SPN in empty.
1688      *
1689      * @hide
1690      */
1691     public static final String KEY_WFC_CARRIER_NAME_OVERRIDE_BY_PNN_BOOL =
1692             "wfc_carrier_name_override_by_pnn_bool";
1693 
1694     /**
1695      * Specifies SPN format of displaying carrier name only.
1696      *
1697      */
1698     public static final int CROSS_SIM_SPN_FORMAT_CARRIER_NAME_ONLY = 0;
1699 
1700     /**
1701      * Specifies SPN format of displaying carrier name along with "Cross-SIM calling".
1702      */
1703     public static final int CROSS_SIM_SPN_FORMAT_CARRIER_NAME_WITH_BRANDING = 1;
1704 
1705     /**
1706      * Indexes of SPN format strings in crossSimSpnFormats.
1707      *
1708      * <p>Available options are:
1709      * <ul>
1710      * <li>  {@link #CROSS_SIM_SPN_FORMAT_CARRIER_NAME_ONLY}: %s</li>
1711      * <li>  {@link #CROSS_SIM_SPN_FORMAT_CARRIER_NAME_WITH_BRANDING}: %s Cross-SIM Calling</li>
1712      * </ul>
1713      * %s will be filled with carrier name
1714      */
1715     public static final String KEY_CROSS_SIM_SPN_FORMAT_INT = "cross_sim_spn_format_int";
1716 
1717     /**
1718      * Override the SPN Display Condition 2 integer bits (lsb). B2, B1 is the last two bits of the
1719      * spn display condition coding.
1720      *
1721      * The default value -1 mean this field is not set.
1722      *
1723      * B1 = 0: display of registered PLMN name not required when registered PLMN is either HPLMN
1724      * or a PLMN in the service provider PLMN list (see EF_SPDI).
1725      * B1 = 1: display of registered PLMN name required when registered PLMN is either HPLMN or a
1726      * PLMN in the service provider PLMN list(see EF_SPDI).
1727      * B2 = 0: display of the service provider name is required when registered PLMN is neither
1728      * HPLMN nor a PLMN in the service provider PLMN list(see EF_SPDI).
1729      * B2 = 1: display of the service provider name is not required when registered PLMN is neither
1730      * HPLMN nor a PLMN in the service provider PLMN list(see EF_SPDI).
1731      *
1732      * Reference: 3GPP TS 31.102 v15.2.0 Section 4.2.12 EF_SPN.
1733      * @hide
1734      */
1735     public static final String KEY_SPN_DISPLAY_CONDITION_OVERRIDE_INT =
1736             "spn_display_condition_override_int";
1737 
1738     /**
1739      * Override the SPDI - an array of PLMN(MCC + MNC) strings.
1740      *
1741      * Reference: 3GPP TS 31.102 v15.2.0 Section 4.2.66 EF_SPDI.
1742      * @hide
1743      */
1744     public static final String KEY_SPDI_OVERRIDE_STRING_ARRAY = "spdi_override_string_array";
1745 
1746     /**
1747      * Override the EHPLMNs - an array of PLMN(MCC + MNC) strings.
1748      *
1749      * To allow provision for multiple HPLMN codes, PLMN codes that are present within this list
1750      * shall replace the HPLMN code derived from the IMSI for PLMN selection purposes.
1751      *
1752      * Reference: 3GPP TS 31.102 v15.2.0 Section 4.2.84 EF_EHPLMN
1753      * Reference: 3GPP TS 23.122 v15.6.0 Section 1.2 Equivalent HPLMN list
1754      * @hide
1755      */
1756     public static final String KEY_EHPLMN_OVERRIDE_STRING_ARRAY = "ehplmn_override_string_array";
1757 
1758     /**
1759      * Override the PNN - a string array of comma-separated alpha long and short names:
1760      * "alpha_long1,alpha_short1".
1761      *
1762      * Reference: 3GPP TS 31.102 v15.2.0 Section 4.2.58 EF_PNN.
1763      * @hide
1764      */
1765     public static final String KEY_PNN_OVERRIDE_STRING_ARRAY = "pnn_override_string_array";
1766 
1767     /**
1768      * A string array of OPL records, each with comma-delimited data fields as follows:
1769      * "plmn1,lactac_start,lactac_end,index".
1770      *
1771      * Reference: 3GPP TS 31.102 v15.2.0 Section 4.2.59 EF_OPL.
1772      * @hide
1773      */
1774     public static final String KEY_OPL_OVERRIDE_STRING_ARRAY = "opl_override_opl_string_array";
1775 
1776     /**
1777      * Allow ERI rules to select a carrier name display string when using 3gpp2 access technologies.
1778      * If this bit is not set, the carrier name display string will be selected from the carrier
1779      * display name resolver which doesn't apply the ERI rules.
1780      *
1781      * @hide
1782      */
1783     public static final String KEY_ALLOW_ERI_BOOL = "allow_cdma_eri_bool";
1784 
1785     /**
1786      * If true, use the carrier display name(SPN and PLMN) from the carrier display name resolver.
1787      *
1788      * @hide
1789      */
1790     public static final String KEY_ENABLE_CARRIER_DISPLAY_NAME_RESOLVER_BOOL =
1791             "enable_carrier_display_name_resolver_bool";
1792 
1793     /**
1794      * String to override sim country iso.
1795      * Sim country iso is based on sim MCC which is coarse and doesn't work with dual IMSI SIM where
1796      * a SIM can have multiple MCC from different countries.
1797      * Instead, each sim carrier should have a single country code, apply per carrier based iso
1798      * code as an override. The overridden value can be read from
1799      * {@link TelephonyManager#getSimCountryIso()} and {@link SubscriptionInfo#getCountryIso()}
1800      *
1801      * @hide
1802      */
1803     public static final String KEY_SIM_COUNTRY_ISO_OVERRIDE_STRING =
1804             "sim_country_iso_override_string";
1805 
1806    /**
1807     * The Component Name of a carrier-provided CallScreeningService implementation. Telecom will
1808     * bind to {@link android.telecom.CallScreeningService} for ALL incoming calls and provide
1809     * the carrier
1810     * CallScreeningService with the opportunity to allow or block calls.
1811     * <p>
1812     * The String includes the package name/the class name.
1813     * Example:
1814     * <item>com.android.carrier/com.android.carrier.callscreeningserviceimpl</item>
1815     * <p>
1816     * Using {@link ComponentName#flattenToString()} to convert a ComponentName object to String.
1817     * Using {@link ComponentName#unflattenFromString(String)} to convert a String object to a
1818     * ComponentName.
1819     */
1820     public static final String KEY_CARRIER_CALL_SCREENING_APP_STRING = "call_screening_app";
1821 
1822     /**
1823      * Override the registered PLMN name using #KEY_CDMA_HOME_REGISTERED_PLMN_NAME_STRING.
1824      *
1825      * If true, then the registered PLMN name (only for CDMA/CDMA-LTE and only when not roaming)
1826      * will be #KEY_CDMA_HOME_REGISTERED_PLMN_NAME_STRING. If false, or if phone type is not
1827      * CDMA/CDMA-LTE or if roaming, then #KEY_CDMA_HOME_REGISTERED_PLMN_NAME_STRING will be ignored.
1828      * @hide
1829      */
1830     public static final String KEY_CDMA_HOME_REGISTERED_PLMN_NAME_OVERRIDE_BOOL =
1831             "cdma_home_registered_plmn_name_override_bool";
1832 
1833     /**
1834      * String to identify registered PLMN name in CarrierConfig app. This string overrides
1835      * registered PLMN name if #KEY_CDMA_HOME_REGISTERED_PLMN_NAME_OVERRIDE_BOOL is true, phone type
1836      * is CDMA/CDMA-LTE and device is not in roaming state; otherwise, it will be ignored.
1837      * @hide
1838      */
1839     public static final String KEY_CDMA_HOME_REGISTERED_PLMN_NAME_STRING =
1840             "cdma_home_registered_plmn_name_string";
1841 
1842     /**
1843      * If this is true, the SIM card (through Customer Service Profile EF file) will be able to
1844      * prevent manual operator selection. If false, this SIM setting will be ignored and manual
1845      * operator selection will always be available. See CPHS4_2.WW6, CPHS B.4.7.1 for more
1846      * information
1847      */
1848     public static final String KEY_CSP_ENABLED_BOOL = "csp_enabled_bool";
1849 
1850     /**
1851      * Allow user to add APNs
1852      */
1853     public static final String KEY_ALLOW_ADDING_APNS_BOOL = "allow_adding_apns_bool";
1854 
1855     /**
1856      * APN types that user is not allowed to modify.
1857      */
1858     public static final String KEY_READ_ONLY_APN_TYPES_STRING_ARRAY =
1859             "read_only_apn_types_string_array";
1860 
1861     /**
1862      * APN fields that user is not allowed to modify.
1863      */
1864     public static final String KEY_READ_ONLY_APN_FIELDS_STRING_ARRAY =
1865             "read_only_apn_fields_string_array";
1866 
1867     /**
1868      * Default value of APN types field if not specified by user when adding/modifying an APN.
1869      */
1870     public static final String KEY_APN_SETTINGS_DEFAULT_APN_TYPES_STRING_ARRAY =
1871             "apn_settings_default_apn_types_string_array";
1872 
1873     /**
1874      * Configs used for APN setup.
1875      */
1876     public static final class Apn {
1877         /**
1878          * Prefix of all Apn.KEY_* constants.
1879          *
1880          * @deprecated Since KEY_PREFIX is unnecessary to public, it will modify to private
1881          * next android generation.
1882          */
1883         @Deprecated
1884         public static final String KEY_PREFIX = "apn.";
1885 
1886         /** IPv4 internet protocol */
1887         public static final String PROTOCOL_IPV4 = "IP";
1888         /** IPv6 internet protocol */
1889         public static final String PROTOCOL_IPV6 = "IPV6";
1890         /** IPv4 or IPv6 internet protocol */
1891         public static final String PROTOCOL_IPV4V6 = "IPV4V6";
1892 
1893         /**
1894          * Default value of APN protocol field if not specified by user when adding/modifying
1895          * an APN.
1896          *
1897          * Available options are: {@link #PROTOCOL_IPV4}, {@link #PROTOCOL_IPV6},
1898          * {@link #PROTOCOL_IPV4V6}
1899          */
1900         public static final String KEY_SETTINGS_DEFAULT_PROTOCOL_STRING =
1901                 KEY_PREFIX + "settings_default_protocol_string";
1902 
1903         /**
1904          * Default value of APN roaming protocol field if not specified by user when
1905          * adding/modifying an APN.
1906          *
1907          * Available options are: {@link #PROTOCOL_IPV4}, {@link #PROTOCOL_IPV6},
1908          * {@link #PROTOCOL_IPV4V6}
1909          */
1910         public static final String KEY_SETTINGS_DEFAULT_ROAMING_PROTOCOL_STRING =
1911                 KEY_PREFIX + "settings_default_roaming_protocol_string";
1912 
Apn()1913         private Apn() {}
1914 
getDefaults()1915         private static PersistableBundle getDefaults() {
1916             PersistableBundle defaults = new PersistableBundle();
1917             defaults.putString(KEY_SETTINGS_DEFAULT_PROTOCOL_STRING, "");
1918             defaults.putString(KEY_SETTINGS_DEFAULT_ROAMING_PROTOCOL_STRING, "");
1919             return defaults;
1920         }
1921     }
1922 
1923     /**
1924      * Boolean indicating if intent for emergency call state changes should be broadcast
1925      * @hide
1926      */
1927     public static final String KEY_BROADCAST_EMERGENCY_CALL_STATE_CHANGES_BOOL =
1928             "broadcast_emergency_call_state_changes_bool";
1929 
1930     /**
1931       * Indicates whether STK LAUNCH_BROWSER command is disabled.
1932       * If {@code true}, then the browser will not be launched
1933       * on UI for the LAUNCH_BROWSER STK command.
1934       * @hide
1935       */
1936     public static final String KEY_STK_DISABLE_LAUNCH_BROWSER_BOOL =
1937             "stk_disable_launch_browser_bool";
1938 
1939     /**
1940       * Boolean indicating if the helper text for STK GET INKEY/INPUT commands with the digit only
1941       * mode is displayed on the input screen.
1942       * The helper text is dispayed regardless of the input mode, if {@code false}.
1943       * @hide
1944       */
1945     public static final String KEY_HIDE_DIGITS_HELPER_TEXT_ON_STK_INPUT_SCREEN_BOOL =
1946             "hide_digits_helper_text_on_stk_input_screen_bool";
1947 
1948     /**
1949      * Boolean indicating if show data RAT icon on status bar even when data is disabled.
1950      */
1951     public static final String KEY_ALWAYS_SHOW_DATA_RAT_ICON_BOOL =
1952             "always_show_data_rat_icon_bool";
1953 
1954     /**
1955      * Boolean indicating if default data account should show LTE or 4G icon.
1956      */
1957     public static final String KEY_SHOW_4G_FOR_LTE_DATA_ICON_BOOL =
1958             "show_4g_for_lte_data_icon_bool";
1959 
1960     /**
1961      * Boolean indicating if default data account should show 4G LTE or 4G icon.
1962      * @hide
1963      */
1964     public static final String KEY_SHOW_4GLTE_FOR_LTE_DATA_ICON_BOOL =
1965             "show_4glte_for_lte_data_icon_bool";
1966 
1967     /**
1968      * Boolean indicating if default data account should show 4G icon when in 3G.
1969      */
1970     public static final String KEY_SHOW_4G_FOR_3G_DATA_ICON_BOOL =
1971             "show_4g_for_3g_data_icon_bool";
1972 
1973     /**
1974      * Boolean indicating if LTE+ icon should be shown if available.
1975      */
1976     public static final String KEY_HIDE_LTE_PLUS_DATA_ICON_BOOL =
1977             "hide_lte_plus_data_icon_bool";
1978 
1979     /**
1980      * The combined channel bandwidth threshold (non-inclusive) in KHz required to display the
1981      * LTE+ data icon. It is 20000 by default, meaning the LTE+ icon will be shown if the device is
1982      * using carrier aggregation and the combined channel bandwidth is strictly greater than 20 MHz.
1983      * @hide
1984      */
1985     public static final String KEY_LTE_PLUS_THRESHOLD_BANDWIDTH_KHZ_INT =
1986             "lte_plus_threshold_bandwidth_khz_int";
1987 
1988     /**
1989      * The combined channel bandwidth threshold (non-inclusive) in KHz required to display the
1990      * NR advanced (i.e. 5G+) data icon. It is 0 by default, meaning minimum bandwidth check is
1991      * not enabled. Other factors like bands or frequency can also determine whether the NR
1992      * advanced data icon is shown or not.
1993      *
1994      * @see #KEY_ADDITIONAL_NR_ADVANCED_BANDS_INT_ARRAY
1995      * @see #KEY_NR_ADVANCED_CAPABLE_PCO_ID_INT
1996      *
1997      * @hide
1998      */
1999     public static final String KEY_NR_ADVANCED_THRESHOLD_BANDWIDTH_KHZ_INT =
2000             "nr_advanced_threshold_bandwidth_khz_int";
2001 
2002     /**
2003      * Indicating whether to include LTE cell bandwidths when determining whether the aggregated
2004      * cell bandwidth meets the required threshold for NR advanced.
2005      *
2006      * @see TelephonyDisplayInfo#OVERRIDE_NETWORK_TYPE_NR_ADVANCED
2007      *
2008      * @hide
2009      */
2010     public static final String KEY_INCLUDE_LTE_FOR_NR_ADVANCED_THRESHOLD_BANDWIDTH_BOOL =
2011             "include_lte_for_nr_advanced_threshold_bandwidth_bool";
2012 
2013     /**
2014      * Boolean indicating if operator name should be shown in the status bar
2015      * @hide
2016      */
2017     public static final String KEY_SHOW_OPERATOR_NAME_IN_STATUSBAR_BOOL =
2018             "show_operator_name_in_statusbar_bool";
2019 
2020     /**
2021      * The string is used to filter redundant string from PLMN Network Name that's supplied by
2022      * specific carrier.
2023      *
2024      * @hide
2025      */
2026     public static final String KEY_OPERATOR_NAME_FILTER_PATTERN_STRING =
2027             "operator_name_filter_pattern_string";
2028 
2029     /**
2030      * The string is used to compare with operator name.
2031      * If it matches the pattern then show specific data icon.
2032      * @hide
2033      */
2034     public static final String KEY_SHOW_CARRIER_DATA_ICON_PATTERN_STRING =
2035             "show_carrier_data_icon_pattern_string";
2036 
2037     /**
2038      * Boolean to decide whether to show precise call failed cause to user
2039      * @hide
2040      */
2041     public static final String KEY_SHOW_PRECISE_FAILED_CAUSE_BOOL =
2042             "show_precise_failed_cause_bool";
2043 
2044     /**
2045      * A list of carrier nr availability is used to determine whether the carrier enable the
2046      * non-standalone (NSA) mode of 5G NR, standalone (SA) mode of 5G NR
2047      *
2048      * <p> The value of list is
2049      * {@link #CARRIER_NR_AVAILABILITY_NSA}, or {@link #CARRIER_NR_AVAILABILITY_SA}.
2050      *
2051      * <p> For example, if both NSA and SA are used, the list value is {
2052      * {@link #CARRIER_NR_AVAILABILITY_NSA},{@link #CARRIER_NR_AVAILABILITY_SA}}.
2053      * If the carrier doesn't support 5G NR, the value is the empty array.
2054      * If the key is invalid or not configured, the default value {
2055      * {@link #CARRIER_NR_AVAILABILITY_NSA},{@link #CARRIER_NR_AVAILABILITY_SA}} will apply.
2056      */
2057     public static final String KEY_CARRIER_NR_AVAILABILITIES_INT_ARRAY =
2058             "carrier_nr_availabilities_int_array";
2059 
2060     /**
2061      * Boolean to decide whether LTE is enabled.
2062      */
2063     public static final String KEY_LTE_ENABLED_BOOL = "lte_enabled_bool";
2064 
2065     /**
2066      * Boolean to decide whether TD-SCDMA is supported.
2067      */
2068     public static final String KEY_SUPPORT_TDSCDMA_BOOL = "support_tdscdma_bool";
2069 
2070     /**
2071      * A list of mcc/mnc that support TD-SCDMA for device when connect to the roaming network.
2072      */
2073     public static final String KEY_SUPPORT_TDSCDMA_ROAMING_NETWORKS_STRING_ARRAY =
2074             "support_tdscdma_roaming_networks_string_array";
2075 
2076     /**
2077      * Boolean to decide whether world mode is enabled.
2078      */
2079     public static final String KEY_WORLD_MODE_ENABLED_BOOL = "world_mode_enabled_bool";
2080 
2081     /**
2082      * Flatten {@link android.content.ComponentName} of the carrier's settings activity.
2083      */
2084     public static final String KEY_CARRIER_SETTINGS_ACTIVITY_COMPONENT_NAME_STRING =
2085             "carrier_settings_activity_component_name_string";
2086 
2087     // These variables are used by the MMS service and exposed through another API,
2088     // SmsManager. The variable names and string values are copied from there.
2089     public static final String KEY_MMS_ALIAS_ENABLED_BOOL = "aliasEnabled";
2090     public static final String KEY_MMS_ALLOW_ATTACH_AUDIO_BOOL = "allowAttachAudio";
2091     public static final String KEY_MMS_APPEND_TRANSACTION_ID_BOOL = "enabledTransID";
2092     public static final String KEY_MMS_GROUP_MMS_ENABLED_BOOL = "enableGroupMms";
2093     public static final String KEY_MMS_MMS_DELIVERY_REPORT_ENABLED_BOOL = "enableMMSDeliveryReports";
2094     public static final String KEY_MMS_MMS_ENABLED_BOOL = "enabledMMS";
2095     public static final String KEY_MMS_MMS_READ_REPORT_ENABLED_BOOL = "enableMMSReadReports";
2096     public static final String KEY_MMS_MULTIPART_SMS_ENABLED_BOOL = "enableMultipartSMS";
2097     public static final String KEY_MMS_NOTIFY_WAP_MMSC_ENABLED_BOOL = "enabledNotifyWapMMSC";
2098     public static final String KEY_MMS_SEND_MULTIPART_SMS_AS_SEPARATE_MESSAGES_BOOL = "sendMultipartSmsAsSeparateMessages";
2099     public static final String KEY_MMS_SHOW_CELL_BROADCAST_APP_LINKS_BOOL = "config_cellBroadcastAppLinks";
2100     public static final String KEY_MMS_SMS_DELIVERY_REPORT_ENABLED_BOOL = "enableSMSDeliveryReports";
2101     public static final String KEY_MMS_SUPPORT_HTTP_CHARSET_HEADER_BOOL = "supportHttpCharsetHeader";
2102     public static final String KEY_MMS_SUPPORT_MMS_CONTENT_DISPOSITION_BOOL = "supportMmsContentDisposition";
2103     public static final String KEY_MMS_ALIAS_MAX_CHARS_INT = "aliasMaxChars";
2104     public static final String KEY_MMS_ALIAS_MIN_CHARS_INT = "aliasMinChars";
2105     public static final String KEY_MMS_HTTP_SOCKET_TIMEOUT_INT = "httpSocketTimeout";
2106     public static final String KEY_MMS_MAX_IMAGE_HEIGHT_INT = "maxImageHeight";
2107     public static final String KEY_MMS_MAX_IMAGE_WIDTH_INT = "maxImageWidth";
2108     public static final String KEY_MMS_MAX_MESSAGE_SIZE_INT = "maxMessageSize";
2109     public static final String KEY_MMS_MESSAGE_TEXT_MAX_SIZE_INT = "maxMessageTextSize";
2110     public static final String KEY_MMS_RECIPIENT_LIMIT_INT = "recipientLimit";
2111     public static final String KEY_MMS_SMS_TO_MMS_TEXT_LENGTH_THRESHOLD_INT = "smsToMmsTextLengthThreshold";
2112     public static final String KEY_MMS_SMS_TO_MMS_TEXT_THRESHOLD_INT = "smsToMmsTextThreshold";
2113     public static final String KEY_MMS_SUBJECT_MAX_LENGTH_INT = "maxSubjectLength";
2114     public static final String KEY_MMS_EMAIL_GATEWAY_NUMBER_STRING = "emailGatewayNumber";
2115     public static final String KEY_MMS_HTTP_PARAMS_STRING = "httpParams";
2116     public static final String KEY_MMS_NAI_SUFFIX_STRING = "naiSuffix";
2117     public static final String KEY_MMS_UA_PROF_TAG_NAME_STRING = "uaProfTagName";
2118     public static final String KEY_MMS_UA_PROF_URL_STRING = "uaProfUrl";
2119     public static final String KEY_MMS_USER_AGENT_STRING = "userAgent";
2120     /**
2121      * If true, add "Connection: close" header to MMS HTTP requests so the connection
2122      * is immediately closed (disabling keep-alive).
2123      */
2124     public static final String KEY_MMS_CLOSE_CONNECTION_BOOL = "mmsCloseConnection";
2125 
2126     /**
2127      * The flatten {@link android.content.ComponentName componentName} of the activity that can
2128      * setup the device and activate with the network per carrier requirements.
2129      *
2130      * e.g, com.google.android.carrierPackageName/.CarrierActivityName
2131      * @hide
2132      */
2133     @SystemApi
2134     public static final String KEY_CARRIER_SETUP_APP_STRING = "carrier_setup_app_string";
2135 
2136     /**
2137      * Defines carrier-specific actions which act upon
2138      * com.android.internal.telephony.CARRIER_SIGNAL_REDIRECTED, used for customization of the
2139      * default carrier app.
2140      * Format: "CARRIER_ACTION_IDX, ..."
2141      * Where {@code CARRIER_ACTION_IDX} is an integer defined in
2142      * com.android.carrierdefaultapp.CarrierActionUtils
2143      * Example:
2144      * com.android.carrierdefaultapp.CarrierActionUtils#CARRIER_ACTION_DISABLE_METERED_APNS
2145      * disables metered APNs
2146      */
2147     @SuppressLint("IntentName")
2148     public static final String KEY_CARRIER_DEFAULT_ACTIONS_ON_REDIRECTION_STRING_ARRAY =
2149             "carrier_default_actions_on_redirection_string_array";
2150 
2151     /**
2152      * Defines carrier-specific actions which act upon CARRIER_SIGNAL_REQUEST_NETWORK_FAILED
2153      * and configured signal args:
2154      * android.telephony.TelephonyManager#EXTRA_APN_TYPE,
2155      * android.telephony.TelephonyManager#EXTRA_ERROR_CODE
2156      * used for customization of the default carrier app
2157      * Format:
2158      * {
2159      *     "APN_1, ERROR_CODE_1 : CARRIER_ACTION_IDX_1, CARRIER_ACTION_IDX_2...",
2160      *     "APN_1, ERROR_CODE_2 : CARRIER_ACTION_IDX_1 "
2161      * }
2162      * Where {@code APN_1} is an integer defined in {@link android.telephony.data.ApnSetting}
2163      * (e.g. {@link android.telephony.data.ApnSetting#TYPE_DEFAULT}
2164      *
2165      * {@code ERROR_CODE_1} is an integer defined in android.telephony.DataFailCause
2166      * Example:
2167      * android.telephony.DataFailCause#MISSING_UNKNOWN_APN
2168      *
2169      * {@code CARRIER_ACTION_IDX_1} is an integer defined in
2170      * com.android.carrierdefaultapp.CarrierActionUtils
2171      * Example:
2172      * com.android.carrierdefaultapp.CarrierActionUtils#CARRIER_ACTION_DISABLE_METERED_APNS
2173      * disables metered APNs
2174      */
2175     @SuppressLint("IntentName")
2176     public static final String KEY_CARRIER_DEFAULT_ACTIONS_ON_DCFAILURE_STRING_ARRAY =
2177             "carrier_default_actions_on_dcfailure_string_array";
2178 
2179     /**
2180      * Defines carrier-specific actions which act upon CARRIER_SIGNAL_RESET,
2181      * used for customization of the default carrier app.
2182      * Format: "CARRIER_ACTION_IDX, ..."
2183      * Where {@code CARRIER_ACTION_IDX} is an integer defined in
2184      * com.android.carrierdefaultapp.CarrierActionUtils
2185      * Example:
2186      * com.android.carrierdefaultapp.CarrierActionUtils#CARRIER_ACTION_CANCEL_ALL_NOTIFICATIONS
2187      * clears all notifications on reset
2188      */
2189     @SuppressLint("IntentName")
2190     public static final String KEY_CARRIER_DEFAULT_ACTIONS_ON_RESET =
2191             "carrier_default_actions_on_reset_string_array";
2192 
2193     /**
2194      * Defines carrier-specific actions which act upon
2195      * com.android.internal.telephony.CARRIER_SIGNAL_DEFAULT_NETWORK_AVAILABLE,
2196      * used for customization of the default carrier app.
2197      * Format:
2198      * {
2199      *     "true : CARRIER_ACTION_IDX_1",
2200      *     "false: CARRIER_ACTION_IDX_2"
2201      * }
2202      * Where {@code true} is a boolean indicates default network available/unavailable
2203      * Where {@code CARRIER_ACTION_IDX} is an integer defined in
2204      * com.android.carrierdefaultapp.CarrierActionUtils CarrierActionUtils
2205      * Example:
2206      * com.android.carrierdefaultapp.CarrierActionUtils#CARRIER_ACTION_ENABLE_DEFAULT_URL_HANDLER
2207      * enables the app as the default URL handler
2208      */
2209     @SuppressLint("IntentName")
2210     public static final String KEY_CARRIER_DEFAULT_ACTIONS_ON_DEFAULT_NETWORK_AVAILABLE =
2211             "carrier_default_actions_on_default_network_available_string_array";
2212 
2213     /**
2214      * Defines a list of acceptable redirection url for default carrier app.
2215      */
2216     public static final String KEY_CARRIER_DEFAULT_REDIRECTION_URL_STRING_ARRAY =
2217             "carrier_default_redirection_url_string_array";
2218 
2219     /**
2220      * Each config includes the componentName of the carrier app, followed by a list of interesting
2221      * signals(declared in the manifest) which could wake up the app.
2222      * @see com.android.internal.telephony.TelephonyIntents
2223      * Example:
2224      * <item>com.google.android.carrierAPK/.CarrierSignalReceiverA:
2225      * com.android.internal.telephony.CARRIER_SIGNAL_REDIRECTED,
2226      * com.android.internal.telephony.CARRIER_SIGNAL_PCO_VALUE
2227      * </item>
2228      * <item>com.google.android.carrierAPK/.CarrierSignalReceiverB:
2229      * com.android.internal.telephony.CARRIER_SIGNAL_PCO_VALUE
2230      * </item>
2231      * @hide
2232      */
2233     public static final String KEY_CARRIER_APP_WAKE_SIGNAL_CONFIG_STRING_ARRAY =
2234             "carrier_app_wake_signal_config";
2235 
2236     /**
2237      * Each config includes the componentName of the carrier app, followed by a list of interesting
2238      * signals for the app during run-time. The list of signals(intents) are targeting on run-time
2239      * broadcast receivers only, aiming to avoid unnecessary wake-ups and should not be declared in
2240      * the app's manifest.
2241      * @see com.android.internal.telephony.TelephonyIntents
2242      * Example:
2243      * <item>com.google.android.carrierAPK/.CarrierSignalReceiverA:
2244      * com.android.internal.telephony.CARRIER_SIGNAL_REQUEST_NETWORK_FAILED,
2245      * com.android.internal.telephony.CARRIER_SIGNAL_PCO_VALUE
2246      * </item>
2247      * <item>com.google.android.carrierAPK/.CarrierSignalReceiverB:
2248      * com.android.internal.telephony.CARRIER_SIGNAL_REQUEST_NETWORK_FAILED
2249      * </item>
2250      * @hide
2251      */
2252     public static final String KEY_CARRIER_APP_NO_WAKE_SIGNAL_CONFIG_STRING_ARRAY =
2253             "carrier_app_no_wake_signal_config";
2254 
2255     /**
2256      * Determines whether the carrier app needed to be involved when users try to finish setting up
2257      * the SIM card to get network service.
2258      */
2259     public static final String KEY_CARRIER_APP_REQUIRED_DURING_SIM_SETUP_BOOL =
2260             "carrier_app_required_during_setup_bool";
2261 
2262     /**
2263      * Default value for {@link Settings.Global#DATA_ROAMING}
2264      * @hide
2265      */
2266     public static final String KEY_CARRIER_DEFAULT_DATA_ROAMING_ENABLED_BOOL =
2267             "carrier_default_data_roaming_enabled_bool";
2268 
2269     /**
2270      * Determines whether the carrier supports making non-emergency phone calls while the phone is
2271      * in emergency callback mode.  Default value is {@code true}, meaning that non-emergency calls
2272      * are allowed in emergency callback mode.
2273      */
2274     public static final String KEY_ALLOW_NON_EMERGENCY_CALLS_IN_ECM_BOOL =
2275             "allow_non_emergency_calls_in_ecm_bool";
2276 
2277     /**
2278      * Time that the telephony framework stays in "emergency SMS mode" after an emergency SMS is
2279      * sent to the network. This is used by carriers to configure the time
2280      * {@link TelephonyManager#isInEmergencySmsMode()} will be true after an emergency SMS is sent.
2281      * This is used by GNSS to override user location permissions so that the carrier network can
2282      * get the user's location for emergency services.
2283      *
2284      * The default is 0, which means that this feature is disabled. The maximum value for this timer
2285      * is 300000 mS (5 minutes).
2286      *
2287      * @hide
2288      */
2289     public static final String KEY_EMERGENCY_SMS_MODE_TIMER_MS_INT =
2290             "emergency_sms_mode_timer_ms_int";
2291 
2292     /**
2293      * Flag indicating whether to allow carrier video calls to emergency numbers.
2294      * When {@code true}, video calls to emergency numbers will be allowed.  When {@code false},
2295      * video calls to emergency numbers will be initiated as audio-only calls instead.
2296      */
2297     public static final String KEY_ALLOW_EMERGENCY_VIDEO_CALLS_BOOL =
2298             "allow_emergency_video_calls_bool";
2299 
2300     /**
2301      * Flag indicating whether or not an ongoing call will be held when an outgoing emergency call
2302      * is placed. If true, ongoing calls will be put on hold when an emergency call is placed. If
2303      * false, placing an emergency call will trigger the disconnect of all ongoing calls before
2304      * the emergency call is placed.
2305      */
2306     public static final String KEY_ALLOW_HOLD_CALL_DURING_EMERGENCY_BOOL =
2307             "allow_hold_call_during_emergency_bool";
2308 
2309     /**
2310      * Flag indicating whether or not the carrier supports the periodic exchange of phone numbers
2311      * in the user's address book with the carrier's presence server in order to retrieve the RCS
2312      * capabilities for each contact used in the RCS User Capability Exchange (UCE) procedure. See
2313      * RCC.71, section 3 for more information.
2314      * <p>
2315      * The flag {@link Ims#KEY_ENABLE_PRESENCE_PUBLISH_BOOL} must also be enabled if this flag is
2316      * enabled, as sending a periodic SIP PUBLISH with this device's RCS capabilities is a
2317      * requirement for capability exchange to begin.
2318      * <p>
2319      * When presence is supported, the device should use the
2320      * {@link android.provider.ContactsContract.Data#CARRIER_PRESENCE} bit mask and set the
2321      * {@link android.provider.ContactsContract.Data#CARRIER_PRESENCE_VT_CAPABLE} bit to indicate
2322      * whether each contact supports video calling.  The UI is made aware that presence is enabled
2323      * via {@link android.telecom.PhoneAccount#CAPABILITY_VIDEO_CALLING_RELIES_ON_PRESENCE}
2324      * and can choose to hide or show the video calling icon based on whether a contact supports
2325      * video.
2326      *
2327      * @deprecated No longer used in framework code, however it may still be used by applications
2328      * that have not updated their code. This config should still be set to {@code true} if
2329      * {@link Ims#KEY_RCS_BULK_CAPABILITY_EXCHANGE_BOOL} is set to {@code true} and
2330      * {@link Ims#KEY_ENABLE_PRESENCE_CAPABILITY_EXCHANGE_BOOL} is set to {@code true}.
2331      */
2332     @Deprecated
2333     public static final String KEY_USE_RCS_PRESENCE_BOOL = "use_rcs_presence_bool";
2334 
2335     /**
2336      * Flag indicating whether the carrier supports RCS SIP OPTIONS indication for
2337      * User Capability Exchange (UCE).
2338      */
2339     public static final String KEY_USE_RCS_SIP_OPTIONS_BOOL = "use_rcs_sip_options_bool";
2340 
2341     /**
2342      * The duration in seconds that platform call and message blocking is disabled after the user
2343      * contacts emergency services. Platform considers values for below cases:
2344      *  1) 0 <= VALUE <= 604800(one week): the value will be used as the duration directly.
2345      *  2) VALUE > 604800(one week): will use the default value as duration instead.
2346      *  3) VALUE < 0: block will be disabled forever until user re-eanble block manually,
2347      *     the suggested value to disable forever is -1.
2348      * See {@code android.provider.BlockedNumberContract#notifyEmergencyContact(Context)}
2349      * See {@code android.provider.BlockedNumberContract#isBlocked(Context, String)}.
2350      */
2351     public static final String KEY_DURATION_BLOCKING_DISABLED_AFTER_EMERGENCY_INT =
2352             "duration_blocking_disabled_after_emergency_int";
2353 
2354     /**
2355      * Determines whether to enable enhanced call blocking feature on the device.
2356      * android.provider.BlockedNumberContract.SystemContract#ENHANCED_SETTING_KEY_BLOCK_UNREGISTERED
2357      * android.provider.BlockedNumberContract.SystemContract#ENHANCED_SETTING_KEY_BLOCK_PRIVATE
2358      * android.provider.BlockedNumberContract.SystemContract#ENHANCED_SETTING_KEY_BLOCK_PAYPHONE
2359      * android.provider.BlockedNumberContract.SystemContract#ENHANCED_SETTING_KEY_BLOCK_UNKNOWN
2360      * android.provider.BlockedNumberContract.SystemContract#ENHANCED_SETTING_KEY_BLOCK_UNAVAILABLE
2361      *
2362      * <p>
2363      * 1. For Single SIM(SS) device, it can be customized in both carrier_config_mccmnc.xml
2364      *    and vendor.xml.
2365      * <p>
2366      * 2. For Dual SIM(DS) device, it should be customized in vendor.xml, since call blocking
2367      *    function is used regardless of SIM.
2368      * <p>
2369      * If {@code true} enable enhanced call blocking feature on the device, {@code false} otherwise.
2370      */
2371     public static final String KEY_SUPPORT_ENHANCED_CALL_BLOCKING_BOOL =
2372             "support_enhanced_call_blocking_bool";
2373 
2374     /**
2375      * For carriers which require an empty flash to be sent before sending the normal 3-way calling
2376      * flash, the duration in milliseconds of the empty flash to send.  When {@code 0}, no empty
2377      * flash is sent.
2378      */
2379     public static final String KEY_CDMA_3WAYCALL_FLASH_DELAY_INT = "cdma_3waycall_flash_delay_int";
2380 
2381     /**
2382      * The CDMA roaming mode (aka CDMA system select).
2383      *
2384      * <p>The value should be one of the CDMA_ROAMING_MODE_ constants in {@link TelephonyManager}.
2385      * Values other than {@link TelephonyManager#CDMA_ROAMING_MODE_RADIO_DEFAULT} (which is the
2386      * default) will take precedence over user selection.
2387      *
2388      * @see TelephonyManager#CDMA_ROAMING_MODE_RADIO_DEFAULT
2389      * @see TelephonyManager#CDMA_ROAMING_MODE_HOME
2390      * @see TelephonyManager#CDMA_ROAMING_MODE_AFFILIATED
2391      * @see TelephonyManager#CDMA_ROAMING_MODE_ANY
2392      */
2393     public static final String KEY_CDMA_ROAMING_MODE_INT = "cdma_roaming_mode_int";
2394 
2395     /**
2396      * Determines whether 1X voice calls is supported for some CDMA carriers.
2397      * Default value is true.
2398      * @hide
2399      */
2400     @SystemApi
2401     public static final String KEY_SUPPORT_CDMA_1X_VOICE_CALLS_BOOL =
2402             "support_cdma_1x_voice_calls_bool";
2403 
2404     /**
2405      * Boolean indicating if support is provided for directly dialing FDN number from FDN list.
2406      * If false, this feature is not supported.
2407      * @hide
2408      */
2409     public static final String KEY_SUPPORT_DIRECT_FDN_DIALING_BOOL =
2410             "support_direct_fdn_dialing_bool";
2411 
2412     /**
2413      * Int indicating the max number length for FDN
2414      * @hide
2415      */
2416     public static final String KEY_FDN_NUMBER_LENGTH_LIMIT_INT =
2417             "fdn_number_length_limit_int";
2418 
2419     /**
2420      * Report IMEI as device id even if it's a CDMA/LTE phone.
2421      *
2422      * @hide
2423      */
2424     public static final String KEY_FORCE_IMEI_BOOL = "force_imei_bool";
2425 
2426     /**
2427      * The families of Radio Access Technologies that will get clustered and ratcheted,
2428      * ie, we will report transitions up within the family, but not down until we change
2429      * cells.  This prevents flapping between base technologies and higher techs that are
2430      * granted on demand within the cell.
2431      * @hide
2432      */
2433     public static final String KEY_RATCHET_RAT_FAMILIES =
2434             "ratchet_rat_families";
2435 
2436     /**
2437      * Flag indicating whether some telephony logic will treat a call which was formerly a video
2438      * call as if it is still a video call.  When {@code true}:
2439      * <p>
2440      * Logic which will automatically drop a video call which takes place over WIFI when a
2441      * voice call is answered (see {@link #KEY_DROP_VIDEO_CALL_WHEN_ANSWERING_AUDIO_CALL_BOOL}.
2442      * <p>
2443      * Logic which determines whether the user can use TTY calling.
2444      */
2445     public static final String KEY_TREAT_DOWNGRADED_VIDEO_CALLS_AS_VIDEO_CALLS_BOOL =
2446             "treat_downgraded_video_calls_as_video_calls_bool";
2447 
2448     /**
2449      * When {@code true}, if the user is in an ongoing video call over WIFI and answers an incoming
2450      * audio call, the video call will be disconnected before the audio call is answered.  This is
2451      * in contrast to the usual expected behavior where a foreground video call would be put into
2452      * the background and held when an incoming audio call is answered.
2453      */
2454     public static final String KEY_DROP_VIDEO_CALL_WHEN_ANSWERING_AUDIO_CALL_BOOL =
2455             "drop_video_call_when_answering_audio_call_bool";
2456 
2457     /**
2458      * Flag indicating whether the carrier supports merging wifi calls when VoWIFI is disabled.
2459      * This can happen in the case of a carrier which allows offloading video calls to WIFI
2460      * separately of whether voice over wifi is enabled.  In such a scenario when two video calls
2461      * are downgraded to voice, they remain over wifi.  However, if VoWIFI is disabled, these calls
2462      * cannot be merged.
2463      */
2464     public static final String KEY_ALLOW_MERGE_WIFI_CALLS_WHEN_VOWIFI_OFF_BOOL =
2465             "allow_merge_wifi_calls_when_vowifi_off_bool";
2466 
2467     /**
2468      * Flag indicating whether the carrier supports the Hold command while in an IMS call.
2469      * <p>
2470      * The device configuration value {@code config_device_respects_hold_carrier_config} ultimately
2471      * controls whether this carrier configuration option is used.  Where
2472      * {@code config_device_respects_hold_carrier_config} is false, the value of the
2473      * {@link #KEY_ALLOW_HOLD_IN_IMS_CALL_BOOL} carrier configuration option is ignored.
2474      * @hide
2475      */
2476     public static final String KEY_ALLOW_HOLD_IN_IMS_CALL_BOOL = "allow_hold_in_ims_call";
2477 
2478     /**
2479      * Flag indicating whether the carrier supports call deflection for an incoming IMS call.
2480      */
2481     public static final String KEY_CARRIER_ALLOW_DEFLECT_IMS_CALL_BOOL =
2482             "carrier_allow_deflect_ims_call_bool";
2483 
2484     /**
2485      * Flag indicating whether the carrier supports explicit call transfer for an IMS call.
2486      * @hide
2487      */
2488     public static final String KEY_CARRIER_ALLOW_TRANSFER_IMS_CALL_BOOL =
2489             "carrier_allow_transfer_ims_call_bool";
2490 
2491     /**
2492      * Flag indicating whether the carrier always wants to play an "on-hold" tone when a call has
2493      * been remotely held.
2494      * <p>
2495      * When {@code true}, if the IMS stack indicates that the call session has been held, a signal
2496      * will be sent from Telephony to play an audible "on-hold" tone played to the user.
2497      * When {@code false}, a hold tone will only be played if the audio session becomes inactive.
2498      * @hide
2499      */
2500     public static final String KEY_ALWAYS_PLAY_REMOTE_HOLD_TONE_BOOL =
2501             "always_play_remote_hold_tone_bool";
2502 
2503     /**
2504      * When true, the Telephony stack will automatically turn off airplane mode and retry a wifi
2505      * emergency call over the cell network if the initial attempt at dialing was met with a SIP 308
2506      * error.
2507      * @hide
2508      */
2509     public static final String KEY_AUTO_RETRY_FAILED_WIFI_EMERGENCY_CALL =
2510             "auto_retry_failed_wifi_emergency_call";
2511 
2512     /**
2513      * When true, indicates that adding a call is disabled when there is an ongoing video call
2514      * or when there is an ongoing call on wifi which was downgraded from video and VoWifi is
2515      * turned off.
2516      */
2517     public static final String KEY_ALLOW_ADD_CALL_DURING_VIDEO_CALL_BOOL =
2518             "allow_add_call_during_video_call";
2519 
2520     /**
2521      * When {@code true}, indicates that video calls can be put on hold in order to swap to another
2522      * call (e.g. a new outgoing call).
2523      * When {@code false}, indicates that video calls will be disconnected when swapping to another
2524      * call.
2525      * <p>
2526      * This is {@code true} by default.
2527      */
2528     public static final String KEY_ALLOW_HOLD_VIDEO_CALL_BOOL =
2529             "allow_hold_video_call_bool";
2530 
2531     /**
2532      * When true, indicates that the HD audio icon in the in-call screen should not be shown for
2533      * VoWifi calls.
2534      * @hide
2535      */
2536     public static final String KEY_WIFI_CALLS_CAN_BE_HD_AUDIO = "wifi_calls_can_be_hd_audio";
2537 
2538     /**
2539      * When true, indicates that the HD audio icon in the in-call screen should not be shown for
2540      * video calls.
2541      * @hide
2542      */
2543     public static final String KEY_VIDEO_CALLS_CAN_BE_HD_AUDIO = "video_calls_can_be_hd_audio";
2544 
2545     /**
2546      * When true, indicates that the HD audio icon in the in-call screen should be shown for
2547      * GSM/CDMA calls.
2548      * @hide
2549      */
2550     public static final String KEY_GSM_CDMA_CALLS_CAN_BE_HD_AUDIO =
2551             "gsm_cdma_calls_can_be_hd_audio";
2552 
2553     /**
2554      * Whether system apps are allowed to use fallback if carrier video call is not available.
2555      * Defaults to {@code true}.
2556      */
2557     public static final String KEY_ALLOW_VIDEO_CALLING_FALLBACK_BOOL =
2558             "allow_video_calling_fallback_bool";
2559 
2560     /**
2561      * Defines operator-specific {@link ImsReasonInfo} mappings.
2562      *
2563      * Format: "ORIGINAL_CODE|MESSAGE|NEW_CODE"
2564      * Where {@code ORIGINAL_CODE} corresponds to a {@link ImsReasonInfo#getCode()} code,
2565      * {@code MESSAGE} corresponds to an expected {@link ImsReasonInfo#getExtraMessage()} string,
2566      * and {@code NEW_CODE} is the new {@code ImsReasonInfo#CODE_*} which this combination of
2567      * original code and message shall be remapped to.
2568      *
2569      * Note: If {@code *} is specified for the original code, any ImsReasonInfo with the matching
2570      * {@code MESSAGE} will be remapped to {@code NEW_CODE}.
2571      * If {@code *} is specified for the message, any ImsReasonInfo with the matching
2572      * {@code ORIGINAL_CODE} will be remapped to {@code NEW_CODE}.
2573      * The wildcard for {@code ORIGINAL_CODE} takes precedence to the wildcard for {@code MESSAGE}.
2574      * A mapping with both wildcards has no effect.
2575      *
2576      * Example: "501|call completion elsewhere|1014"
2577      * When the {@link ImsReasonInfo#getCode()} is {@link ImsReasonInfo#CODE_USER_TERMINATED} and
2578      * the {@link ImsReasonInfo#getExtraMessage()} is {@code "call completion elsewhere"},
2579      * {@link ImsReasonInfo#CODE_ANSWERED_ELSEWHERE} shall be used as the {@link ImsReasonInfo}
2580      * code instead.
2581      * @hide
2582      */
2583     public static final String KEY_IMS_REASONINFO_MAPPING_STRING_ARRAY =
2584             "ims_reasoninfo_mapping_string_array";
2585 
2586     /**
2587      * When {@code false}, use default title for Enhanced 4G LTE Mode settings.
2588      * When {@code true}, use the variant.
2589      * @hide
2590      * @deprecated use {@link #KEY_ENHANCED_4G_LTE_TITLE_VARIANT_INT}.
2591      */
2592     @Deprecated
2593     public static final String KEY_ENHANCED_4G_LTE_TITLE_VARIANT_BOOL =
2594             "enhanced_4g_lte_title_variant_bool";
2595 
2596     /**
2597      * The index indicates the carrier specified title string of Enhanced 4G LTE Mode settings.
2598      * Default value is 0, which indicates the default title string.
2599      */
2600     public static final String KEY_ENHANCED_4G_LTE_TITLE_VARIANT_INT =
2601             "enhanced_4g_lte_title_variant_int";
2602 
2603     /**
2604      * Indicates whether the carrier wants to notify the user when handover of an LTE video call to
2605      * WIFI fails.
2606      * <p>
2607      * When {@code true}, if a video call starts on LTE and the modem reports a failure to handover
2608      * the call to WIFI or if no handover success is reported within 60 seconds of call initiation,
2609      * the {@link android.telephony.TelephonyManager#EVENT_HANDOVER_TO_WIFI_FAILED} event is raised
2610      * on the connection.
2611      * @hide
2612      */
2613     public static final String KEY_NOTIFY_VT_HANDOVER_TO_WIFI_FAILURE_BOOL =
2614             "notify_vt_handover_to_wifi_failure_bool";
2615 
2616     /**
2617      * A upper case list of CNAP names that are unhelpful to the user for distinguising calls and
2618      * should be filtered out of the CNAP information. This includes CNAP names such as "WIRELESS
2619      * CALLER" or "UNKNOWN NAME". By default, if there are no filtered names for this carrier, null
2620      * is returned.
2621      * @hide
2622      */
2623     public static final String KEY_FILTERED_CNAP_NAMES_STRING_ARRAY = "filtered_cnap_names_string_array";
2624 
2625     /**
2626      * The RCS configuration server URL. This URL is used to initiate RCS provisioning.
2627      */
2628     public static final String KEY_RCS_CONFIG_SERVER_URL_STRING = "rcs_config_server_url_string";
2629 
2630     /**
2631      * Determine whether user can change Wi-Fi Calling preference in roaming.
2632      * {@code false} - roaming preference cannot be changed by user independently. If
2633      *                 {@link #KEY_USE_WFC_HOME_NETWORK_MODE_IN_ROAMING_NETWORK_BOOL} is false,
2634      *                 {@link #KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_MODE_INT} is used as the default
2635      *                 value. If {@link #KEY_USE_WFC_HOME_NETWORK_MODE_IN_ROAMING_NETWORK_BOOL} is
2636      *                 true, roaming preference is the same as home preference and
2637      *                 {@link #KEY_CARRIER_DEFAULT_WFC_IMS_MODE_INT} is used as the default value.
2638      * {@code true}  - roaming preference can be changed by user independently if
2639      *                 {@link #KEY_USE_WFC_HOME_NETWORK_MODE_IN_ROAMING_NETWORK_BOOL} is false. If
2640      *                 {@link #KEY_USE_WFC_HOME_NETWORK_MODE_IN_ROAMING_NETWORK_BOOL} is true, this
2641      *                 configuration is ignored and roaming preference cannot be changed.
2642      */
2643     public static final String KEY_EDITABLE_WFC_ROAMING_MODE_BOOL =
2644             "editable_wfc_roaming_mode_bool";
2645 
2646     /**
2647      * Flag specifying whether to show blocking pay phone option in blocked numbers screen.
2648      * Only show the option if payphone call presentation is present in the carrier's region.
2649      */
2650     public static final java.lang.String KEY_SHOW_BLOCKING_PAY_PHONE_OPTION_BOOL =
2651             "show_blocking_pay_phone_option_bool";
2652 
2653     /**
2654      * Flag specifying whether the carrier will use the
2655      * WFC home network mode in roaming network.
2656      * {@code false} - roaming preference can be selected separately from the home preference.
2657      * {@code true}  - roaming preference is the same as home preference and
2658      *                 {@link #KEY_CARRIER_DEFAULT_WFC_IMS_MODE_INT} is used as the default value.
2659      */
2660     public static final String KEY_USE_WFC_HOME_NETWORK_MODE_IN_ROAMING_NETWORK_BOOL =
2661             "use_wfc_home_network_mode_in_roaming_network_bool";
2662 
2663     /**
2664      * Flag specifying whether the carrier is allowed to use metered network to download a
2665      * certificate of Carrier-WiFi.
2666      * {@code false} - default value.
2667      *
2668      * @hide
2669      */
2670     public static final String KEY_ALLOW_METERED_NETWORK_FOR_CERT_DOWNLOAD_BOOL =
2671             "allow_metered_network_for_cert_download_bool";
2672 
2673     /**
2674      * Time delay (in ms) after which we show the notification to switch the preferred
2675      * network.
2676      * @hide
2677      */
2678     public static final String KEY_PREF_NETWORK_NOTIFICATION_DELAY_INT =
2679             "network_notification_delay_int";
2680 
2681     /**
2682      * Time delay (in ms) after which we show the notification for emergency calls,
2683      * while the device is registered over WFC. Default value is -1, which indicates
2684      * that this notification is not pertinent for a particular carrier. We've added a delay
2685      * to prevent false positives.
2686      */
2687     public static final String KEY_EMERGENCY_NOTIFICATION_DELAY_INT =
2688             "emergency_notification_delay_int";
2689 
2690     /**
2691      * When {@code true}, the carrier allows the user of the
2692      * {@link TelephonyManager#sendUssdRequest(String, TelephonyManager.UssdResponseCallback,
2693      * Handler)} API to perform USSD requests.  {@code True} by default.
2694      * @hide
2695      */
2696     public static final String KEY_ALLOW_USSD_REQUESTS_VIA_TELEPHONY_MANAGER_BOOL =
2697             "allow_ussd_requests_via_telephony_manager_bool";
2698 
2699     /**
2700      * Indicates whether the carrier supports 3gpp call forwarding MMI codes while roaming. If
2701      * false, the user will be notified that call forwarding is not available when the MMI code
2702      * fails.
2703      */
2704     public static final String KEY_SUPPORT_3GPP_CALL_FORWARDING_WHILE_ROAMING_BOOL =
2705         "support_3gpp_call_forwarding_while_roaming_bool";
2706 
2707     /**
2708      * Boolean indicating whether to display voicemail number as default call forwarding number in
2709      * call forwarding settings.
2710      * If true, display vm number when cf number is null.
2711      * If false, display the cf number from network.
2712      * By default this value is false.
2713      * @hide
2714      */
2715     public static final String KEY_DISPLAY_VOICEMAIL_NUMBER_AS_DEFAULT_CALL_FORWARDING_NUMBER_BOOL =
2716             "display_voicemail_number_as_default_call_forwarding_number";
2717 
2718     /**
2719      * When {@code true}, the user will be notified when they attempt to place an international call
2720      * when the call is placed using wifi calling.
2721      * @hide
2722      */
2723     public static final String KEY_NOTIFY_INTERNATIONAL_CALL_ON_WFC_BOOL =
2724             "notify_international_call_on_wfc_bool";
2725 
2726     /**
2727      * Flag to hide Preset APN details. If true, user cannot enter ApnEditor view of Preset APN,
2728      * and cannot view details of the APN. If false, user can enter ApnEditor view of Preset APN.
2729      * Default value is false.
2730      */
2731     public static final String KEY_HIDE_PRESET_APN_DETAILS_BOOL = "hide_preset_apn_details_bool";
2732 
2733     /**
2734      * Flag specifying whether to show an alert dialog for video call charges.
2735      * By default this value is {@code false}.
2736      */
2737     public static final String KEY_SHOW_VIDEO_CALL_CHARGES_ALERT_DIALOG_BOOL =
2738             "show_video_call_charges_alert_dialog_bool";
2739 
2740     /**
2741      * An array containing custom call forwarding number prefixes that will be blocked while the
2742      * device is reporting that it is roaming. By default, there are no custom call
2743      * forwarding prefixes and none of these numbers will be filtered. If one or more entries are
2744      * present, the system will not complete the call and display an error message.
2745      *
2746      * To display a message to the user when call forwarding fails for 3gpp MMI codes while roaming,
2747      * use the {@link #KEY_SUPPORT_3GPP_CALL_FORWARDING_WHILE_ROAMING_BOOL} option instead.
2748      */
2749     public static final String KEY_CALL_FORWARDING_BLOCKS_WHILE_ROAMING_STRING_ARRAY =
2750             "call_forwarding_blocks_while_roaming_string_array";
2751 
2752     /**
2753      * Call forwarding number prefixes defined by {@link
2754      * #KEY_CALL_FORWARDING_BLOCKS_WHILE_ROAMING_STRING_ARRAY} which will be allowed while the
2755      * device is reporting that it is roaming and IMS is registered over LTE or Wi-Fi.
2756      * By default this value is {@code true}.
2757      * @hide
2758      */
2759     public static final String KEY_SUPPORT_IMS_CALL_FORWARDING_WHILE_ROAMING_BOOL =
2760             "support_ims_call_forwarding_while_roaming_bool";
2761 
2762     /**
2763      * The day of the month (1-31) on which the data cycle rolls over.
2764      * <p>
2765      * If the current month does not have this day, the cycle will roll over at
2766      * the start of the next month.
2767      * <p>
2768      * This setting may be still overridden by explicit user choice. By default,
2769      * {@link #DATA_CYCLE_USE_PLATFORM_DEFAULT} will be used.
2770      */
2771     public static final String KEY_MONTHLY_DATA_CYCLE_DAY_INT =
2772             "monthly_data_cycle_day_int";
2773 
2774     /**
2775      * When {@link #KEY_MONTHLY_DATA_CYCLE_DAY_INT}, {@link #KEY_DATA_LIMIT_THRESHOLD_BYTES_LONG},
2776      * or {@link #KEY_DATA_WARNING_THRESHOLD_BYTES_LONG} are set to this value, the platform default
2777      * value will be used for that key.
2778      */
2779     public static final int DATA_CYCLE_USE_PLATFORM_DEFAULT = -1;
2780 
2781     /**
2782      * Flag indicating that a data cycle threshold should be disabled.
2783      * <p>
2784      * If {@link #KEY_DATA_WARNING_THRESHOLD_BYTES_LONG} is set to this value, the platform's
2785      * default data warning, if one exists, will be disabled. A user selected data warning will not
2786      * be overridden.
2787      * <p>
2788      * If {@link #KEY_DATA_LIMIT_THRESHOLD_BYTES_LONG} is set to this value, the platform's
2789      * default data limit, if one exists, will be disabled. A user selected data limit will not be
2790      * overridden.
2791      */
2792     public static final int DATA_CYCLE_THRESHOLD_DISABLED = -2;
2793 
2794     /**
2795      * Controls the data usage warning.
2796      * <p>
2797      * If the user uses more than this amount of data in their billing cycle, as defined by
2798      * {@link #KEY_MONTHLY_DATA_CYCLE_DAY_INT}, the user will be alerted about the usage.
2799      * If the value is set to {@link #DATA_CYCLE_THRESHOLD_DISABLED}, the data usage warning will
2800      * be disabled.
2801      * <p>
2802      * This setting may be overridden by explicit user choice. By default,
2803      * {@link #DATA_CYCLE_USE_PLATFORM_DEFAULT} will be used.
2804      */
2805     public static final String KEY_DATA_WARNING_THRESHOLD_BYTES_LONG =
2806             "data_warning_threshold_bytes_long";
2807 
2808     /**
2809      * Controls if the device should automatically notify the user as they reach
2810      * their cellular data warning. When set to {@code false} the carrier is
2811      * expected to have implemented their own notification mechanism. {@code true} by default.
2812      */
2813     public static final String KEY_DATA_WARNING_NOTIFICATION_BOOL =
2814             "data_warning_notification_bool";
2815 
2816     /**
2817      * Controls if the device should automatically warn the user that sim voice & data function
2818      * might be limited due to dual sim scenario. When set to {@true} display the notification,
2819      * {@code false} otherwise.
2820      * @hide
2821      */
2822     public static final String KEY_LIMITED_SIM_FUNCTION_NOTIFICATION_FOR_DSDS_BOOL =
2823             "limited_sim_function_notification_for_dsds_bool";
2824 
2825     /**
2826      * Controls the cellular data limit.
2827      * <p>
2828      * If the user uses more than this amount of data in their billing cycle, as defined by
2829      * {@link #KEY_MONTHLY_DATA_CYCLE_DAY_INT}, cellular data will be turned off by the user's
2830      * phone. If the value is set to {@link #DATA_CYCLE_THRESHOLD_DISABLED}, the data limit will be
2831      * disabled.
2832      * <p>
2833      * This setting may be overridden by explicit user choice. By default,
2834      * {@link #DATA_CYCLE_USE_PLATFORM_DEFAULT} will be used.
2835      */
2836     public static final String KEY_DATA_LIMIT_THRESHOLD_BYTES_LONG =
2837             "data_limit_threshold_bytes_long";
2838 
2839     /**
2840      * Controls if the device should automatically notify the user as they reach
2841      * their cellular data limit. When set to {@code false} the carrier is
2842      * expected to have implemented their own notification mechanism. {@code true} by default.
2843      */
2844     public static final String KEY_DATA_LIMIT_NOTIFICATION_BOOL =
2845             "data_limit_notification_bool";
2846 
2847     /**
2848      * Controls if the device should automatically notify the user when rapid
2849      * cellular data usage is observed. When set to {@code false} the carrier is
2850      * expected to have implemented their own notification mechanism.  {@code true} by default.
2851      */
2852     public static final String KEY_DATA_RAPID_NOTIFICATION_BOOL =
2853             "data_rapid_notification_bool";
2854 
2855     /**
2856      * Offset to be reduced from rsrp threshold while calculating signal strength level.
2857      * @hide
2858      */
2859     public static final String KEY_LTE_EARFCNS_RSRP_BOOST_INT = "lte_earfcns_rsrp_boost_int";
2860 
2861     /**
2862      * List of EARFCN (E-UTRA Absolute Radio Frequency Channel Number,
2863      * Reference: 3GPP TS 36.104 5.4.3) inclusive ranges on which lte_earfcns_rsrp_boost_int
2864      * will be applied. Format of the String array is expected to be {"earfcn1_start-earfcn1_end",
2865      * "earfcn2_start-earfcn2_end" ... }
2866      * @hide
2867      */
2868     public static final String KEY_BOOSTED_LTE_EARFCNS_STRING_ARRAY =
2869             "boosted_lte_earfcns_string_array";
2870 
2871     /**
2872      * Offset to be reduced from rsrp threshold while calculating signal strength level.
2873      * @hide
2874      */
2875     public static final String KEY_NRARFCNS_RSRP_BOOST_INT_ARRAY = "nrarfcns_rsrp_boost_int_array";
2876 
2877     /**
2878      * List of NR ARFCN (5G Absolute Radio Frequency Channel Number,
2879      * Reference: 3GPP TS 36.108) inclusive ranges on which corresponding
2880      * nrarfcns_rsrp_boost_int_array will be applied. The size of this array and
2881      * nrarfcns_rsrp_boost_int_array must be the same.
2882      * Format of the String array is expected to be {"nrarfcn1_start-nrarfcn1_end",
2883      * "nrarfcn2_start-nrarfcn2_end" ... }
2884      * @hide
2885      */
2886     public static final String KEY_BOOSTED_NRARFCNS_STRING_ARRAY =
2887             "boosted_nrarfcns_string_array";
2888 
2889     /**
2890      * Determine whether to use only RSRP for the number of LTE signal bars.
2891      * @hide
2892      *
2893      * @deprecated use {@link #KEY_PARAMETERS_USED_FOR_LTE_SIGNAL_BAR_INT}.
2894      */
2895     // FIXME: this key and related keys must not be exposed without a consistent philosophy for
2896     // all RATs.
2897     @Deprecated
2898     public static final String KEY_USE_ONLY_RSRP_FOR_LTE_SIGNAL_BAR_BOOL =
2899             "use_only_rsrp_for_lte_signal_bar_bool";
2900 
2901     /**
2902      * Bit-field integer to determine whether to use Reference Signal Received Power (RSRP),
2903      * Reference Signal Received Quality (RSRQ), or/and Reference Signal Signal to Noise Ratio
2904      * (RSSNR) for the number of LTE signal bars and signal criteria reporting enabling.
2905      *
2906      * <p> If a measure is not set, signal criteria reporting from modem will not be triggered and
2907      * not be used for calculating signal level. If multiple measures are set bit, the parameter
2908      * whose value is smallest is used to indicate the signal level.
2909      * <UL>
2910      *  <LI>RSRP = 1 << 0</LI>
2911      *  <LI>RSRQ = 1 << 1</LI>
2912      *  <LI>RSSNR = 1 << 2</LI>
2913      * </UL>
2914      * <p> The value of this key must be bitwise OR of {@link CellSignalStrengthLte#USE_RSRP},
2915      * {@link CellSignalStrengthLte#USE_RSRQ}, {@link CellSignalStrengthLte#USE_RSSNR}.
2916      *
2917      * <p> For example, if both RSRP and RSRQ are used, the value of key is 3 (1 << 0 | 1 << 1).
2918      * If the key is invalid or not configured, a default value (RSRP = 1 << 0) will apply.
2919      *
2920      * @hide
2921      */
2922     public static final String KEY_PARAMETERS_USED_FOR_LTE_SIGNAL_BAR_INT =
2923             "parameters_used_for_lte_signal_bar_int";
2924 
2925     /**
2926      * List of 4 customized 5G SS reference signal received power (SSRSRP) thresholds.
2927      * <p>
2928      * Reference: 3GPP TS 38.215
2929      * <p>
2930      * 4 threshold integers must be within the boundaries [-140 dB, -44 dB], and the levels are:
2931      * <UL>
2932      *     <LI>"NONE: [-140, threshold1)"</LI>
2933      *     <LI>"POOR: [threshold1, threshold2)"</LI>
2934      *     <LI>"MODERATE: [threshold2, threshold3)"</LI>
2935      *     <LI>"GOOD:  [threshold3, threshold4)"</LI>
2936      *     <LI>"EXCELLENT:  [threshold4, -44]"</LI>
2937      * </UL>
2938      * <p>
2939      * This key is considered invalid if the format is violated. If the key is invalid or
2940      * not configured, a default value set will apply.
2941      */
2942     public static final String KEY_5G_NR_SSRSRP_THRESHOLDS_INT_ARRAY =
2943             "5g_nr_ssrsrp_thresholds_int_array";
2944 
2945     /**
2946      * List of 4 customized 5G SS reference signal received quality (SSRSRQ) thresholds.
2947      * <p>
2948      * Reference: 3GPP TS 38.215; 3GPP TS 38.133 section 10
2949      * <p>
2950      * 4 threshold integers must be within the boundaries [-43 dB, 20 dB], and the levels are:
2951      * <UL>
2952      *     <LI>"NONE: [-43, threshold1)"</LI>
2953      *     <LI>"POOR: [threshold1, threshold2)"</LI>
2954      *     <LI>"MODERATE: [threshold2, threshold3)"</LI>
2955      *     <LI>"GOOD:  [threshold3, threshold4)"</LI>
2956      *     <LI>"EXCELLENT:  [threshold4, 20]"</LI>
2957      * </UL>
2958      * <p>
2959      * This key is considered invalid if the format is violated. If the key is invalid or
2960      * not configured, a default value set will apply.
2961      */
2962     public static final String KEY_5G_NR_SSRSRQ_THRESHOLDS_INT_ARRAY =
2963             "5g_nr_ssrsrq_thresholds_int_array";
2964 
2965     /**
2966      * List of 4 customized 5G SS signal-to-noise and interference ratio (SSSINR) thresholds.
2967      * <p>
2968      * Reference: 3GPP TS 38.215,
2969      *            3GPP TS 38.133 10.1.16.1
2970      * <p>
2971      * 4 threshold integers must be within the boundaries [-23 dB, 40 dB], and the levels are:
2972      * <UL>
2973      *     <LI>"NONE: [-23, threshold1)"</LI>
2974      *     <LI>"POOR: [threshold1, threshold2)"</LI>
2975      *     <LI>"MODERATE: [threshold2, threshold3)"</LI>
2976      *     <LI>"GOOD:  [threshold3, threshold4)"</LI>
2977      *     <LI>"EXCELLENT:  [threshold4, 40]"</LI>
2978      * </UL>
2979      * <p>
2980      * This key is considered invalid if the format is violated. If the key is invalid or
2981      * not configured, a default value set will apply.
2982      */
2983     public static final String KEY_5G_NR_SSSINR_THRESHOLDS_INT_ARRAY =
2984             "5g_nr_sssinr_thresholds_int_array";
2985 
2986     /**
2987      * Bit-field integer to determine whether to use SS reference signal received power (SSRSRP),
2988      * SS reference signal received quality (SSRSRQ), or/and SS signal-to-noise and interference
2989      * ratio (SSSINR) for the number of 5G NR signal bars and signal criteria reporting enabling.
2990      *
2991      * <p> If a measure is not set, signal criteria reporting from modem will not be triggered and
2992      * not be used for calculating signal level. If multiple measures are set bit, the parameter
2993      * whose value is smallest is used to indicate the signal level.
2994      * <UL>
2995      *  <LI>SSRSRP = 1 << 0</LI>
2996      *  <LI>SSRSRQ = 1 << 1</LI>
2997      *  <LI>SSSINR = 1 << 2</LI>
2998      * </UL>
2999      *  The value of this key must be bitwise OR of {@link CellSignalStrengthNr#USE_SSRSRP},
3000      *  {@link CellSignalStrengthNr#USE_SSRSRQ}, {@link CellSignalStrengthNr#USE_SSSINR}.
3001      *
3002      * <p> For example, if both SSRSRP and SSSINR are used, the value of key is 5 (1 << 0 | 1 << 2).
3003      * If the key is invalid or not configured, a default value (SSRSRP = 1 << 0) will apply.
3004      *
3005      * <p> Reference: 3GPP TS 38.215,
3006      *                3GPP TS 38.133 10.1.16.1
3007      *
3008      * @hide
3009      */
3010     public static final String KEY_PARAMETERS_USE_FOR_5G_NR_SIGNAL_BAR_INT =
3011             "parameters_use_for_5g_nr_signal_bar_int";
3012 
3013     /**
3014      * There are two signal strengths, NR and LTE signal strength, during NR (non-standalone).
3015      * Boolean indicating whether to use LTE signal strength as primary during NR (non-standalone).
3016      * By default this value is true.
3017      *
3018      * @hide
3019      */
3020     public static final String KEY_SIGNAL_STRENGTH_NR_NSA_USE_LTE_AS_PRIMARY_BOOL =
3021             "signal_strength_nr_nsa_use_lte_as_primary_bool";
3022 
3023     /**
3024      * String array of default bandwidth values per network type.
3025      * The entries should be of form: "network_name:downlink,uplink", with values in Kbps.
3026      * For NR (5G), the following network names should be used:
3027      * - NR_NSA: NR NSA, sub-6 frequencies
3028      * - NR_NSA_MMWAVE: NR NSA, mmwave frequencies
3029      * - NR_SA: NR SA, sub-6 frequencies
3030      * - NR_SA_MMWAVE: NR SA, mmwave frequencies
3031      * @hide
3032      */
3033     public static final String KEY_BANDWIDTH_STRING_ARRAY = "bandwidth_string_array";
3034 
3035     /**
3036      * For NR (non-standalone), whether to use the LTE value instead of NR value as the default for
3037      * uplink bandwidth. Downlink bandwidth will still use the NR value as the default.
3038      * @hide
3039      */
3040     public static final String KEY_BANDWIDTH_NR_NSA_USE_LTE_VALUE_FOR_UPLINK_BOOL =
3041             "bandwidth_nr_nsa_use_lte_value_for_uplink_bool";
3042 
3043     /**
3044      * Key identifying if voice call barring notification is required to be shown to the user.
3045      * @hide
3046      */
3047     @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
3048     public static final String KEY_DISABLE_VOICE_BARRING_NOTIFICATION_BOOL =
3049             "disable_voice_barring_notification_bool";
3050 
3051     /**
3052      * List of operators considered non-roaming which won't show roaming icon.
3053      * <p>
3054      * Can use mcc or mcc+mnc as item. For example, 302 or 21407.
3055      * If operators, 21404 and 21407, make roaming agreements, users of 21404 should not see
3056      * the roaming icon as using 21407 network.
3057      * @hide
3058      */
3059     public static final String KEY_NON_ROAMING_OPERATOR_STRING_ARRAY =
3060             "non_roaming_operator_string_array";
3061 
3062     /**
3063      * List of operators considered roaming with the roaming icon.
3064      * <p>
3065      * Can use mcc or mcc+mnc as item. For example, 302 or 21407.
3066      * If operators, 21404 and 21407, make roaming agreements, users of 21404 should see
3067      * the roaming icon as using 21407 network.
3068      * <p>
3069      * A match on this supersedes a match on {@link #KEY_NON_ROAMING_OPERATOR_STRING_ARRAY}.
3070      * @hide
3071      */
3072     public static final String KEY_ROAMING_OPERATOR_STRING_ARRAY =
3073             "roaming_operator_string_array";
3074 
3075     /**
3076      * URL from which the proto containing the public key of the Carrier used for
3077      * IMSI encryption will be downloaded.
3078      * @hide
3079      */
3080     public static final String IMSI_KEY_DOWNLOAD_URL_STRING = "imsi_key_download_url_string";
3081 
3082     /**
3083      * String representation of a carrier's public key used for IMSI encryption for ePDG. If this
3084      * is provided, the device will use it as a fallback when no key exists on device, but the key
3085      * download will still initiate.
3086      * Example string:
3087      *         "-----BEGIN CERTIFICATE-----\nabcde12345abcde12345abcde12345abcde1234
3088      * 5abcde12345abcde12345\nabcde12345abcde12345abcde12345abcde12345a\n-----END CERTIFICATE-----"
3089      * @hide
3090      */
3091     public static final String IMSI_CARRIER_PUBLIC_KEY_EPDG_STRING =
3092             "imsi_carrier_public_key_epdg_string";
3093 
3094     /**
3095      * String representation of a carrier's public key used for IMSI encryption for WLAN. If this
3096      * is provided, the device will use it as a fallback when no key exists on device, but the key
3097      * download will still initiate.
3098      * Example string:
3099      *         "-----BEGIN CERTIFICATE-----\nabcde12345abcde12345abcde12345abcde1234
3100      * 5abcde12345abcde12345\nabcde12345abcde12345abcde12345abcde12345a\n-----END CERTIFICATE-----"
3101      * @hide
3102      */
3103     public static final String IMSI_CARRIER_PUBLIC_KEY_WLAN_STRING =
3104             "imsi_carrier_public_key_wlan_string";
3105 
3106     /**
3107      * Identifies if the key is available for WLAN or EPDG or both. The value is a bitmask.
3108      * 0 indicates that neither EPDG or WLAN is enabled.
3109      * 1 indicates that key type TelephonyManager#KEY_TYPE_EPDG is enabled.
3110      * 2 indicates that key type TelephonyManager#KEY_TYPE_WLAN is enabled.
3111      * 3 indicates that both are enabled.
3112      */
3113     public static final String IMSI_KEY_AVAILABILITY_INT = "imsi_key_availability_int";
3114 
3115     /**
3116      * Key identifying if the CDMA Caller ID presentation and suppression MMI codes
3117      * should be converted to 3GPP CLIR codes when a multimode (CDMA+UMTS+LTE) device is roaming
3118      * on a 3GPP network. Specifically *67<number> will be converted to #31#<number> and
3119      * *82<number> will be converted to *31#<number> before dialing a call when this key is
3120      * set TRUE and device is roaming on a 3GPP network.
3121      * @hide
3122      */
3123     public static final String KEY_CONVERT_CDMA_CALLER_ID_MMI_CODES_WHILE_ROAMING_ON_3GPP_BOOL =
3124             "convert_cdma_caller_id_mmi_codes_while_roaming_on_3gpp_bool";
3125 
3126     /**
3127      * Flag specifying whether IMS registration state menu is shown in Status Info setting,
3128      * default to false.
3129      */
3130     public static final String KEY_SHOW_IMS_REGISTRATION_STATUS_BOOL =
3131             "show_ims_registration_status_bool";
3132 
3133     /**
3134      * Flag indicating whether the carrier supports RTT over IMS.
3135      */
3136     public static final String KEY_RTT_SUPPORTED_BOOL = "rtt_supported_bool";
3137 
3138     /**
3139      * Boolean flag indicating whether the carrier supports TTY.
3140      * <p>
3141      * Note that {@link #KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL} controls availability of TTY over
3142      * VoLTE; if {@link #KEY_TTY_SUPPORTED_BOOL} is disabled, then
3143      * {@link #KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL} is also implicitly disabled.
3144      * <p>
3145      * {@link TelecomManager#isTtySupported()} should be used to determine if a device supports TTY,
3146      * and this carrier config key should be used to see if the current carrier supports it.
3147      */
3148     public static final String KEY_TTY_SUPPORTED_BOOL = "tty_supported_bool";
3149 
3150     /**
3151      * Indicates if the carrier supports auto-upgrading a call to RTT when receiving a call from a
3152      * RTT-supported device.
3153      */
3154     public static final String KEY_RTT_AUTO_UPGRADE_BOOL = "rtt_auto_upgrade_bool";
3155 
3156     /**
3157      * Indicates if the carrier supports RTT during a video call.
3158      */
3159     public static final String KEY_RTT_SUPPORTED_FOR_VT_BOOL = "rtt_supported_for_vt_bool";
3160 
3161     /**
3162      * Indicates if the carrier supports upgrading a call that was previously an RTT call to VT.
3163      */
3164     public static final String KEY_VT_UPGRADE_SUPPORTED_FOR_DOWNGRADED_RTT_CALL_BOOL =
3165             "vt_upgrade_supported_for_downgraded_rtt_call";
3166 
3167     /**
3168      * Indicates if the carrier supports upgrading a call that was previously a VT call to RTT.
3169      */
3170     public static final String KEY_RTT_UPGRADE_SUPPORTED_FOR_DOWNGRADED_VT_CALL_BOOL =
3171             "rtt_upgrade_supported_for_downgraded_vt_call";
3172 
3173     /**
3174      * Indicates if the carrier supports upgrading a voice call to an RTT call during the call.
3175      */
3176     public static final String KEY_RTT_UPGRADE_SUPPORTED_BOOL = "rtt_upgrade_supported_bool";
3177 
3178     /**
3179      * Indicates if the carrier supports downgrading a RTT call to a voice call during the call.
3180      */
3181     public static final String KEY_RTT_DOWNGRADE_SUPPORTED_BOOL = "rtt_downgrade_supported_bool";
3182 
3183     /**
3184      * Indicates if the TTY HCO and VCO options should be hidden in the accessibility menu
3185      * if the device is capable of RTT.
3186      */
3187     public static final String KEY_HIDE_TTY_HCO_VCO_WITH_RTT_BOOL = "hide_tty_hco_vco_with_rtt";
3188 
3189     /**
3190      * The flag to disable the popup dialog which warns the user of data charges.
3191      */
3192     public static final String KEY_DISABLE_CHARGE_INDICATION_BOOL =
3193             "disable_charge_indication_bool";
3194 
3195     /**
3196      * Boolean indicating whether to skip the call forwarding (CF) fail-to-disable dialog.
3197      * The logic used to determine whether we succeeded in disabling is carrier specific,
3198      * so the dialog may not always be accurate.
3199      * {@code false} - show CF fail-to-disable dialog.
3200      * {@code true}  - skip showing CF fail-to-disable dialog.
3201      *
3202      * @hide
3203      */
3204     public static final String KEY_SKIP_CF_FAIL_TO_DISABLE_DIALOG_BOOL =
3205             "skip_cf_fail_to_disable_dialog_bool";
3206 
3207     /**
3208      * Flag specifying whether operator supports including no reply condition timer option on
3209      * CFNRy (3GPP TS 24.082 3: Call Forwarding on No Reply) in the call forwarding settings UI.
3210      * {@code true}  - include no reply condition timer option on CFNRy
3211      * {@code false} - don't include no reply condition timer option on CFNRy
3212      *
3213      * @hide
3214      */
3215     public static final String KEY_SUPPORT_NO_REPLY_TIMER_FOR_CFNRY_BOOL =
3216             "support_no_reply_timer_for_cfnry_bool";
3217 
3218     /**
3219      * List of the FAC (feature access codes) to dial as a normal call.
3220      * @hide
3221      */
3222     public static final String KEY_FEATURE_ACCESS_CODES_STRING_ARRAY =
3223             "feature_access_codes_string_array";
3224 
3225     /**
3226      * Determines if the carrier wants to identify high definition calls in the call log.
3227      * @hide
3228      */
3229     public static final String KEY_IDENTIFY_HIGH_DEFINITION_CALLS_IN_CALL_LOG_BOOL =
3230             "identify_high_definition_calls_in_call_log_bool";
3231 
3232     /**
3233      * Flag specifying whether to use the {@link ServiceState} roaming status, which can be
3234      * affected by other carrier configs (e.g.
3235      * {@link #KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY}), when setting the SPN display.
3236      * <p>
3237      * If {@code true}, the SPN display uses {@link ServiceState#getRoaming}.
3238      * If {@code false} the SPN display checks if the current MCC/MNC is different from the
3239      * SIM card's MCC/MNC.
3240      *
3241      * @see KEY_GSM_ROAMING_NETWORKS_STRING_ARRAY
3242      * @see KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY
3243      * @see KEY_NON_ROAMING_OPERATOR_STRING_ARRAY
3244      * @see KEY_ROAMING_OPERATOR_STRING_ARRAY
3245      * @see KEY_FORCE_HOME_NETWORK_BOOL
3246      *
3247      * @hide
3248      */
3249     public static final String KEY_SPN_DISPLAY_RULE_USE_ROAMING_FROM_SERVICE_STATE_BOOL =
3250             "spn_display_rule_use_roaming_from_service_state_bool";
3251 
3252     /**
3253      * Determines whether any carrier has been identified and its specific config has been applied,
3254      * default to false.
3255      */
3256     public static final String KEY_CARRIER_CONFIG_APPLIED_BOOL = "carrier_config_applied_bool";
3257 
3258     /**
3259      * Determines whether we should show a warning asking the user to check with their carrier
3260      * on pricing when the user enabled data roaming,
3261      * default to false.
3262      */
3263     public static final String KEY_CHECK_PRICING_WITH_CARRIER_FOR_DATA_ROAMING_BOOL =
3264             "check_pricing_with_carrier_data_roaming_bool";
3265 
3266      /**
3267       * Determines whether we should show a notification when the phone established a data
3268       * connection in roaming network, to warn users about possible roaming charges.
3269       * @hide
3270       */
3271     public static final String KEY_SHOW_DATA_CONNECTED_ROAMING_NOTIFICATION_BOOL =
3272             "show_data_connected_roaming_notification";
3273 
3274     /**
3275      * A list of 4 LTE RSRP thresholds above which a signal level is considered POOR,
3276      * MODERATE, GOOD, or EXCELLENT, to be used in SignalStrength reporting.
3277      *
3278      * Note that the min and max thresholds are fixed at -140 and -44, as explained in
3279      * TS 136.133 9.1.4 - RSRP Measurement Report Mapping.
3280      * <p>
3281      * See SignalStrength#MAX_LTE_RSRP and SignalStrength#MIN_LTE_RSRP. Any signal level outside
3282      * these boundaries is considered invalid.
3283      * @hide
3284      */
3285     public static final String KEY_LTE_RSRP_THRESHOLDS_INT_ARRAY =
3286             "lte_rsrp_thresholds_int_array";
3287 
3288     /**
3289      * A list of 4 customized LTE Reference Signal Received Quality (RSRQ) thresholds.
3290      *
3291      * Reference: TS 136.133 v12.6.0 section 9.1.7 - RSRQ Measurement Report Mapping.
3292      *
3293      * 4 threshold integers must be within the boundaries [-34 dB, 3 dB], and the levels are:
3294      *     "NONE: [-34, threshold1)"
3295      *     "POOR: [threshold1, threshold2)"
3296      *     "MODERATE: [threshold2, threshold3)"
3297      *     "GOOD:  [threshold3, threshold4)"
3298      *     "EXCELLENT:  [threshold4, 3]"
3299      *
3300      * This key is considered invalid if the format is violated. If the key is invalid or
3301      * not configured, a default value set will apply.
3302      */
3303     public static final String KEY_LTE_RSRQ_THRESHOLDS_INT_ARRAY =
3304             "lte_rsrq_thresholds_int_array";
3305 
3306     /**
3307      * A list of 4 customized LTE Reference Signal Signal to Noise Ratio (RSSNR) thresholds.
3308      *
3309      * 4 threshold integers must be within the boundaries [-20 dB, 30 dB], and the levels are:
3310      *     "NONE: [-20, threshold1)"
3311      *     "POOR: [threshold1, threshold2)"
3312      *     "MODERATE: [threshold2, threshold3)"
3313      *     "GOOD:  [threshold3, threshold4)"
3314      *     "EXCELLENT:  [threshold4, 30]"
3315      *
3316      * This key is considered invalid if the format is violated. If the key is invalid or
3317      * not configured, a default value set will apply.
3318      */
3319     public static final String KEY_LTE_RSSNR_THRESHOLDS_INT_ARRAY =
3320             "lte_rssnr_thresholds_int_array";
3321 
3322     /**
3323      * Decides when clients try to bind to iwlan network service, which package name will
3324      * the binding intent go to.
3325      * @hide
3326      */
3327     public static final String KEY_CARRIER_NETWORK_SERVICE_WLAN_PACKAGE_OVERRIDE_STRING =
3328             "carrier_network_service_wlan_package_override_string";
3329 
3330     /**
3331      * Decides when clients try to bind to iwlan network service, which class name will
3332      * the binding intent go to.
3333      * @hide
3334      */
3335     public static final String KEY_CARRIER_NETWORK_SERVICE_WLAN_CLASS_OVERRIDE_STRING =
3336             "carrier_network_service_wlan_class_override_string";
3337 
3338     /**
3339      * Decides when clients try to bind to wwan (cellular) network service, which package name will
3340      * the binding intent go to.
3341      * @hide
3342      */
3343     public static final String KEY_CARRIER_NETWORK_SERVICE_WWAN_PACKAGE_OVERRIDE_STRING =
3344             "carrier_network_service_wwan_package_override_string";
3345 
3346     /**
3347      * Decides when clients try to bind to wwan (cellular) network service, which class name will
3348      * the binding intent go to.
3349      * @hide
3350      */
3351     public static final String KEY_CARRIER_NETWORK_SERVICE_WWAN_CLASS_OVERRIDE_STRING =
3352             "carrier_network_service_wwan_class_override_string";
3353 
3354     /**
3355      * The package name of qualified networks service that telephony binds to.
3356      *
3357      * @hide
3358      */
3359     public static final String KEY_CARRIER_QUALIFIED_NETWORKS_SERVICE_PACKAGE_OVERRIDE_STRING =
3360             "carrier_qualified_networks_service_package_override_string";
3361 
3362     /**
3363      * The class name of qualified networks service that telephony binds to.
3364      *
3365      * @hide
3366      */
3367     public static final String KEY_CARRIER_QUALIFIED_NETWORKS_SERVICE_CLASS_OVERRIDE_STRING =
3368             "carrier_qualified_networks_service_class_override_string";
3369     /**
3370      * A list of 4 LTE RSCP thresholds above which a signal level is considered POOR,
3371      * MODERATE, GOOD, or EXCELLENT, to be used in SignalStrength reporting.
3372      *
3373      * Note that the min and max thresholds are fixed at -120 and -24, as set in 3GPP TS 27.007
3374      * section 8.69.
3375      * <p>
3376      * See SignalStrength#MAX_WCDMA_RSCP and SignalStrength#MIN_WDCMA_RSCP. Any signal level outside
3377      * these boundaries is considered invalid.
3378      * @hide
3379      */
3380     public static final String KEY_WCDMA_RSCP_THRESHOLDS_INT_ARRAY =
3381             "wcdma_rscp_thresholds_int_array";
3382 
3383     /**
3384      * The default measurement to use for signal strength reporting. If this is not specified, the
3385      * RSSI is used.
3386      * <p>
3387      * e.g.) To use RSCP by default, set the value to "rscp". The signal strength level will
3388      * then be determined by #KEY_WCDMA_RSCP_THRESHOLDS_INT_ARRAY
3389      * <p>
3390      * Currently this supports the value "rscp" and "rssi".
3391      * @hide
3392      */
3393     // FIXME: this key and related keys must not be exposed without a consistent philosophy for
3394     // all RATs.
3395     public static final String KEY_WCDMA_DEFAULT_SIGNAL_STRENGTH_MEASUREMENT_STRING =
3396             "wcdma_default_signal_strength_measurement_string";
3397 
3398     /**
3399      * When a partial sms / mms message stay in raw table for too long without being completed,
3400      * we expire them and delete them from the raw table. This carrier config defines the
3401      * expiration time.
3402      * @hide
3403      */
3404     public static final String KEY_UNDELIVERED_SMS_MESSAGE_EXPIRATION_TIME =
3405             "undelivered_sms_message_expiration_time";
3406 
3407     /**
3408      * Specifies a carrier-defined {@link android.telecom.CallRedirectionService} which Telecom
3409      * will bind to for outgoing calls.  An empty string indicates that no carrier-defined
3410      * {@link android.telecom.CallRedirectionService} is specified.
3411      */
3412     public static final String KEY_CALL_REDIRECTION_SERVICE_COMPONENT_NAME_STRING =
3413             "call_redirection_service_component_name_string";
3414 
3415     /**
3416      * Support for the original string display of CDMA MO call.
3417      * By default, it is disabled.
3418      * @hide
3419      */
3420     public static final String KEY_CONFIG_SHOW_ORIG_DIAL_STRING_FOR_CDMA_BOOL =
3421             "config_show_orig_dial_string_for_cdma";
3422 
3423     /**
3424      * Flag specifying whether to show notification(call blocking disabled) when Enhanced Call
3425      * Blocking(KEY_SUPPORT_ENHANCED_CALL_BLOCKING_BOOL) is enabled and making emergency call.
3426      * When true, notification is shown always.
3427      * When false, notification is shown only when any setting of "Enhanced Blocked number" is
3428      * enabled.
3429      */
3430     public static final String KEY_SHOW_CALL_BLOCKING_DISABLED_NOTIFICATION_ALWAYS_BOOL =
3431             "show_call_blocking_disabled_notification_always_bool";
3432 
3433     /**
3434      * Some carriers only support SS over UT via INTERNET PDN.
3435      * When mobile data is OFF or data roaming OFF during roaming,
3436      * UI should block the call forwarding operation and notify the user
3437      * that the function only works if data is available.
3438      * @hide
3439      */
3440     public static final String KEY_CALL_FORWARDING_OVER_UT_WARNING_BOOL =
3441             "call_forwarding_over_ut_warning_bool";
3442 
3443     /**
3444      * Some carriers only support SS over UT via INTERNET PDN.
3445      * When mobile data is OFF or data roaming OFF during roaming,
3446      * UI should block the call barring operation and notify the user
3447      * that the function only works if data is available.
3448      * @hide
3449      */
3450     public static final String KEY_CALL_BARRING_OVER_UT_WARNING_BOOL =
3451             "call_barring_over_ut_warning_bool";
3452 
3453     /**
3454      * Some carriers only support SS over UT via INTERNET PDN.
3455      * When mobile data is OFF or data roaming OFF during roaming,
3456      * UI should block the caller id operation and notify the user
3457      * that the function only works if data is available.
3458      * @hide
3459      */
3460     public static final String KEY_CALLER_ID_OVER_UT_WARNING_BOOL =
3461             "caller_id_over_ut_warning_bool";
3462 
3463     /**
3464      * Some carriers only support SS over UT via INTERNET PDN.
3465      * When mobile data is OFF or data roaming OFF during roaming,
3466      * UI should block the call waiting operation and notify the user
3467      * that the function only works if data is available.
3468      * @hide
3469      */
3470     public static final String KEY_CALL_WAITING_OVER_UT_WARNING_BOOL =
3471             "call_waiting_over_ut_warning_bool";
3472 
3473     /**
3474      * Flag indicating whether to support "Network default" option in Caller ID settings for Calling
3475      * Line Identification Restriction (CLIR).
3476      */
3477     public static final String KEY_SUPPORT_CLIR_NETWORK_DEFAULT_BOOL =
3478             "support_clir_network_default_bool";
3479 
3480     /**
3481      * Determines whether the carrier want to support emergency dialer shortcut.
3482      * @hide
3483      */
3484     public static final String KEY_SUPPORT_EMERGENCY_DIALER_SHORTCUT_BOOL =
3485             "support_emergency_dialer_shortcut_bool";
3486 
3487     /**
3488      * Call forwarding uses USSD command without SS command.
3489      * When {@code true}, the call forwarding query/set by ussd command and UI only display Call
3490      * Forwarding when unanswered.
3491      * When {@code false}, don't use USSD to query/set call forwarding.
3492      * @hide
3493      */
3494     public static final String KEY_USE_CALL_FORWARDING_USSD_BOOL = "use_call_forwarding_ussd_bool";
3495 
3496     /**
3497      * This flag specifies whether to support for the caller id set command by ussd.
3498      * When {@code true}, device shall sync caller id ussd result to ss command.
3499      * When {@code false}, caller id don't support ussd command.
3500      * @hide
3501      */
3502     public static final String KEY_USE_CALLER_ID_USSD_BOOL = "use_caller_id_ussd_bool";
3503 
3504     /**
3505      * Call waiting uses USSD command without SS command.
3506      * When {@code true}, the call waiting query/set by ussd command.
3507      * When {@code false}, doesn't use USSD to query/set call waiting.
3508      * @hide
3509      */
3510     public static final String KEY_USE_CALL_WAITING_USSD_BOOL = "use_call_waiting_ussd_bool";
3511 
3512     /**
3513      * Specifies the service class for call waiting service.
3514      * Default value is
3515      * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_VOICE}.
3516      * <p>
3517      * See 27.007 +CCFC or +CLCK.
3518      * The value set as below:
3519      * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_NONE}
3520      * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_VOICE}
3521      * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_DATA}
3522      * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_FAX}
3523      * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_SMS}
3524      * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_DATA_SYNC}
3525      * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_DATA_ASYNC}
3526      * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_PACKET}
3527      * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_PAD}
3528      * {@link com.android.internal.telephony.CommandsInterface#SERVICE_CLASS_MAX}
3529      * @hide
3530      */
3531     public static final String KEY_CALL_WAITING_SERVICE_CLASS_INT =
3532             "call_waiting_service_class_int";
3533 
3534     /**
3535      * This configuration allows the system UI to display different 5G icons for different 5G
3536      * scenarios.
3537      *
3538      * There are five 5G scenarios:
3539      * 1. connected_mmwave: device currently connected to 5G cell as the secondary cell and using
3540      *    millimeter wave.
3541      * 2. connected: device currently connected to 5G cell as the secondary cell but not using
3542      *    millimeter wave.
3543      * 3. not_restricted_rrc_idle: device camped on a network that has 5G capability(not necessary
3544      *    to connect a 5G cell as a secondary cell) and the use of 5G is not restricted and RRC
3545      *    currently in IDLE state.
3546      * 4. not_restricted_rrc_con: device camped on a network that has 5G capability(not necessary
3547      *    to connect a 5G cell as a secondary cell) and the use of 5G is not restricted and RRC
3548      *    currently in CONNECTED state.
3549      * 5. restricted: device camped on a network that has 5G capability(not necessary to connect a
3550      *    5G cell as a secondary cell) but the use of 5G is restricted.
3551      *
3552      * The configured string contains multiple key-value pairs separated by comma. For each pair,
3553      * the key and value are separated by a colon. The key corresponds to a 5G status above and
3554      * the value is the icon name. Use "None" as the icon name if no icon should be shown in a
3555      * specific 5G scenario. If the scenario is "None", config can skip this key and value.
3556      *
3557      * Icon name options: "5G_Plus", "5G".
3558      *
3559      * Here is an example:
3560      * UE wants to display 5G_Plus icon for scenario#1, and 5G icon for scenario#2; otherwise not
3561      * define.
3562      * The configuration is: "connected_mmwave:5G_Plus,connected:5G"
3563      * @hide
3564      */
3565     public static final String KEY_5G_ICON_CONFIGURATION_STRING = "5g_icon_configuration_string";
3566 
3567     /**
3568      * This configuration allows the system UI to determine how long to continue to display 5G icons
3569      * when the device switches between different 5G scenarios.
3570      *
3571      * There are seven 5G scenarios:
3572      * 1. connected_mmwave: device currently connected to 5G cell as the secondary cell and using
3573      *    millimeter wave.
3574      * 2. connected: device currently connected to 5G cell as the secondary cell but not using
3575      *    millimeter wave.
3576      * 3. not_restricted_rrc_idle: device camped on a network that has 5G capability (not necessary
3577      *    to connect a 5G cell as a secondary cell) and the use of 5G is not restricted and RRC
3578      *    currently in IDLE state.
3579      * 4. not_restricted_rrc_con: device camped on a network that has 5G capability (not necessary
3580      *    to connect a 5G cell as a secondary cell) and the use of 5G is not restricted and RRC
3581      *    currently in CONNECTED state.
3582      * 5. restricted: device camped on a network that has 5G capability (not necessary to connect a
3583      *    5G cell as a secondary cell) but the use of 5G is restricted.
3584      * 6. legacy: device is not camped on a network that has 5G capability
3585      * 7. any: any of the above scenarios
3586      *
3587      * The configured string contains various timer rules separated by a semicolon.
3588      * Each rule will have three items: prior 5G scenario, current 5G scenario, and grace period
3589      * in seconds before changing the icon. When the 5G state changes from the prior to the current
3590      * 5G scenario, the system UI will continue to show the icon for the prior 5G scenario (defined
3591      * in {@link #KEY_5G_ICON_CONFIGURATION_STRING}) for the amount of time specified by the grace
3592      * period. If the prior 5G scenario is reestablished, the timer will reset and start again if
3593      * the UE changes 5G scenarios again. Defined states (5G scenarios #1-5) take precedence over
3594      * 'any' (5G scenario #6), and unspecified transitions have a default grace period of 0.
3595      * The order of rules in the configuration determines the priority (the first applicable timer
3596      * rule will be used).
3597      *
3598      * Here is an example: "connected_mmwave,connected,30;connected_mmwave,any,10;connected,any,10"
3599      * This configuration defines 3 timers:
3600      * 1. When UE goes from 'connected_mmwave' to 'connected', system UI will continue to display
3601      *    the 5G icon for 'connected_mmwave' for 30 seconds.
3602      * 2. When UE goes from 'connected_mmwave' to any other state (except for connected, since
3603      *    rule 1 would be used instead), system UI will continue to display the 5G icon for
3604      *    'connected_mmwave' for 10 seconds.
3605      * 3. When UE goes from 'connected' to any other state, system UI will continue to display the
3606      *    5G icon for 'connected' for 10 seconds.
3607      *
3608      * @hide
3609      */
3610     public static final String KEY_5G_ICON_DISPLAY_GRACE_PERIOD_STRING =
3611             "5g_icon_display_grace_period_string";
3612 
3613     /**
3614      * This configuration extends {@link #KEY_5G_ICON_DISPLAY_GRACE_PERIOD_STRING} to allow the
3615      * system UI to continue displaying 5G icons after the initial timer expires.
3616      *
3617      * There are seven 5G scenarios:
3618      * 1. connected_mmwave: device currently connected to 5G cell as the secondary cell and using
3619      *    millimeter wave.
3620      * 2. connected: device currently connected to 5G cell as the secondary cell but not using
3621      *    millimeter wave.
3622      * 3. not_restricted_rrc_idle: device camped on a network that has 5G capability (not necessary
3623      *    to connect a 5G cell as a secondary cell) and the use of 5G is not restricted and RRC
3624      *    currently in IDLE state.
3625      * 4. not_restricted_rrc_con: device camped on a network that has 5G capability (not necessary
3626      *    to connect a 5G cell as a secondary cell) and the use of 5G is not restricted and RRC
3627      *    currently in CONNECTED state.
3628      * 5. restricted: device camped on a network that has 5G capability (not necessary to connect a
3629      *    5G cell as a secondary cell) but the use of 5G is restricted.
3630      * 6. legacy: device is not camped on a network that has 5G capability
3631      * 7. any: any of the above scenarios
3632      *
3633      * The configured string contains various timer rules separated by a semicolon.
3634      * Each rule will have three items: primary 5G scenario, secondary 5G scenario, and
3635      * grace period in seconds before changing the icon. When the timer for the primary 5G timer
3636      * expires, the system UI will continue to show the icon for the primary 5G scenario (defined
3637      * in {@link #KEY_5G_ICON_CONFIGURATION_STRING}) for the amount of time specified by the grace
3638      * period. If the primary 5G scenario is reestablished, the timers will reset and the system UI
3639      * will continue to display the icon for the primary 5G scenario without interruption. If the
3640      * secondary 5G scenario is lost, the timer will reset and the icon will reflect the true state.
3641      * Defined states (5G scenarios #1-5) take precedence over 'any' (5G scenario #6), and
3642      * unspecified transitions have a default grace period of 0. The order of rules in the
3643      * configuration determines the priority (the first applicable timer rule will be used).
3644      *
3645      * Here is an example: "connected,not_restricted_rrc_idle,30"
3646      * This configuration defines a secondary timer that extends the primary 'connected' timer.
3647      * When the primary 'connected' timer expires while the UE is in the 'not_restricted_rrc_idle'
3648      * 5G state, system UI will continue to display the 5G icon for 'connected' for 30 seconds.
3649      * If the 5G state returns to 'connected', the timer will be reset without change to the icon,
3650      * and if the 5G state changes to neither 'connected' not 'not_restricted_rrc_idle', the icon
3651      * will change to reflect the true state.
3652      *
3653      * @hide
3654      */
3655     public static final String KEY_5G_ICON_DISPLAY_SECONDARY_GRACE_PERIOD_STRING =
3656             "5g_icon_display_secondary_grace_period_string";
3657 
3658     /**
3659      * Whether device reset all of NR timers when device camped on a network that haven't 5G
3660      * capability and RRC currently in IDLE state.
3661      *
3662      * The default value is false;
3663      *
3664      * @hide
3665      */
3666     public static final String KEY_NR_TIMERS_RESET_IF_NON_ENDC_AND_RRC_IDLE_BOOL =
3667             "nr_timers_reset_if_non_endc_and_rrc_idle_bool";
3668 
3669     /**
3670      * A list of additional NR advanced band would map to
3671      * {@link TelephonyDisplayInfo#OVERRIDE_NETWORK_TYPE_NR_ADVANCED} when the device is on that
3672      * band.
3673      *
3674      * @hide
3675      */
3676     public static final String KEY_ADDITIONAL_NR_ADVANCED_BANDS_INT_ARRAY =
3677             "additional_nr_advanced_bands_int_array";
3678 
3679     /**
3680      * This configuration allows the framework to control the NR advanced capable by protocol
3681      * configuration options(PCO).
3682      *
3683      * If this config is 0, then the nr advanced capable is enabled.
3684      * If this config is not 0 and PCO container with this config's address is 1, then the nr
3685      * advanced capable is enabled.
3686      * If this config is not 0 and PCO container with this config's address is 0, then the nr
3687      * advanced capable is disabled.
3688      *
3689      * @hide
3690      */
3691     public static final String KEY_NR_ADVANCED_CAPABLE_PCO_ID_INT =
3692             "nr_advanced_capable_pco_id_int";
3693 
3694     /**
3695      * Enabled NR advanced (i.e. 5G+) icon while roaming. The default value is {@code true}, meaming
3696      * the same NR advanced logic used for home network will be used for roaming network as well.
3697      * Set this to {@code false} will disable NR advanced icon while the device is roaming,
3698      * regardless meeting NR advanced criteria or not.
3699      *
3700      * @hide
3701      */
3702     public static final String KEY_ENABLE_NR_ADVANCED_WHILE_ROAMING_BOOL =
3703             "enable_nr_advanced_for_roaming_bool";
3704 
3705     /**
3706      * This configuration allows the framework to use user data communication to detect Idle state,
3707      * and this is used on the 5G icon.
3708      *
3709      * There is a new way for for RRC state detection at Android 12. If
3710      * {@link android.telephony.TelephonyManager#isRadioInterfaceCapabilitySupported}(
3711      * {@link TelephonyManager#CAPABILITY_PHYSICAL_CHANNEL_CONFIG_1_6_SUPPORTED}) returns true,
3712      * then framework can use PHYSICAL_CHANNEL_CONFIG for RRC state detection. Based on this
3713      * condition, some carriers want to use the legacy behavior that way is using user data
3714      * communication to detect the Idle state. Therefore, this configuration allows the framework
3715      * to use user data communication to detect Idle state.
3716      *
3717      * There are 3 situations reflects the carrier define Idle state.
3718      * 1. using PHYSICAL_CHANNEL_CONFIG to detect RRC Idle
3719      * 2. using all of data connections to detect RRC Idle.
3720      * 3. using data communication(consider internet data connection only) to detect data Idle.
3721      *
3722      * How to setup for above 3 cases?
3723      * For below part, we call the condition#1 is device support
3724      * {@link android.telephony.TelephonyManager#isRadioInterfaceCapabilitySupported}(
3725      * {@link TelephonyManager#CAPABILITY_PHYSICAL_CHANNEL_CONFIG_1_6_SUPPORTED}).
3726      * The condition#2 is carrier enable the KEY_LTE_ENDC_USING_USER_DATA_FOR_RRC_DETECTION_BOOL.
3727      *
3728      * For case#1, the condition#1 is true and the condition#2 is false.
3729      * For case#2, the condition#1 is false and the condition#2 is false.
3730      * For case#3, the condition#2 is true.
3731      * @hide
3732      */
3733     public static final String KEY_LTE_ENDC_USING_USER_DATA_FOR_RRC_DETECTION_BOOL =
3734             "lte_endc_using_user_data_for_rrc_detection_bool";
3735 
3736     /**
3737      * Controls time in milliseconds until DcTracker reevaluates 5G connection state.
3738      * @hide
3739      */
3740     public static final String KEY_5G_WATCHDOG_TIME_MS_LONG = "5g_watchdog_time_ms_long";
3741 
3742     /**
3743      * Which network types are unmetered. A string array that can contain network type names from
3744      * {@link TelephonyManager#getNetworkTypeName(int)} in addition to the following NR keys:
3745      * NR_NSA - NR NSA is unmetered for sub-6 frequencies
3746      * NR_NSA_MMWAVE - NR NSA is unmetered for mmwave frequencies
3747      * NR_SA - NR SA is unmetered for sub-6 frequencies
3748      * NR_SA_MMWAVE - NR SA is unmetered for mmwave frequencies
3749      *
3750      * Note that this config only applies if an unmetered SubscriptionPlan is set via
3751      * {@link SubscriptionManager#setSubscriptionPlans(int, List)} or an unmetered override is set
3752      * via {@link SubscriptionManager#setSubscriptionOverrideUnmetered(int, boolean, int[], long)}
3753      * or {@link SubscriptionManager#setSubscriptionOverrideUnmetered(int, boolean, long)}.
3754      * If neither SubscriptionPlans nor an override are set, then no network types can be unmetered
3755      * regardless of the value of this config.
3756      * TODO: remove other unmetered keys and replace with this
3757      * @hide
3758      */
3759     public static final String KEY_UNMETERED_NETWORK_TYPES_STRING_ARRAY =
3760             "unmetered_network_types_string_array";
3761 
3762     /**
3763      * Which network types are unmetered when roaming. A string array that can contain network type
3764      * names from {@link TelephonyManager#getNetworkTypeName(int)} in addition to the following
3765      * NR keys:
3766      * NR_NSA - NR NSA is unmetered when roaming for sub-6 frequencies
3767      * NR_NSA_MMWAVE - NR NSA is unmetered when roaming for mmwave frequencies
3768      * NR_SA - NR SA is unmetered when roaming for sub-6 frequencies
3769      * NR_SA_MMWAVE - NR SA is unmetered when roaming for mmwave frequencies
3770      *
3771      * Note that this config only applies if an unmetered SubscriptionPlan is set via
3772      * {@link SubscriptionManager#setSubscriptionPlans(int, List)} or an unmetered override is set
3773      * via {@link SubscriptionManager#setSubscriptionOverrideUnmetered(int, boolean, int[], long)}
3774      * or {@link SubscriptionManager#setSubscriptionOverrideUnmetered(int, boolean, long)}.
3775      * If neither SubscriptionPlans nor an override are set, then no network types can be unmetered
3776      * when roaming regardless of the value of this config.
3777      * TODO: remove KEY_UNMETERED_NR_NSA_WHEN_ROAMING_BOOL and replace with this
3778      * @hide
3779      */
3780     public static final String KEY_ROAMING_UNMETERED_NETWORK_TYPES_STRING_ARRAY =
3781             "roaming_unmetered_network_types_string_array";
3782 
3783     /**
3784      * Whether NR (non-standalone) should be unmetered for all frequencies.
3785      * If either {@link #KEY_UNMETERED_NR_NSA_MMWAVE_BOOL} or
3786      * {@link #KEY_UNMETERED_NR_NSA_SUB6_BOOL} are true, then this value will be ignored.
3787      * @hide
3788      */
3789     public static final String KEY_UNMETERED_NR_NSA_BOOL = "unmetered_nr_nsa_bool";
3790 
3791     /**
3792      * Whether NR (non-standalone) frequencies above 6GHz (millimeter wave) should be unmetered.
3793      * If this is true, then the value for {@link #KEY_UNMETERED_NR_NSA_BOOL} will be ignored.
3794      * @hide
3795      */
3796     public static final String KEY_UNMETERED_NR_NSA_MMWAVE_BOOL = "unmetered_nr_nsa_mmwave_bool";
3797 
3798     /**
3799      * Whether NR (non-standalone) frequencies below 6GHz (sub6) should be unmetered.
3800      * If this is true, then the value for {@link #KEY_UNMETERED_NR_NSA_BOOL} will be ignored.
3801      * @hide
3802      */
3803     public static final String KEY_UNMETERED_NR_NSA_SUB6_BOOL = "unmetered_nr_nsa_sub6_bool";
3804 
3805     /**
3806      * Whether NR (non-standalone) should be unmetered when the device is roaming.
3807      * If false, then the values for {@link #KEY_UNMETERED_NR_NSA_BOOL},
3808      * {@link #KEY_UNMETERED_NR_NSA_MMWAVE_BOOL}, {@link #KEY_UNMETERED_NR_NSA_SUB6_BOOL},
3809      * and unmetered {@link SubscriptionPlan} will be ignored.
3810      * @hide
3811      */
3812     public static final String KEY_UNMETERED_NR_NSA_WHEN_ROAMING_BOOL =
3813             "unmetered_nr_nsa_when_roaming_bool";
3814 
3815     /**
3816      * Whether NR (standalone) should be unmetered for all frequencies.
3817      * If either {@link #KEY_UNMETERED_NR_SA_MMWAVE_BOOL} or
3818      * {@link #KEY_UNMETERED_NR_SA_SUB6_BOOL} are true, then this value will be ignored.
3819      * @hide
3820      */
3821     public static final String KEY_UNMETERED_NR_SA_BOOL = "unmetered_nr_sa_bool";
3822 
3823     /**
3824      * Whether NR (standalone) frequencies above 6GHz (millimeter wave) should be unmetered.
3825      * If this is true, then the value for {@link #KEY_UNMETERED_NR_SA_BOOL} will be ignored.
3826      * @hide
3827      */
3828     public static final String KEY_UNMETERED_NR_SA_MMWAVE_BOOL = "unmetered_nr_sa_mmwave_bool";
3829 
3830     /**
3831      * Whether NR (standalone) frequencies below 6GHz (sub6) should be unmetered.
3832      * If this is true, then the value for {@link #KEY_UNMETERED_NR_SA_BOOL} will be ignored.
3833      * @hide
3834      */
3835     public static final String KEY_UNMETERED_NR_SA_SUB6_BOOL = "unmetered_nr_sa_sub6_bool";
3836 
3837     /**
3838      * Support ASCII 7-BIT encoding for long SMS. This carrier config is used to enable
3839      * this feature.
3840      * @hide
3841      */
3842     public static final String KEY_ASCII_7_BIT_SUPPORT_FOR_LONG_MESSAGE_BOOL =
3843             "ascii_7_bit_support_for_long_message_bool";
3844 
3845     /**
3846      * Controls whether to show wifi calling icon in statusbar when wifi calling is available.
3847      * @hide
3848      */
3849     public static final String KEY_SHOW_WIFI_CALLING_ICON_IN_STATUS_BAR_BOOL =
3850             "show_wifi_calling_icon_in_status_bar_bool";
3851 
3852     /**
3853      * Configuration to indicate that the carrier supports opportunistic data
3854      * auto provisioning. Based on this flag, the device downloads and activates
3855      * corresponding opportunistic profile.
3856      */
3857     public static final String KEY_CARRIER_SUPPORTS_OPP_DATA_AUTO_PROVISIONING_BOOL =
3858             "carrier_supports_opp_data_auto_provisioning_bool";
3859 
3860     /**
3861      * SMDP+ server address for downloading opportunistic eSIM profile.
3862      * FQDN (Fully Qualified Domain Name) of the SM-DP+ (e.g., smdp.gsma.com) restricted to the
3863      * Alphanumeric mode character set defined in table 5 of ISO/IEC 18004 excluding '$'.
3864      */
3865     public static final String KEY_SMDP_SERVER_ADDRESS_STRING =
3866             "smdp_server_address_string";
3867 
3868     /**
3869      * This timer value is used in the eSIM Exponential Backoff download retry algorithm.
3870      * Value should be in seconds.
3871      * <OL>
3872      *     <LI>When the first download failure occurs, retry download after BACKOFF_TIMER_VALUE
3873      * seconds.</LI>
3874      *
3875      * <LI>If download fails again then, retry after either BACKOFF_TIMER_VALUE,
3876      * 2xBACKOFF_TIMER_VALUE, or 3xBACKOFF_TIMER_VALUE seconds.</LI>
3877      *
3878      * <LI>In general after the cth failed attempt, retry after k * BACKOFF_TIMER_VALUE
3879      * seconds, where k is a random integer between 1 and 2^c − 1. Max c value is
3880      * {@link #KEY_ESIM_MAX_DOWNLOAD_RETRY_ATTEMPTS_INT}</LI>
3881      * </OL>
3882      */
3883     public static final String KEY_ESIM_DOWNLOAD_RETRY_BACKOFF_TIMER_SEC_INT =
3884             "esim_download_retry_backoff_timer_sec_int";
3885 
3886     /**
3887      * If eSIM profile download fails then, the number of retry attempts by UE
3888      * will be based on this configuration. If download still fails even after the
3889      * MAX attempts configured by this item then the retry is postponed until next
3890      * device bootup.
3891      */
3892     public static final String KEY_ESIM_MAX_DOWNLOAD_RETRY_ATTEMPTS_INT =
3893             "esim_max_download_retry_attempts_int";
3894 
3895     /**
3896      * List of opportunistic carrier-ids associated with CBRS Primary SIM. When CBRS pSIM is
3897      * inserted, opportunistic eSIM is download and this configuration is used for grouping pSIM
3898      * and opportunistic eSIM. Also when a new CBRS pSIM is inserted, old opportunistic eSIMs are
3899      * deleted using the carrier-ids in this configuration.
3900      *
3901      * @hide
3902      */
3903     public static final String KEY_OPPORTUNISTIC_CARRIER_IDS_INT_ARRAY =
3904             "opportunistic_carrier_ids_int_array";
3905 
3906     /**
3907      * Boolean configuration to control auto provisioning eSIM download in
3908      * OpportunisticNetworkService using only WiFi or both WiFi/Data.
3909      * True will download esim only via WiFi.
3910      * False will use both WiFi and Data connection.
3911      *
3912      * @hide
3913      */
3914     public static final String KEY_OPPORTUNISTIC_ESIM_DOWNLOAD_VIA_WIFI_ONLY_BOOL =
3915             "opportunistic_esim_download_via_wifi_only_bool";
3916 
3917 /**
3918      * Controls RSRP threshold, in dBm, at which OpportunisticNetworkService will decide whether
3919      * the opportunistic network is good enough for internet data.
3920      *
3921      * <p>The value of {@link CellSignalStrengthLte#getRsrp()} will be compared with this
3922      * threshold.
3923      */
3924     public static final String KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_RSRP_INT =
3925             "opportunistic_network_entry_threshold_rsrp_int";
3926 
3927     /**
3928      * Controls RSSNR threshold, in dB, at which OpportunisticNetworkService will
3929      * decide whether the opportunistic network is good enough for internet data.
3930      *
3931      * <p>The value of {@link CellSignalStrengthLte#getRssnr()} will be compared with this
3932      * threshold.
3933      */
3934     public static final String KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_RSSNR_INT =
3935             "opportunistic_network_entry_threshold_rssnr_int";
3936 
3937     /**
3938      * Controls RSRP threshold, in dBm, below which OpportunisticNetworkService will decide whether
3939      * the opportunistic network available is not good enough for internet data.
3940      *
3941      * <p>The value of {@link CellSignalStrengthLte#getRsrp()} will be compared with this
3942      * threshold.
3943      */
3944     public static final String KEY_OPPORTUNISTIC_NETWORK_EXIT_THRESHOLD_RSRP_INT =
3945             "opportunistic_network_exit_threshold_rsrp_int";
3946 
3947     /**
3948      * Controls RSSNR threshold, in dB, below which OpportunisticNetworkService will
3949      * decide whether the opportunistic network available is not good enough for internet data.
3950      *
3951      * <p>The value of {@link CellSignalStrengthLte#getRssnr()} will be compared with this
3952      * threshold.
3953      */
3954     public static final String KEY_OPPORTUNISTIC_NETWORK_EXIT_THRESHOLD_RSSNR_INT =
3955             "opportunistic_network_exit_threshold_rssnr_int";
3956 
3957     /**
3958      * Controls bandwidth threshold in Kbps at which OpportunisticNetworkService will decide whether
3959      * the opportunistic network is good enough for internet data.
3960      */
3961     public static final String KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_BANDWIDTH_INT =
3962             "opportunistic_network_entry_threshold_bandwidth_int";
3963 
3964     /**
3965      * Controls hysteresis time in milli seconds for which OpportunisticNetworkService
3966      * will wait before attaching to a network.
3967      */
3968     public static final String KEY_OPPORTUNISTIC_NETWORK_ENTRY_OR_EXIT_HYSTERESIS_TIME_LONG =
3969             "opportunistic_network_entry_or_exit_hysteresis_time_long";
3970 
3971     /**
3972      * Controls hysteresis time in milli seconds for which OpportunisticNetworkService
3973      * will wait before switching data to an opportunistic network.
3974      */
3975     public static final String KEY_OPPORTUNISTIC_NETWORK_DATA_SWITCH_HYSTERESIS_TIME_LONG =
3976             "opportunistic_network_data_switch_hysteresis_time_long";
3977 
3978     /**
3979      * Controls hysteresis time in milli seconds for which OpportunisticNetworkService
3980      * will wait before switching data from opportunistic network to primary network.
3981      */
3982     public static final String KEY_OPPORTUNISTIC_NETWORK_DATA_SWITCH_EXIT_HYSTERESIS_TIME_LONG =
3983             "opportunistic_network_data_switch_exit_hysteresis_time_long";
3984 
3985     /**
3986      * Controls whether to do ping test before switching data to opportunistic network.
3987      * This carrier config is used to disable this feature.
3988      */
3989     public static final String KEY_PING_TEST_BEFORE_DATA_SWITCH_BOOL =
3990             "ping_test_before_data_switch_bool";
3991 
3992     /**
3993      * Controls whether to switch data to primary from opportunistic subscription
3994      * if primary is out of service. This control only affects system or 1st party app
3995      * initiated data switch, but will not override data switch initiated by privileged carrier apps
3996      * This carrier config is used to disable this feature.
3997      */
3998     public static final String KEY_SWITCH_DATA_TO_PRIMARY_IF_PRIMARY_IS_OOS_BOOL =
3999             "switch_data_to_primary_if_primary_is_oos_bool";
4000 
4001     /**
4002      * Controls the ping pong determination of opportunistic network.
4003      * If opportunistic network is determined as out of service or below
4004      * #KEY_OPPORTUNISTIC_NETWORK_EXIT_THRESHOLD_RSRP_INT or
4005      * #KEY_OPPORTUNISTIC_NETWORK_EXIT_THRESHOLD_RSSNR_INT within
4006      * #KEY_OPPORTUNISTIC_NETWORK_PING_PONG_TIME_LONG of switching to opportunistic network,
4007      * it will be determined as ping pong situation by system app or 1st party app.
4008      */
4009     public static final String KEY_OPPORTUNISTIC_NETWORK_PING_PONG_TIME_LONG =
4010             "opportunistic_network_ping_pong_time_long";
4011     /**
4012      * Controls back off time in milli seconds for switching back to
4013      * opportunistic subscription. This time will be added to
4014      * {@link CarrierConfigManager#KEY_OPPORTUNISTIC_NETWORK_DATA_SWITCH_HYSTERESIS_TIME_LONG} to
4015      * determine hysteresis time if there is ping pong situation
4016      * (determined by system app or 1st party app) between primary and opportunistic
4017      * subscription. Ping ping situation is defined in
4018      * #KEY_OPPORTUNISTIC_NETWORK_PING_PONG_TIME_LONG.
4019      * If ping pong situation continuous #KEY_OPPORTUNISTIC_NETWORK_BACKOFF_TIME_LONG
4020      * will be added to previously determined hysteresis time.
4021      */
4022     public static final String KEY_OPPORTUNISTIC_NETWORK_BACKOFF_TIME_LONG =
4023             "opportunistic_network_backoff_time_long";
4024 
4025     /**
4026      * Controls the max back off time in milli seconds for switching back to
4027      * opportunistic subscription.
4028      * This time will be the max hysteresis that can be determined irrespective of there is
4029      * continuous ping pong situation or not as described in
4030      * #KEY_OPPORTUNISTIC_NETWORK_PING_PONG_TIME_LONG and
4031      * #KEY_OPPORTUNISTIC_NETWORK_BACKOFF_TIME_LONG.
4032      */
4033     public static final String KEY_OPPORTUNISTIC_NETWORK_MAX_BACKOFF_TIME_LONG =
4034             "opportunistic_network_max_backoff_time_long";
4035 
4036     /** @hide */
4037     public static class OpportunisticNetwork {
4038         /**
4039          * Prefix of all {@code OpportunisticNetwork.KEY_*} constants.
4040          *
4041          * @hide
4042          */
4043         public static final String PREFIX = "opportunistic.";
4044 
4045         /**
4046          * Controls SS-RSRP threshold in dBm at which 5G opportunistic network will be considered
4047          * good enough for internet data. Note other factors may be considered for the final
4048          * decision.
4049          *
4050          * <p>The value of {@link CellSignalStrengthNr#getSsRsrp()} will be compared with this
4051          * threshold.
4052          *
4053          * @hide
4054          */
4055         public static final String KEY_ENTRY_THRESHOLD_SS_RSRP_INT =
4056                 PREFIX + "entry_threshold_ss_rsrp_int";
4057 
4058         /**
4059          * Similar to {@link #KEY_ENTRY_THRESHOLD_SS_RSRP_INT} but supports different
4060          * thresholds for different 5G bands. For bands not specified here, the threshold
4061          * will be {@link #KEY_ENTRY_THRESHOLD_SS_RSRP_INT}.
4062          *
4063          * <p>For each key-value in the bundle: the key is the band number in string, which
4064          * shall be a decimal integer as defined in {@code NgranBands.BAND_*} constants;
4065          * the value is the threshold in int.
4066          *
4067          * @hide
4068          */
4069         public static final String KEY_ENTRY_THRESHOLD_SS_RSRP_INT_BUNDLE =
4070                 PREFIX + "entry_threshold_ss_rsrp_int_bundle";
4071 
4072         /**
4073          * Controls SS-RSRQ threshold in dB at which 5G opportunistic network will be considered
4074          * good enough for internet data. Note other factors may be considered for the final
4075          * decision.
4076          *
4077          * <p>The value of {@link CellSignalStrengthNr#getSsRsrq()} will be compared with this
4078          * threshold.
4079          *
4080          * @hide
4081          */
4082         public static final String KEY_ENTRY_THRESHOLD_SS_RSRQ_DOUBLE =
4083                 PREFIX + "entry_threshold_ss_rsrq_double";
4084 
4085         /**
4086          * Similar to {@link #KEY_ENTRY_THRESHOLD_SS_RSRQ_DOUBLE} but supports different
4087          * thresholds for different 5G bands. For bands not specified here, the threshold
4088          * will be {@link #KEY_ENTRY_THRESHOLD_SS_RSRQ_DOUBLE}.
4089          *
4090          * <p>For each key-value in the bundle: the key is the band number in string, which
4091          * shall be a decimal integer as defined in {@code NgranBands.BAND_*} constants;
4092          * the value is the threshold in double.
4093          *
4094          * @hide
4095          */
4096         public static final String KEY_ENTRY_THRESHOLD_SS_RSRQ_DOUBLE_BUNDLE =
4097                 PREFIX + "entry_threshold_ss_rsrq_double_bundle";
4098 
4099         /**
4100          * Controls SS-RSRP threshold in dBm below which 5G opportunistic network available will not
4101          * be considered good enough for internet data. Note other factors may be considered
4102          * for the final decision.
4103          *
4104          * <p>The value of {@link CellSignalStrengthNr#getSsRsrp()} will be compared with this
4105          * threshold.
4106          *
4107          * @hide
4108          */
4109         public static final String KEY_EXIT_THRESHOLD_SS_RSRP_INT =
4110                 PREFIX + "exit_threshold_ss_rsrp_int";
4111 
4112         /**
4113          * Similar to {@link #KEY_EXIT_THRESHOLD_SS_RSRP_INT} but supports different
4114          * thresholds for different 5G bands. For bands not specified here, the threshold
4115          * will be {@link #KEY_EXIT_THRESHOLD_SS_RSRP_INT}.
4116          *
4117          * <p>The syntax of its value is similar to
4118          * {@link #KEY_ENTRY_THRESHOLD_SS_RSRP_INT_BUNDLE}.
4119          *
4120          * @hide
4121          */
4122         public static final String KEY_EXIT_THRESHOLD_SS_RSRP_INT_BUNDLE =
4123                 PREFIX + "exit_threshold_ss_rsrp_int_bundle";
4124 
4125         /**
4126          * Controls SS-RSRQ threshold in dB below which 5G opportunistic network available will not
4127          * be considered good enough for internet data. Note other factors may be considered
4128          * for the final decision.
4129          *
4130          * <p>The value of {@link CellSignalStrengthNr#getSsRsrq()} will be compared with this
4131          * threshold.
4132          *
4133          * @hide
4134          */
4135         public static final String KEY_EXIT_THRESHOLD_SS_RSRQ_DOUBLE =
4136                 PREFIX + "exit_threshold_ss_rsrq_double";
4137 
4138         /**
4139          * Similar to {@link #KEY_EXIT_THRESHOLD_SS_RSRQ_DOUBLE} but supports different
4140          * thresholds for different 5G bands. For bands not specified here, the threshold
4141          * will be {@link #KEY_EXIT_THRESHOLD_SS_RSRQ_DOUBLE}.
4142          *
4143          * <p>The syntax of its value is similar to
4144          * {@link #KEY_ENTRY_THRESHOLD_SS_RSRQ_DOUBLE_BUNDLE}.
4145          *
4146          * @hide
4147          */
4148         public static final String KEY_EXIT_THRESHOLD_SS_RSRQ_DOUBLE_BUNDLE =
4149                 PREFIX + "exit_threshold_ss_rsrq_double_bundle";
4150 
4151         /**
4152          * Controls hysteresis time in milliseconds for which will be waited before switching
4153          * data to a 5G opportunistic network.
4154          *
4155          * @hide
4156          */
4157         public static final String KEY_5G_DATA_SWITCH_HYSTERESIS_TIME_LONG =
4158                 PREFIX + "5g_data_switch_hysteresis_time_long";
4159 
4160         /**
4161          * Similar to {@link #KEY_5G_DATA_SWITCH_HYSTERESIS_TIME_LONG} but supports
4162          * different values for different 5G bands. For bands not specified here, the threshold
4163          * will be {@link #KEY_5G_DATA_SWITCH_HYSTERESIS_TIME_LONG}.
4164          *
4165          * <p>For each key-value in the bundle: the key is the band number in string, which
4166          * shall be a decimal integer as defined in {@code NgranBands.BAND_*} constants;
4167          * the value is the time in long.
4168          *
4169          * @hide
4170          */
4171         public static final String KEY_5G_DATA_SWITCH_HYSTERESIS_TIME_LONG_BUNDLE =
4172                 PREFIX + "5g_data_switch_hysteresis_time_long_bundle";
4173 
4174         /**
4175          * Controls hysteresis time in milliseconds for which will be waited before switching from
4176          * 5G opportunistic network to primary network.
4177          *
4178          * @hide
4179          */
4180         public static final String KEY_5G_DATA_SWITCH_EXIT_HYSTERESIS_TIME_LONG =
4181                 PREFIX + "5g_data_switch_exit_hysteresis_time_long";
4182 
4183         /**
4184          * Similar to {@link #KEY_5G_DATA_SWITCH_EXIT_HYSTERESIS_TIME_LONG} but supports
4185          * different values for different 5G bands. For bands not specified here, the threshold
4186          * will be {@link #KEY_5G_DATA_SWITCH_EXIT_HYSTERESIS_TIME_LONG}.
4187          *
4188          * <p>The syntax is similar to
4189          * {@link KEY_5G_DATA_SWITCH_HYSTERESIS_TIME_LONG_BUNDLE}.
4190          *
4191          * @hide
4192          */
4193         public static final String KEY_5G_DATA_SWITCH_EXIT_HYSTERESIS_TIME_LONG_BUNDLE =
4194                 PREFIX + "5g_data_switch_exit_hysteresis_time_long_bundle";
4195 
4196         /**
4197          * Controls back off time in milliseconds for switching back to
4198          * 5G opportunistic subscription. This time will be added to
4199          * {@link #KEY_5G_DATA_SWITCH_HYSTERESIS_TIME_LONG} to
4200          * determine hysteresis time if there is ping pong situation
4201          * (determined by system app or 1st party app) between primary and 5G opportunistic
4202          * subscription. Ping ping situation is defined in
4203          * {@link #KEY_5G_PING_PONG_TIME_LONG}.
4204          * If ping pong situation continuous {@link #KEY_5G_NETWORK_BACKOFF_TIME_LONG}
4205          * will be added to previously determined hysteresis time.
4206          *
4207          * @hide
4208          */
4209         public static final String KEY_5G_BACKOFF_TIME_LONG =
4210                 PREFIX + "5g_backoff_time_long";
4211 
4212         /**
4213          * Controls the max back off time in milliseconds for switching back to
4214          * 5G opportunistic subscription.
4215          * This time will be the max hysteresis that can be determined irrespective of there is
4216          * continuous ping pong situation or not as described in
4217          * {@link #KEY_5G_PING_PONG_TIME_LONG} and
4218          * {@link #KEY_5G_BACKOFF_TIME_LONG}.
4219          *
4220          * @hide
4221          */
4222         public static final String KEY_5G_MAX_BACKOFF_TIME_LONG =
4223                 PREFIX + "5g_max_backoff_time_long";
4224 
4225         /**
4226          * Controls the ping pong determination of 5G opportunistic network.
4227          * If opportunistic network is determined as out of service or below
4228          * {@link #KEY_EXIT_THRESHOLD_SS_RSRP_INT} or
4229          * {@link #KEY_EXIT_THRESHOLD_SS_RSRQ_DOUBLE} within
4230          * {@link #KEY_5G_PING_PONG_TIME_LONG} of switching to opportunistic network,
4231          * it will be determined as ping pong situation by system app or 1st party app.
4232          *
4233          * @hide
4234          */
4235         public static final String KEY_5G_PING_PONG_TIME_LONG =
4236                 PREFIX + "5g_ping_pong_time_long";
4237 
getDefaults()4238         private static PersistableBundle getDefaults() {
4239             PersistableBundle defaults = new PersistableBundle();
4240             // Default value is -111 dBm for all bands.
4241             sDefaults.putInt(KEY_ENTRY_THRESHOLD_SS_RSRP_INT, -111);
4242             sDefaults.putPersistableBundle(KEY_ENTRY_THRESHOLD_SS_RSRP_INT_BUNDLE,
4243                                            PersistableBundle.EMPTY);
4244             // Default value is -18.5 dB for all bands.
4245             sDefaults.putDouble(KEY_ENTRY_THRESHOLD_SS_RSRQ_DOUBLE, -18.5);
4246             sDefaults.putPersistableBundle(
4247                     KEY_ENTRY_THRESHOLD_SS_RSRQ_DOUBLE_BUNDLE,
4248                     PersistableBundle.EMPTY);
4249             // Default value is -120 dBm for all bands.
4250             sDefaults.putInt(KEY_EXIT_THRESHOLD_SS_RSRP_INT, -120);
4251             sDefaults.putPersistableBundle(KEY_EXIT_THRESHOLD_SS_RSRP_INT_BUNDLE,
4252                                            PersistableBundle.EMPTY);
4253             // Default value is -18.5 dB for all bands.
4254             sDefaults.putDouble(KEY_EXIT_THRESHOLD_SS_RSRQ_DOUBLE, -18.5);
4255             sDefaults.putPersistableBundle(
4256                     KEY_EXIT_THRESHOLD_SS_RSRQ_DOUBLE_BUNDLE,
4257                     PersistableBundle.EMPTY);
4258             // Default value is 2 seconds for all bands.
4259             defaults.putLong(KEY_5G_DATA_SWITCH_HYSTERESIS_TIME_LONG, 2000);
4260             defaults.putPersistableBundle(
4261                     KEY_5G_DATA_SWITCH_HYSTERESIS_TIME_LONG_BUNDLE,
4262                     PersistableBundle.EMPTY);
4263             // Default value is 2 seconds for all bands.
4264             defaults.putLong(KEY_5G_DATA_SWITCH_EXIT_HYSTERESIS_TIME_LONG, 2000);
4265             defaults.putPersistableBundle(
4266                     KEY_5G_DATA_SWITCH_EXIT_HYSTERESIS_TIME_LONG_BUNDLE,
4267                     PersistableBundle.EMPTY);
4268             // Default value is 10 seconds.
4269             sDefaults.putLong(KEY_5G_BACKOFF_TIME_LONG, 10000);
4270             // Default value is 60 seconds.
4271             sDefaults.putLong(KEY_5G_MAX_BACKOFF_TIME_LONG, 60000);
4272             // Default value is 60 seconds.
4273             sDefaults.putLong(KEY_5G_PING_PONG_TIME_LONG, 60000);
4274             return defaults;
4275         }
4276     }
4277 
4278     /**
4279      * Controls whether 4G opportunistic networks should be scanned for possible data switch.
4280      *
4281      * @hide
4282      */
4283     public static final String KEY_ENABLE_4G_OPPORTUNISTIC_NETWORK_SCAN_BOOL =
4284             "enabled_4g_opportunistic_network_scan_bool";
4285 
4286   /**
4287    * Only relevant when the device supports opportunistic networks but does not support
4288    * simultaneuous 5G+5G. Controls how long, in milliseconds, to wait before opportunistic network
4289    * goes out of service before switching the 5G capability back to primary stack. The idea of
4290    * waiting a few seconds is to minimize the calling of the expensive capability switching
4291    * operation in the case where CBRS goes back into service shortly after going out of it.
4292    *
4293    * @hide
4294    */
4295   public static final String KEY_TIME_TO_SWITCH_BACK_TO_PRIMARY_IF_OPPORTUNISTIC_OOS_LONG =
4296             "time_to_switch_back_to_primary_if_opportunistic_oos_long";
4297 
4298   /**
4299    * Only relevant when the device supports opportunistic networks but does not support
4300    * simultaneuous 5G+5G. Controls how long, in milliseconds, after 5G capability has switched back
4301    * to primary stack due to opportunistic network being OOS. The idea is to minimizing the
4302    * 'ping-ponging' effect where device is constantly witching capability back and forth between
4303    * primary and opportunistic stack.
4304    *
4305    * @hide
4306    */
4307   public static final String KEY_OPPORTUNISTIC_TIME_TO_SCAN_AFTER_CAPABILITY_SWITCH_TO_PRIMARY_LONG
4308           = "opportunistic_time_to_scan_after_capability_switch_to_primary_long";
4309 
4310     /**
4311      * Indicates zero or more emergency number prefix(es), because some carrier requires
4312      * if users dial an emergency number address with a specific prefix, the combination of the
4313      * prefix and the address is also a valid emergency number to dial. For example, an emergency
4314      * number prefix is 318, and the emergency number is 911. Both 318911 and 911 can be dialed by
4315      * users for emergency call. An empty array of string indicates that current carrier does not
4316      * have this requirement.
4317      */
4318     public static final String KEY_EMERGENCY_NUMBER_PREFIX_STRING_ARRAY =
4319             "emergency_number_prefix_string_array";
4320 
4321     /**
4322      * Indicates whether carrier treats "*67" or "*82" as a temporary mode CLIR.
4323      * @hide
4324      */
4325     public static final String KEY_CARRIER_SUPPORTS_CALLER_ID_VERTICAL_SERVICE_CODES_BOOL =
4326             "carrier_supports_caller_id_vertical_service_codes_bool";
4327 
4328     /**
4329      * Smart forwarding config. Smart forwarding is a feature to configure call forwarding to a
4330      * different SIM in the device when one SIM is not reachable. The config here specifies a smart
4331      * forwarding component that will launch UI for changing the configuration. An empty string
4332      * indicates that no smart forwarding component is specified.
4333      *
4334      * Currently, only one non-empty configuration of smart forwarding component within system will
4335      * be used when multiple SIMs are inserted.
4336      *
4337      * Empty string by default.
4338      *
4339      * @hide
4340      */
4341     public static final String KEY_SMART_FORWARDING_CONFIG_COMPONENT_NAME_STRING =
4342             "smart_forwarding_config_component_name_string";
4343 
4344     /**
4345      * Indicates when a carrier has a primary subscription and an opportunistic subscription active,
4346      * and when Internet data is switched to opportunistic network, whether to still show
4347      * signal bar of primary network. By default it will be false, meaning whenever data
4348      * is going over opportunistic network, signal bar will reflect signal strength and rat
4349      * icon of that network.
4350      */
4351     public static final String KEY_ALWAYS_SHOW_PRIMARY_SIGNAL_BAR_IN_OPPORTUNISTIC_NETWORK_BOOLEAN =
4352             "always_show_primary_signal_bar_in_opportunistic_network_boolean";
4353 
4354     /**
4355      * Upon data switching between subscriptions within a carrier group, if switch depends on
4356      * validation result, this value defines customized value of how long we wait for validation
4357      * success before we fail and revoke the switch.
4358      * Time out is in milliseconds.
4359      */
4360     public static final String KEY_DATA_SWITCH_VALIDATION_TIMEOUT_LONG =
4361             "data_switch_validation_timeout_long";
4362 
4363     /**
4364      * Specifies whether the system should prefix the EAP method to the anonymous identity.
4365      * The following prefix will be added if this key is set to TRUE:
4366      *   EAP-AKA: "0"
4367      *   EAP-SIM: "1"
4368      *   EAP-AKA_PRIME: "6"
4369      */
4370     public static final String ENABLE_EAP_METHOD_PREFIX_BOOL = "enable_eap_method_prefix_bool";
4371 
4372     /**
4373      * Indicates that GBA_ME should be used for GBA authentication, as defined in 3GPP TS 33.220.
4374      * @hide
4375      */
4376     @SystemApi
4377     public static final int GBA_ME = 1;
4378 
4379     /**
4380      * Indicates that GBA_U should be used for GBA authentication, as defined in 3GPP TS 33.220.
4381      * @hide
4382      */
4383     @SystemApi
4384     public static final int GBA_U = 2;
4385 
4386     /**
4387      * Indicates that GBA_Digest should be used for GBA authentication, as defined
4388      * in 3GPP TS 33.220.
4389      * @hide
4390      */
4391     @SystemApi
4392     public static final int GBA_DIGEST = 3;
4393 
4394     /**
4395      * An integer representing the GBA mode to use for requesting credentials
4396      * via {@link TelephonyManager#bootstrapAuthenticationRequest}.
4397      *
4398      * One of {@link #GBA_ME}, {@link #GBA_U}, or {@link #GBA_DIGEST}.
4399      * @hide
4400      */
4401     @SystemApi
4402     public static final String KEY_GBA_MODE_INT = "gba_mode_int";
4403 
4404     /**
4405      * An integer representing the organization code to be used when building the
4406      * {@link UaSecurityProtocolIdentifier} used when requesting GBA authentication.
4407      *
4408      * See the {@code ORG_} constants in {@link UaSecurityProtocolIdentifier}.
4409      * @hide
4410      */
4411     @SystemApi
4412     public static final String KEY_GBA_UA_SECURITY_ORGANIZATION_INT =
4413             "gba_ua_security_organization_int";
4414 
4415     /**
4416      * An integer representing the security protocol to be used when building the
4417      * {@link UaSecurityProtocolIdentifier} used when requesting GBA authentication.
4418      *
4419      * See the {@code UA_SECURITY_PROTOCOL_} constants in {@link UaSecurityProtocolIdentifier}.
4420      * @hide
4421      */
4422     @SystemApi
4423     public static final String KEY_GBA_UA_SECURITY_PROTOCOL_INT =
4424             "gba_ua_security_protocol_int";
4425 
4426     /**
4427      * An integer representing the cipher suite to be used when building the
4428      * {@link UaSecurityProtocolIdentifier} used when requesting GBA authentication.
4429      *
4430      * See the {@code TLS_} constants in {@link android.telephony.gba.TlsParams}.
4431      * @hide
4432      */
4433     @SystemApi
4434     public static final String KEY_GBA_UA_TLS_CIPHER_SUITE_INT =
4435             "gba_ua_tls_cipher_suite_int";
4436 
4437     /**
4438      * The data stall recovery timers array in milliseconds, each element is the delay before
4439      * performining next recovery action.
4440      *
4441      * The default value of timers array are: [180000ms, 180000ms, 180000ms, 180000ms] (3 minutes)
4442      * Array[0]: It's the timer between RECOVERY_ACTION GET_DATA_CALL_LIST and CLEANUP, if data
4443      * stall symptom still occurred, it will perform next recovery action after 180000ms.
4444      * Array[1]: It's the timer between RECOVERY_ACTION CLEANUP and RE-REGISTER, if data stall
4445      * symptom still occurred, it will perform next recovery action after 180000ms.
4446      * Array[2]: It's the timer between RECOVERY_ACTION RE-REGISTER and RADIO_RESTART, if data stall
4447      * symptom still occurred, it will perform next recovery action after 180000ms.
4448      * Array[3]: It's the timer between RECOVERY_ACTION RADIO_RESTART and RESET_MODEM, if data stall
4449      * symptom still occurred, it will perform next recovery action after 180000ms.
4450      *
4451      * See the {@code RECOVERY_ACTION_*} constants in
4452      * {@link com.android.internal.telephony.data.DataStallRecoveryManager}
4453      * @hide
4454      */
4455     public static final String KEY_DATA_STALL_RECOVERY_TIMERS_LONG_ARRAY =
4456             "data_stall_recovery_timers_long_array";
4457 
4458     /**
4459      * The data stall recovery action boolean array, we use this array to determine if the
4460      * data stall recovery action needs to be skipped.
4461      *
4462      * For example, if the carrier use the same APN for both of IA and default type,
4463      * the data call will not disconnect in modem side (so the RECOVERY_ACTION_CLEANUP
4464      * did not effect). In this case, we can config the boolean variable of action
4465      * RECOVERY_ACTION_CLEANUP to true, then it can be ignored to speed up the recovery
4466      * action procedure.
4467      *
4468      * The default value of boolean array are: [false, false, true, false, false]
4469      * Array[0]: When performing the recovery action, we can use this boolean value to determine
4470      * if we need to perform RECOVERY_ACTION_GET_DATA_CALL_LIST.
4471      * Array[1]: If data stall symptom still occurred, we can use this boolean value to determine
4472      * if we need to perform RECOVERY_ACTION_CLEANUP. For example, if the carrier use the same APN
4473      * for both of IA and default type, the data call will not disconnect in modem side
4474      * (so the RECOVERY_ACTION_CLEANUP did not effect). In this case, we can config the boolean
4475      * variable of action RECOVERY_ACTION_CLEANUP to true, then it can be ignored to speed up the
4476      * recovery action procedure.
4477      * Array[2]: If data stall symptom still occurred, we can use this boolean value to determine
4478      * if we need to perform RE-REGISTER.
4479      * Array[3]: If data stall symptom still occurred, we can use this boolean value to determine
4480      * if we need to perform RECOVERY_ACTION_RADIO_RESTART.
4481      * Array[4]: If data stall symptom still occurred, we can use this boolean value to determine
4482      * if we need to perform RECOVERY_ACTION_MODEM_RESET.
4483      *
4484      * See the {@code RECOVERY_ACTION_*} constants in
4485      * {@link com.android.internal.telephony.data.DataStallRecoveryManager}
4486      * @hide
4487      */
4488     public static final String KEY_DATA_STALL_RECOVERY_SHOULD_SKIP_BOOL_ARRAY =
4489             "data_stall_recovery_should_skip_bool_array";
4490 
4491     /**
4492      * Configs used by ImsServiceEntitlement.
4493      */
4494     public static final class ImsServiceEntitlement {
ImsServiceEntitlement()4495         private ImsServiceEntitlement() {}
4496 
4497         /** Prefix of all ImsServiceEntitlement.KEY_* constants. */
4498         public static final String KEY_PREFIX = "imsserviceentitlement.";
4499 
4500         /**
4501          * The address of the entitlement configuration server.
4502          *
4503          * Reference: GSMA TS.43-v5, section 2.1 Default Entitlement Configuration Server.
4504          */
4505         public static final String KEY_ENTITLEMENT_SERVER_URL_STRING =
4506                 KEY_PREFIX + "entitlement_server_url_string";
4507 
4508         /**
4509          * For some carriers, end-users may be presented with a web portal of the carrier before
4510          * being allowed to use the VoWiFi service.
4511          * To support this feature, the app hosts a {@link android.webkit.WebView} in the foreground
4512          * VoWiFi entitlement configuration flow to show the web portal.
4513          *
4514          * {@code true} - show the VoWiFi portal in a webview.
4515          *
4516          * Note: this is effective only if the {@link #KEY_WFC_EMERGENCY_ADDRESS_CARRIER_APP_STRING}
4517          * is set to this app.
4518          *
4519          * Reference: GSMA TS.43-v5, section 3, VoWiFi entitlement configuration.
4520          */
4521         public static final String KEY_SHOW_VOWIFI_WEBVIEW_BOOL =
4522                 KEY_PREFIX + "show_vowifi_webview_bool";
4523 
4524         /**
4525          * For some carriers, the network is not provisioned by default to support
4526          * IMS (VoLTE/VoWiFi/SMSoIP) service for all end users. Some type of network-side
4527          * provisioning must then take place before offering the IMS service to the end-user.
4528          *
4529          * {@code true} - need this ImsServiceEntitlement app to do IMS (VoLTE/VoWiFi/SMSoIP)
4530          * provisioning in the background before offering the IMS service to the end-user.
4531          *
4532          * Note: this is effective only if the carrier needs IMS provisioning, i.e.
4533          * {@link #KEY_CARRIER_VOLTE_PROVISIONING_REQUIRED_BOOL} is set to true.
4534          *
4535          * Reference: GSMA TS.43-v5, section 3 - 5, VoWiFi/VoLTE/SMSoIP entitlement configuration.
4536          */
4537         public static final String KEY_IMS_PROVISIONING_BOOL = KEY_PREFIX + "ims_provisioning_bool";
4538 
4539         /**
4540          * The FCM sender ID for the carrier.
4541          * Used to trigger a carrier network requested entitlement configuration
4542          * via Firebase Cloud Messaging (FCM). Do not set if the carrier doesn't use FCM for network
4543          * requested entitlement configuration.
4544          *
4545          * Reference: GSMA TS.43-v5, section 2.4, Network Requested Entitlement Configuration.
4546          *
4547          * @see <a href="https://firebase.google.com/docs/cloud-messaging/concept-options#senderid">
4548          *     About FCM messages - Credentials</a>
4549          */
4550         public static final String KEY_FCM_SENDER_ID_STRING = KEY_PREFIX + "fcm_sender_id_string";
4551 
getDefaults()4552         private static PersistableBundle getDefaults() {
4553             PersistableBundle defaults = new PersistableBundle();
4554             defaults.putString(KEY_ENTITLEMENT_SERVER_URL_STRING, "");
4555             defaults.putString(KEY_FCM_SENDER_ID_STRING, "");
4556             defaults.putBoolean(KEY_SHOW_VOWIFI_WEBVIEW_BOOL, false);
4557             defaults.putBoolean(KEY_IMS_PROVISIONING_BOOL, false);
4558             return defaults;
4559         }
4560     }
4561 
4562     /**
4563      * GPS configs. See the GNSS HAL documentation for more details.
4564      */
4565     public static final class Gps {
Gps()4566         private Gps() {}
4567 
4568         /** Prefix of all Gps.KEY_* constants. */
4569         public static final String KEY_PREFIX = "gps.";
4570 
4571         /**
4572          * Location information during (and after) an emergency call is only provided over control
4573          * plane signaling from the network.
4574          * @hide
4575          */
4576         public static final int SUPL_EMERGENCY_MODE_TYPE_CP_ONLY = 0;
4577 
4578         /**
4579          * Location information during (and after) an emergency call is provided over the data
4580          * plane and serviced by the framework GNSS service, but if it fails, the carrier also
4581          * supports control plane backup signaling.
4582          * @hide
4583          */
4584         public static final int SUPL_EMERGENCY_MODE_TYPE_CP_FALLBACK = 1;
4585 
4586         /**
4587          * Location information during (and after) an emergency call is provided over the data plane
4588          * and serviced by the framework GNSS service only. There is no backup signalling over the
4589          * control plane if it fails.
4590          * @hide
4591          */
4592         public static final int SUPL_EMERGENCY_MODE_TYPE_DP_ONLY = 2;
4593 
4594 
4595         /**
4596          * Determine whether current lpp_mode used for E-911 needs to be kept persistently.
4597          * {@code false} - not keeping the lpp_mode means using default configuration of gps.conf
4598          *                 when sim is not presented.
4599          * {@code true}  - current lpp_profile of carrier will be kepted persistently
4600          *                 even after sim is removed. This is default.
4601          */
4602         public static final String KEY_PERSIST_LPP_MODE_BOOL = KEY_PREFIX + "persist_lpp_mode_bool";
4603 
4604         /**
4605          * SUPL server host for SET Initiated & non-ES Network-Initiated SUPL requests.
4606          * Default to supl.google.com
4607          * @hide
4608          */
4609         public static final String KEY_SUPL_HOST_STRING = KEY_PREFIX + "supl_host";
4610 
4611         /**
4612          * SUPL server port. Default to 7275.
4613          * @hide
4614          */
4615         public static final String KEY_SUPL_PORT_STRING = KEY_PREFIX + "supl_port";
4616 
4617         /**
4618          * The SUPL version requested by Carrier. This is a bit mask
4619          * with bits 0:7 representing a service indicator field, bits 8:15
4620          * representing the minor version and bits 16:23 representing the
4621          * major version. Default to 0x20000.
4622          * @hide
4623          */
4624         public static final String KEY_SUPL_VER_STRING = KEY_PREFIX + "supl_ver";
4625 
4626         /**
4627          * SUPL_MODE configuration bit mask
4628          * 1 - Mobile Station Based. This is default.
4629          * 2 - Mobile Station Assisted.
4630          * @hide
4631          */
4632         public static final String KEY_SUPL_MODE_STRING = KEY_PREFIX + "supl_mode";
4633 
4634         /**
4635          * Whether to limit responses to SUPL ES mode requests only during user emergency sessions
4636          * (e.g. E911), and SUPL non-ES requests to only outside of non user emergency sessions.
4637          * 0 - no.
4638          * 1 - yes. This is default.
4639          * @hide
4640          */
4641         public static final String KEY_SUPL_ES_STRING = KEY_PREFIX + "supl_es";
4642 
4643         /**
4644          * LTE Positioning Profile settings bit mask.
4645          * 0 - Radio Resource Location Protocol in user plane and control plane. This is default.
4646          * 1 - Enable LTE Positioning Protocol in user plane.
4647          * 2 - Enable LTE Positioning Protocol in control plane.
4648          * @hide
4649          */
4650         public static final String KEY_LPP_PROFILE_STRING = KEY_PREFIX + "lpp_profile";
4651 
4652         /**
4653          * Determine whether to use emergency PDN for emergency SUPL.
4654          * 0 - no.
4655          * 1 - yes. This is default.
4656          * @hide
4657          */
4658         public static final String KEY_USE_EMERGENCY_PDN_FOR_EMERGENCY_SUPL_STRING =
4659                 KEY_PREFIX + "use_emergency_pdn_for_emergency_supl";
4660 
4661         /**
4662          * A_GLONASS_POS_PROTOCOL_SELECT bit mask.
4663          * 0 - Don't use A-GLONASS. This is default.
4664          * 1 - Use A-GLONASS in Radio Resource Control(RRC) control-plane.
4665          * 2 - Use A-GLONASS in Radio Resource Location user-plane.
4666          * 4 - Use A-GLONASS in LTE Positioning Protocol User plane.
4667          * @hide
4668          */
4669         public static final String KEY_A_GLONASS_POS_PROTOCOL_SELECT_STRING =
4670                 KEY_PREFIX + "a_glonass_pos_protocol_select";
4671 
4672         /**
4673          * GPS_LOCK configuration bit mask to specify GPS device behavior toward other services,
4674          * when Location Settings are off.
4675          * "0" - No lock.
4676          * "1" - Lock Mobile Originated GPS functionalities.
4677          * "2" - Lock Network initiated GPS functionalities.
4678          * "3" - Lock both. This is default.
4679          * @hide
4680          */
4681         public static final String KEY_GPS_LOCK_STRING = KEY_PREFIX + "gps_lock";
4682 
4683         /**
4684          * Control Plane / SUPL NI emergency extension time in seconds. Default to "0".
4685          * @hide
4686          */
4687         public static final String KEY_ES_EXTENSION_SEC_STRING = KEY_PREFIX + "es_extension_sec";
4688 
4689         /**
4690          * Space separated list of Android package names of proxy applications representing
4691          * the non-framework entities requesting location directly from GNSS without involving
4692          * the framework, as managed by IGnssVisibilityControl.hal. For example,
4693          * "com.example.mdt com.example.ims".
4694          * @hide
4695          */
4696         public static final String KEY_NFW_PROXY_APPS_STRING = KEY_PREFIX + "nfw_proxy_apps";
4697 
4698         /**
4699          * Determines whether or not SUPL ES mode supports a control-plane mechanism to get a user's
4700          * location in the event that data plane SUPL fails or is otherwise unavailable.
4701          * <p>
4702          * An integer value determines the support type of this carrier. If this carrier only
4703          * supports data plane SUPL ES, then the value will be
4704          * {@link #SUPL_EMERGENCY_MODE_TYPE_DP_ONLY}. If the carrier supports control plane fallback
4705          * for emergency SUPL, the value will be {@link #SUPL_EMERGENCY_MODE_TYPE_CP_FALLBACK}.
4706          * If the carrier does not support data plane SUPL using the framework, the value will be
4707          * {@link #SUPL_EMERGENCY_MODE_TYPE_CP_ONLY}.
4708          * <p>
4709          * The default value for this configuration is {@link #SUPL_EMERGENCY_MODE_TYPE_CP_ONLY}.
4710          * @hide
4711          */
4712         public static final String KEY_ES_SUPL_CONTROL_PLANE_SUPPORT_INT = KEY_PREFIX
4713                 + "es_supl_control_plane_support_int";
4714 
4715         /**
4716          * A list of roaming PLMNs where SUPL ES mode does not support a control-plane mechanism to
4717          * get a user's location in the event that data plane SUPL fails or is otherwise
4718          * unavailable.
4719          * <p>
4720          * A string array of PLMNs that do not support a control-plane mechanism for getting a
4721          * user's location for SUPL ES.
4722          * @hide
4723          */
4724         public static final String KEY_ES_SUPL_DATA_PLANE_ONLY_ROAMING_PLMN_STRING_ARRAY =
4725                 KEY_PREFIX + "es_supl_data_plane_only_roaming_plmn_string_array";
4726 
getDefaults()4727         private static PersistableBundle getDefaults() {
4728             PersistableBundle defaults = new PersistableBundle();
4729             defaults.putBoolean(KEY_PERSIST_LPP_MODE_BOOL, true);
4730             defaults.putString(KEY_SUPL_HOST_STRING, "supl.google.com");
4731             defaults.putString(KEY_SUPL_PORT_STRING, "7275");
4732             defaults.putString(KEY_SUPL_VER_STRING, "0x20000");
4733             defaults.putString(KEY_SUPL_MODE_STRING, "1");
4734             defaults.putString(KEY_SUPL_ES_STRING, "1");
4735             defaults.putString(KEY_LPP_PROFILE_STRING, "2");
4736             defaults.putString(KEY_USE_EMERGENCY_PDN_FOR_EMERGENCY_SUPL_STRING, "1");
4737             defaults.putString(KEY_A_GLONASS_POS_PROTOCOL_SELECT_STRING, "0");
4738             defaults.putString(KEY_GPS_LOCK_STRING, "3");
4739             defaults.putString(KEY_ES_EXTENSION_SEC_STRING, "0");
4740             defaults.putString(KEY_NFW_PROXY_APPS_STRING, "");
4741             defaults.putInt(KEY_ES_SUPL_CONTROL_PLANE_SUPPORT_INT,
4742                     SUPL_EMERGENCY_MODE_TYPE_CP_ONLY);
4743             defaults.putStringArray(KEY_ES_SUPL_DATA_PLANE_ONLY_ROAMING_PLMN_STRING_ARRAY, null);
4744             return defaults;
4745         }
4746     }
4747 
4748    /**
4749     * An int array containing CDMA enhanced roaming indicator values for Home (non-roaming) network.
4750     * The default values come from 3GPP2 C.R1001 table 8.1-1.
4751     * Enhanced Roaming Indicator Number Assignments
4752     *
4753     * @hide
4754     */
4755     public static final String KEY_CDMA_ENHANCED_ROAMING_INDICATOR_FOR_HOME_NETWORK_INT_ARRAY =
4756             "cdma_enhanced_roaming_indicator_for_home_network_int_array";
4757 
4758     /**
4759      * Determines whether wifi calling location privacy policy is shown.
4760      */
4761     public static final String KEY_SHOW_WFC_LOCATION_PRIVACY_POLICY_BOOL =
4762             "show_wfc_location_privacy_policy_bool";
4763 
4764     /**
4765      * Indicates use 3GPP application to replace 3GPP2 application even if it's a CDMA/CDMA-LTE
4766      * phone, becasue some carriers's CSIM application is present but not supported.
4767      * @hide
4768      */
4769     public static final String KEY_USE_USIM_BOOL = "use_usim_bool";
4770 
4771     /**
4772      * Determines whether the carrier wants to cancel the cs reject notification automatically
4773      * when the voice registration state changes.
4774      * If true, the notification will be automatically removed
4775      *          when the voice registration state changes.
4776      * If false, the notification will persist until the user dismisses it,
4777      *           the SIM is removed, or the device is rebooted.
4778      * @hide
4779      */
4780     public static final String KEY_AUTO_CANCEL_CS_REJECT_NOTIFICATION =
4781             "carrier_auto_cancel_cs_notification";
4782 
4783     /**
4784      * Passing this value as {@link #KEY_SUBSCRIPTION_GROUP_UUID_STRING} will remove the
4785      * subscription from a group instead of adding it to a group.
4786      *
4787      * <p>This value will work all the way back to {@link android.os.Build.VERSION_CODES#Q}.
4788      */
4789     public static final String REMOVE_GROUP_UUID_STRING = "00000000-0000-0000-0000-000000000000";
4790 
4791     /**
4792      * The UUID of a Group of related subscriptions in which to place the current subscription.
4793      *
4794      * A grouped subscription will behave for billing purposes and other UI purposes as though it
4795      * is a transparent extension of other subscriptions in the group.
4796      *
4797      * <p>If set to {@link #REMOVE_GROUP_UUID_STRING}, then the subscription will be removed from
4798      * its current group.
4799      *
4800      * <p>This key will work all the way back to {@link android.os.Build.VERSION_CODES#Q}.
4801      */
4802     public static final String KEY_SUBSCRIPTION_GROUP_UUID_STRING =
4803             "subscription_group_uuid_string";
4804 
4805     /**
4806      * Controls the cellular usage setting.
4807      *
4808      * The usage setting indicates whether a device will remain attached to a network based on
4809      * the primary use case for the service. A device will detach and search for a more-preferred
4810      * network if the primary use case (voice or data) is not satisfied. Depending on the type
4811      * of device, it may operate in a voice or data-centric mode by default.
4812      *
4813      * <p>Sets the usage setting in accordance with 3gpp 24.301 sec 4.3 and 3gpp 24.501 sec 4.3.
4814      * Also refer to "UE's usage setting" as defined in 3gpp 24.301 section 3.1 and 3gpp 23.221
4815      * Annex A.
4816      *
4817      * Either omit this key or pass a value of
4818      * {@link SubscriptionManager#USAGE_SETTING_UNKNOWN unknown} to preserve the current setting.
4819      *
4820      * <p>Devices that support configuration of the cellular usage setting, including devices
4821      * with HAL capability to set the cellular usage setting, must honor this setting accordingly.
4822      *
4823      * {@link SubscriptionManager#USAGE_SETTING_DEFAULT default},
4824      * {@link SubscriptionManager#USAGE_SETTING_VOICE_CENTRIC voice-centric},
4825      * or {@link SubscriptionManager#USAGE_SETTING_DATA_CENTRIC data-centric}.
4826      * {@see SubscriptionInfo#getUsageSetting}
4827      *
4828      */
4829     public static final String KEY_CELLULAR_USAGE_SETTING_INT =
4830             "cellular_usage_setting_int";
4831 
4832     /**
4833      * Data switch validation minimal gap time, in milliseconds.
4834      *
4835      * Which means, if the same subscription on the same network (based on MCC+MNC+TAC+subId)
4836      * was recently validated (within this time gap), and Telephony receives a request to switch to
4837      * it again, Telephony will skip the validation part and switch to it as soon as connection
4838      * is setup, as if it's already validated.
4839      *
4840      * If the network was validated within the gap but the latest validation result is false, the
4841      * validation will not be skipped.
4842      *
4843      * If not set or set to 0, validation will never be skipped.
4844      * The max acceptable value of this config is 24 hours.
4845      *
4846      * @hide
4847      */
4848     public static final String KEY_DATA_SWITCH_VALIDATION_MIN_GAP_LONG =
4849             "data_switch_validation_min_gap_long";
4850 
4851     /**
4852      * A boolean property indicating whether this subscription should be managed as an opportunistic
4853      * subscription.
4854      *
4855      * If true, then this subscription will be selected based on available coverage and will not be
4856      * available for a user in settings menus for selecting macro network providers. If unset,
4857      * defaults to “false”.
4858      *
4859      * <p>This key will work all the way back to {@link android.os.Build.VERSION_CODES#Q}.
4860      */
4861     public static final String KEY_IS_OPPORTUNISTIC_SUBSCRIPTION_BOOL =
4862             "is_opportunistic_subscription_bool";
4863 
4864     /**
4865      * The flatten string {@link android.content.ComponentName componentName} of carrier
4866      * provisioning app receiver.
4867      *
4868      * <p>
4869      * The RadioInfo activity(*#*#INFO#*#*) will broadcast an intent to this receiver when the
4870      * "Carrier Provisioning Info" or "Trigger Carrier Provisioning" button clicked.
4871      *
4872      * <p>
4873      * e.g, com.google.android.carrierPackageName/.CarrierReceiverName
4874      *
4875      * @hide
4876      */
4877     public static final String KEY_CARRIER_PROVISIONING_APP_STRING =
4878             "carrier_provisioning_app_string";
4879 
4880     /**
4881      * Configs used by the IMS stack.
4882      */
4883     public static final class Ims {
4884         /** Prefix of all Ims.KEY_* constants. */
4885         public static final String KEY_PREFIX = "ims.";
4886 
4887         /**
4888          * Delay in milliseconds to turn off wifi when IMS is registered over wifi.
4889          */
4890         public static final String KEY_WIFI_OFF_DEFERRING_TIME_MILLIS_INT =
4891                 KEY_PREFIX + "wifi_off_deferring_time_millis_int";
4892 
4893         /**
4894          * A boolean flag specifying whether or not this carrier requires one IMS registration for
4895          * all IMS services (MMTEL and RCS).
4896          * <p>
4897          * If set to {@code true}, the IMS Service must use one IMS registration for all IMS
4898          * services. If set to {@code false}, IMS services may use separate IMS registrations for
4899          * MMTEL and RCS.
4900          * <p>
4901          * The default value for this configuration is {@code false}.
4902          * @see android.telephony.ims.SipDelegateManager
4903          */
4904         public static final String KEY_IMS_SINGLE_REGISTRATION_REQUIRED_BOOL =
4905                 KEY_PREFIX + "ims_single_registration_required_bool";
4906 
4907         /**
4908          * A boolean flag specifying whether or not this carrier supports the device notifying the
4909          * network of its RCS capabilities using the SIP PUBLISH procedure defined for User
4910          * Capability Exchange (UCE). See RCC.71, section 3 for more information.
4911          * <p>
4912          * If this key's value is set to false, the procedure for RCS contact capability exchange
4913          * via SIP SUBSCRIBE/NOTIFY will also be disabled internally, and
4914          * {@link Ims#KEY_ENABLE_PRESENCE_PUBLISH_BOOL} must also be set to false to ensure
4915          * apps do not improperly think that capability exchange via SIP PUBLISH is enabled.
4916          * <p> The default value for this key is {@code false}.
4917          */
4918         public static final String KEY_ENABLE_PRESENCE_PUBLISH_BOOL =
4919                 KEY_PREFIX + "enable_presence_publish_bool";
4920 
4921         /**
4922          * Each string in this array contains a mapping between the service-id and version portion
4923          * of the service-description element and the associated IMS feature tag(s) that are
4924          * associated with each element (see RCC.07 Table 7).
4925          * <p>
4926          * Each string contains 3 parts, which define the mapping between service-description and
4927          * feature tag(s) that must be present in the IMS REGISTER for the RCS service to be
4928          * published as part of the RCS PUBLISH procedure:
4929          * [service-id]|[version]|[desc]|[feature_tag];[feature_tag];...
4930          * <ul>
4931          *   <li>[service-id]: the service-id element associated with the RCS capability.</li>
4932          *   <li>[version]: The version element associated with that service-id</li>
4933          *   <li>[desc]: The optional desecription element associated with that service-id</li>
4934          *   <li>[feature_tag];[feature_tag]: The list of all feature tags associated with this
4935          *       capability that MUST ALL be present in the IMS registration for this this
4936          *       capability to be published to the network.</li>
4937          * </ul>
4938          * <p>
4939          * Features managed by the framework will be considered capable when the ImsService reports
4940          * that those services are capable via the
4941          * {@link MmTelFeature#notifyCapabilitiesStatusChanged(MmTelFeature.MmTelCapabilities)} or
4942          * {@link RcsFeature#notifyCapabilitiesStatusChanged(RcsFeature.RcsImsCapabilities)} APIs.
4943          * For RCS services not managed by the framework, the capability of these services are
4944          * determined by looking at the feature tags associated with the IMS registration using the
4945          * {@link ImsRegistrationAttributes} API and mapping them to the service-description map.
4946          * <p>
4947          * The framework contains a default value of this key, which is based off of RCC.07
4948          * specification. Capabilities based of carrier extensions may be added to this list on a
4949          * carrier-by-carrier basis as required in order to support additional services in the
4950          * PUBLISH. If this list contains a service-id and version that overlaps with the default,
4951          * it will override the framework default.
4952          * @hide
4953          */
4954         public static final String KEY_PUBLISH_SERVICE_DESC_FEATURE_TAG_MAP_OVERRIDE_STRING_ARRAY =
4955                 KEY_PREFIX + "publish_service_desc_feature_tag_map_override_string_array";
4956 
4957         /**
4958          * Flag indicating whether or not this carrier supports the exchange of phone numbers with
4959          * the carrier's RCS presence server in order to retrieve the RCS capabilities of requested
4960          * contacts used in the RCS User Capability Exchange (UCE) procedure. See RCC.71, section 3
4961          * for more information.
4962          * <p>
4963          * When presence is supported, the device uses the SIP SUBSCRIBE/NOTIFY procedure internally
4964          * to retrieve the requested RCS capabilities. See
4965          * {@link android.telephony.ims.RcsUceAdapter} for more information on how RCS capabilities
4966          * can be retrieved from the carrier's network.
4967          */
4968         public static final String KEY_ENABLE_PRESENCE_CAPABILITY_EXCHANGE_BOOL =
4969                 KEY_PREFIX + "enable_presence_capability_exchange_bool";
4970 
4971 
4972         /**
4973          * Flag indicating whether or not the carrier expects the RCS UCE service to periodically
4974          * refresh the RCS capabilities cache of the user's contacts as well as request the
4975          * capabilities of call contacts when the SIM card is first inserted or when a new contact
4976          * is added, removed, or modified. This corresponds to the RCC.07 A.19
4977          * "DISABLE INITIAL ADDRESS BOOK SCAN" parameter.
4978          * <p>
4979          * If this flag is disabled, the capabilities cache will not be refreshed internally at all
4980          * and will only be updated if the cached capabilities are stale when an application
4981          * requests them.
4982          *
4983          * @see RcsUceAdapter#isUceSettingEnabled() more information about this feature and how
4984          * it is enabled by the user.
4985          */
4986         public static final String KEY_RCS_BULK_CAPABILITY_EXCHANGE_BOOL =
4987                 KEY_PREFIX + "rcs_bulk_capability_exchange_bool";
4988 
4989         /**
4990          * Flag indicating whether or not the carrier supports capability exchange with a list of
4991          * contacts. When {@code true}, the device will batch together multiple requests and
4992          * construct a RLMI document in the SIP SUBSCRIBE request (see RFC 4662). If {@code false},
4993          * the request will be split up into one SIP SUBSCRIBE request per contact.
4994          */
4995         public static final String KEY_ENABLE_PRESENCE_GROUP_SUBSCRIBE_BOOL =
4996                 KEY_PREFIX + "enable_presence_group_subscribe_bool";
4997 
4998         /**
4999          * Flag indicating whether or not to use SIP URI when send a presence subscribe.
5000          * When {@code true}, the device sets the To and Contact header to be SIP URI using
5001          * the TelephonyManager#getIsimDomain" API.
5002          * If {@code false}, the device uses a TEL URI.
5003          */
5004         public static final String KEY_USE_SIP_URI_FOR_PRESENCE_SUBSCRIBE_BOOL =
5005                 KEY_PREFIX + "use_sip_uri_for_presence_subscribe_bool";
5006 
5007         /**
5008          * Flag indicating whether or not to use TEL URI when setting the entity uri field and
5009          * contact element of each tuple.
5010          *
5011          * When {@code true}, the device sets the entity uri field and contact element to be
5012          * TEL URI. This is done by first searching for the first TEL URI provided in
5013          * p-associated-uri header. If there are no TEL URIs in the p-associated-uri header, we will
5014          * convert the first SIP URI provided in the header to a TEL URI. If there are no URIs in
5015          * the p-associated-uri header, we will then fall back to using the SIM card to generate the
5016          * TEL URI.
5017          * If {@code false}, the first URI provided in the p-associated-uri header is used,
5018          * independent of the URI scheme. If there are no URIs available from p-associated-uri
5019          * header, we will try to generate a SIP URI or TEL URI from the information provided by the
5020          * SIM card, depending on the information available.
5021          * @hide
5022          */
5023         public static final String KEY_USE_TEL_URI_FOR_PIDF_XML_BOOL =
5024                 KEY_PREFIX + "use_tel_uri_for_pidf_xml";
5025 
5026         /**
5027          * An integer key associated with the period of time in seconds the non-rcs capability
5028          * information of each contact is cached on the device.
5029          * <p>
5030          * The rcs capability cache expiration sec is managed by
5031          * {@code android.telephony.ims.ProvisioningManager} but non-rcs capability is managed by
5032          * {@link CarrierConfigManager} since non-rcs capability will be provided via ACS or carrier
5033          * config.
5034          * <p>
5035          * The default value is 2592000 secs (30 days), see RCC.07 Annex A.1.9.
5036          */
5037         public static final String KEY_NON_RCS_CAPABILITIES_CACHE_EXPIRATION_SEC_INT =
5038                 KEY_PREFIX + "non_rcs_capabilities_cache_expiration_sec_int";
5039 
5040         /**
5041          * Specifies the RCS feature tag allowed for the carrier.
5042          *
5043          * <p>The values refer to RCC.07 2.4.4.
5044          */
5045         public static final String KEY_RCS_FEATURE_TAG_ALLOWED_STRING_ARRAY =
5046                 KEY_PREFIX + "rcs_feature_tag_allowed_string_array";
5047 
5048         /**
5049          * Flag indicating whether or not carrier forbids device send the RCS request when the
5050          * device receive the network response with the SIP code 489 BAD EVENT.
5051          * <p>
5052          * The default value for this key is {@code false}.
5053          * @hide
5054          */
5055         public static final String KEY_RCS_REQUEST_FORBIDDEN_BY_SIP_489_BOOL =
5056                 KEY_PREFIX + "rcs_request_forbidden_by_sip_489_bool";
5057 
5058         /**
5059          * Indicates the interval that SUBSCRIBE requests from applications will be retried at when
5060          * the carrier network has responded to a previous request with a forbidden error.
5061          * <p>
5062          * The default value for this key is 20 minutes.
5063          * @hide
5064          */
5065         public static final String KEY_RCS_REQUEST_RETRY_INTERVAL_MILLIS_LONG =
5066                 KEY_PREFIX + "rcs_request_retry_interval_millis_long";
5067 
5068         /** SIP timer T1 as per 3GPP TS 24.229 Table 7.7.1 */
5069         public static final String KEY_SIP_TIMER_T1_MILLIS_INT =
5070                 KEY_PREFIX + "sip_timer_t1_millis_int";
5071 
5072         /** SIP timer T2 as per 3GPP TS 24.229 Table 7.7.1 */
5073         public static final String KEY_SIP_TIMER_T2_MILLIS_INT =
5074                 KEY_PREFIX + "sip_timer_t2_millis_int";
5075 
5076         /** SIP timer T4 as per 3GPP TS 24.229 Table 7.7.1 */
5077         public static final String KEY_SIP_TIMER_T4_MILLIS_INT =
5078                 KEY_PREFIX + "sip_timer_t4_millis_int";
5079 
5080         /** SIP timer B as per 3GPP TS 24.229 Table 7.7.1 */
5081         public static final String KEY_SIP_TIMER_B_MILLIS_INT =
5082                 KEY_PREFIX + "sip_timer_b_millis_int";
5083 
5084         /** SIP timer C as per 3GPP TS 24.229 Table 7.7.1 */
5085         public static final String KEY_SIP_TIMER_C_MILLIS_INT =
5086                 KEY_PREFIX + "sip_timer_c_millis_int";
5087 
5088         /** SIP timer D as per 3GPP TS 24.229 Table 7.7.1 */
5089         public static final String KEY_SIP_TIMER_D_MILLIS_INT =
5090                 KEY_PREFIX + "sip_timer_d_millis_int";
5091 
5092         /** SIP timer F as per 3GPP TS 24.229 Table 7.7.1 */
5093         public static final String KEY_SIP_TIMER_F_MILLIS_INT =
5094                 KEY_PREFIX + "sip_timer_f_millis_int";
5095 
5096         /** SIP timer H as per 3GPP TS 24.229 Table 7.7.1 */
5097         public static final String KEY_SIP_TIMER_H_MILLIS_INT =
5098                 KEY_PREFIX + "sip_timer_h_millis_int";
5099 
5100         /** SIP timer J as per 3GPP TS 24.229 Table 7.7.1 */
5101         public static final String KEY_SIP_TIMER_J_MILLIS_INT =
5102                 KEY_PREFIX + "sip_timer_j_millis_int";
5103 
5104         /** Specifies the SIP Server default port. */
5105         public static final String KEY_SIP_SERVER_PORT_NUMBER_INT  =
5106                 KEY_PREFIX + "sip_server_port_number_int";
5107 
5108         /**
5109          * Specify the “phone-context” parameter as defined in
5110          * section 7.2A.10 in 3GPP TS 24.229.
5111          */
5112         public static final String KEY_PHONE_CONTEXT_DOMAIN_NAME_STRING =
5113                 KEY_PREFIX + "phone_context_domain_name_string";
5114 
5115         /** @hide */
5116         @IntDef({REQUEST_URI_FORMAT_TEL, REQUEST_URI_FORMAT_SIP})
5117 
5118         public @interface RequestUriFormatType {}
5119 
5120         /**
5121          *  Request URI is of type TEL URI.
5122          */
5123         public static final int REQUEST_URI_FORMAT_TEL = 0;
5124 
5125         /**
5126          *  Request URI is of type SIP URI.
5127          */
5128         public static final int REQUEST_URI_FORMAT_SIP = 1;
5129 
5130         /**
5131          * Specify whether the request URI is SIP URI
5132          * {@link #REQUEST_URI_FORMAT_SIP} or
5133          * TEL URI {@link #REQUEST_URI_FORMAT_TEL}.
5134          */
5135         public static final String KEY_REQUEST_URI_TYPE_INT =
5136                 KEY_PREFIX + "request_uri_type_int";
5137 
5138         /**
5139          * Flag indicating whether Globally Routable User agent (GRUU)
5140          * in supported HEADER is included or not.
5141          *
5142          * <p> Reference: RFC 5627.
5143          */
5144         public static final String KEY_GRUU_ENABLED_BOOL =
5145                 KEY_PREFIX + "gruu_enabled_bool";
5146 
5147         /**
5148          * Flag indicating whether to keep/release IMS PDN in case of
5149          * moving to non VOPS area.
5150          *
5151          * <p>if {@code True}, keep IMS PDN in case of moving to non VOPS area.
5152          * if {@code false}, otherwise.
5153          */
5154         public static final String KEY_KEEP_PDN_UP_IN_NO_VOPS_BOOL =
5155                 KEY_PREFIX + "keep_pdn_up_in_no_vops_bool";
5156 
5157         /** @hide */
5158         @IntDef({
5159             PREFERRED_TRANSPORT_UDP,
5160             PREFERRED_TRANSPORT_TCP,
5161             PREFERRED_TRANSPORT_DYNAMIC_UDP_TCP,
5162             PREFERRED_TRANSPORT_TLS
5163         })
5164 
5165         public @interface PreferredTransportType {}
5166 
5167         /** Preferred Transport is always UDP. */
5168         public static final int PREFERRED_TRANSPORT_UDP = 0;
5169 
5170         /** Preferred Transport is always TCP. */
5171         public static final int PREFERRED_TRANSPORT_TCP = 1;
5172 
5173         /**
5174          *  Preferred Transport is both UDP and TCP and selected based
5175          *  on MTU size specified in {@link #KEY_IPV4_SIP_MTU_SIZE_CELLULAR_INT}
5176          *  and {@link #KEY_IPV6_SIP_MTU_SIZE_CELLULAR_INT}.
5177          *
5178          *  <p>Default transport is UDP. If message size is larger
5179          *  than MTU, then TCP shall be used.
5180          */
5181         public static final int PREFERRED_TRANSPORT_DYNAMIC_UDP_TCP = 2;
5182 
5183         /** Preferred Transport is TLS. */
5184         public static final int PREFERRED_TRANSPORT_TLS = 3;
5185 
5186         /**
5187          * Specify the preferred transport protocol for SIP messages.
5188          *
5189          * <p>Possible values are,
5190          * {@link #PREFERRED_TRANSPORT_UDP},
5191          * {@link #PREFERRED_TRANSPORT_TCP},
5192          * {@link #PREFERRED_TRANSPORT_DYNAMIC_UDP_TCP}
5193          */
5194         public static final String KEY_SIP_PREFERRED_TRANSPORT_INT =
5195                 KEY_PREFIX + "sip_preferred_transport_int";
5196 
5197         /**
5198          * Specify the maximum IPV4 MTU size of SIP message on Cellular.
5199          *
5200          * <p>If {@link #KEY_SIP_PREFERRED_TRANSPORT_INT} is
5201          * {@link #PREFERRED_TRANSPORT_DYNAMIC_UDP_TCP} and SIP message MTU size
5202          * is more than this value, then SIP transport will be TCP, else the
5203          * SIP transport is UDP.
5204          */
5205         public static final String KEY_IPV4_SIP_MTU_SIZE_CELLULAR_INT =
5206                 KEY_PREFIX + "ipv4_sip_mtu_size_cellular_int";
5207 
5208         /**
5209          * Specify the maximum IPV6 MTU size of SIP message on Cellular.
5210          *
5211          * <p>If {@link #KEY_SIP_PREFERRED_TRANSPORT_INT} is
5212          * {@link #PREFERRED_TRANSPORT_DYNAMIC_UDP_TCP} and SIP message MTU size
5213          * is more than this value, then SIP transport will be TCP, else the
5214          * SIP transport is UDP.
5215          */
5216         public static final String KEY_IPV6_SIP_MTU_SIZE_CELLULAR_INT =
5217                 KEY_PREFIX + "ipv6_sip_mtu_size_cellular_int";
5218 
5219         /**
5220          * This config determines whether IMS PDN needs to be enabled
5221          * when VOPS support is not available in both home and roaming scenarios.
5222          *
5223          * <p>This is applicable before IMS PDN is up, to decide whether
5224          * IMS PDN needs to be enabled based on VOPS support in home/roaming.
5225          *
5226          * <p>Possible values are,
5227          * {@link #NETWORK_TYPE_HOME},
5228          * {@link #NETWORK_TYPE_ROAMING}
5229          * An empty array indicates IMS PDN depends on VOPS on both home
5230          * and roaming scenarios.
5231          */
5232         public static final String KEY_IMS_PDN_ENABLED_IN_NO_VOPS_SUPPORT_INT_ARRAY =
5233                 KEY_PREFIX + "ims_pdn_enabled_in_no_vops_support_int_array";
5234 
5235         /**
5236          * Flag indicating whether IPSec enabled for SIP messages.
5237          *
5238          * <p> Reference: 3GPP TS 33.203 and RFC 3329.
5239          */
5240         public static final String KEY_SIP_OVER_IPSEC_ENABLED_BOOL =
5241                 KEY_PREFIX + "sip_over_ipsec_enabled_bool";
5242 
5243         /** @hide */
5244         @IntDef({IPSEC_AUTHENTICATION_ALGORITHM_HMAC_MD5, IPSEC_AUTHENTICATION_ALGORITHM_HMAC_SHA1})
5245 
5246         public @interface IpsecAuthenticationAlgorithmType {}
5247 
5248         /** IPSec Authentication algorithm is HMAC-MD5. see Annex H of TS 33.203 */
5249         public static final int IPSEC_AUTHENTICATION_ALGORITHM_HMAC_MD5 = 0;
5250 
5251         /** IPSec Authentication algorithm is HMAC-SHA1. see Annex H of TS 33.203 */
5252         public static final int IPSEC_AUTHENTICATION_ALGORITHM_HMAC_SHA1 = 1;
5253 
5254         /**
5255          * List of supported IPSEC Authentication algorithms.
5256          *
5257          * <p>Possible values are,
5258          * {@link #IPSEC_AUTHENTICATION_ALGORITHM_HMAC_MD5},
5259          * {@link #IPSEC_AUTHENTICATION_ALGORITHM_HMAC_SHA1}
5260          */
5261         public static final String KEY_IPSEC_AUTHENTICATION_ALGORITHMS_INT_ARRAY =
5262                 KEY_PREFIX + "ipsec_authentication_algorithms_int_array";
5263 
5264         /** @hide */
5265         @IntDef({
5266             IPSEC_ENCRYPTION_ALGORITHM_NULL,
5267             IPSEC_ENCRYPTION_ALGORITHM_DES_EDE3_CBC,
5268             IPSEC_ENCRYPTION_ALGORITHM_AES_CBC
5269         })
5270 
5271         public @interface IpsecEncryptionAlgorithmType {}
5272 
5273         /** IPSec Encryption algorithm is NULL. see Annex H of TS 33.203 */
5274         public static final int IPSEC_ENCRYPTION_ALGORITHM_NULL = 0;
5275 
5276         /** IPSec Encryption algorithm is DES_EDE3_CBC. see Annex H of TS 33.203 */
5277         public static final int IPSEC_ENCRYPTION_ALGORITHM_DES_EDE3_CBC = 1;
5278 
5279         /** IPSec Encryption algorithm is AES_CBC. see Annex H of TS 33.203 */
5280         public static final int IPSEC_ENCRYPTION_ALGORITHM_AES_CBC = 2;
5281 
5282         /**
5283          * List of supported IPSEC encryption algorithms.
5284          *
5285          * <p>Possible values are,
5286          * {@link #IPSEC_ENCRYPTION_ALGORITHM_NULL},
5287          * {@link #IPSEC_ENCRYPTION_ALGORITHM_DES_EDE3_CBC},
5288          * {@link #IPSEC_ENCRYPTION_ALGORITHM_AES_CBC}
5289          */
5290         public static final String KEY_IPSEC_ENCRYPTION_ALGORITHMS_INT_ARRAY =
5291                 KEY_PREFIX + "ipsec_encryption_algorithms_int_array";
5292 
5293         /**
5294          * Expiry timer for IMS Registration in seconds.
5295          * <p>Reference: RFC 3261 Section 20.19.
5296          */
5297         public static final String KEY_REGISTRATION_EXPIRY_TIMER_SEC_INT =
5298                 KEY_PREFIX + "registration_expiry_timer_sec_int";
5299 
5300         /** Registration Retry Base-time as per RFC 5626 Section 4.5. */
5301         public static final String KEY_REGISTRATION_RETRY_BASE_TIMER_MILLIS_INT =
5302                 KEY_PREFIX + "registration_retry_base_timer_millis_int";
5303 
5304         /** Registration Retry max-time as per RFC 5626 Section 4.5. */
5305         public static final String KEY_REGISTRATION_RETRY_MAX_TIMER_MILLIS_INT =
5306                 KEY_PREFIX + "registration_retry_max_timer_millis_int";
5307 
5308         /**
5309          * Flag indicating whether subscription to registration event package
5310          * is supported or not.
5311          */
5312         public static final String KEY_REGISTRATION_EVENT_PACKAGE_SUPPORTED_BOOL =
5313                 KEY_PREFIX + "registration_event_package_supported_bool";
5314 
5315         /**
5316          * Expiry timer for SUBSCRIBE in seconds.
5317          * <p>Reference: RFC 3261 Section 20.19.
5318          */
5319         public static final String KEY_REGISTRATION_SUBSCRIBE_EXPIRY_TIMER_SEC_INT =
5320                 KEY_PREFIX + "registration_subscribe_expiry_timer_sec_int";
5321 
5322         /** @hide */
5323         @IntDef({
5324             GEOLOCATION_PIDF_FOR_NON_EMERGENCY_ON_WIFI,
5325             GEOLOCATION_PIDF_FOR_EMERGENCY_ON_WIFI,
5326             GEOLOCATION_PIDF_FOR_NON_EMERGENCY_ON_CELLULAR,
5327             GEOLOCATION_PIDF_FOR_EMERGENCY_ON_CELLULAR
5328         })
5329 
5330         public @interface GeolocationPidfAllowedType {}
5331 
5332         /**
5333          * Indicates geolocation PIDF XML needs to be included for
5334          * normal/non-emergency call scenario on WiFi
5335          *
5336          * <p>Geolocation for normal/non-emergency call should only include
5337          * country code.
5338          */
5339         public static final int GEOLOCATION_PIDF_FOR_NON_EMERGENCY_ON_WIFI = 1;
5340 
5341         /**
5342          * Indicates geolocation PIDF XML needs to be included for emergency
5343          * call scenario on WiFi
5344          */
5345         public static final int GEOLOCATION_PIDF_FOR_EMERGENCY_ON_WIFI = 2;
5346 
5347         /**
5348          * Indicates geolocation PIDF XML needs to be included for normal/non-emergency
5349          * call scenario on Cellular
5350          *
5351          * <p>Geolocation for normal/non-emergency call should only include
5352          * country code.
5353          */
5354         public static final int GEOLOCATION_PIDF_FOR_NON_EMERGENCY_ON_CELLULAR = 3;
5355 
5356         /**
5357          * Indicates geolocation PIDF XML needs to be included for emergency
5358          * call scenario on Cellular
5359          */
5360         public static final int GEOLOCATION_PIDF_FOR_EMERGENCY_ON_CELLULAR = 4;
5361 
5362         /**
5363          * List of cases where geolocation PIDF XML needs to be included in the
5364          * SIP REGISTER over WiFi and Cellular.
5365          *
5366          * <p>Possible values are,
5367          * {@link #GEOLOCATION_PIDF_FOR_NON_EMERGENCY_ON_WIFI},
5368          * {@link #GEOLOCATION_PIDF_FOR_EMERGENCY_ON_WIFI},
5369          * {@link #GEOLOCATION_PIDF_FOR_NON_EMERGENCY_ON_CELLULAR},
5370          * {@link #GEOLOCATION_PIDF_FOR_EMERGENCY_ON_CELLULAR}
5371          *
5372          * <p>An empty array indicates geolocation PIDF XML should not be included in
5373          * the SIP REGISTER over WiFi and Cellular.
5374          */
5375         public static final String KEY_GEOLOCATION_PIDF_IN_SIP_REGISTER_SUPPORT_INT_ARRAY =
5376                 KEY_PREFIX + "geolocation_pidf_in_sip_register_support_int_array";
5377 
5378         /**
5379          * List of cases where geolocation PIDF XML needs to be included in the
5380          * SIP INVITE over WiFi and Cellular.
5381          *
5382          * <p>Possible values are,
5383          * {@link #GEOLOCATION_PIDF_FOR_NON_EMERGENCY_ON_WIFI},
5384          * {@link #GEOLOCATION_PIDF_FOR_EMERGENCY_ON_WIFI},
5385          * {@link #GEOLOCATION_PIDF_FOR_NON_EMERGENCY_ON_CELLULAR},
5386          * {@link #GEOLOCATION_PIDF_FOR_EMERGENCY_ON_CELLULAR}
5387          *
5388          * <p>An empty array indicates geolocation PIDF XML should not be included
5389          * in the SIP INVITE over WiFi and Cellular.
5390          */
5391         public static final String KEY_GEOLOCATION_PIDF_IN_SIP_INVITE_SUPPORT_INT_ARRAY =
5392                 KEY_PREFIX + "geolocation_pidf_in_sip_invite_support_int_array";
5393 
5394         /**
5395          * Specifies the IMS User Agent in template format.
5396          *
5397          * <p>Example: #MANUFACTURER#_#MODEL#_Android#AV#_#BUILD#".
5398          * IMS Stack should internally substitute the tokens with the
5399          * values from the respective android properties.
5400          *
5401          * <p>List of allowed tokens and the corresponding android properties are,
5402          * <UL>
5403          *   <LI>MANUFACTURER : ro.product.manufacturer</LI>
5404          *   <LI>MODEL :  ro.product.model</LI>
5405          *   <LI>AV : ro.build.version.release"</LI>
5406          *   <LI>BUILD : ro.build.id</LI>
5407          * </UL>
5408          * <p> Vendor IMS Stack should strip any whitespace characters present
5409          * in the android properties values before replacing the token.
5410          *
5411          * <p> An empty string is invalid as per IR92 section 2.6. This key is
5412          * considered invalid if the format is violated. If the key is invalid or
5413          * not configured, IMS stack should use internal default values.
5414          */
5415         public static final String KEY_IMS_USER_AGENT_STRING =
5416                 KEY_PREFIX + "ims_user_agent_string";
5417 
5418         /** @hide */
5419         @IntDef({
5420             NETWORK_TYPE_HOME,
5421             NETWORK_TYPE_ROAMING
5422         })
5423 
5424         public @interface NetworkType {}
5425 
5426         /** Indicates HOME Network. */
5427         public static final int NETWORK_TYPE_HOME = 0;
5428 
5429         /** Indicates Roaming Network. */
5430         public static final int NETWORK_TYPE_ROAMING = 1;
5431 
5432         /** @hide */
5433         @IntDef({
5434             RTCP_INACTIVITY_ON_HOLD,
5435             RTCP_INACTIVITY_ON_CONNECTED,
5436             RTP_INACTIVITY_ON_CONNECTED,
5437             E911_RTCP_INACTIVITY_ON_CONNECTED,
5438             E911_RTP_INACTIVITY_ON_CONNECTED
5439         })
5440 
5441         public @interface MediaInactivityReason {}
5442 
5443         /**  RTCP inactivity occurred when call is on HOLD. */
5444         public static final int RTCP_INACTIVITY_ON_HOLD = 0;
5445 
5446         /**  RTCP inactivity occurred when call is connected. */
5447         public static final int RTCP_INACTIVITY_ON_CONNECTED = 1;
5448 
5449         /**  RTP inactivity occurred when call is connected. */
5450         public static final int RTP_INACTIVITY_ON_CONNECTED = 2;
5451 
5452         /**  E911 RTCP inactivity occurred when call is connected. */
5453         public static final int E911_RTCP_INACTIVITY_ON_CONNECTED = 3;
5454 
5455         /**  E911 RTP inactivity occurred when call is connected. */
5456         public static final int E911_RTP_INACTIVITY_ON_CONNECTED = 4;
5457 
5458         /**
5459          * List of different RAT technologies on which IMS
5460          * is supported.
5461          *
5462          * <p>Possible values are,
5463          * {@link AccessNetworkConstants.AccessNetworkType#NGRAN}
5464          * {@link AccessNetworkConstants.AccessNetworkType#EUTRAN}
5465          * {@link AccessNetworkConstants.AccessNetworkType#IWLAN}
5466          * {@link AccessNetworkConstants.AccessNetworkType#UTRAN}
5467          * {@link AccessNetworkConstants.AccessNetworkType#GERAN}
5468          */
5469         public static final String KEY_SUPPORTED_RATS_INT_ARRAY =
5470                 KEY_PREFIX + "supported_rats_int_array";
5471 
5472         /**
5473          * A bundle which specifies the MMTEL capability and registration technology
5474          * that requires provisioning. If a tuple is not present, the
5475          * framework will not require that the tuple requires provisioning before
5476          * enabling the capability.
5477          * <p> Possible keys in this bundle are
5478          * <ul>
5479          *     <li>{@link #KEY_CAPABILITY_TYPE_VOICE_INT_ARRAY}</li>
5480          *     <li>{@link #KEY_CAPABILITY_TYPE_VIDEO_INT_ARRAY}</li>
5481          *     <li>{@link #KEY_CAPABILITY_TYPE_UT_INT_ARRAY}</li>
5482          *     <li>{@link #KEY_CAPABILITY_TYPE_SMS_INT_ARRAY}</li>
5483          *     <li>{@link #KEY_CAPABILITY_TYPE_CALL_COMPOSER_INT_ARRAY}</li>
5484          * </ul>
5485          * <p> The values are defined in
5486          * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationTech}
5487          *
5488          * changing mmtel_requires_provisioning_bundle requires changes to
5489          * carrier_volte_provisioning_required_bool and vice versa
5490          * {@link Ims#KEY_CARRIER_VOLTE_PROVISIONING_REQUIRED_BOOL}
5491          */
5492         public static final String KEY_MMTEL_REQUIRES_PROVISIONING_BUNDLE =
5493                 KEY_PREFIX + "mmtel_requires_provisioning_bundle";
5494 
5495         /**
5496          * List of different RAT technologies on which Provisioning for Voice calling (IR.92)
5497          * is supported.
5498          * @see MmTelFeature.MmTelCapabilities#CAPABILITY_TYPE_VOICE
5499          * <p>Possible values are,
5500          * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_LTE}
5501          * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_IWLAN}
5502          * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_CROSS_SIM}
5503          * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_NR}
5504          */
5505         public static final String KEY_CAPABILITY_TYPE_VOICE_INT_ARRAY =
5506                 KEY_PREFIX + "capability_type_voice_int_array";
5507 
5508         /**
5509          * List of different RAT technologies on which Provisioning for Video Telephony (IR.94)
5510          * is supported.
5511          * @see MmTelFeature.MmTelCapabilities#CAPABILITY_TYPE_VIDEO
5512          * <p>Possible values are,
5513          * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_LTE}
5514          * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_IWLAN}
5515          * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_CROSS_SIM}
5516          * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_NR}
5517          */
5518         public static final String KEY_CAPABILITY_TYPE_VIDEO_INT_ARRAY =
5519                 KEY_PREFIX + "capability_type_video_int_array";
5520 
5521         /**
5522          * List of different RAT technologies on which Provisioning for XCAP over Ut for
5523          * supplementary services. (IR.92) is supported.
5524          * @see MmTelFeature.MmTelCapabilities#CAPABILITY_TYPE_UT
5525          * <p>Possible values are,
5526          * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_LTE}
5527          * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_IWLAN}
5528          * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_CROSS_SIM}
5529          * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_NR}
5530          */
5531         public static final String KEY_CAPABILITY_TYPE_UT_INT_ARRAY =
5532                 KEY_PREFIX + "capability_type_ut_int_array";
5533 
5534         /**
5535          * List of different RAT technologies on which Provisioning for SMS (IR.92) is supported.
5536          * @see MmTelFeature.MmTelCapabilities#CAPABILITY_TYPE_SMS
5537          * <p>Possible values are,
5538          * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_LTE}
5539          * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_IWLAN}
5540          * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_CROSS_SIM}
5541          * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_NR}
5542          */
5543         public static final String KEY_CAPABILITY_TYPE_SMS_INT_ARRAY =
5544                 KEY_PREFIX + "capability_type_sms_int_array";
5545 
5546         /**
5547          * List of different RAT technologies on which Provisioning for Call Composer
5548          * (section 2.4 of RCC.20) is supported.
5549          * @see MmTelFeature.MmTelCapabilities#CAPABILITY_TYPE_CALL_COMPOSER
5550          * <p>Possible values are,
5551          * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_LTE}
5552          * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_IWLAN}
5553          * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_CROSS_SIM}
5554          * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_NR}
5555          */
5556         public static final String KEY_CAPABILITY_TYPE_CALL_COMPOSER_INT_ARRAY =
5557                 KEY_PREFIX + "capability_type_call_composer_int_array";
5558 
5559         /**
5560          * A bundle which specifies the RCS capability and registration technology
5561          * that requires provisioning. If a tuple is not present, the
5562          * framework will not require that the tuple requires provisioning before
5563          * enabling the capability.
5564          * <p> Possible keys in this bundle are
5565          * <ul>
5566          *     <li>{@link #KEY_CAPABILITY_TYPE_OPTIONS_UCE_INT_ARRAY}</li>
5567          *     <li>{@link #KEY_CAPABILITY_TYPE_PRESENCE_UCE_INT_ARRAY}</li>
5568          * </ul>
5569          * <p> The values are defined in
5570          * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationTech}
5571          */
5572         public static final String KEY_RCS_REQUIRES_PROVISIONING_BUNDLE =
5573                 KEY_PREFIX + "rcs_requires_provisioning_bundle";
5574 
5575         /**
5576          * This carrier supports User Capability Exchange using SIP OPTIONS as defined by the
5577          * framework. If set, the RcsFeature should support capability exchange using SIP OPTIONS.
5578          * If not set, this RcsFeature should not service capability requests.
5579          * @see RcsFeature.RcsImsCapabilities#CAPABILITY_TYPE_OPTIONS_UCE
5580          * <p>Possible values are,
5581          * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_LTE}
5582          * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_IWLAN}
5583          * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_CROSS_SIM}
5584          * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_NR}
5585          */
5586         public static final String KEY_CAPABILITY_TYPE_OPTIONS_UCE_INT_ARRAY =
5587                 KEY_PREFIX + "capability_type_options_uce_int_array";
5588 
5589         /**
5590          * This carrier supports User Capability Exchange using a presence server as defined by the
5591          * framework. If set, the RcsFeature should support capability exchange using a presence
5592          * server. If not set, this RcsFeature should not publish capabilities or service capability
5593          * requests using presence.
5594          * @see RcsFeature.RcsImsCapabilities#CAPABILITY_TYPE_PRESENCE_UCE
5595          * <p>Possible values are,
5596          * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_LTE}
5597          * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_IWLAN}
5598          * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_CROSS_SIM}
5599          * {@link android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationImplBase.ImsRegistrationTech#REGISTRATION_TECH_NR}
5600          */
5601         public static final String KEY_CAPABILITY_TYPE_PRESENCE_UCE_INT_ARRAY =
5602                 KEY_PREFIX + "capability_type_presence_uce_int_array";
5603 
Ims()5604         private Ims() {}
5605 
getDefaults()5606         private static PersistableBundle getDefaults() {
5607             PersistableBundle defaults = new PersistableBundle();
5608             defaults.putInt(KEY_WIFI_OFF_DEFERRING_TIME_MILLIS_INT, 4000);
5609             defaults.putBoolean(KEY_IMS_SINGLE_REGISTRATION_REQUIRED_BOOL, false);
5610             defaults.putBoolean(KEY_ENABLE_PRESENCE_PUBLISH_BOOL, false);
5611             defaults.putStringArray(KEY_PUBLISH_SERVICE_DESC_FEATURE_TAG_MAP_OVERRIDE_STRING_ARRAY,
5612                     new String[] {});
5613             defaults.putBoolean(KEY_ENABLE_PRESENCE_CAPABILITY_EXCHANGE_BOOL, false);
5614             defaults.putBoolean(KEY_RCS_BULK_CAPABILITY_EXCHANGE_BOOL, false);
5615             defaults.putBoolean(KEY_ENABLE_PRESENCE_GROUP_SUBSCRIBE_BOOL, false);
5616             defaults.putBoolean(KEY_USE_SIP_URI_FOR_PRESENCE_SUBSCRIBE_BOOL, false);
5617             defaults.putInt(KEY_NON_RCS_CAPABILITIES_CACHE_EXPIRATION_SEC_INT, 30 * 24 * 60 * 60);
5618             defaults.putBoolean(KEY_RCS_REQUEST_FORBIDDEN_BY_SIP_489_BOOL, false);
5619             defaults.putLong(KEY_RCS_REQUEST_RETRY_INTERVAL_MILLIS_LONG, 20 * 60 * 1000);
5620             defaults.putStringArray(KEY_RCS_FEATURE_TAG_ALLOWED_STRING_ARRAY, new String[]{
5621                     "+g.3gpp.icsi-ref=\"urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.msg\"",
5622                     "+g.3gpp.icsi-ref=\"urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.largemsg\"",
5623                     "+g.3gpp.icsi-ref=\"urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.deferred\"",
5624                     "+g.gsma.rcs.cpm.pager-large",
5625                     "+g.3gpp.icsi-ref=\"urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.session\"",
5626                     "+g.3gpp.icsi-ref=\"urn%3Aurn-7%3A3gpp-service.ims.icsi.oma.cpm.filetransfer\"",
5627                     "+g.3gpp.iari-ref=\"urn%3Aurn-7%3A3gpp-application.ims.iari.rcs.fthttp\"",
5628                     "+g.3gpp.iari-ref=\"urn%3Aurn-7%3A3gpp-application.ims.iari.rcs.ftsms\"",
5629                     "+g.3gpp.iari-ref=\"urn%3Aurn-7%3A3gpp-service.ims.icsi.gsma.callcomposer\"",
5630                     "+g.gsma.callcomposer",
5631                     "+g.3gpp.icsi-ref=\"urn%3Aurn-7%3A3gpp-service.ims.icsi.gsma.callunanswered\"",
5632                     "+g.3gpp.icsi-ref=\"urn%3Aurn-7%3A3gpp-service.ims.icsi.gsma.sharedmap\"",
5633                     "+g.3gpp.icsi-ref=\"urn%3Aurn-7%3A3gpp-service.ims.icsi.gsma.sharedsketch\"",
5634                     "+g.3gpp.iari-ref=\"urn%3Aurn-7%3A3gpp-application.ims.iari.rcs.geopush\"",
5635                     "+g.3gpp.iari-ref=\"urn%3Aurn-7%3A3gpp-application.ims.iari.rcs.geosms\"",
5636                     "+g.3gpp.iari-ref=\"urn%3Aurn-7%3A3gpp-application.ims.iari.rcs.chatbot\"",
5637                     "+g.3gpp.iari-ref=\"urn%3Aurn-7%3A3gpp-application.ims.iari.rcs.chatbot.sa\"",
5638                     "+g.gsma.rcs.botversion=\"#=1,#=2\"",
5639                     "+g.gsma.rcs.cpimext"});
5640 
5641             /**
5642              * @see #KEY_MMTEL_REQUIRES_PROVISIONING_BUNDLE
5643              */
5644             defaults.putPersistableBundle(
5645                     KEY_MMTEL_REQUIRES_PROVISIONING_BUNDLE, new PersistableBundle());
5646             /**
5647              * @see #KEY_RCS_REQUIRES_PROVISIONING_BUNDLE
5648              */
5649             defaults.putPersistableBundle(
5650                     KEY_RCS_REQUIRES_PROVISIONING_BUNDLE, new PersistableBundle());
5651 
5652             defaults.putBoolean(KEY_GRUU_ENABLED_BOOL, false);
5653             defaults.putBoolean(KEY_SIP_OVER_IPSEC_ENABLED_BOOL, true);
5654             defaults.putBoolean(KEY_KEEP_PDN_UP_IN_NO_VOPS_BOOL, false);
5655             defaults.putBoolean(KEY_REGISTRATION_EVENT_PACKAGE_SUPPORTED_BOOL, true);
5656 
5657             defaults.putInt(KEY_SIP_TIMER_T1_MILLIS_INT, 2000);
5658             defaults.putInt(KEY_SIP_TIMER_T2_MILLIS_INT, 16000);
5659             defaults.putInt(KEY_SIP_TIMER_T4_MILLIS_INT, 17000);
5660             defaults.putInt(KEY_SIP_TIMER_B_MILLIS_INT, 128000);
5661             defaults.putInt(KEY_SIP_TIMER_C_MILLIS_INT, 210000);
5662             defaults.putInt(KEY_SIP_TIMER_D_MILLIS_INT, 130000);
5663             defaults.putInt(KEY_SIP_TIMER_F_MILLIS_INT, 128000);
5664             defaults.putInt(KEY_SIP_TIMER_H_MILLIS_INT, 128000);
5665             defaults.putInt(KEY_SIP_TIMER_J_MILLIS_INT, 128000);
5666             defaults.putInt(KEY_SIP_SERVER_PORT_NUMBER_INT, 5060);
5667             defaults.putInt(KEY_REQUEST_URI_TYPE_INT, REQUEST_URI_FORMAT_TEL);
5668             defaults.putInt(KEY_SIP_PREFERRED_TRANSPORT_INT, PREFERRED_TRANSPORT_DYNAMIC_UDP_TCP);
5669             defaults.putInt(KEY_IPV4_SIP_MTU_SIZE_CELLULAR_INT, 1500);
5670             defaults.putInt(KEY_IPV6_SIP_MTU_SIZE_CELLULAR_INT, 1500);
5671             defaults.putInt(KEY_REGISTRATION_EXPIRY_TIMER_SEC_INT, 600000);
5672             defaults.putInt(KEY_REGISTRATION_RETRY_BASE_TIMER_MILLIS_INT, 30000);
5673             defaults.putInt(KEY_REGISTRATION_RETRY_MAX_TIMER_MILLIS_INT, 1800000);
5674             defaults.putInt(KEY_REGISTRATION_SUBSCRIBE_EXPIRY_TIMER_SEC_INT, 600000);
5675 
5676             defaults.putIntArray(
5677                     KEY_IPSEC_AUTHENTICATION_ALGORITHMS_INT_ARRAY,
5678                     new int[] {
5679                         IPSEC_AUTHENTICATION_ALGORITHM_HMAC_MD5,
5680                         IPSEC_AUTHENTICATION_ALGORITHM_HMAC_SHA1
5681                     });
5682             defaults.putIntArray(
5683                     KEY_IPSEC_ENCRYPTION_ALGORITHMS_INT_ARRAY,
5684                     new int[] {
5685                         IPSEC_ENCRYPTION_ALGORITHM_NULL,
5686                         IPSEC_ENCRYPTION_ALGORITHM_DES_EDE3_CBC,
5687                         IPSEC_ENCRYPTION_ALGORITHM_AES_CBC
5688                     });
5689             defaults.putIntArray(
5690                     KEY_IMS_PDN_ENABLED_IN_NO_VOPS_SUPPORT_INT_ARRAY,
5691                     new int[] {
5692                     });
5693             defaults.putIntArray(
5694                     KEY_GEOLOCATION_PIDF_IN_SIP_REGISTER_SUPPORT_INT_ARRAY,
5695                     new int[] {
5696                         GEOLOCATION_PIDF_FOR_EMERGENCY_ON_WIFI
5697                     });
5698             defaults.putIntArray(
5699                     KEY_GEOLOCATION_PIDF_IN_SIP_INVITE_SUPPORT_INT_ARRAY,
5700                     new int[] {
5701                         GEOLOCATION_PIDF_FOR_EMERGENCY_ON_WIFI
5702                     });
5703             defaults.putIntArray(
5704                     KEY_SUPPORTED_RATS_INT_ARRAY,
5705                     new int[] {
5706                         AccessNetworkType.NGRAN,
5707                         AccessNetworkType.EUTRAN,
5708                         AccessNetworkType.IWLAN
5709                     });
5710 
5711             defaults.putString(KEY_PHONE_CONTEXT_DOMAIN_NAME_STRING, "");
5712             defaults.putString(KEY_IMS_USER_AGENT_STRING,
5713                                "#MANUFACTURER#_#MODEL#_Android#AV#_#BUILD#");
5714 
5715             return defaults;
5716         }
5717     }
5718 
5719     /**
5720      * IMS Voice configs. This groups the configs required for IMS Voice - VoNR/VoLTE
5721      *
5722      * <p>Reference: IR.92
5723      */
5724     public static final class ImsVoice {
ImsVoice()5725         private ImsVoice() {}
5726 
5727         /** Prefix of all imsvoice.KEY_* constants. */
5728         public static final String KEY_PREFIX = "imsvoice.";
5729 
5730         /**
5731          * Flag specifying whether VoLTE should be available when on
5732          * roaming network.
5733          *
5734          * <p>If {@code false}: hard disabled.
5735          * If {@code true}: then depends on availability, etc.
5736          */
5737         public static final String KEY_CARRIER_VOLTE_ROAMING_AVAILABLE_BOOL  =
5738                 KEY_PREFIX + "carrier_volte_roaming_available_bool";
5739 
5740         /**
5741          * Flag specifying whether to send vertical caller id service codes
5742          * (*67 and *82) in the dialed string in the SIP:INVITE.
5743          *
5744          * <p>If {@code true}, vertical caller id service codes *67 and *82
5745          * will be sent in the dialed string in the SIP:INVITE.
5746          * If {@code false}, *67 and *82 will be removed.
5747          */
5748         public static final String KEY_INCLUDE_CALLER_ID_SERVICE_CODES_IN_SIP_INVITE_BOOL  =
5749                 KEY_PREFIX + "include_caller_id_service_codes_in_sip_invite_bool";
5750 
5751         /**
5752          * Flag indicating whether Multi-end point setting is enabled or not.
5753          */
5754         public static final String KEY_MULTIENDPOINT_SUPPORTED_BOOL =
5755                 KEY_PREFIX + "multiendpoint_supported_bool";
5756 
5757         /**
5758          * Flag indicating whether Supported header field with the option tag
5759          *  'timer' is enabled or not.
5760          *
5761          * <p>If {@code true}, session timer support is available.{@code false} otherwise.
5762          *
5763          * Reference: RFC 4028 Section 3
5764          */
5765         public static final String KEY_SESSION_TIMER_SUPPORTED_BOOL =
5766                 KEY_PREFIX + "session_timer_supported_bool";
5767 
5768         /**
5769          * Session-expires header field expressed in seconds as per
5770          * RFC 4028 Section 3.
5771          *
5772          * <p>This establishes the upper bound for the session refresh interval.
5773          */
5774         public static final String KEY_SESSION_EXPIRES_TIMER_SEC_INT =
5775                 KEY_PREFIX + "session_expires_timer_sec_int";
5776 
5777         /**
5778          * Indicates the minimum value for the session interval in seconds.
5779          * Represented as min-SE header field as per RFC 4028 Section 3.
5780          *
5781          * <p>This establishes the lower bound for the session refresh interval.
5782          */
5783         public static final String KEY_MINIMUM_SESSION_EXPIRES_TIMER_SEC_INT =
5784                 KEY_PREFIX + "minimum_session_expires_timer_sec_int";
5785 
5786         /** @hide */
5787         @IntDef({
5788             SESSION_REFRESHER_TYPE_UNKNOWN,
5789             SESSION_REFRESHER_TYPE_UAC,
5790             SESSION_REFRESHER_TYPE_UAS
5791         })
5792 
5793         public @interface SessionRefresherType {}
5794 
5795         /**
5796          * Session Refresher entity is unknown. This means UE does not include the
5797          * "refresher" parameter in the Session-Expires header field of
5798          * the SIP INVITE request.
5799          */
5800         public static final int SESSION_REFRESHER_TYPE_UNKNOWN = 0;
5801 
5802         /**
5803          * Session Refresher entity is User Agent Client (UAC).
5804          *
5805          * <p>Type of "refresher" parameter in the Session-Expires header field
5806          * of the SIP INVITE request is UAC.
5807          */
5808         public static final int SESSION_REFRESHER_TYPE_UAC = 1;
5809 
5810         /**
5811          * Session Refresher entity is User Agent Server (UAS).
5812          *
5813          * <p>Type of "refresher" parameter in the Session-Expires header field
5814          * of the SIP INVITE request is UAS.
5815          */
5816         public static final int SESSION_REFRESHER_TYPE_UAS = 2;
5817 
5818         /**
5819          * Session Refresher entity as per RFC 4028 and IR.92 Section 2.2.8.
5820          *
5821          * <p>This determines,
5822          * a) whether to include the "refresher" parameter
5823          * b) Type of refresher" parameter
5824          * in the Session-Expires header field of the SIP INVITE request.
5825          *
5826          * <p>Possible values are,
5827          * {@link #SESSION_REFRESHER_TYPE_UNKNOWN},
5828          * {@link #SESSION_REFRESHER_TYPE_UAC},
5829          * {@link #SESSION_REFRESHER_TYPE_UAS}
5830          */
5831         public static final String KEY_SESSION_REFRESHER_TYPE_INT =
5832                 KEY_PREFIX + "session_refresher_type_int";
5833 
5834 
5835         /** @hide */
5836         @IntDef({
5837             SESSION_PRIVACY_TYPE_HEADER,
5838             SESSION_PRIVACY_TYPE_NONE,
5839             SESSION_PRIVACY_TYPE_ID
5840         })
5841 
5842         public @interface SessionPrivacyType {}
5843 
5844         /**
5845          * Session privacy type is HEADER as per RFC 3323 Section 4.2.
5846          */
5847         public static final int SESSION_PRIVACY_TYPE_HEADER = 0;
5848 
5849         /**
5850          * Session privacy type is NONE as per RFC 3323 Section 4.2.
5851          */
5852         public static final int SESSION_PRIVACY_TYPE_NONE = 1;
5853 
5854         /**
5855          * Session privacy type is ID as per RFC 3325 Section 9.3.
5856          */
5857         public static final int SESSION_PRIVACY_TYPE_ID = 2;
5858 
5859         /**
5860          * Specify the session privacy type.
5861          *
5862          * <p>Reference: RFC 3323 Section 4.2, RFC 3325 Section 9.3.
5863          *
5864          * <p>Possible values are,
5865          * {@link #SESSION_PRIVACY_TYPE_HEADER},
5866          * {@link #SESSION_PRIVACY_TYPE_NONE},
5867          * {@link #SESSION_PRIVACY_TYPE_ID}
5868          */
5869         public static final String KEY_SESSION_PRIVACY_TYPE_INT =
5870                 KEY_PREFIX + "session_privacy_type_int";
5871 
5872         /**
5873          * Flag indicating whether PRACK must be enabled for all 18x messages.
5874          *
5875          * <p>If {@code false}, only 18x responses with SDP are sent reliably.
5876          * If {@code true},  SIP 18x responses (other than SIP 183 response)
5877          * are sent reliably.
5878          */
5879         public static final String KEY_PRACK_SUPPORTED_FOR_18X_BOOL  =
5880                 KEY_PREFIX + "prack_supported_for_18x_bool";
5881 
5882         /** @hide */
5883         @IntDef({
5884             CONFERENCE_SUBSCRIBE_TYPE_IN_DIALOG,
5885             CONFERENCE_SUBSCRIBE_TYPE_OUT_OF_DIALOG
5886         })
5887 
5888         public @interface ConferenceSubscribeType {}
5889 
5890         /**
5891          * The SIP SUBSCRIBE to conference state events is sent in the
5892          * SIP INVITE dialog between the UE and the conference server.
5893          *
5894          * <p>Reference: IR.92 Section 2.3.3.
5895          */
5896         public static final int CONFERENCE_SUBSCRIBE_TYPE_IN_DIALOG = 0;
5897 
5898         /**
5899          * The SIP SUBSCRIBE to conference state events is sent out of
5900          * the SIP INVITE dialog between the UE and the conference server.
5901          *
5902          * <p>Reference: IR.92 Section 2.3.3.
5903          */
5904         public static final int CONFERENCE_SUBSCRIBE_TYPE_OUT_OF_DIALOG = 1;
5905 
5906         /**
5907          * This is used to specify whether the SIP SUBSCRIBE to conference state events,
5908          * is sent in or out of the  SIP INVITE dialog between the UE and the
5909          * conference server.
5910          *
5911          * <p>Reference: IR.92 Section 2.3.3.
5912          *
5913          * <p>Possible values are,
5914          * {@link #CONFERENCE_SUBSCRIBE_TYPE_IN_DIALOG},
5915          * {@link #CONFERENCE_SUBSCRIBE_TYPE_OUT_OF_DIALOG}
5916          *
5917          * An empty array indicates SUBSCRIBE to conference event package
5918          * is not required.
5919          */
5920         public static final String KEY_CONFERENCE_SUBSCRIBE_TYPE_INT =
5921                 KEY_PREFIX + "conference_subscribe_type_int";
5922 
5923         /**
5924          * Flag specifying whether QoS preconditions are supported during call setup.
5925          *
5926          * <p>If {@code true}: QoS Preconditions are supported during call setup and
5927          * 'precondition' tag is included in the SIP INVITE header and precondition
5928          * parameters are sent in SDP as required.
5929          * <p>If {@code false}: QoS Preconditions are not supported during call setup.
5930          *
5931          * <p>Reference: 3GPP TS 24.229
5932          */
5933         public static final String KEY_VOICE_QOS_PRECONDITION_SUPPORTED_BOOL  =
5934                 KEY_PREFIX + "voice_qos_precondition_supported_bool";
5935 
5936         /**
5937          * Flag specifying whether voice is allowed on default bearer.
5938          *
5939          * <p>If {@code true}: voice packets can be sent on default bearer. {@code false} otherwise.
5940          */
5941         public static final String KEY_VOICE_ON_DEFAULT_BEARER_SUPPORTED_BOOL  =
5942                 KEY_PREFIX + "voice_on_default_bearer_supported_bool";
5943 
5944         /**
5945          * Specifies the dedicated bearer wait time during call establishment.
5946          *
5947          * <p>If dedicated bearer is not established within this time and if
5948          * {@link #KEY_VOICE_ON_DEFAULT_BEARER_SUPPORTED_BOOL} is false, then call setup would fail.
5949          * <p>If dedicated bearer is not established within this time and if
5950          * {@link #KEY_VOICE_ON_DEFAULT_BEARER_SUPPORTED_BOOL} is true, then the media is allowed
5951          * on default bearer.
5952          */
5953         public static final String KEY_DEDICATED_BEARER_WAIT_TIMER_MILLIS_INT =
5954                 KEY_PREFIX + "dedicated_bearer_wait_timer_millis_int";
5955 
5956         /** @hide */
5957         @IntDef({
5958             BASIC_SRVCC_SUPPORT,
5959             ALERTING_SRVCC_SUPPORT,
5960             PREALERTING_SRVCC_SUPPORT,
5961             MIDCALL_SRVCC_SUPPORT
5962         })
5963 
5964         public @interface SrvccType {}
5965 
5966         /**
5967          * Indicates support for basic SRVCC, typically 1 active call
5968          * as detailed in IR.92 Section A.3.
5969          */
5970         public static final int BASIC_SRVCC_SUPPORT = 0;
5971 
5972         /**
5973          * SRVCC access transfer for calls in alerting phase as per 3GPP 24.237
5974          * and IR.64 Section 4.4.
5975          * Media feature tag used: g.3gpp.srvcc-alerting.
5976          */
5977         public static final int ALERTING_SRVCC_SUPPORT = 1;
5978 
5979         /**
5980          * SRVCC access transfer for calls in pre-alerting phase as per 3GPP 24.237.
5981          * Media feature tag used: g.3gpp.ps2cs-srvcc-orig-pre-alerting.
5982          */
5983         public static final int PREALERTING_SRVCC_SUPPORT = 2;
5984 
5985         /**
5986          * SRVCC access transfer for calls in mid-call phase as per 3GPP 24.237.
5987          * and IR.64 Section 4.4.
5988          * <p>This means UE supports the MSC server assisted mid-call feature.
5989          * Media feature tag used: g.3gpp.mid-call.
5990          */
5991         public static final int MIDCALL_SRVCC_SUPPORT = 3;
5992 
5993         /**
5994          * List of different SRVCC types supported as defined in 3GPP 24.237.
5995          *
5996          * <p> Possible values are,
5997          * {@link #BASIC_SRVCC_SUPPORT},
5998          * {@link #ALERTING_SRVCC_SUPPORT},
5999          * {@link #PREALERTING_SRVCC_SUPPORT},
6000          * {@link #MIDCALL_SRVCC_SUPPORT}
6001          *
6002          * <p> Reference: IR.64, 3GPP 24.237, 3GPP 23.216
6003          */
6004         public static final String KEY_SRVCC_TYPE_INT_ARRAY =
6005                 KEY_PREFIX + "srvcc_type_int_array";
6006 
6007         /**
6008          * Specifies the ringing timer for Mobile terminated calls.
6009          *
6010          * <p>Ringing timer starts when the device sends SIP 180 Ringing in
6011          * response to a received SIP INVITE. If Ringing timer expires,
6012          * the device sends SIP 486 response.
6013          */
6014         public static final String KEY_RINGING_TIMER_MILLIS_INT =
6015                 KEY_PREFIX + "ringing_timer_millis_int";
6016 
6017         /**
6018          * Specifies the ringback timer for Mobile originated calls.
6019          *
6020          * <p>Ringback timer starts when the device receives SIP 180 Ringing
6021          * in response to its SIP INVITE. If Ringback timer expires,
6022          * the device sends SIP CANCEL.
6023          */
6024         public static final String KEY_RINGBACK_TIMER_MILLIS_INT =
6025                 KEY_PREFIX + "ringback_timer_millis_int";
6026 
6027         /**
6028          * Specifies the timeout value for RTP inactivity for audio media.
6029          * <p>On timer expiry, call will end.
6030          * See {@link #KEY_AUDIO_INACTIVITY_CALL_END_REASONS_INT_ARRAY} for more
6031          * details.
6032          * <p> Value of 0 means this timer is not enabled.
6033          */
6034         public static final String KEY_AUDIO_RTP_INACTIVITY_TIMER_MILLIS_INT =
6035                 KEY_PREFIX + "audio_rtp_inactivity_timer_millis_int";
6036 
6037         /**
6038          * Specifies the timeout value for RTCP inactivity for audio media.
6039          * <p>On timer expiry, call will end.
6040          * See {@link #KEY_AUDIO_INACTIVITY_CALL_END_REASONS_INT_ARRAY} for more
6041          * details.
6042          * <p> Value of 0 means this timer is not enabled.
6043          */
6044         public static final String KEY_AUDIO_RTCP_INACTIVITY_TIMER_MILLIS_INT =
6045                 KEY_PREFIX + "audio_rtcp_inactivity_timer_millis_int";
6046 
6047         /**
6048          * Used to specify the conference factory URI.
6049          *
6050          * <p>If this is empty, then conference URI is generated from MCC/MNC as
6051          * specified in clause 13.10 of 3GPP 23.003.
6052          */
6053         public static final String KEY_CONFERENCE_FACTORY_URI_STRING =
6054                 KEY_PREFIX + "conference_factory_uri_string";
6055 
6056         /** @hide */
6057         @IntDef({
6058             SESSION_REFRESH_METHOD_INVITE,
6059             SESSION_REFRESH_METHOD_UPDATE_PREFERRED
6060         })
6061 
6062         public @interface SessionRefreshMethod {}
6063 
6064         /**
6065          * SIP INVITE is used for Session Refresh
6066          */
6067         public static final int SESSION_REFRESH_METHOD_INVITE = 0;
6068 
6069         /**
6070          * Both SIP INVITE and UPDATE are used for session refresh.
6071          *
6072          * <p>SIP UPDATE will be used if UPDATE is in 'Allow' header.
6073          * If UPDATE is not in 'Allow' header, then INVITE will be used.
6074          */
6075         public static final int SESSION_REFRESH_METHOD_UPDATE_PREFERRED = 1;
6076 
6077         /**
6078          * This is used to specify the method used for session refresh.
6079          *
6080          * <p>Possible values are,
6081          * {@link #SESSION_REFRESH_METHOD_INVITE},
6082          * {@link #SESSION_REFRESH_METHOD_UPDATE_PREFERRED}
6083          */
6084         public static final String KEY_SESSION_REFRESH_METHOD_INT =
6085                 KEY_PREFIX + "session_refresh_method_int";
6086 
6087         /**
6088          * Flag specifying whether the 'From' header field is used for determination of
6089          * the originating party identity in Originating Identification Presentation(OIP)
6090          * service.
6091          *
6092          * <p>If {@code true}: Indicates that the 'From' header field is used for
6093          * determination of the originating party identity in OIP.
6094          * {@code false} otherwise.
6095          */
6096         public static final String KEY_OIP_SOURCE_FROM_HEADER_BOOL  =
6097                 KEY_PREFIX + "oip_source_from_header_bool";
6098 
6099         /**
6100          * Specifies the timer value for INVITE to the first 1xx response
6101          * (including 100 trying). If no response is received at timer expiry,
6102          * call is redialed over CS.
6103          *
6104          * <p> Reference: 24.173 Table L.1
6105          */
6106         public static final String KEY_MO_CALL_REQUEST_TIMEOUT_MILLIS_INT =
6107                 KEY_PREFIX + "mo_call_request_timeout_millis_int";
6108 
6109         /**
6110          * List of various reasons of media inactivity for which
6111          * voice/emergency call will end.
6112          *
6113          * <p>Possible values are,
6114          * {@link Ims#RTCP_INACTIVITY_ON_HOLD},
6115          * {@link Ims#RTCP_INACTIVITY_ON_CONNECTED},
6116          * {@link Ims#RTP_INACTIVITY_ON_CONNECTED}
6117          * {@link Ims#E911_RTCP_INACTIVITY_ON_CONNECTED},
6118          * {@link Ims#E911_RTP_INACTIVITY_ON_CONNECTED}
6119          */
6120         public static final String KEY_AUDIO_INACTIVITY_CALL_END_REASONS_INT_ARRAY =
6121                 KEY_PREFIX + "audio_inactivity_call_end_reasons_int_array";
6122 
6123         /**
6124          * Specifies the AS (Application Specific) SDP modifier for audio media.
6125          *
6126          * <p>This value is expressed in kilobits per second.
6127          * Reference: RFC 3556 Section 2.
6128          */
6129         public static final String KEY_AUDIO_AS_BANDWIDTH_KBPS_INT =
6130                 KEY_PREFIX + "audio_as_bandwidth_kbps_int";
6131 
6132         /**
6133          * Specifies the RS SDP modifier for audio media. This indicates the RTCP
6134          * bandwidth allocated to active data senders for audio media.
6135          *
6136          * <p>This value is expressed in bits per second.
6137          * Reference: RFC 3556 Section 2.
6138          */
6139         public static final String KEY_AUDIO_RS_BANDWIDTH_BPS_INT =
6140                 KEY_PREFIX + "audio_rs_bandwidth_bps_int";
6141 
6142         /**
6143          * Specifies the RR SDP modifier for audio media. This indicates the RTCP
6144          * bandwidth allocated to receivers for audio media.
6145          *
6146          * <p>This value is expressed in bits per second.
6147          * Reference: RFC 3556 Section 2.
6148          */
6149         public static final String KEY_AUDIO_RR_BANDWIDTH_BPS_INT =
6150                 KEY_PREFIX + "audio_rr_bandwidth_bps_int";
6151 
6152         /**
6153          * Specifies the Audio Codec capability. This contains a list of payload types
6154          * representing different audio codec instances.
6155          *
6156          * <p> The priority of the codecs is EVS, AMRWB, AMRNB,  DTMF WB, DTMF NB
6157          * from highest to lowest. In each individual codec, the priority is determined
6158          * by the order of the payload types from highest to lowest.
6159          *
6160          * <p>Possible keys in this bundle are,
6161          * <UL>
6162          *     <LI>{@link #KEY_EVS_PAYLOAD_TYPE_INT_ARRAY}</LI>
6163          *     <LI>{@link #KEY_AMRWB_PAYLOAD_TYPE_INT_ARRAY}</LI>
6164          *     <LI>{@link #KEY_AMRNB_PAYLOAD_TYPE_INT_ARRAY}</LI>
6165          *     <LI>{@link #KEY_DTMFWB_PAYLOAD_TYPE_INT_ARRAY}</LI>
6166          *     <LI>{@link #KEY_DTMFNB_PAYLOAD_TYPE_INT_ARRAY}</LI>
6167          * </UL>
6168          * <p>To specify payload descriptions for each of the audio payload types, see
6169          * <UL>
6170          *     <LI>{@link #KEY_EVS_PAYLOAD_DESCRIPTION_BUNDLE}</LI>
6171          *     <LI>{@link #KEY_AMRNB_PAYLOAD_DESCRIPTION_BUNDLE}</LI>
6172          *     <LI>{@link #KEY_AMRWB_PAYLOAD_DESCRIPTION_BUNDLE}</LI>
6173          * </UL>
6174          */
6175         public static final String KEY_AUDIO_CODEC_CAPABILITY_PAYLOAD_TYPES_BUNDLE =
6176                 KEY_PREFIX + "audio_codec_capability_payload_types_bundle";
6177 
6178         /**
6179          * A list of integers representing the different payload types
6180          * in EVS codec in priority order from highest to lowest.
6181          * <p>Payload type is an integer in dynamic payload type range 96-127
6182          * as per RFC RFC 3551 Section 6.
6183          */
6184         public static final String KEY_EVS_PAYLOAD_TYPE_INT_ARRAY  =
6185                 KEY_PREFIX + "evs_payload_type_int_array";
6186 
6187         /**
6188          * A list of integers representing the different payload types
6189          * in AMR-WB codec in priority order from highest to lowest.
6190          * <p>Payload type is an integer in dynamic payload type range 96-127
6191          * as per RFC RFC 3551 Section 6.
6192          */
6193         public static final String KEY_AMRWB_PAYLOAD_TYPE_INT_ARRAY  =
6194                 KEY_PREFIX + "amrwb_payload_type_int_array";
6195 
6196         /**
6197          * A list of integers representing the different payload types
6198          * in AMR-NB codec in priority order from highest to lowest.
6199          * <p>Payload type is an integer in dynamic payload type range 96-127
6200          * as per RFC RFC 3551 Section 6.
6201          */
6202         public static final String KEY_AMRNB_PAYLOAD_TYPE_INT_ARRAY  =
6203                 KEY_PREFIX + "amrnb_payload_type_int_array";
6204 
6205         /**
6206          * A list of integers representing the different payload types
6207          * in DTMF WB codec in priority order from highest to lowest.
6208          * <p>Payload type is an integer in dynamic payload type range 96-127
6209          * as per RFC RFC 3551 Section 6.
6210          */
6211         public static final String KEY_DTMFWB_PAYLOAD_TYPE_INT_ARRAY  =
6212                 KEY_PREFIX + "dtmfwb_payload_type_int_array";
6213 
6214         /**
6215          * A list of integers representing the different payload types
6216          * in DTMF NB codec in priority order from highest to lowest.
6217          * <p>Payload type is an integer in dynamic payload type range 96-127
6218          * as per RFC RFC 3551 Section 6.
6219          */
6220         public static final String KEY_DTMFNB_PAYLOAD_TYPE_INT_ARRAY  =
6221                 KEY_PREFIX + "dtmfnb_payload_type_int_array";
6222 
6223         /** @hide */
6224         @IntDef({
6225             BANDWIDTH_EFFICIENT,
6226             OCTET_ALIGNED
6227         })
6228 
6229         public @interface AmrPayloadFormat {}
6230 
6231         /** AMR NB/WB Payload format is bandwidth-efficient. */
6232         public static final int BANDWIDTH_EFFICIENT = 0;
6233 
6234         /** AMR NB/WB Payload format is octet-aligned. */
6235         public static final int OCTET_ALIGNED = 1;
6236 
6237         /**
6238          * Specifies the payload format of the AMR-NB/AMR-WB codec.
6239          *
6240          * <p>Possible values are,
6241          * {@link #BANDWIDTH_EFFICIENT},
6242          * {@link #OCTET_ALIGNED}
6243 
6244          * <p>If value is not specified, payload format is
6245          * {@link #BANDWIDTH_EFFICIENT}.
6246          *
6247          * <p>Reference: RFC 4867 Section 8.1.
6248          */
6249         public static final String KEY_AMR_CODEC_ATTRIBUTE_PAYLOAD_FORMAT_INT  =
6250                 KEY_PREFIX + "amr_codec_attribute_payload_format_int";
6251 
6252         /**
6253          * Restricts the active mode set to a subset of all modes in the codec.
6254          *
6255          * <p>This attribute is optional. If value is set, then session mode
6256          * set is restricted to the modes specified in this list. If this value
6257          * is not specified, then all available modes in the codec are allowed.
6258          * This attribute is applicable for AMR-WB, AMR-NB,
6259          * and EVS codec (operating in AMR-WB IO Mode).
6260          *
6261          * <p>Possible values are subset of,
6262          * [0,1,2,3,4,5,6,7,8] - AMRWB with the modes representing nine speech codec modes
6263          * with bit rates of 6.6, 8.85, 12.65, 14.25,  15.85, 18.25, 19.85, 23.05, 23.85 kbps.
6264          * [0,1,2,3,4,5,6,7] - AMRNB  with the modes representing eight speech codec modes
6265          * with bit rates of 4.75, 5.15, 5.90, 6.70, 7.40, 7.95, 10.2, 12.2 kbps.
6266          *
6267          * <p>If value is not specified, then it means device supports all
6268          * modes in the codec but not included in SDP.
6269          *
6270          * <p>Reference: RFC 4867 Section 8.1, 3GPP 26.445 A.3.1
6271          */
6272         public static final String KEY_AMR_CODEC_ATTRIBUTE_MODESET_INT_ARRAY  =
6273                 KEY_PREFIX + "amr_codec_attribute_modeset_int_array";
6274 
6275         /**
6276          * Specifies the codec attributes of different payload types in
6277          * the AMR NarrowBand (AMR-NB) codec.
6278          *
6279          * <p> The keys in this bundle are payload types specified
6280          * in {@link #KEY_AMRNB_PAYLOAD_TYPE_INT_ARRAY}.
6281          *
6282          * <p>Codec attributes allowed as part of AMR-NB codec bundle are,
6283          * <UL>
6284          *     <LI>{@link #KEY_AMR_CODEC_ATTRIBUTE_PAYLOAD_FORMAT_INT}</LI>
6285          *     <LI>{@link #KEY_AMR_CODEC_ATTRIBUTE_MODESET_INT_ARRAY}</LI>
6286          * </UL>
6287          *
6288          * <p> If this bundle is not configured and AMRNB payload type is added
6289          * in {@link #KEY_AMRNB_PAYLOAD_TYPE_INT_ARRAY}, then default
6290          * values as in the individual codec attribute to be used
6291          * for that payload type.
6292          */
6293         public static final String KEY_AMRNB_PAYLOAD_DESCRIPTION_BUNDLE =
6294                 KEY_PREFIX + "amrnb_payload_description_bundle";
6295 
6296         /**
6297          * Specifies the codec attributes of different payload types in
6298          * the AMR WideBand (AMR-WB) codec.
6299          *
6300          * <p> The keys in this bundle are payload types specified
6301          * in {@link #KEY_AMRWB_PAYLOAD_TYPE_INT_ARRAY}.
6302          *
6303          * <p>Codec attributes allowed as part of AMR-NB codec bundle are,
6304          * <UL>
6305          *     <LI>{@link #KEY_AMR_CODEC_ATTRIBUTE_PAYLOAD_FORMAT_INT}</LI>
6306          *     <LI>{@link #KEY_AMR_CODEC_ATTRIBUTE_MODESET_INT_ARRAY}</LI>
6307          * </UL>
6308          *
6309          * <p> If this bundle is not configured and AMRWB payload type is added
6310          * in {@link #KEY_AMRWB_PAYLOAD_TYPE_INT_ARRAY}, then default
6311          * values as in the individual codec attribute to be used
6312          * for that payload type.
6313          */
6314         public static final String KEY_AMRWB_PAYLOAD_DESCRIPTION_BUNDLE =
6315                 KEY_PREFIX + "amrwb_payload_description_bundle";
6316 
6317         /** @hide */
6318         @IntDef({
6319             EVS_OPERATIONAL_MODE_PRIMARY,
6320             EVS_OPERATIONAL_MODE_AMRWB_IO
6321         })
6322 
6323         public @interface EvsOperationalMode {}
6324 
6325         /**  Indicates the EVS primary mode. 3GPP 26.445 Section 3.1 */
6326         public static final int EVS_OPERATIONAL_MODE_PRIMARY = 0;
6327 
6328         /** Indicates the EVS AMR-WB IO mode. 3GPP 26.445 Section 3.1 */
6329         public static final int EVS_OPERATIONAL_MODE_AMRWB_IO = 1;
6330 
6331         /**
6332          * Specifies if the EVS mode used is EVS primary mode
6333          * or EVS AMR-WB IO mode.
6334          *
6335          * <p>Possible values are,
6336          * {@link #EVS_OPERATIONAL_MODE_PRIMARY},
6337          * {@link #EVS_OPERATIONAL_MODE_AMRWB_IO}
6338          *
6339          * <p>If this is not present, then {@link #EVS_OPERATIONAL_MODE_PRIMARY} is used.
6340          * <p>Reference: 3GPP 26.445 Section 3.1.
6341          */
6342         public static final String KEY_EVS_CODEC_ATTRIBUTE_MODE_SWITCH_INT =
6343                 KEY_PREFIX + "evs_codec_attribute_mode_switch_int";
6344 
6345         /** @hide */
6346         @IntDef({
6347             EVS_ENCODED_BW_TYPE_NB,
6348             EVS_ENCODED_BW_TYPE_WB,
6349             EVS_ENCODED_BW_TYPE_SWB,
6350             EVS_ENCODED_BW_TYPE_FB,
6351             EVS_ENCODED_BW_TYPE_NB_WB,
6352             EVS_ENCODED_BW_TYPE_NB_WB_SWB,
6353             EVS_ENCODED_BW_TYPE_NB_WB_SWB_FB,
6354             EVS_ENCODED_BW_TYPE_WB_SWB,
6355             EVS_ENCODED_BW_TYPE_WB_SWB_FB
6356         })
6357 
6358         public @interface EvsEncodedBwType {}
6359 
6360         /**
6361          * EVS encoded Bandwidth is Narrow Band (NB).
6362          * Reference: 3GPP 26.441 Table 1.
6363          */
6364         public static final int EVS_ENCODED_BW_TYPE_NB = 0;
6365 
6366         /**
6367          * EVS encoded Bandwidth is Wide Band (WB).
6368          * Reference: 3GPP 26.441 Table 1.
6369          */
6370         public static final int EVS_ENCODED_BW_TYPE_WB = 1;
6371 
6372         /**
6373          * EVS encoded Bandwidth is Super WideBand (SWB).
6374          * Reference: 3GPP 26.441 Table 1.
6375          */
6376         public static final int EVS_ENCODED_BW_TYPE_SWB = 2;
6377 
6378         /**
6379          * EVS encoded Bandwidth is Full Band (FB).
6380          * Reference: 3GPP 26.441 Table 1.
6381          */
6382         public static final int EVS_ENCODED_BW_TYPE_FB = 3;
6383 
6384         /**
6385          * EVS encoded Bandwidth is in the range NB,WB.
6386          * Reference: 3GPP 26.441 Table 1.
6387          */
6388         public static final int EVS_ENCODED_BW_TYPE_NB_WB = 4;
6389 
6390         /**
6391          * EVS encoded Bandwidth is in the range NB,WB,SWB.
6392          * Reference: 3GPP 26.441 Table 1.
6393          */
6394         public static final int EVS_ENCODED_BW_TYPE_NB_WB_SWB = 5;
6395 
6396         /**
6397          * EVS encoded Bandwidth is in the range NB,WB,SWB,FB.
6398          * Reference: 3GPP 26.441 Table 1.
6399          */
6400         public static final int EVS_ENCODED_BW_TYPE_NB_WB_SWB_FB = 6;
6401 
6402         /**
6403          * EVS encoded Bandwidth is in the range WB,SWB.
6404          * Reference: 3GPP 26.441 Table 1.
6405          */
6406         public static final int EVS_ENCODED_BW_TYPE_WB_SWB = 7;
6407 
6408         /**
6409          * EVS encoded Bandwidth is in the range WB,SWB,FB.
6410          * Reference: 3GPP 26.441 Table 1.
6411          */
6412         public static final int EVS_ENCODED_BW_TYPE_WB_SWB_FB = 8;
6413 
6414         /**
6415          * Specifies the EVS codec encoding bandwidth options.
6416          *
6417          * Possible values are,
6418          * {@link #EVS_ENCODED_BW_TYPE_NB},
6419          * {@link #EVS_ENCODED_BW_TYPE_WB},
6420          * {@link #EVS_ENCODED_BW_TYPE_SWB},
6421          * {@link #EVS_ENCODED_BW_TYPE_FB},
6422          * {@link #EVS_ENCODED_BW_TYPE_NB_WB},
6423          * {@link #EVS_ENCODED_BW_TYPE_NB_WB_SWB},
6424          * {@link #EVS_ENCODED_BW_TYPE_NB_WB_SWB_FB},
6425          * {@link #EVS_ENCODED_BW_TYPE_WB_SWB},
6426          * {@link #EVS_ENCODED_BW_TYPE_WB_SWB_FB}
6427          *
6428          * If this key is not specified, then the behavior is same as
6429          * value {@link #EVS_ENCODED_BW_TYPE_NB_WB_SWB}
6430          *
6431          * <p>Reference: 3GPP 26.441 Table 1.
6432          */
6433         public static final String KEY_EVS_CODEC_ATTRIBUTE_BANDWIDTH_INT  =
6434                 KEY_PREFIX + "evs_codec_attribute_bandwidth_int";
6435 
6436         /** @hide */
6437         @IntDef({
6438             EVS_PRIMARY_MODE_BITRATE_5_9_KBPS,
6439             EVS_PRIMARY_MODE_BITRATE_7_2_KBPS,
6440             EVS_PRIMARY_MODE_BITRATE_8_0_KBPS,
6441             EVS_PRIMARY_MODE_BITRATE_9_6_KBPS,
6442             EVS_PRIMARY_MODE_BITRATE_13_2_KBPS,
6443             EVS_PRIMARY_MODE_BITRATE_16_4_KBPS,
6444             EVS_PRIMARY_MODE_BITRATE_24_4_KBPS,
6445             EVS_PRIMARY_MODE_BITRATE_32_0_KBPS,
6446             EVS_PRIMARY_MODE_BITRATE_48_0_KBPS,
6447             EVS_PRIMARY_MODE_BITRATE_64_0_KBPS,
6448             EVS_PRIMARY_MODE_BITRATE_96_0_KBPS,
6449             EVS_PRIMARY_MODE_BITRATE_128_0_KBPS
6450         })
6451 
6452         public @interface EvsPrimaryModeBitRate {}
6453 
6454         /** EVS primary mode with bitrate 5.9 kbps */
6455         public static final int EVS_PRIMARY_MODE_BITRATE_5_9_KBPS = 0;
6456 
6457         /** EVS primary mode with bitrate 7.2 kbps */
6458         public static final int EVS_PRIMARY_MODE_BITRATE_7_2_KBPS = 1;
6459 
6460         /** EVS primary mode with bitrate 8.0 kbps */
6461         public static final int EVS_PRIMARY_MODE_BITRATE_8_0_KBPS = 2;
6462 
6463         /** EVS primary mode with bitrate 9.6 kbps */
6464         public static final int EVS_PRIMARY_MODE_BITRATE_9_6_KBPS = 3;
6465 
6466         /** EVS primary mode with bitrate 13.2 kbps */
6467         public static final int EVS_PRIMARY_MODE_BITRATE_13_2_KBPS = 4;
6468 
6469         /** EVS primary mode with bitrate 16.4 kbps */
6470         public static final int EVS_PRIMARY_MODE_BITRATE_16_4_KBPS = 5;
6471 
6472         /** EVS primary mode with bitrate 24.4 kbps */
6473         public static final int EVS_PRIMARY_MODE_BITRATE_24_4_KBPS = 6;
6474 
6475         /** EVS primary mode with bitrate 32.0 kbps */
6476         public static final int EVS_PRIMARY_MODE_BITRATE_32_0_KBPS = 7;
6477 
6478         /** EVS primary mode with bitrate 48.0 kbps */
6479         public static final int EVS_PRIMARY_MODE_BITRATE_48_0_KBPS = 8;
6480 
6481         /** EVS primary mode with bitrate 64.0 kbps */
6482         public static final int EVS_PRIMARY_MODE_BITRATE_64_0_KBPS = 9;
6483 
6484         /** EVS primary mode with bitrate 96.0 kbps */
6485         public static final int EVS_PRIMARY_MODE_BITRATE_96_0_KBPS = 10;
6486 
6487         /** EVS primary mode with bitrate 128.0 kbps */
6488         public static final int EVS_PRIMARY_MODE_BITRATE_128_0_KBPS = 11;
6489 
6490         /**
6491          * Specifies the range of source codec bit-rate for EVS Primary mode
6492          * in the session. This is expressed in kilobits per second and
6493          * applicable for both the send and the receive directions.
6494          *
6495          * <p>The range is specified as integer aray of size 2,
6496          * represented as [low, high], where low <= high
6497          *
6498          * <p>Possible values for low and high are,
6499          * {@link #EVS_PRIMARY_MODE_BITRATE_5_9_KBPS},
6500          * {@link #EVS_PRIMARY_MODE_BITRATE_7_2_KBPS},
6501          * {@link #EVS_PRIMARY_MODE_BITRATE_8_0_KBPS},
6502          * {@link #EVS_PRIMARY_MODE_BITRATE_9_6_KBPS},
6503          * {@link #EVS_PRIMARY_MODE_BITRATE_13_2_KBPS},
6504          * {@link #EVS_PRIMARY_MODE_BITRATE_16_4_KBPS},
6505          * {@link #EVS_PRIMARY_MODE_BITRATE_24_4_KBPS},
6506          * {@link #EVS_PRIMARY_MODE_BITRATE_32_0_KBPS},
6507          * {@link #EVS_PRIMARY_MODE_BITRATE_48_0_KBPS},
6508          * {@link #EVS_PRIMARY_MODE_BITRATE_64_0_KBPS},
6509          * {@link #EVS_PRIMARY_MODE_BITRATE_96_0_KBPS},
6510          * {@link #EVS_PRIMARY_MODE_BITRATE_128_0_KBPS}
6511          *
6512          * If this key is not specified, then the behavior is same as
6513          * value {@link #EVS_PRIMARY_MODE_BITRATE_24_4_KBPS}
6514          *
6515          * <p>Reference: 3GPP 26.445 Section A.3.1
6516          */
6517         public static final String KEY_EVS_CODEC_ATTRIBUTE_BITRATE_INT_ARRAY  =
6518                 KEY_PREFIX + "evs_codec_attribute_bitrate_int_array";
6519 
6520         /**
6521          * Specifies the Channel aware mode (ch-aw-recv) for the receive direction.
6522          * This is applicable for EVS codec.
6523          *
6524          * <p>Permissible values  are -1, 0, 2, 3, 5, and 7.
6525          * If this key is not specified, then the behavior is same as value 0
6526          * (channel aware mode disabled).
6527          * <p> If this key is configured, then device is expected to send
6528          * this parameter in the SDP offer.
6529          *
6530          * <p>Reference: 3GPP TS 26.445 section 4.4.5, 3GPP 26.445 Section A.3.1
6531          */
6532         public static final String KEY_EVS_CODEC_ATTRIBUTE_CH_AW_RECV_INT  =
6533                 KEY_PREFIX + "evs_codec_attribute_ch_aw_recv_int";
6534 
6535         /**
6536          * Specifies whether to limit the session to header-full format.
6537          * This applies to both directions in the session. This attribute
6538          * is applicable for EVS codec.
6539          *
6540          * <p>Permissible values are 0, 1
6541          * If hf-only is 1, only Header-Full format is used and hf-only is
6542          * included in the SDP.
6543          * <p>If hf-only is 0, both Compact and Header-Full formats are used
6544          * and hf-only is included in the SDP.
6545          * <p>If this key is not present, then both Compact
6546          * and Header-Full formats are used and hf-only is not included in
6547          * the SDP.
6548          * <p> If this key is configured, then device is expected to send
6549          * this parameter in the SDP offer if operator required it.
6550          *
6551          * <p>Reference: 3GPP 26.445 Section A.3.1.
6552          */
6553         public static final String KEY_EVS_CODEC_ATTRIBUTE_HF_ONLY_INT  =
6554                 KEY_PREFIX + "evs_codec_attribute_hf_only_int";
6555 
6556         /**
6557          * Specifies whether DTX (Discontinuous transmission) is enabled
6558          * or not. This applies to both directions in the session.
6559          * This attribute is applicable for EVS codec and can be used
6560          * in both EVS Primary mode and EVS AMR-WB IO mode.
6561          *
6562          * <p>If {@code true}: Indicates DTX is enabled.
6563          * If {@code false}: Indicates DTX is disabled.
6564          *
6565          * <p>If this is not present, then default value of {@code true}
6566          * will apply.
6567          * <p>Reference: 3GPP TS 26.445 Section A.3.1.
6568          */
6569         public static final String KEY_EVS_CODEC_ATTRIBUTE_DTX_BOOL  =
6570                 KEY_PREFIX + "evs_codec_attribute_dtx_bool";
6571 
6572         /**
6573          * This is used if further restriction is required on DTX in the
6574          * receive direction. This attribute is applicable for EVS codec
6575          * and can be used in both EVS Primary mode and EVS AMR-WB IO mode.
6576          *
6577          * <p> If this value is true or not present, then DTX setting is
6578          * dependent on {@link #KEY_EVS_CODEC_ATTRIBUTE_DTX_BOOL}.
6579          *
6580          * <p> If this is not present, then default value of {@code true}
6581          * will apply.
6582          *
6583          * <p>Reference: 3GPP TS 26.445 Section A.3.1.
6584          */
6585         public static final String KEY_EVS_CODEC_ATTRIBUTE_DTX_RECV_BOOL =
6586                 KEY_PREFIX + "evs_codec_attribute_dtx_recv_bool";
6587 
6588         /**
6589          * Specifies the number of audio channels.
6590          * If this is not present, then default value of 1 will apply.
6591          *
6592          * <p>Reference: RFC 3551
6593          */
6594         public static final String KEY_EVS_CODEC_ATTRIBUTE_CHANNELS_INT  =
6595                 KEY_PREFIX + "evs_codec_attribute_channels_int";
6596 
6597         /**
6598          * Indicates whether the Codec Mode Request (CMR) is supported
6599          * for the session.
6600          * This attribute is applicable for EVS codec in Primary Mode only.
6601          *
6602          * <p>Possible values are -1, 0, 1. If this key is not present,
6603          * then behavior as per value 0 is applicable.
6604          *
6605          * <p>Reference: 3GPP 26.445 Section A.3.1, 3GPP 26.114 Table 6.2a
6606          */
6607         public static final String KEY_EVS_CODEC_ATTRIBUTE_CMR_INT  =
6608                 KEY_PREFIX + "codec_attribute_cmr_int";
6609 
6610         /**
6611          * Specifies the number of frame-blocks. This indicates the frame-block period
6612          * at which codec mode changes are allowed for the sender. This attribute is
6613          * applicable for EVS codec in AMR-WB IO mode and AMR-WB.
6614          *
6615          * <p>Possible values are 1, 2.
6616          * If the key is not present, behavior as per value 1 is applicable and this
6617          * parameter is not included in SDP.
6618          *
6619          * <p>Reference: RFC 4867 Section 8.1.
6620          */
6621         public static final String KEY_CODEC_ATTRIBUTE_MODE_CHANGE_PERIOD_INT  =
6622                 KEY_PREFIX + "codec_attribute_mode_change_period_int";
6623 
6624         /**
6625          * Specifies if the client is capable to transmit with a restricted mode
6626          * change period. This attribute is applicable for EVS codec in
6627          * AMR-WB IO mode and AMR-WB.
6628          *
6629          * <p>Possible values are 1, 2. If this key is not present,
6630          * then behavior as per value 1 is applicable and this
6631          * parameter is not included in SDP.
6632          *
6633          * <p>Reference: RFC 4867 Section 8.1.
6634          */
6635         public static final String KEY_CODEC_ATTRIBUTE_MODE_CHANGE_CAPABILITY_INT  =
6636                 KEY_PREFIX + "codec_attribute_mode_change_capability_int";
6637 
6638         /**
6639          * Specifies the allowed mode changes for the sender in the active mode set.
6640          * This attribute is applicable for EVS codec in AMR-WB IO mode
6641          * and AMR-WB.
6642          *
6643          * <p>Possible values are 0, 1.  If value is 1, then the sender should only
6644          * perform mode changes to the neighboring modes in the active codec mode set.
6645          * If value is 0, then mode changes between any two modes
6646          * in the active codec mode set is allowed.
6647          * If the key is not present, behavior as per value 0 is applicable and this
6648          * parameter is not included in SDP.
6649          *
6650          * <p>Reference: RFC 4867 Section 8.1.
6651          */
6652         public static final String KEY_CODEC_ATTRIBUTE_MODE_CHANGE_NEIGHBOR_INT  =
6653                 KEY_PREFIX + "codec_attribute_mode_change_neighbor_int";
6654 
6655         /**
6656          * Specifies the codec attributes of different payload types in
6657          * the EVS codec.
6658          *
6659          * <p> The keys in this bundle are payload types specified
6660          * in {@link #KEY_EVS_PAYLOAD_TYPE_INT_ARRAY}.
6661          *
6662          * <p>Codec attributes allowed as part of EVS codec are,
6663          * <UL>
6664          *     <LI>{@link #KEY_EVS_CODEC_ATTRIBUTE_BANDWIDTH_INT}</LI>
6665          *     <LI>{@link #KEY_EVS_CODEC_ATTRIBUTE_BITRATE_INT_ARRAY}</LI>
6666          *     <LI>{@link #KEY_EVS_CODEC_ATTRIBUTE_CH_AW_RECV_INT}</LI>
6667          *     <LI>{@link #KEY_EVS_CODEC_ATTRIBUTE_HF_ONLY_INT}</LI>
6668          *     <LI>{@link #KEY_EVS_CODEC_ATTRIBUTE_DTX_BOOL}</LI>
6669          *     <LI>{@link #KEY_EVS_CODEC_ATTRIBUTE_DTX_RECV_BOOL}</LI>
6670          *     <LI>{@link #KEY_EVS_CODEC_ATTRIBUTE_MODE_SWITCH_INT}</LI>
6671          *     <LI>{@link #KEY_EVS_CODEC_ATTRIBUTE_CMR_INT}</LI>
6672          *     <LI>{@link #KEY_EVS_CODEC_ATTRIBUTE_CHANNELS_INT}</LI>
6673          *     <LI>{@link #KEY_CODEC_ATTRIBUTE_MODE_CHANGE_PERIOD_INT}</LI>
6674          *     <LI>{@link #KEY_CODEC_ATTRIBUTE_MODE_CHANGE_CAPABILITY_INT}</LI>
6675          *     <LI>{@link #KEY_CODEC_ATTRIBUTE_MODE_CHANGE_NEIGHBOR_INT}</LI>
6676          * </UL>
6677          */
6678         public static final String KEY_EVS_PAYLOAD_DESCRIPTION_BUNDLE =
6679                 KEY_PREFIX + "evs_payload_description_bundle";
6680 
getDefaults()6681         private static PersistableBundle getDefaults() {
6682             PersistableBundle defaults = new PersistableBundle();
6683             defaults.putBoolean(KEY_CARRIER_VOLTE_ROAMING_AVAILABLE_BOOL, true);
6684             defaults.putBoolean(KEY_INCLUDE_CALLER_ID_SERVICE_CODES_IN_SIP_INVITE_BOOL, false);
6685             defaults.putBoolean(KEY_MULTIENDPOINT_SUPPORTED_BOOL, false);
6686             defaults.putBoolean(KEY_SESSION_TIMER_SUPPORTED_BOOL, true);
6687             defaults.putBoolean(KEY_OIP_SOURCE_FROM_HEADER_BOOL, false);
6688             defaults.putBoolean(KEY_PRACK_SUPPORTED_FOR_18X_BOOL, false);
6689             defaults.putBoolean(KEY_VOICE_QOS_PRECONDITION_SUPPORTED_BOOL, true);
6690             defaults.putBoolean(KEY_VOICE_ON_DEFAULT_BEARER_SUPPORTED_BOOL, false);
6691 
6692             defaults.putInt(KEY_SESSION_REFRESHER_TYPE_INT, SESSION_REFRESHER_TYPE_UAC);
6693             defaults.putInt(KEY_SESSION_PRIVACY_TYPE_INT, SESSION_PRIVACY_TYPE_HEADER);
6694             defaults.putInt(KEY_SESSION_REFRESH_METHOD_INT,
6695                             SESSION_REFRESH_METHOD_UPDATE_PREFERRED);
6696             defaults.putInt(KEY_CONFERENCE_SUBSCRIBE_TYPE_INT,
6697                             CONFERENCE_SUBSCRIBE_TYPE_OUT_OF_DIALOG);
6698             defaults.putInt(KEY_AUDIO_RTP_INACTIVITY_TIMER_MILLIS_INT, 20000);
6699             defaults.putInt(KEY_AUDIO_RTCP_INACTIVITY_TIMER_MILLIS_INT, 20000);
6700             defaults.putInt(KEY_DEDICATED_BEARER_WAIT_TIMER_MILLIS_INT, 8000);
6701             defaults.putInt(KEY_RINGING_TIMER_MILLIS_INT, 90000);
6702             defaults.putInt(KEY_RINGBACK_TIMER_MILLIS_INT, 90000);
6703             defaults.putInt(KEY_MO_CALL_REQUEST_TIMEOUT_MILLIS_INT, 5000);
6704             defaults.putInt(KEY_SESSION_EXPIRES_TIMER_SEC_INT, 1800);
6705             defaults.putInt(KEY_MINIMUM_SESSION_EXPIRES_TIMER_SEC_INT, 90);
6706             defaults.putInt(KEY_AUDIO_AS_BANDWIDTH_KBPS_INT, 41);
6707             defaults.putInt(KEY_AUDIO_RS_BANDWIDTH_BPS_INT, 600);
6708             defaults.putInt(KEY_AUDIO_RR_BANDWIDTH_BPS_INT, 2000);
6709 
6710             defaults.putIntArray(
6711                     KEY_AUDIO_INACTIVITY_CALL_END_REASONS_INT_ARRAY,
6712                     new int[] {
6713                         Ims.RTCP_INACTIVITY_ON_CONNECTED,
6714                         Ims.RTP_INACTIVITY_ON_CONNECTED,
6715                         Ims.E911_RTCP_INACTIVITY_ON_CONNECTED,
6716                         Ims.RTCP_INACTIVITY_ON_HOLD
6717                     });
6718 
6719             defaults.putIntArray(
6720                     KEY_SRVCC_TYPE_INT_ARRAY,
6721                     new int[] {
6722                         BASIC_SRVCC_SUPPORT,
6723                         ALERTING_SRVCC_SUPPORT,
6724                         PREALERTING_SRVCC_SUPPORT,
6725                         MIDCALL_SRVCC_SUPPORT
6726                     });
6727 
6728             defaults.putString(KEY_CONFERENCE_FACTORY_URI_STRING, "");
6729 
6730             PersistableBundle audio_codec_capability_payload_types = new PersistableBundle();
6731 
6732             audio_codec_capability_payload_types.putIntArray(
6733                     KEY_AMRWB_PAYLOAD_TYPE_INT_ARRAY,
6734                     new int[] { 97, 98 });
6735 
6736             audio_codec_capability_payload_types.putIntArray(
6737                     KEY_AMRNB_PAYLOAD_TYPE_INT_ARRAY,
6738                     new int[] { 99, 100 });
6739 
6740             audio_codec_capability_payload_types.putIntArray(
6741                     KEY_DTMFWB_PAYLOAD_TYPE_INT_ARRAY,
6742                     new int[] { 101 });
6743 
6744             audio_codec_capability_payload_types.putIntArray(
6745                     KEY_DTMFNB_PAYLOAD_TYPE_INT_ARRAY,
6746                     new int[] { 102 });
6747 
6748             defaults.putPersistableBundle(
6749                     KEY_AUDIO_CODEC_CAPABILITY_PAYLOAD_TYPES_BUNDLE,
6750                     audio_codec_capability_payload_types);
6751 
6752             /* Setting defaults for AMRWB */
6753             PersistableBundle all_amrwb_payload_bundles = new PersistableBundle();
6754             PersistableBundle amrwb_bundle_instance1 = new PersistableBundle();
6755 
6756             all_amrwb_payload_bundles.putPersistableBundle(
6757                     "97", /* Same value of payload type as in KEY_AMRWB_PAYLOAD_TYPE_INT_ARRAY */
6758                     amrwb_bundle_instance1);
6759 
6760             PersistableBundle amrwb_bundle_instance2 = new PersistableBundle();
6761 
6762             amrwb_bundle_instance2.putInt(KEY_AMR_CODEC_ATTRIBUTE_PAYLOAD_FORMAT_INT,
6763                                           OCTET_ALIGNED);
6764 
6765             all_amrwb_payload_bundles.putPersistableBundle(
6766                     "98", /* Same value of payload type as in KEY_AMRWB_PAYLOAD_TYPE_INT_ARRAY */
6767                     amrwb_bundle_instance2);
6768 
6769             defaults.putPersistableBundle(
6770                     KEY_AMRWB_PAYLOAD_DESCRIPTION_BUNDLE,
6771                     all_amrwb_payload_bundles);
6772 
6773             /* Setting defaults for AMRNB */
6774             PersistableBundle all_amrnb_payload_bundles = new PersistableBundle();
6775             PersistableBundle amrnb_bundle_instance1 = new PersistableBundle();
6776 
6777             all_amrnb_payload_bundles.putPersistableBundle(
6778                     "99", /* Same value of payload type as in KEY_AMRNB_PAYLOAD_TYPE_INT_ARRAY */
6779                     amrnb_bundle_instance1);
6780 
6781             PersistableBundle amrnb_bundle_instance2 = new PersistableBundle();
6782 
6783             amrnb_bundle_instance2.putInt(KEY_AMR_CODEC_ATTRIBUTE_PAYLOAD_FORMAT_INT,
6784                                           OCTET_ALIGNED);
6785 
6786             all_amrnb_payload_bundles.putPersistableBundle(
6787                     "100", /* Same value of payload type as in KEY_AMRNB_PAYLOAD_TYPE_INT_ARRAY */
6788                     amrnb_bundle_instance2);
6789 
6790             defaults.putPersistableBundle(
6791                     KEY_AMRNB_PAYLOAD_DESCRIPTION_BUNDLE,
6792                     all_amrnb_payload_bundles);
6793 
6794             return defaults;
6795         }
6796     }
6797 
6798     /**
6799      * IMS SMS configs. This groups the configs specific for SMS over IMS
6800      */
6801     public static final class ImsSms {
ImsSms()6802         private ImsSms() {}
6803 
6804         /** Prefix of all imssms.KEY_* constants. */
6805         public static final String KEY_PREFIX = "imssms.";
6806 
6807         /**
6808          * Flag specifying if SMS over IMS support is available or not.
6809          *
6810          * <p>If {@code true}: SMS over IMS support available.
6811          * {@code false}: otherwise.
6812          */
6813         public static final String KEY_SMS_OVER_IMS_SUPPORTED_BOOL  =
6814                 KEY_PREFIX + "sms_over_ims_supported_bool";
6815 
6816         /**
6817          * Flag specifying whether to allow SMS CSFB in case of
6818          * SMS over PS failure.
6819          *
6820          * <p>If {@code true}: allow SMS CSFB in case of SMS over PS failure.
6821          * {@code false} otherwise.
6822          */
6823         public static final String KEY_SMS_CSFB_RETRY_ON_FAILURE_BOOL  =
6824                 KEY_PREFIX + "sms_csfb_retry_on_failure_bool";
6825 
6826         /** @hide */
6827         @IntDef({
6828             SMS_FORMAT_3GPP,
6829             SMS_FORMAT_3GPP2
6830         })
6831 
6832         public @interface SmsFormat {}
6833 
6834         /** SMS format is 3GPP. */
6835         public static final int SMS_FORMAT_3GPP = 0;
6836 
6837         /** SMS format is 3GPP2. */
6838         public static final int SMS_FORMAT_3GPP2 = 1;
6839 
6840         /**
6841          * Specifies the SMS over IMS format.
6842          *
6843          * <p>Possible values are,
6844          * {@link #SMS_FORMAT_3GPP},
6845          * {@link #SMS_FORMAT_3GPP2}
6846          */
6847         public static final String KEY_SMS_OVER_IMS_FORMAT_INT =
6848                 KEY_PREFIX + "sms_over_ims_format_int";
6849 
6850         /**
6851          * List of different RAT technologies on which SMS over IMS
6852          * is supported.
6853          *
6854          * <p>Possible values are,
6855          * {@link AccessNetworkConstants.AccessNetworkType#NGRAN}
6856          * {@link AccessNetworkConstants.AccessNetworkType#EUTRAN}
6857          * {@link AccessNetworkConstants.AccessNetworkType#IWLAN}
6858          * {@link AccessNetworkConstants.AccessNetworkType#UTRAN}
6859          * {@link AccessNetworkConstants.AccessNetworkType#GERAN}
6860          */
6861         public static final String KEY_SMS_OVER_IMS_SUPPORTED_RATS_INT_ARRAY =
6862                 KEY_PREFIX + "sms_over_ims_supported_rats_int_array";
6863 
getDefaults()6864         private static PersistableBundle getDefaults() {
6865             PersistableBundle defaults = new PersistableBundle();
6866             defaults.putBoolean(KEY_SMS_OVER_IMS_SUPPORTED_BOOL, true);
6867             defaults.putBoolean(KEY_SMS_CSFB_RETRY_ON_FAILURE_BOOL, true);
6868 
6869             defaults.putInt(KEY_SMS_OVER_IMS_FORMAT_INT, SMS_FORMAT_3GPP);
6870 
6871             defaults.putIntArray(
6872                     KEY_SMS_OVER_IMS_SUPPORTED_RATS_INT_ARRAY,
6873                     new int[] {
6874                         AccessNetworkType.EUTRAN,
6875                         AccessNetworkType.IWLAN
6876                     });
6877 
6878             return defaults;
6879         }
6880     }
6881 
6882     /**
6883      * IMS RTT configs. This groups the configs specific for text media,
6884      * RTT (Real Time Text).
6885      */
6886     public static final class ImsRtt {
ImsRtt()6887         private ImsRtt() {}
6888 
6889         /** Prefix of all imsrtt.KEY_* constants. */
6890         public static final String KEY_PREFIX = "imsrtt.";
6891 
6892         /**
6893          * Flag specifying whether text media is allowed on default bearer.
6894          *
6895          * <p>If {@code true}: text media can be sent on default bearer.
6896          * {@code false} otherwise.
6897          */
6898         public static final String KEY_TEXT_ON_DEFAULT_BEARER_SUPPORTED_BOOL  =
6899                 KEY_PREFIX + "text_on_default_bearer_supported_bool";
6900 
6901         /**
6902          * Flag specifying whether QoS preconditions are supported for text.
6903          *
6904          * <p>If {@code true}: QoS Preconditions are supported.
6905          * {@code false} otherwise.
6906          * <p>Reference: 3GPP TS 24.229
6907          */
6908         public static final String KEY_TEXT_QOS_PRECONDITION_SUPPORTED_BOOL  =
6909                 KEY_PREFIX + "text_qos_precondition_supported_bool";
6910 
6911         /**
6912          * Specifies the AS (Application Specific) SDP modifier for text media.
6913          *
6914          * <p>Expressed in kilobits per second as per RFC 3556 Section 2.
6915          */
6916         public static final String KEY_TEXT_AS_BANDWIDTH_KBPS_INT =
6917                 KEY_PREFIX + "text_as_bandwidth_kbps_int";
6918 
6919         /**
6920          * Specifies the RS (RTCP bandwidth-Sender) SDP modifier for text media.
6921          *
6922          * <p>This indicates the RTCP bandwidth allocated to active data senders
6923          * for text media.
6924          *
6925          * <p>Expressed in bits per second as per RFC 3556 Section 2.
6926          */
6927         public static final String KEY_TEXT_RS_BANDWIDTH_BPS_INT =
6928                 KEY_PREFIX + "text_rs_bandwidth_bps_int";
6929 
6930         /**
6931          * Specifies the RR (RTCP bandwidth-Receiver) SDP modifier for
6932          * text media.
6933          *
6934          * <p>This indicates the RTCP bandwidth allocated to receivers
6935          * for text media.
6936          *
6937          * <p>Expressed in bits per second as per RFC 3556 Section 2.
6938          */
6939         public static final String KEY_TEXT_RR_BANDWIDTH_BPS_INT =
6940                 KEY_PREFIX + "text_rr_bandwidth_bps_int";
6941 
6942         /**
6943          * Specifies the Text Codec capability.
6944          *
6945          * <p>Possible keys in this bundle are,
6946          * <UL>
6947          *     <LI>{@link #KEY_T140_PAYLOAD_TYPE_INT}</LI>
6948          *     <LI>{@link #KEY_RED_PAYLOAD_TYPE_INT}</LI>
6949          * </UL>
6950          */
6951         public static final String KEY_TEXT_CODEC_CAPABILITY_PAYLOAD_TYPES_BUNDLE =
6952                 KEY_PREFIX + "text_codec_capability_payload_types_bundle";
6953 
6954         /** Integer representing payload type for T140 codec.
6955          * <p>Payload type is an integer in dynamic payload type range 96-127
6956          * as per RFC RFC 3551 Section 6.
6957          */
6958         public static final String KEY_T140_PAYLOAD_TYPE_INT  =
6959                 KEY_PREFIX + "t140_payload_type_int";
6960 
6961         /** Integer representing payload type for RED/redundancy codec.
6962          * <p>Payload type is an integer in dynamic payload type range 96-127
6963          * as per RFC RFC 3551 Section 6.
6964          */
6965         public static final String KEY_RED_PAYLOAD_TYPE_INT  =
6966                 KEY_PREFIX + "red_payload_type_int";
6967 
getDefaults()6968         private static PersistableBundle getDefaults() {
6969             PersistableBundle defaults = new PersistableBundle();
6970             defaults.putBoolean(KEY_TEXT_ON_DEFAULT_BEARER_SUPPORTED_BOOL, false);
6971             defaults.putBoolean(KEY_TEXT_QOS_PRECONDITION_SUPPORTED_BOOL, true);
6972 
6973             defaults.putInt(KEY_TEXT_AS_BANDWIDTH_KBPS_INT, 4);
6974             defaults.putInt(KEY_TEXT_RS_BANDWIDTH_BPS_INT, 100);
6975             defaults.putInt(KEY_TEXT_RR_BANDWIDTH_BPS_INT, 300);
6976 
6977             PersistableBundle text_codec_capability_payload_types = new PersistableBundle();
6978 
6979             text_codec_capability_payload_types.putInt(
6980                     KEY_RED_PAYLOAD_TYPE_INT,
6981                     112);
6982 
6983             text_codec_capability_payload_types.putInt(
6984                     KEY_T140_PAYLOAD_TYPE_INT,
6985                     111);
6986 
6987             defaults.putPersistableBundle(
6988                     KEY_TEXT_CODEC_CAPABILITY_PAYLOAD_TYPES_BUNDLE,
6989                     text_codec_capability_payload_types);
6990 
6991             return defaults;
6992         }
6993     }
6994 
6995     /**
6996      * Emergency Call/E911. This groups the configs specific for emergency call
6997      * over IMS.
6998      *
6999      * <p> Reference: 3GPP 24.229, 3GPP 23.167 Annex H, 3GPP 24.301.
7000      */
7001     public static final class ImsEmergency {
ImsEmergency()7002         private ImsEmergency() {}
7003 
7004         /** Prefix of all imsemergency.KEY_* constants. */
7005         public static final String KEY_PREFIX = "imsemergency.";
7006 
7007         /**
7008          * Flag specifying whether UE would retry E911 call on
7009          * IMS PDN if emergency PDN setup failed.
7010          *
7011          * <p>If {@code true}: Allow UE to retry emergency call on
7012          * IMS PDN if emergency PDN setup failed.{@code false} otherwise.
7013          */
7014         public static final String KEY_RETRY_EMERGENCY_ON_IMS_PDN_BOOL  =
7015                 KEY_PREFIX + "retry_emergency_on_ims_pdn_bool";
7016 
7017         /**
7018          * Flag specifying whether UE should enter Emergency CallBack Mode(ECBM)
7019          * after E911 call is ended.
7020          *
7021          * <p>If {@code true}: Enter ECBM mode after E911 call is ended.
7022          * {@code false} otherwise.
7023          */
7024         public static final String KEY_EMERGENCY_CALLBACK_MODE_SUPPORTED_BOOL  =
7025                 KEY_PREFIX + "emergency_callback_mode_supported_bool";
7026 
7027         /**
7028          * Flag specifying whether QoS preconditions are supported for emergency
7029          * call setup.
7030          *
7031          * <p>If {@code true}: QoS Preconditions are supported.
7032          * {@code false} otherwise.
7033          *
7034          * <p>Reference: 3GPP TS 24.229
7035          */
7036         public static final String KEY_EMERGENCY_QOS_PRECONDITION_SUPPORTED_BOOL  =
7037                 KEY_PREFIX + "emergency_qos_precondition_supported_bool";
7038 
7039         /**
7040          * List of different RAT technologies on which emergency call using IMS
7041          * is supported.
7042          *
7043          * <p>Possible values are,
7044          * {@link AccessNetworkConstants.AccessNetworkType#NGRAN}
7045          * {@link AccessNetworkConstants.AccessNetworkType#EUTRAN}
7046          * {@link AccessNetworkConstants.AccessNetworkType#IWLAN}
7047          */
7048         public static final String KEY_EMERGENCY_OVER_IMS_SUPPORTED_RATS_INT_ARRAY =
7049                 KEY_PREFIX + "emergency_over_ims_supported_rats_int_array";
7050 
7051         /**
7052          * Specifies the maximum time from deciding that an emergency service is to
7053          * be established until completion of the emergency registration procedure.
7054          * Upon timer expiry, the UE considers the emergency REGISTER request or
7055          * the emergency call attempt as failed.
7056          */
7057         public static final String KEY_EMERGENCY_REGISTRATION_TIMER_MILLIS_INT =
7058                 KEY_PREFIX + "emergency_registration_timer_millis_int";
7059 
7060         /**
7061          * This setting will be specify the wait time for refreshing
7062          * geolocation information before dialing emergency call.
7063          */
7064         public static final String KEY_REFRESH_GEOLOCATION_TIMEOUT_MILLIS_INT =
7065                 KEY_PREFIX + "refresh_geolocation_timeout_millis_int";
7066 
getDefaults()7067         private static PersistableBundle getDefaults() {
7068             PersistableBundle defaults = new PersistableBundle();
7069             defaults.putBoolean(KEY_RETRY_EMERGENCY_ON_IMS_PDN_BOOL, false);
7070             defaults.putBoolean(KEY_EMERGENCY_CALLBACK_MODE_SUPPORTED_BOOL, false);
7071             defaults.putBoolean(KEY_EMERGENCY_QOS_PRECONDITION_SUPPORTED_BOOL, true);
7072 
7073             defaults.putIntArray(
7074                     KEY_EMERGENCY_OVER_IMS_SUPPORTED_RATS_INT_ARRAY,
7075                     new int[] {
7076                         AccessNetworkType.EUTRAN,
7077                         AccessNetworkType.IWLAN
7078                     });
7079 
7080             defaults.putInt(KEY_EMERGENCY_REGISTRATION_TIMER_MILLIS_INT, 10000);
7081             defaults.putInt(KEY_REFRESH_GEOLOCATION_TIMEOUT_MILLIS_INT, 5000);
7082 
7083             return defaults;
7084         }
7085     }
7086 
7087     /**
7088      * IMS Video Telephony configs. This groups the configs that are specific for video call.
7089      */
7090     public static final class ImsVt {
ImsVt()7091         private ImsVt() {}
7092 
7093         /** Prefix of all imsvt.KEY_* constants. */
7094         public static final String KEY_PREFIX = "imsvt.";
7095 
7096         /**
7097          * Flag specifying whether video media is allowed on default bearer.
7098          *
7099          * <p>If {@code true}: video media can be sent on default bearer.
7100          * {@code false} otherwise.
7101          */
7102         public static final String KEY_VIDEO_ON_DEFAULT_BEARER_SUPPORTED_BOOL  =
7103                 KEY_PREFIX + "video_on_default_bearer_supported_bool";
7104 
7105         /**
7106          * Specifies the timeout value for no video RTP packets received.
7107          * <p>On timer expiry, VT call can downgrade to voice call or end
7108          * or continue depending on the operator requirement.
7109          */
7110         public static final String KEY_VIDEO_RTP_INACTIVITY_TIMER_MILLIS_INT =
7111                 KEY_PREFIX + "video_rtp_inactivity_timer_millis_int";
7112 
7113         /**
7114          * Specifies the timeout value for no video RTCP packets received.
7115          * <p>On timer expiry, VT call can downgrade to voice call or end
7116          * or continue depending on the operator requirement.
7117          */
7118         public static final String KEY_VIDEO_RTCP_INACTIVITY_TIMER_MILLIS_INT =
7119                 KEY_PREFIX + "video_rtcp_inactivity_timer_millis_int";
7120 
7121         /**
7122          * Specifies the AS (Application Specific) SDP modifier for video media.
7123          *
7124          * <p>Expressed in kilobits per second as per RFC 3556 Section 2.
7125          */
7126         public static final String KEY_VIDEO_AS_BANDWIDTH_KBPS_INT =
7127                 KEY_PREFIX + "video_as_bandwidth_kbps_int";
7128 
7129         /**
7130          * Specifies the RS (RTCP bandwidth-Sender) SDP modifier for video media.
7131          *
7132          * <p>This indicates the RTCP bandwidth allocated to active data senders
7133          * for video media.
7134          *
7135          * <p>Expressed in bits per second as per RFC 3556 Section 2.
7136          */
7137         public static final String KEY_VIDEO_RS_BANDWIDTH_BPS_INT =
7138                 KEY_PREFIX + "video_rs_bandwidth_bps_int";
7139 
7140         /**
7141          * Specifies the RR (RTCP bandwidth-Receiver) SDP modifier
7142          * for video media.
7143          *
7144          * <p>This indicates the RTCP bandwidth allocated to receivers
7145          * for video media.
7146          *
7147          * <p>Expressed in bits per second as per RFC 3556 Section 2.
7148          */
7149         public static final String KEY_VIDEO_RR_BANDWIDTH_BPS_INT =
7150                 KEY_PREFIX + "video_rr_bandwidth_bps_int";
7151 
7152         /**
7153          * Specifies the differentiated services code point (DSCP) value
7154          * for Video RTP.
7155          *
7156          * <p>Reference: RFC 4594 Section 1.4.4
7157          */
7158         public static final String KEY_VIDEO_RTP_DSCP_INT =
7159                 KEY_PREFIX + "video_rtp_dscp_int";
7160 
7161         /**
7162          * Flag specifying whether QoS preconditions are supported for Video.
7163          *
7164          * <p>If {@code true}: QoS Preconditions are supported.
7165          * {@code false} otherwise.
7166          * <p>Reference: 3GPP TS 24.229
7167          */
7168         public static final String KEY_VIDEO_QOS_PRECONDITION_SUPPORTED_BOOL  =
7169                 KEY_PREFIX + "video_qos_precondition_supported_bool";
7170 
7171         /**
7172          * Specifies the Video Codec capability. This contains a list of
7173          * payload types representing different Video codec instances.
7174 
7175          * <p>Possible key(s) in this bundle are,
7176          * <UL>
7177          *     <LI>{@link #KEY_H264_PAYLOAD_TYPE_INT_ARRAY}</LI>
7178          * </UL>
7179          * <p>To specify payload descriptions for each of the payload types, see
7180          * <UL>
7181          *     <LI>{@link #KEY_H264_PAYLOAD_DESCRIPTION_BUNDLE}</LI>
7182          * </UL>
7183          */
7184         public static final String KEY_VIDEO_CODEC_CAPABILITY_PAYLOAD_TYPES_BUNDLE =
7185                 KEY_PREFIX + "video_codec_capability_payload_types_bundle";
7186 
7187         /**
7188          * A list of integers representing the different payload types
7189          * in H264 video codec in priority order from highest to lowest.
7190          * <p>Payload type is an integer in dynamic payload type range 96-127
7191          * as per RFC RFC 3551 Section 6.
7192          */
7193         public static final String KEY_H264_PAYLOAD_TYPE_INT_ARRAY  =
7194                 KEY_PREFIX + "h264_payload_type_int_array";
7195 
7196         /**
7197          * Specifies the codec attributes of different payload types
7198          * representing H264 video codec instances.
7199          *
7200          * <p> The allowed payload types of the video codecs are specified in,
7201          * {@link #KEY_H264_PAYLOAD_TYPE_INT_ARRAY}.
7202          *
7203          * <p>Codec attributes allowed as part of H264 codec bundle are,
7204          * <UL>
7205          *     <LI>{@link #KEY_H264_VIDEO_CODEC_ATTRIBUTE_PROFILE_LEVEL_ID_STRING}</LI>
7206          *     <LI>{@link #KEY_VIDEO_CODEC_ATTRIBUTE_PACKETIZATION_MODE_INT}</LI>
7207          *     <LI>{@link #KEY_VIDEO_CODEC_ATTRIBUTE_FRAME_RATE_INT}</LI>
7208          *     <LI>{@link #KEY_VIDEO_CODEC_ATTRIBUTE_RESOLUTION_INT_ARRAY}</LI>
7209          * </UL>
7210          *
7211          * <p>If this bundle is not configured and
7212          * {@link #KEY_H264_PAYLOAD_TYPE_INT_ARRAY} is not empty,
7213          * then default values as in the individual codec attributes to
7214          * be used for that payload type.
7215          * <p>If the codec attributes in a particular codec instance bundle
7216          * is not valid together, then that codec instance should not be used.
7217          */
7218         public static final String KEY_H264_PAYLOAD_DESCRIPTION_BUNDLE =
7219                 KEY_PREFIX + "h264_payload_description_bundle";
7220 
7221         /**
7222          * Specifies the packetization mode of the video codec.
7223          *
7224          * <p>Permissible values are 0 (Single NAL unit mode),
7225          * 1(Non-interleaved mode).
7226          *
7227          * <p>If this key is not specified or invalid, then the following
7228          * default value to be used.
7229          * <UL>
7230          *   <LI>For H264: 1(Non-interleaved mode)</LI>
7231          * <UL>
7232          *
7233          * <p>Reference: RFC 6184 Section 5.4
7234          */
7235         public static final String KEY_VIDEO_CODEC_ATTRIBUTE_PACKETIZATION_MODE_INT  =
7236                 KEY_PREFIX + "video_codec_attribute_packetization_mode_int";
7237 
7238         /**
7239          * Specifies the maximum frame rate the offerer wishes to receive.
7240          * This gives the maximum video frame rate in frames/sec.
7241          *
7242          * <p>If this key is not specified or invalid, then the following
7243          * default value to be used.
7244          * <UL>
7245          *   <LI>For H264: 15 </LI>
7246          * <UL>
7247          * <p>Reference: RFC 4566 Section 6, 3GPP 26.114 Section 6.2.3.2
7248          */
7249         public static final String KEY_VIDEO_CODEC_ATTRIBUTE_FRAME_RATE_INT  =
7250                 KEY_PREFIX + "video_codec_attribute_frame_rate_int";
7251 
7252         /**
7253          * Specifies the maximum resolution allowed for the video codec
7254          * instance.
7255          *
7256          * <p>This is specified as an array of two integers, with
7257          * index 0 : Width,
7258          * index 1 : Height
7259          *
7260          * <p>If this key is not specified or invalid as per the video codec,
7261          * then the following default value to be used.
7262          * <UL>
7263          *   <LI>For H264: 240 (WIDTH) x 320 (HEIGHT) </LI>
7264          * <UL>
7265          * <p>Reference: RFC 4566 Section 6, 3GPP 26.114 Section 6.2.3.2
7266          *
7267          */
7268         public static final String KEY_VIDEO_CODEC_ATTRIBUTE_RESOLUTION_INT_ARRAY  =
7269                 KEY_PREFIX + "video_codec_attribute_resolution_int_array";
7270 
7271         /**
7272          * Specifies the profile level id of the H264 video codec.
7273          * This value is represented as "profile-level-id" in the SDP offer
7274          * as per RFC 6184 Section 8.1.
7275          *
7276          * <p>If this key is not specified or invalid as per the video codec,
7277          * then default value of 42C00C to be used.
7278          *
7279          * <p>Reference: RFC 6184 Section 8.1, ITU-T Recommendation H.264
7280          */
7281         public static final String KEY_H264_VIDEO_CODEC_ATTRIBUTE_PROFILE_LEVEL_ID_STRING  =
7282                 KEY_PREFIX + "h264_video_codec_attribute_profile_level_id_string";
7283 
getDefaults()7284         private static PersistableBundle getDefaults() {
7285             PersistableBundle defaults = new PersistableBundle();
7286             defaults.putBoolean(KEY_VIDEO_ON_DEFAULT_BEARER_SUPPORTED_BOOL, false);
7287             defaults.putBoolean(KEY_VIDEO_QOS_PRECONDITION_SUPPORTED_BOOL, true);
7288 
7289             defaults.putInt(KEY_VIDEO_RTP_INACTIVITY_TIMER_MILLIS_INT, 0);
7290             defaults.putInt(KEY_VIDEO_RTCP_INACTIVITY_TIMER_MILLIS_INT, 0);
7291 
7292             defaults.putInt(KEY_VIDEO_AS_BANDWIDTH_KBPS_INT, 960);
7293             defaults.putInt(KEY_VIDEO_RS_BANDWIDTH_BPS_INT, 8000);
7294             defaults.putInt(KEY_VIDEO_RR_BANDWIDTH_BPS_INT, 6000);
7295             defaults.putInt(KEY_VIDEO_RTP_DSCP_INT, 40);
7296 
7297             PersistableBundle video_codec_capability_payload_types = new PersistableBundle();
7298 
7299             video_codec_capability_payload_types.putIntArray(
7300                     KEY_H264_PAYLOAD_TYPE_INT_ARRAY,
7301                     new int[] { 99, 100 });
7302 
7303             defaults.putPersistableBundle(
7304                     KEY_VIDEO_CODEC_CAPABILITY_PAYLOAD_TYPES_BUNDLE,
7305                     video_codec_capability_payload_types);
7306 
7307             PersistableBundle all_h264_payload_bundles = new PersistableBundle();
7308 
7309             /* Setting default codec attributes for individual H264 profiles*/
7310 
7311             /* For H264 profile-level-id: 42C00C, frame rate:15, Resolution: 240x320 */
7312             PersistableBundle h264_bundle_instance1 = new PersistableBundle();
7313             all_h264_payload_bundles.putPersistableBundle(
7314                     "99", /* Same value of payload type as in KEY_H264_PAYLOAD_TYPE_INT_ARRAY */
7315                     h264_bundle_instance1);
7316 
7317             /* For H264 profile-level-id: 42C00C, packetisation mode:0, frame rate:15,
7318              * Resolution: 240x320 */
7319             PersistableBundle h264_bundle_instance2 = new PersistableBundle();
7320             h264_bundle_instance2.putInt(
7321                     KEY_VIDEO_CODEC_ATTRIBUTE_PACKETIZATION_MODE_INT,
7322                     0);
7323 
7324             all_h264_payload_bundles.putPersistableBundle(
7325                     "100", /* Same value of payload type as in KEY_H264_PAYLOAD_TYPE_INT_ARRAY */
7326                     h264_bundle_instance2);
7327 
7328             defaults.putPersistableBundle(
7329                     KEY_H264_PAYLOAD_DESCRIPTION_BUNDLE,
7330                     all_h264_payload_bundles);
7331 
7332             return defaults;
7333         }
7334     }
7335 
7336     /**
7337      * WiFi Calling. This groups the configs specific for Voice over WiFi/WFC call.
7338      */
7339     public static final class ImsWfc {
ImsWfc()7340         private ImsWfc() {}
7341 
7342         /** Prefix of all imswfc.KEY_* constants. */
7343         public static final String KEY_PREFIX = "imswfc.";
7344 
7345         /**
7346          *  List of MDNs for which Geo-location PIDF XML with country info
7347          *  needs to included for normal calls involving short code.
7348          */
7349         public static final String KEY_PIDF_SHORT_CODE_STRING_ARRAY  =
7350                 KEY_PREFIX + "pidf_short_code_string_array";
7351 
7352         /**
7353          * Flag specifying whether emergency call over VoWiFi is requested over
7354          * emergency PDN or IMS PDN.
7355          *
7356          * <p>If {@code false}: E911 call uses IMS PDN for E911 call over VoWiFi.
7357          * If {@code true}: E911 call uses Emergency PDN for E911 call over VoWiFi.
7358          */
7359         public static final String KEY_EMERGENCY_CALL_OVER_EMERGENCY_PDN_BOOL  =
7360                 KEY_PREFIX + "emergency_call_over_emergency_pdn_bool";
7361 
7362 
getDefaults()7363         private static PersistableBundle getDefaults() {
7364             PersistableBundle defaults = new PersistableBundle();
7365 
7366             defaults.putBoolean(KEY_EMERGENCY_CALL_OVER_EMERGENCY_PDN_BOOL, false);
7367             defaults.putStringArray(KEY_PIDF_SHORT_CODE_STRING_ARRAY, new String[] {});
7368 
7369             return defaults;
7370         }
7371     }
7372 
7373     /**
7374      *   IMS supplementary services configs. This groups the configs required for
7375      *   supplementary services (SS) like XCAP over UT,
7376      *   Unstructured Supplementary Service Data(USSD).
7377      */
7378     public static final class ImsSs {
ImsSs()7379         private ImsSs() {}
7380 
7381         /** Prefix of all imsss.KEY_* constants. */
7382         public static final String KEY_PREFIX = "imsss.";
7383 
7384         /**
7385          * Flag that controls whether XCAP over UT status need to be
7386          * dependent on IMS registration.
7387          *
7388          * <p>If {@code true}: XCAP over UT status need to be
7389          * dependent on IMS registration.
7390          * {@code false} otherwise.
7391          */
7392         public static final String KEY_UT_REQUIRES_IMS_REGISTRATION_BOOL =
7393                 KEY_PREFIX + "ut_requires_ims_registration_bool";
7394 
7395         /**
7396          * Flag that controls whether XCAP over UT is supported
7397          * when on roaming network.
7398          *
7399          * <p>If {@code true}: XCAP over UT is supported when on
7400          * roaming network.
7401          * {@code false} otherwise.
7402          */
7403         public static final String KEY_UT_SUPPORTED_WHEN_ROAMING_BOOL =
7404                 KEY_PREFIX + "ut_supported_when_roaming_bool";
7405 
7406         /**
7407          * Flag that controls whether Circuit Switched Fallback (CSFB)
7408          * option is available when XCAP over UT fails.
7409          *
7410          * <p>If {@code false}:  XCAP over UT only with no CSFB option.
7411          * If XCAP over UT fails, return error.
7412          * if {@code true}, Use CSFB if XCAP over UT fails.
7413          */
7414         public static final String KEY_USE_CSFB_ON_XCAP_OVER_UT_FAILURE_BOOL  =
7415                 KEY_PREFIX + "use_csfb_on_xcap_over_ut_failure_bool";
7416 
7417         /**
7418          * Flag that controls whether XCAP over UT is enabled or not
7419          * when PS data is turned off.
7420          *
7421          * <p>If {@code true}: XCAP over UT is enabled when PS data is off.
7422          * {@code false}: Otherwise.
7423          *
7424          * Reference: IR.92 Section 5.5.1
7425          */
7426         public static final String KEY_UT_SUPPORTED_WHEN_PS_DATA_OFF_BOOL  =
7427                 KEY_PREFIX + "ut_supported_when_ps_data_off_bool";
7428 
7429         /**
7430          * Flag that controls whether network initiated USSD over IMS is
7431          * supported by the UE.
7432          *
7433          * <p>If {@code true}:  Support Available.{@code false}: Otherwise.
7434          * Reference: 3GPP 24.390.
7435          */
7436         public static final String KEY_NETWORK_INITIATED_USSD_OVER_IMS_SUPPORTED_BOOL  =
7437                 KEY_PREFIX + "network_initiated_ussd_over_ims_supported_bool";
7438 
7439         /**
7440          * Specifies the 'XCAP over UT' IP Type when device is
7441          * on Home Network.
7442          *
7443          * <p>Possible values are,
7444          * {@link ApnSetting#PROTOCOL_IPV4V6},
7445          * {@link ApnSetting#PROTOCOL_IP},
7446          * {@link ApnSetting#PROTOCOL_IPV6}
7447          *
7448          * If key is invalid or not configured, the default value
7449          * {@link ApnSetting#PROTOCOL_IPV4V6} will apply.
7450          */
7451         public static final String KEY_UT_IPTYPE_HOME_INT =
7452                 KEY_PREFIX + "ut_iptype_home_int";
7453 
7454         /**
7455          * Specifies the 'XCAP over UT' IP Type when device is roaming.
7456          *
7457          * <p>Possible values are,
7458          * {@link ApnSetting#PROTOCOL_IPV4V6},
7459          * {@link ApnSetting#PROTOCOL_IP},
7460          * {@link ApnSetting#PROTOCOL_IPV6}
7461 
7462          * If key is invalid or not configured, the default value
7463          * {@link ApnSetting#PROTOCOL_IPV4V6} will apply.
7464          */
7465         public static final String KEY_UT_IPTYPE_ROAMING_INT =
7466                 KEY_PREFIX + "ut_iptype_roaming_int";
7467 
7468         /**
7469          * Specifies the XCAP Application Server fully qualified domain name (FQDN).
7470          * <p> Reference: 24.623 Section 5.2.3.
7471          */
7472         public static final String KEY_UT_AS_SERVER_FQDN_STRING =
7473                 KEY_PREFIX + "ut_as_server_fqdn_string";
7474 
7475         /**
7476          * Specifies the XCAP Application Server Remote port.
7477          * As XCAP is a usage of HTTP, the default value is same as HTTP, i.e. 80.
7478          */
7479         public static final String KEY_UT_AS_SERVER_PORT_INT =
7480                 KEY_PREFIX + "ut_as_server_port_int";
7481 
7482         /**
7483          * Specifies the preferred transport to be used for XCAP over UT.
7484          *
7485          * <p>Possible values are,
7486          * {@link Ims#PREFERRED_TRANSPORT_TCP},
7487          * {@link Ims#PREFERRED_TRANSPORT_TLS}
7488          *
7489          * <p>If key is invalid or not configured, the default value
7490          * {@link Ims#PREFERRED_TRANSPORT_TCP} will apply.
7491          */
7492         public static final String KEY_UT_TRANSPORT_TYPE_INT =
7493                 KEY_PREFIX + "ut_transport_type_int";
7494 
7495         /** @hide */
7496         @IntDef({
7497             SUPPLEMENTARY_SERVICE_CW,
7498             SUPPLEMENTARY_SERVICE_CF_ALL,
7499             SUPPLEMENTARY_SERVICE_CF_CFU,
7500             SUPPLEMENTARY_SERVICE_CF_ALL_CONDITONAL_FORWARDING,
7501             SUPPLEMENTARY_SERVICE_CF_CFB,
7502             SUPPLEMENTARY_SERVICE_CF_CFNRY,
7503             SUPPLEMENTARY_SERVICE_CF_CFNRC,
7504             SUPPLEMENTARY_SERVICE_CF_CFNL,
7505             SUPPLEMENTARY_SERVICE_IDENTIFICATION_OIP,
7506             SUPPLEMENTARY_SERVICE_IDENTIFICATION_TIP,
7507             SUPPLEMENTARY_SERVICE_IDENTIFICATION_OIR,
7508             SUPPLEMENTARY_SERVICE_IDENTIFICATION_TIR,
7509             SUPPLEMENTARY_SERVICE_CB_ALL,
7510             SUPPLEMENTARY_SERVICE_CB_OBS,
7511             SUPPLEMENTARY_SERVICE_CB_BAOC,
7512             SUPPLEMENTARY_SERVICE_CB_BOIC,
7513             SUPPLEMENTARY_SERVICE_CB_BOIC_EXHC,
7514             SUPPLEMENTARY_SERVICE_CB_IBS,
7515             SUPPLEMENTARY_SERVICE_CB_BAIC,
7516             SUPPLEMENTARY_SERVICE_CB_BIC_ROAM,
7517             SUPPLEMENTARY_SERVICE_CB_ACR,
7518             SUPPLEMENTARY_SERVICE_CB_BIL
7519         })
7520 
7521         public @interface SsType {}
7522 
7523         /** Communication Waiting (CW) support as per 3GPP 24.615. */
7524         public static final int SUPPLEMENTARY_SERVICE_CW = 0;
7525 
7526         /**
7527          * Call Diversion - All call forwarding support as per 3GPP 24.604.
7528          *
7529          * <p>This value is associated with MMI support service code 002
7530          * as indicated in TS 22.030 Table B.1
7531          */
7532         public static final int SUPPLEMENTARY_SERVICE_CF_ALL = 1;
7533 
7534         /**
7535          * Call Diversion - All Unconditional call forwarding support (CFU) as
7536          * per 3GPP 24.604.
7537          *
7538          * <p>This value is associated with MMI support service code 21
7539          * as indicated in TS 22.030 Table B.1
7540          */
7541         public static final int SUPPLEMENTARY_SERVICE_CF_CFU = 2;
7542 
7543         /**
7544          * Call Diversion - All conditional call forwarding support as
7545          * per 3GPP 24.604.
7546          *
7547          * <p>This value is associated with MMI support service code 004
7548          * as indicated in TS 22.030 Table B.1
7549          */
7550         public static final int SUPPLEMENTARY_SERVICE_CF_ALL_CONDITONAL_FORWARDING = 3;
7551 
7552         /**
7553          * Call Diversion - Call forwarding on mobile subscriber busy (CFB)
7554          * support as per 3GPP 24.604.
7555          *
7556          * <p>This value is associated with MMI support service code 67
7557          * as indicated in TS 22.030 Table B.1
7558          */
7559         public static final int SUPPLEMENTARY_SERVICE_CF_CFB = 4;
7560 
7561         /**
7562          * Call Diversion - Call forwarding on no reply (CFNRY)
7563          * support as per 3GPP 24.604.
7564          *
7565          * <p>This value is associated with MMI support service code 61
7566          * as indicated in TS 22.030 Table B.1
7567          */
7568         public static final int SUPPLEMENTARY_SERVICE_CF_CFNRY = 5;
7569 
7570         /**
7571          * Call Diversion - Call forwarding on mobile subscriber not reachable
7572          * (CFNRC) support as per 3GPP 24.604.
7573          *
7574          * <p>This value is associated with MMI support service code 62
7575          * as indicated in TS 22.030 Table B.1
7576          */
7577         public static final int SUPPLEMENTARY_SERVICE_CF_CFNRC = 6;
7578 
7579         /**
7580          * Communication Forwarding on Not Logged-in (CFNL).
7581          * support as per 3GPP 24.604 Section 4.2.1.7
7582          *
7583          */
7584         public static final int SUPPLEMENTARY_SERVICE_CF_CFNL = 7;
7585 
7586         /**
7587          * Originating Identification Presentation (OIP) support
7588          * as per 3GPP 24.607.
7589          *
7590          */
7591         public static final int SUPPLEMENTARY_SERVICE_IDENTIFICATION_OIP = 8;
7592 
7593         /**
7594          * Terminating Identification Presentation (TIP) support
7595          * as per 3GPP 24.608.
7596          */
7597         public static final int SUPPLEMENTARY_SERVICE_IDENTIFICATION_TIP = 9;
7598 
7599         /**
7600          * Originating Identification Restriction (OIR) support
7601          * as per 3GPP 24.607.
7602          */
7603         public static final int SUPPLEMENTARY_SERVICE_IDENTIFICATION_OIR = 10;
7604 
7605         /**
7606          * Terminating Identification Restriction (TIR) support
7607          * as per 3GPP 24.608.
7608          */
7609         public static final int SUPPLEMENTARY_SERVICE_IDENTIFICATION_TIR = 11;
7610 
7611         /**
7612          * Call Barring - All barring services,
7613          * This value is associated with MMI support service code 330
7614          * as indicated TS 22.030 Table B.1
7615          */
7616         public static final int SUPPLEMENTARY_SERVICE_CB_ALL = 12;
7617 
7618         /**
7619          * Call Barring - Outgoing barring services,
7620          * This value is associated with MMI support service code 333
7621          * as indicated TS 22.030 Table B.1
7622          */
7623         public static final int SUPPLEMENTARY_SERVICE_CB_OBS = 13;
7624 
7625         /**
7626          * Call Barring - Barring of all outgoing calls (BAOC)
7627          * support as per 3GPP TS 24.611.
7628          *
7629          * <p>This value is associated with MMI support service code 33
7630          * as indicated TS 22.030 Table B.1
7631          */
7632         public static final int SUPPLEMENTARY_SERVICE_CB_BAOC = 14;
7633 
7634         /**
7635          * Call Barring - Barring of outgoing international calls
7636          * (BOIC) support as per 3GPP TS 24.611.
7637          *
7638          * <p>This value is associated with MMI support service code 331
7639          * as indicated TS 22.030 Table B.1
7640          */
7641         public static final int SUPPLEMENTARY_SERVICE_CB_BOIC = 15;
7642 
7643         /**
7644          * Call Barring - Barring of outgoing international calls
7645          * except those directed to the home PLMN country (BOIC-EXHC) support
7646          * as per 3GPP TS 24.611.
7647          *
7648          * <p>This value is associated with MMI support service code 332
7649          * as indicated TS 22.030 Table B.1
7650          */
7651         public static final int SUPPLEMENTARY_SERVICE_CB_BOIC_EXHC = 16;
7652 
7653         /**
7654          * Call Barring - Incoming barring services,
7655          * This value is associated with MMI support service code 353
7656          * as indicated TS 22.030 Table B.1
7657          */
7658         public static final int SUPPLEMENTARY_SERVICE_CB_IBS = 17;
7659 
7660         /**
7661          * Call Barring - Barring of all incoming calls (BAIC)
7662          * support as per 3GPP TS 24.611.
7663          *
7664          * <p>This value is associated with MMI support service code 35
7665          * as indicated TS 22.030 Table B.1
7666          */
7667         public static final int SUPPLEMENTARY_SERVICE_CB_BAIC = 18;
7668 
7669         /**
7670          * Call Barring - Barring of incoming calls when roaming outside
7671          * the home PLMN country (BIC-ROAM) support as per 3GPP TS 24.611.
7672          *
7673          * <p>This value is associated with MMI support service code 351
7674          * as indicated TS 22.030 Table B.1
7675          */
7676         public static final int SUPPLEMENTARY_SERVICE_CB_BIC_ROAM = 19;
7677 
7678         /**
7679          * Call Barring - Anonymous Call Rejection/Barring of all anonymous
7680          * incoming number support as per 3GPP TS 24.611.
7681          */
7682         public static final int SUPPLEMENTARY_SERVICE_CB_ACR = 20;
7683 
7684         /**
7685          * Call Barring - Barring list of incoming numbers support.
7686          */
7687         public static final int SUPPLEMENTARY_SERVICE_CB_BIL = 21;
7688 
7689         /**
7690          * List of UT services that are Server based.
7691          *
7692          * <p>Possible values are,
7693          * <UL>
7694          *     <LI>{@link #SUPPLEMENTARY_SERVICE_CW}</LI>
7695          *     <LI>{@link #SUPPLEMENTARY_SERVICE_CF_ALL}</LI>
7696          *     <LI>{@link #SUPPLEMENTARY_SERVICE_CF_CFU}</LI>
7697          *     <LI>{@link #SUPPLEMENTARY_SERVICE_CF_ALL_CONDITONAL_FORWARDING}</LI>
7698          *     <LI>{@link #SUPPLEMENTARY_SERVICE_CF_CFB}</LI>
7699          *     <LI>{@link #SUPPLEMENTARY_SERVICE_CF_CFNRY}</LI>
7700          *     <LI>{@link #SUPPLEMENTARY_SERVICE_CF_CFNRC}</LI>
7701          *     <LI>{@link #SUPPLEMENTARY_SERVICE_CF_CFNL}</LI>
7702          *     <LI>{@link #SUPPLEMENTARY_SERVICE_IDENTIFICATION_OIP}</LI>
7703          *     <LI>{@link #SUPPLEMENTARY_SERVICE_IDENTIFICATION_TIP}</LI>
7704          *     <LI>{@link #SUPPLEMENTARY_SERVICE_IDENTIFICATION_OIR}</LI>
7705          *     <LI>{@link #SUPPLEMENTARY_SERVICE_IDENTIFICATION_TIR}</LI>
7706          *     <LI>{@link #SUPPLEMENTARY_SERVICE_CB_ALL}</LI>
7707          *     <LI>{@link #SUPPLEMENTARY_SERVICE_CB_OBS}</LI>
7708          *     <LI>{@link #SUPPLEMENTARY_SERVICE_CB_IBS}</LI>
7709          *     <LI>{@link #SUPPLEMENTARY_SERVICE_CB_BAOC}</LI>
7710          *     <LI>{@link #SUPPLEMENTARY_SERVICE_CB_BOIC}</LI>
7711          *     <LI>{@link #SUPPLEMENTARY_SERVICE_CB_BOIC_EXHC}</LI>
7712          *     <LI>{@link #SUPPLEMENTARY_SERVICE_CB_BAIC}</LI>
7713          *     <LI>{@link #SUPPLEMENTARY_SERVICE_CB_BIC_ROAM}</LI>
7714          *     <LI>{@link #SUPPLEMENTARY_SERVICE_CB_ACR}</LI>
7715          *     <LI>{@link #SUPPLEMENTARY_SERVICE_CB_BIL}</LI>
7716          * </UL>
7717          */
7718         public static final String KEY_UT_SERVER_BASED_SERVICES_INT_ARRAY =
7719                 KEY_PREFIX + "ut_server_based_services_int_array";
7720 
7721         /**
7722          * List of UT services that are terminal based.
7723          *
7724          * By default, all services are server based and defined in
7725          * {@link #KEY_UT_SERVER_BASED_SERVICES_INT_ARRAY}.
7726          * Adding here will override that service setting to terminal based.
7727          *
7728          * <p>Possible values are,
7729          * <UL>
7730          *     <LI>{@link #SUPPLEMENTARY_SERVICE_CW}</LI>
7731          *     <LI>{@link #SUPPLEMENTARY_SERVICE_IDENTIFICATION_OIR}</LI>
7732          * </UL>
7733          */
7734         public static final String KEY_UT_TERMINAL_BASED_SERVICES_INT_ARRAY =
7735                 KEY_PREFIX + "ut_terminal_based_services_int_array";
7736 
7737         /**
7738          * List of different RAT technologies on which XCAP over UT
7739          * is supported.
7740          *
7741          * <p>Possible values are,
7742          * {@link AccessNetworkConstants.AccessNetworkType#NGRAN}
7743          * {@link AccessNetworkConstants.AccessNetworkType#EUTRAN}
7744          * {@link AccessNetworkConstants.AccessNetworkType#IWLAN}
7745          * {@link AccessNetworkConstants.AccessNetworkType#UTRAN}
7746          * {@link AccessNetworkConstants.AccessNetworkType#GERAN}
7747          */
7748         public static final String KEY_XCAP_OVER_UT_SUPPORTED_RATS_INT_ARRAY =
7749                 KEY_PREFIX + "xcap_over_ut_supported_rats_int_array";
7750 
getDefaults()7751         private static PersistableBundle getDefaults() {
7752             PersistableBundle defaults = new PersistableBundle();
7753             defaults.putBoolean(KEY_UT_REQUIRES_IMS_REGISTRATION_BOOL, false);
7754             defaults.putBoolean(KEY_USE_CSFB_ON_XCAP_OVER_UT_FAILURE_BOOL, true);
7755             defaults.putBoolean(KEY_UT_SUPPORTED_WHEN_PS_DATA_OFF_BOOL, true);
7756             defaults.putBoolean(KEY_NETWORK_INITIATED_USSD_OVER_IMS_SUPPORTED_BOOL, true);
7757             defaults.putBoolean(KEY_UT_SUPPORTED_WHEN_ROAMING_BOOL, true);
7758 
7759             defaults.putInt(KEY_UT_IPTYPE_HOME_INT, ApnSetting.PROTOCOL_IPV4V6);
7760             defaults.putInt(KEY_UT_IPTYPE_ROAMING_INT, ApnSetting.PROTOCOL_IPV4V6);
7761             defaults.putInt(KEY_UT_AS_SERVER_PORT_INT, 80);
7762             defaults.putInt(KEY_UT_TRANSPORT_TYPE_INT, Ims.PREFERRED_TRANSPORT_TCP);
7763 
7764             defaults.putIntArray(
7765                     KEY_UT_SERVER_BASED_SERVICES_INT_ARRAY,
7766                     new int[] {
7767                         SUPPLEMENTARY_SERVICE_CW,
7768                         SUPPLEMENTARY_SERVICE_CF_ALL,
7769                         SUPPLEMENTARY_SERVICE_CF_CFU,
7770                         SUPPLEMENTARY_SERVICE_CF_CFNRC,
7771                         SUPPLEMENTARY_SERVICE_CF_ALL_CONDITONAL_FORWARDING,
7772                         SUPPLEMENTARY_SERVICE_CF_CFB,
7773                         SUPPLEMENTARY_SERVICE_CF_CFNRY,
7774                         SUPPLEMENTARY_SERVICE_CF_CFNL,
7775                         SUPPLEMENTARY_SERVICE_IDENTIFICATION_OIP,
7776                         SUPPLEMENTARY_SERVICE_IDENTIFICATION_TIP,
7777                         SUPPLEMENTARY_SERVICE_IDENTIFICATION_OIR,
7778                         SUPPLEMENTARY_SERVICE_IDENTIFICATION_TIR,
7779                         SUPPLEMENTARY_SERVICE_CB_ALL,
7780                         SUPPLEMENTARY_SERVICE_CB_OBS,
7781                         SUPPLEMENTARY_SERVICE_CB_IBS,
7782                         SUPPLEMENTARY_SERVICE_CB_BAOC,
7783                         SUPPLEMENTARY_SERVICE_CB_BOIC,
7784                         SUPPLEMENTARY_SERVICE_CB_BOIC_EXHC,
7785                         SUPPLEMENTARY_SERVICE_CB_BAIC,
7786                         SUPPLEMENTARY_SERVICE_CB_BIC_ROAM,
7787                         SUPPLEMENTARY_SERVICE_CB_ACR,
7788                         SUPPLEMENTARY_SERVICE_CB_BIL
7789                     });
7790             defaults.putIntArray(
7791                     KEY_UT_TERMINAL_BASED_SERVICES_INT_ARRAY,
7792                     new int[] {});
7793 
7794             defaults.putIntArray(
7795                     KEY_XCAP_OVER_UT_SUPPORTED_RATS_INT_ARRAY,
7796                     new int[] {
7797                         AccessNetworkType.EUTRAN,
7798                         AccessNetworkType.IWLAN
7799                     });
7800             defaults.putString(KEY_UT_AS_SERVER_FQDN_STRING, "");
7801 
7802             return defaults;
7803         }
7804     }
7805 
7806     /**
7807      * This groups the BSF (BootStrapping Function) related configs.
7808      * Reference: 3GPP TS 24.109.
7809      */
7810     public static final class Bsf {
Bsf()7811         private Bsf() {}
7812 
7813         /** Prefix of all bsf.KEY_* constants. */
7814         public static final String KEY_PREFIX = "bsf.";
7815 
7816         /** Specifies the fully qualified domain name (FQDN) of BSF Server
7817          * as per 3GPP 24.109.
7818          */
7819         public static final String KEY_BSF_SERVER_FQDN_STRING =
7820                 KEY_PREFIX + "bsf_server_fqdn_string";
7821 
7822         /**
7823          * Specifies the port number of the BSF server as per 3GPP 24.109.
7824          * This is usually default port number of HTTP, i.e. 80.
7825          */
7826         public static final String KEY_BSF_SERVER_PORT_INT =
7827                 KEY_PREFIX + "bsf_server_port_int";
7828 
7829         /**
7830          * Specifies the transport type used in communication with
7831          * BSF server.
7832          *
7833          * <p>Possible values are,
7834          * {@link Ims#PREFERRED_TRANSPORT_TCP},
7835          * {@link Ims#PREFERRED_TRANSPORT_TLS}
7836          *
7837          * <p>If key is invalid or not configured, the default value
7838          * {@link Ims#PREFERRED_TRANSPORT_TCP} will apply.
7839          */
7840         public static final String KEY_BSF_TRANSPORT_TYPE_INT =
7841                 KEY_PREFIX + "bsf_transport_type_int";
7842 
getDefaults()7843         private static PersistableBundle getDefaults() {
7844             PersistableBundle defaults = new PersistableBundle();
7845 
7846             defaults.putInt(KEY_BSF_SERVER_PORT_INT, 80);
7847             defaults.putInt(KEY_BSF_TRANSPORT_TYPE_INT, Ims.PREFERRED_TRANSPORT_TCP);
7848             defaults.putString(KEY_BSF_SERVER_FQDN_STRING, "");
7849 
7850             return defaults;
7851         }
7852     }
7853 
7854     /**
7855      * Configs used for epdg tunnel bring up.
7856      *
7857      * @see <a href="https://tools.ietf.org/html/rfc7296">RFC 7296, Internet Key Exchange Protocol
7858      *     Version 2 (IKEv2)</a>
7859      */
7860     public static final class Iwlan {
7861         /** Prefix of all Epdg.KEY_* constants. */
7862         public static final String KEY_PREFIX = "iwlan.";
7863 
7864         /**
7865          * Time in seconds after which the child security association session is terminated if rekey
7866          * procedure is not successful. If not set or set to <= 0, the default value is 3600
7867          * seconds.
7868          */
7869         public static final String KEY_CHILD_SA_REKEY_HARD_TIMER_SEC_INT =
7870                 KEY_PREFIX + "child_sa_rekey_hard_timer_sec_int";
7871 
7872         /**
7873          * Time in seconds after which the child session rekey procedure is started. If not set or
7874          * set to <= 0, default value is 3000 seconds.
7875          */
7876         public static final String KEY_CHILD_SA_REKEY_SOFT_TIMER_SEC_INT =
7877                 KEY_PREFIX + "child_sa_rekey_soft_timer_sec_int";
7878 
7879         /**
7880          * Supported DH groups for IKE negotiation. Possible values are:
7881          * {@link android.net.ipsec.ike.SaProposal#DH_GROUP_NONE},
7882          * {@link android.net.ipsec.ike.SaProposal#DH_GROUP_1024_BIT_MODP},
7883          * {@link android.net.ipsec.ike.SaProposal#DH_GROUP_1536_BIT_MODP},
7884          * {@link android.net.ipsec.ike.SaProposal#DH_GROUP_2048_BIT_MODP}
7885          */
7886         public static final String KEY_DIFFIE_HELLMAN_GROUPS_INT_ARRAY =
7887                 KEY_PREFIX + "diffie_hellman_groups_int_array";
7888 
7889         /**
7890          * Time in seconds after which a dead peer detection (DPD) request is sent. If not set or
7891          * set to <= 0, default value is 120 seconds.
7892          */
7893         public static final String KEY_DPD_TIMER_SEC_INT = KEY_PREFIX + "dpd_timer_sec_int";
7894 
7895         /**
7896          * Method used to authenticate epdg server. Possible values are {@link
7897          * #AUTHENTICATION_METHOD_EAP_ONLY}, {@link #AUTHENTICATION_METHOD_CERT}
7898          */
7899         public static final String KEY_EPDG_AUTHENTICATION_METHOD_INT =
7900                 KEY_PREFIX + "epdg_authentication_method_int";
7901 
7902         /**
7903          * A priority list of ePDG addresses to be used. Possible values are {@link
7904          * #EPDG_ADDRESS_STATIC}, {@link #EPDG_ADDRESS_PLMN}, {@link #EPDG_ADDRESS_PCO}, {@link
7905          * #EPDG_ADDRESS_CELLULAR_LOC}, {@link #EPDG_ADDRESS_VISITED_COUNTRY}
7906          */
7907         public static final String KEY_EPDG_ADDRESS_PRIORITY_INT_ARRAY =
7908                 KEY_PREFIX + "epdg_address_priority_int_array";
7909 
7910         /** Epdg static IP address or FQDN */
7911         public static final String KEY_EPDG_STATIC_ADDRESS_STRING =
7912                 KEY_PREFIX + "epdg_static_address_string";
7913 
7914         /** Epdg static IP address or FQDN for roaming */
7915         public static final String KEY_EPDG_STATIC_ADDRESS_ROAMING_STRING =
7916                 KEY_PREFIX + "epdg_static_address_roaming_string";
7917 
7918         /**
7919          * List of supported key sizes for AES Cipher Block Chaining (CBC) encryption mode of child
7920          * session. Possible values are:
7921          * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_UNUSED},
7922          * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_AES_128},
7923          * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_AES_192},
7924          * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_AES_256}
7925          */
7926         public static final String KEY_CHILD_SESSION_AES_CBC_KEY_SIZE_INT_ARRAY =
7927                 KEY_PREFIX + "child_session_aes_cbc_key_size_int_array";
7928 
7929         /**
7930          * List of supported key sizes for AES Counter (CTR) encryption mode of child session.
7931          * Possible values are:
7932          * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_UNUSED},
7933          * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_AES_128},
7934          * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_AES_192},
7935          * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_AES_256}
7936          */
7937         public static final String KEY_CHILD_SESSION_AES_CTR_KEY_SIZE_INT_ARRAY =
7938                 KEY_PREFIX + "child_session_aes_ctr_key_size_int_array";
7939 
7940         /**
7941          * List of supported encryption algorithms for child session. Possible values are
7942          * {@link android.net.ipsec.ike.SaProposal#ENCRYPTION_ALGORITHM_AES_CBC}
7943          */
7944         public static final String KEY_SUPPORTED_CHILD_SESSION_ENCRYPTION_ALGORITHMS_INT_ARRAY =
7945                 KEY_PREFIX + "supported_child_session_encryption_algorithms_int_array";
7946 
7947         /**
7948          * Time in seconds after which the IKE session is terminated if rekey procedure is not
7949          * successful. If not set or set to <= 0, default value is 3600 seconds.
7950          */
7951         public static final String KEY_IKE_REKEY_HARD_TIMER_SEC_INT =
7952                 KEY_PREFIX + "ike_rekey_hard_timer_in_sec";
7953 
7954         /**
7955          * Time in seconds after which the IKE session rekey procedure is started. If not set or set
7956          * to <= 0, default value is 3000 seconds.
7957          */
7958         public static final String KEY_IKE_REKEY_SOFT_TIMER_SEC_INT =
7959                 KEY_PREFIX + "ike_rekey_soft_timer_sec_int";
7960 
7961         /**
7962          * List of supported key sizes for AES Cipher Block Chaining (CBC) encryption mode of IKE
7963          * session. Possible values:
7964          * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_UNUSED},
7965          * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_AES_128},
7966          * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_AES_192},
7967          * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_AES_256}
7968          */
7969         public static final String KEY_IKE_SESSION_AES_CBC_KEY_SIZE_INT_ARRAY =
7970                 KEY_PREFIX + "ike_session_encryption_aes_cbc_key_size_int_array";
7971 
7972 
7973         /**
7974          * List of supported key sizes for AES Counter (CTR) encryption mode of IKE session.
7975          * Possible values -
7976          * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_UNUSED},
7977          * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_AES_128},
7978          * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_AES_192},
7979          * {@link android.net.ipsec.ike.SaProposal#KEY_LEN_AES_256}
7980          */
7981          public static final String KEY_IKE_SESSION_AES_CTR_KEY_SIZE_INT_ARRAY =
7982                  KEY_PREFIX + "ike_session_encryption_aes_ctr_key_size_int_array";
7983 
7984         /**
7985          * List of supported encryption algorithms for IKE session. Possible values are
7986          * {@link android.net.ipsec.ike.SaProposal#ENCRYPTION_ALGORITHM_AES_CBC},
7987          * {@link android.net.ipsec.ike.SaProposal#ENCRYPTION_ALGORITHM_AES_CTR}
7988          */
7989         public static final String KEY_SUPPORTED_IKE_SESSION_ENCRYPTION_ALGORITHMS_INT_ARRAY =
7990                 KEY_PREFIX + "supported_ike_session_encryption_algorithms_int_array";
7991 
7992         /**
7993          * List of supported integrity algorithms for IKE session. Possible values are
7994          * {@link android.net.ipsec.ike.SaProposal#INTEGRITY_ALGORITHM_NONE},
7995          * {@link android.net.ipsec.ike.SaProposal#INTEGRITY_ALGORITHM_HMAC_SHA1_96},
7996          * {@link android.net.ipsec.ike.SaProposal#INTEGRITY_ALGORITHM_AES_XCBC_96},
7997          * {@link android.net.ipsec.ike.SaProposal#INTEGRITY_ALGORITHM_HMAC_SHA2_256_128},
7998          * {@link android.net.ipsec.ike.SaProposal#INTEGRITY_ALGORITHM_HMAC_SHA2_384_192},
7999          * {@link android.net.ipsec.ike.SaProposal#INTEGRITY_ALGORITHM_HMAC_SHA2_512_256}
8000          */
8001         public static final String KEY_SUPPORTED_INTEGRITY_ALGORITHMS_INT_ARRAY =
8002                 KEY_PREFIX + "supported_integrity_algorithms_int_array";
8003 
8004         /** Maximum number of retries for tunnel establishment. */
8005         public static final String KEY_MAX_RETRIES_INT = KEY_PREFIX + "max_retries_int";
8006 
8007         /**
8008          * Time in seconds after which a NATT keep alive message is sent. If not set or set to <= 0,
8009          * default value is 20 seconds.
8010          */
8011         public static final String KEY_NATT_KEEP_ALIVE_TIMER_SEC_INT =
8012                 KEY_PREFIX + "natt_keep_alive_timer_sec_int";
8013 
8014         /** List of '-' separated MCC/MNCs used to create ePDG FQDN as per 3GPP TS 23.003 */
8015         public static final String KEY_MCC_MNCS_STRING_ARRAY = KEY_PREFIX + "mcc_mncs_string_array";
8016 
8017         /**
8018          * List of supported pseudo random function algorithms for IKE session. Possible values are
8019          * {@link android.net.ipsec.ike.SaProposal#PSEUDORANDOM_FUNCTION_HMAC_SHA1},
8020          * {@link android.net.ipsec.ike.SaProposal#PSEUDORANDOM_FUNCTION_AES128_XCBC},
8021          * {@link android.net.ipsec.ike.SaProposal#PSEUDORANDOM_FUNCTION_SHA2_256},
8022          * {@link android.net.ipsec.ike.SaProposal#PSEUDORANDOM_FUNCTION_SHA2_384},
8023          * {@link android.net.ipsec.ike.SaProposal#PSEUDORANDOM_FUNCTION_SHA2_512}
8024          */
8025         public static final String KEY_SUPPORTED_PRF_ALGORITHMS_INT_ARRAY =
8026                 KEY_PREFIX + "supported_prf_algorithms_int_array";
8027 
8028         /**
8029          * List of IKE message retransmission timeouts in milliseconds, where each timeout
8030          * is the waiting time before next retry, except the last timeout which is the waiting time
8031          * before terminating the IKE Session. Min list length = 1, Max
8032          * list length = 10 Min timeout = 500 ms, Max timeout = 1800000 ms
8033          */
8034         public static final String KEY_RETRANSMIT_TIMER_MSEC_INT_ARRAY =
8035                 KEY_PREFIX + "retransmit_timer_sec_int_array";
8036 
8037         /**
8038          * Specifies the local identity type for IKE negotiations. Possible values are {@link
8039          * #ID_TYPE_FQDN}, {@link #ID_TYPE_RFC822_ADDR}, {@link #ID_TYPE_KEY_ID}
8040          */
8041         public static final String KEY_IKE_LOCAL_ID_TYPE_INT = KEY_PREFIX + "ike_local_id_type_int";
8042 
8043         /**
8044          * Specifies the remote identity type for IKE negotiations. Possible values are {@link
8045          * #ID_TYPE_FQDN}, {@link #ID_TYPE_RFC822_ADDR}, {@link #ID_TYPE_KEY_ID}
8046          */
8047         public static final String KEY_IKE_REMOTE_ID_TYPE_INT =
8048                 KEY_PREFIX + "ike_remote_id_type_int";
8049 
8050         /** Controls if KE payload should be added during child session local rekey procedure. */
8051         public static final String KEY_ADD_KE_TO_CHILD_SESSION_REKEY_BOOL =
8052                 KEY_PREFIX + "add_ke_to_child_session_rekey_bool";
8053 
8054         /** Specifies the PCO id for IPv6 Epdg server address */
8055         public static final String KEY_EPDG_PCO_ID_IPV6_INT = KEY_PREFIX + "epdg_pco_id_ipv6_int";
8056 
8057         /** Specifies the PCO id for IPv4 Epdg server address */
8058         public static final String KEY_EPDG_PCO_ID_IPV4_INT = KEY_PREFIX + "epdg_pco_id_ipv4_int";
8059 
8060         /** Controls if the IKE tunnel setup supports EAP-AKA fast reauth */
8061         public static final String KEY_SUPPORTS_EAP_AKA_FAST_REAUTH_BOOL =
8062                 KEY_PREFIX + "supports_eap_aka_fast_reauth_bool";
8063 
8064         /** @hide */
8065         @IntDef({AUTHENTICATION_METHOD_EAP_ONLY, AUTHENTICATION_METHOD_CERT})
8066         public @interface AuthenticationMethodType {}
8067 
8068         /**
8069          * Certificate sent from the server is ignored. Only Extensible Authentication Protocol
8070          * (EAP) is used to authenticate the server. EAP_ONLY_AUTH payload is added to IKE_AUTH
8071          * request if supported.
8072          *
8073          * @see <a href="https://tools.ietf.org/html/rfc5998">RFC 5998</a>
8074          */
8075         public static final int AUTHENTICATION_METHOD_EAP_ONLY = 0;
8076         /** Server is authenticated using its certificate. */
8077         public static final int AUTHENTICATION_METHOD_CERT = 1;
8078 
8079         /** @hide */
8080         @IntDef({
8081             EPDG_ADDRESS_STATIC,
8082             EPDG_ADDRESS_PLMN,
8083             EPDG_ADDRESS_PCO,
8084             EPDG_ADDRESS_CELLULAR_LOC,
8085             EPDG_ADDRESS_VISITED_COUNTRY
8086         })
8087         public @interface EpdgAddressType {}
8088 
8089         /** Use static epdg address. */
8090         public static final int EPDG_ADDRESS_STATIC = 0;
8091         /** Construct the epdg address using plmn. */
8092         public static final int EPDG_ADDRESS_PLMN = 1;
8093         /**
8094          * Use the epdg address received in protocol configuration options (PCO) from the network.
8095          */
8096         public static final int EPDG_ADDRESS_PCO = 2;
8097         /** Use cellular location to chose epdg server */
8098         public static final int EPDG_ADDRESS_CELLULAR_LOC = 3;
8099         /* Use Visited Country FQDN rule*/
8100         public static final int EPDG_ADDRESS_VISITED_COUNTRY = 4;
8101 
8102         /** @hide */
8103         @IntDef({ID_TYPE_FQDN, ID_TYPE_RFC822_ADDR, ID_TYPE_KEY_ID})
8104         public @interface IkeIdType {}
8105 
8106         /**
8107          * Ike Identification Fully Qualified Domain Name
8108          *
8109          * @see <a href="https://tools.ietf.org/html/rfc7296#section-3.5">RFC 7296, Internet Key
8110          *     Exchange Protocol Version 2 (IKEv2)</a>
8111          */
8112         public static final int ID_TYPE_FQDN = 2;
8113         /**
8114          * Ike Identification Fully Qualified RFC 822 email address.
8115          *
8116          * @see <a href="https://tools.ietf.org/html/rfc7296#section-3.5">RFC 7296, Internet Key
8117          *     Exchange Protocol Version 2 (IKEv2)</a>
8118          */
8119         public static final int ID_TYPE_RFC822_ADDR = 3;
8120         /**
8121          * Ike Identification opaque octet stream for vendor specific information
8122          *
8123          * @see <a href="https://tools.ietf.org/html/rfc7296#section-3.5">RFC 7296, Internet Key
8124          *     Exchange Protocol Version 2 (IKEv2)</a>
8125          */
8126         public static final int ID_TYPE_KEY_ID = 11;
8127 
Iwlan()8128         private Iwlan() {}
8129 
getDefaults()8130         private static PersistableBundle getDefaults() {
8131             PersistableBundle defaults = new PersistableBundle();
8132             defaults.putInt(KEY_IKE_REKEY_SOFT_TIMER_SEC_INT, 7200);
8133             defaults.putInt(KEY_IKE_REKEY_HARD_TIMER_SEC_INT, 14400);
8134             defaults.putInt(KEY_CHILD_SA_REKEY_SOFT_TIMER_SEC_INT, 3600);
8135             defaults.putInt(KEY_CHILD_SA_REKEY_HARD_TIMER_SEC_INT, 7200);
8136             defaults.putIntArray(
8137                     KEY_RETRANSMIT_TIMER_MSEC_INT_ARRAY, new int[] {500, 1000, 2000, 4000, 8000});
8138             defaults.putInt(KEY_DPD_TIMER_SEC_INT, 120);
8139             defaults.putInt(KEY_MAX_RETRIES_INT, 3);
8140             defaults.putIntArray(
8141                     KEY_DIFFIE_HELLMAN_GROUPS_INT_ARRAY,
8142                     new int[] {
8143                         SaProposal.DH_GROUP_1024_BIT_MODP,
8144                         SaProposal.DH_GROUP_1536_BIT_MODP,
8145                         SaProposal.DH_GROUP_2048_BIT_MODP
8146                     });
8147             defaults.putIntArray(
8148                     KEY_SUPPORTED_IKE_SESSION_ENCRYPTION_ALGORITHMS_INT_ARRAY,
8149                     new int[] {SaProposal.ENCRYPTION_ALGORITHM_AES_CBC});
8150             defaults.putIntArray(
8151                     KEY_SUPPORTED_CHILD_SESSION_ENCRYPTION_ALGORITHMS_INT_ARRAY,
8152                     new int[] {SaProposal.ENCRYPTION_ALGORITHM_AES_CBC});
8153             defaults.putIntArray(
8154                     KEY_SUPPORTED_INTEGRITY_ALGORITHMS_INT_ARRAY,
8155                     new int[] {
8156                         SaProposal.INTEGRITY_ALGORITHM_AES_XCBC_96,
8157                         SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA1_96,
8158                         SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA2_256_128,
8159                         SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA2_384_192,
8160                         SaProposal.INTEGRITY_ALGORITHM_HMAC_SHA2_512_256,
8161                     });
8162             defaults.putIntArray(
8163                     KEY_SUPPORTED_PRF_ALGORITHMS_INT_ARRAY,
8164                     new int[] {
8165                         SaProposal.PSEUDORANDOM_FUNCTION_HMAC_SHA1,
8166                         SaProposal.PSEUDORANDOM_FUNCTION_AES128_XCBC,
8167                         SaProposal.PSEUDORANDOM_FUNCTION_SHA2_256,
8168                         SaProposal.PSEUDORANDOM_FUNCTION_SHA2_384,
8169                         SaProposal.PSEUDORANDOM_FUNCTION_SHA2_512
8170                     });
8171 
8172             defaults.putInt(KEY_EPDG_AUTHENTICATION_METHOD_INT, AUTHENTICATION_METHOD_EAP_ONLY);
8173             defaults.putString(KEY_EPDG_STATIC_ADDRESS_STRING, "");
8174             defaults.putString(KEY_EPDG_STATIC_ADDRESS_ROAMING_STRING, "");
8175             // will be used after b/158036773 is fixed
8176             defaults.putInt(KEY_NATT_KEEP_ALIVE_TIMER_SEC_INT, 20);
8177             defaults.putIntArray(
8178                     KEY_IKE_SESSION_AES_CBC_KEY_SIZE_INT_ARRAY,
8179                     new int[] {
8180                       SaProposal.KEY_LEN_AES_128,
8181                       SaProposal.KEY_LEN_AES_192,
8182                       SaProposal.KEY_LEN_AES_256});
8183             defaults.putIntArray(
8184                     KEY_CHILD_SESSION_AES_CBC_KEY_SIZE_INT_ARRAY,
8185                     new int[] {
8186                       SaProposal.KEY_LEN_AES_128,
8187                       SaProposal.KEY_LEN_AES_192,
8188                       SaProposal.KEY_LEN_AES_256});
8189             defaults.putIntArray(
8190                     KEY_IKE_SESSION_AES_CTR_KEY_SIZE_INT_ARRAY,
8191                     new int[] {
8192                       SaProposal.KEY_LEN_AES_128,
8193                       SaProposal.KEY_LEN_AES_192,
8194                       SaProposal.KEY_LEN_AES_256});
8195             defaults.putIntArray(
8196                     KEY_CHILD_SESSION_AES_CTR_KEY_SIZE_INT_ARRAY,
8197                     new int[] {
8198                       SaProposal.KEY_LEN_AES_128,
8199                       SaProposal.KEY_LEN_AES_192,
8200                       SaProposal.KEY_LEN_AES_256});
8201             defaults.putIntArray(
8202                     KEY_EPDG_ADDRESS_PRIORITY_INT_ARRAY,
8203                     new int[] {EPDG_ADDRESS_PLMN, EPDG_ADDRESS_STATIC});
8204             defaults.putStringArray(KEY_MCC_MNCS_STRING_ARRAY, new String[] {});
8205             defaults.putInt(KEY_IKE_LOCAL_ID_TYPE_INT, ID_TYPE_RFC822_ADDR);
8206             defaults.putInt(KEY_IKE_REMOTE_ID_TYPE_INT, ID_TYPE_FQDN);
8207             defaults.putBoolean(KEY_ADD_KE_TO_CHILD_SESSION_REKEY_BOOL, false);
8208             defaults.putInt(KEY_EPDG_PCO_ID_IPV6_INT, 0);
8209             defaults.putInt(KEY_EPDG_PCO_ID_IPV4_INT, 0);
8210             defaults.putBoolean(KEY_SUPPORTS_EAP_AKA_FAST_REAUTH_BOOL, false);
8211 
8212             return defaults;
8213         }
8214     }
8215 
8216     /**
8217      * A list of 4 GSM RSSI thresholds above which a signal level is considered POOR,
8218      * MODERATE, GOOD, or EXCELLENT, to be used in SignalStrength reporting.
8219      *
8220      * Note that the min and max thresholds are fixed at -113 and -51, as set in 3GPP TS 27.007
8221      * section 8.5.
8222      * <p>
8223      * See CellSignalStrengthGsm#GSM_RSSI_MAX and CellSignalStrengthGsm#GSM_RSSI_MIN. Any signal
8224      * level outside these boundaries is considered invalid.
8225      * @hide
8226      */
8227     public static final String KEY_GSM_RSSI_THRESHOLDS_INT_ARRAY =
8228             "gsm_rssi_thresholds_int_array";
8229 
8230     /**
8231      * Determines whether Wireless Priority Service call is supported over IMS.
8232      *
8233      * See Wireless Priority Service from https://www.fcc.gov/general/wireless-priority-service-wps
8234      * @hide
8235      */
8236     public static final String KEY_SUPPORT_WPS_OVER_IMS_BOOL =
8237             "support_wps_over_ims_bool";
8238 
8239     /**
8240      * The two digital number pattern of MMI code which is defined by carrier.
8241      * If the dial number matches this pattern, it will be dialed out normally not USSD.
8242      *
8243      * @hide
8244      */
8245     public static final String KEY_MMI_TWO_DIGIT_NUMBER_PATTERN_STRING_ARRAY =
8246             "mmi_two_digit_number_pattern_string_array";
8247 
8248     /**
8249      * Holds the list of carrier certificate hashes, followed by optional package names.
8250      * Format: "sha1/256" or "sha1/256:package1,package2,package3..."
8251      * Note that each carrier has its own hashes.
8252      */
8253     public static final String KEY_CARRIER_CERTIFICATE_STRING_ARRAY =
8254             "carrier_certificate_string_array";
8255 
8256     /**
8257      * Flag specifying whether the incoming call number should be formatted to national number
8258      * for Japan. @return {@code true} convert to the national format, {@code false} otherwise.
8259      * e.g. "+819012345678" -> "09012345678"
8260      * @hide
8261      */
8262     public static final String KEY_FORMAT_INCOMING_NUMBER_TO_NATIONAL_FOR_JP_BOOL =
8263             "format_incoming_number_to_national_for_jp_bool";
8264 
8265     /**
8266      * DisconnectCause array to play busy tone. Value should be array of
8267      * {@link android.telephony.DisconnectCause}.
8268      */
8269     public static final String KEY_DISCONNECT_CAUSE_PLAY_BUSYTONE_INT_ARRAY =
8270             "disconnect_cause_play_busytone_int_array";
8271 
8272     /**
8273      * Flag specifying whether to prevent sending CLIR activation("*31#") and deactivation("#31#")
8274      * code only without dialing number.
8275      * When {@code true}, these are prevented, {@code false} otherwise.
8276      */
8277     public static final String KEY_PREVENT_CLIR_ACTIVATION_AND_DEACTIVATION_CODE_BOOL =
8278             "prevent_clir_activation_and_deactivation_code_bool";
8279 
8280     /**
8281      * Flag specifying whether to show forwarded number on call-in-progress screen.
8282      * When true, forwarded number is shown.
8283      * When false, forwarded number is not shown.
8284      */
8285     public static final String KEY_SHOW_FORWARDED_NUMBER_BOOL =
8286             "show_forwarded_number_bool";
8287 
8288     /**
8289      * The list of originating address of missed incoming call SMS. If the SMS has originator
8290      * matched, the SMS will be treated as special SMS for notifying missed incoming call to the
8291      * user.
8292      *
8293      * @hide
8294      */
8295     public static final String KEY_MISSED_INCOMING_CALL_SMS_ORIGINATOR_STRING_ARRAY =
8296             "missed_incoming_call_sms_originator_string_array";
8297 
8298 
8299     /**
8300      * String array of Apn Type configurations.
8301      * The entries should be of form "APN_TYPE_NAME:priority".
8302      * priority is an integer that is sorted from highest to lowest.
8303      * example: cbs:5
8304      *
8305      * @hide
8306      */
8307     public static final String KEY_APN_PRIORITY_STRING_ARRAY = "apn_priority_string_array";
8308 
8309     /**
8310      * Network capability priority for determine the satisfy order in telephony. The priority is
8311      * from the lowest 0 to the highest 100. The long-lived network shall have the lowest priority.
8312      * This allows other short-lived requests like MMS requests to be established. Emergency request
8313      * always has the highest priority.
8314      *
8315      * @hide
8316      */
8317     public static final String KEY_TELEPHONY_NETWORK_CAPABILITY_PRIORITIES_STRING_ARRAY =
8318             "telephony_network_capability_priorities_string_array";
8319 
8320     /**
8321      * Defines the rules for data setup retry.
8322      *
8323      * The syntax of the retry rule:
8324      * 1. Retry based on {@link NetworkCapabilities}. Note that only APN-type network capabilities
8325      *    are supported. If the capabilities are not specified, then the retry rule only applies
8326      *    to the current failed APN used in setup data call request.
8327      * "capabilities=[netCaps1|netCaps2|...], [retry_interval=n1|n2|n3|n4...], [maximum_retries=n]"
8328      *
8329      * 2. Retry based on {@link DataFailCause}
8330      * "fail_causes=[cause1|cause2|cause3|..], [retry_interval=n1|n2|n3|n4...], [maximum_retries=n]"
8331      *
8332      * 3. Retry based on {@link NetworkCapabilities} and {@link DataFailCause}. Note that only
8333      *    APN-type network capabilities are supported.
8334      * "capabilities=[netCaps1|netCaps2|...], fail_causes=[cause1|cause2|cause3|...],
8335      *     [retry_interval=n1|n2|n3|n4...], [maximum_retries=n]"
8336      *
8337      * 4. Permanent fail causes (no timer-based retry) on the current failed APN. Retry interval
8338      *    is specified for retrying the next available APN.
8339      * "permanent_fail_causes=8|27|28|29|30|32|33|35|50|51|111|-5|-6|65537|65538|-3|65543|65547|
8340      *     2252|2253|2254, retry_interval=2500"
8341      *
8342      * For example,
8343      * "capabilities=eims, retry_interval=1000, maximum_retries=20" means if the attached
8344      * network request is emergency, then retry data network setup every 1 second for up to 20
8345      * times.
8346      *
8347      * "capabilities=internet|enterprise|dun|ims|fota, retry_interval=2500|3000|"
8348      * "5000|10000|15000|20000|40000|60000|120000|240000|600000|1200000|1800000"
8349      * "1800000, maximum_retries=20" means for those capabilities, retry happens in 2.5s, 3s, 5s,
8350      * 10s, 15s, 20s, 40s, 1m, 2m, 4m, 10m, 20m, 30m, 30m, 30m, until reaching 20 retries.
8351      *
8352      * // TODO: remove KEY_CARRIER_DATA_CALL_RETRY_CONFIG_STRINGS
8353      * @hide
8354      */
8355     public static final String KEY_TELEPHONY_DATA_SETUP_RETRY_RULES_STRING_ARRAY =
8356             "telephony_data_setup_retry_rules_string_array";
8357 
8358     /**
8359      * Defines the rules for data handover retry.
8360      *
8361      * The syntax of the retry rule:
8362      * 1. Retry when handover fails.
8363      * "retry_interval=[n1|n2|n3|...], [maximum_retries=n]"
8364      *
8365      * For example,
8366      * "retry_interval=1000|3000|5000, maximum_retries=10" means handover retry will happen in 1s,
8367      * 3s, 5s, 5s, 5s....up to 10 times.
8368      *
8369      * 2. Retry when handover fails with certain fail causes.
8370      * "retry_interval=[n1|n2|n3|...], fail_causes=[cause1|cause2|cause3|...], [maximum_retries=n]
8371      *
8372      * For example,
8373      * "retry_interval=1000, maximum_retries=3, fail_causes=5" means handover retry every 1 second
8374      * for up to 3 times when handover fails with the cause 5.
8375      *
8376      * "maximum_retries=0, fail_causes=6|10|67" means handover retry should not happen for those
8377      * causes.
8378      *
8379      * @hide
8380      */
8381     public static final String KEY_TELEPHONY_DATA_HANDOVER_RETRY_RULES_STRING_ARRAY =
8382             "telephony_data_handover_retry_rules_string_array";
8383 
8384     /**
8385      * Indicates whether delay tearing down IMS data network until voice call ends.
8386      * @hide
8387      */
8388     public static final String KEY_DELAY_IMS_TEAR_DOWN_UNTIL_CALL_END_BOOL =
8389             "delay_ims_tear_down_until_call_end_bool";
8390 
8391     /**
8392      * The patterns of missed incoming call sms. This is the regular expression used for
8393      * matching the missed incoming call's date, time, and caller id. The pattern should match
8394      * fields for at least month, day, hour, and minute. Year is optional although it is encouraged.
8395      *
8396      * An usable pattern should look like this:
8397      * ^(?<month>0[1-9]|1[012])\/(?<day>0[1-9]|1[0-9]|2[0-9]|3[0-1]) (?<hour>[0-1][0-9]|2[0-3]):
8398      * (?<minute>[0-5][0-9])\s*(?<callerId>[0-9]+)\s*$
8399      *
8400      * @hide
8401      */
8402     public static final String KEY_MISSED_INCOMING_CALL_SMS_PATTERN_STRING_ARRAY =
8403             "missed_incoming_call_sms_pattern_string_array";
8404 
8405     /**
8406      * Indicating whether DUN APN should be disabled when the device is roaming. In that case,
8407      * the default APN (i.e. internet) will be used for tethering.
8408      *
8409      * This config is only available when using Preset APN(not user edited) as Preferred APN.
8410      *
8411      * @hide
8412      */
8413     public static final String KEY_DISABLE_DUN_APN_WHILE_ROAMING_WITH_PRESET_APN_BOOL =
8414             "disable_dun_apn_while_roaming_with_preset_apn_bool";
8415 
8416     /**
8417      * Where there is no preferred APN, specifies the carrier's default preferred APN.
8418      * Specifies the {@link android.provider.Telephony.Carriers.APN} of the default preferred apn.
8419      *
8420      * This config is only available with Preset APN(not user edited).
8421      *
8422      * @hide
8423      */
8424     public static final String KEY_DEFAULT_PREFERRED_APN_NAME_STRING =
8425             "default_preferred_apn_name_string";
8426 
8427     /**
8428      * Indicates if the carrier supports call composer.
8429      */
8430     public static final String KEY_SUPPORTS_CALL_COMPOSER_BOOL = "supports_call_composer_bool";
8431 
8432     /**
8433      * Indicates the carrier server url that serves the call composer picture.
8434      */
8435     public static final String KEY_CALL_COMPOSER_PICTURE_SERVER_URL_STRING =
8436             "call_composer_picture_server_url_string";
8437 
8438     /**
8439      * Determines the default RTT mode.
8440      *
8441      * Upon first boot, when the user has not yet set a value for their preferred RTT mode,
8442      * the value of this config will be sent to the IMS stack. Valid values are the same as for
8443      * {@link Settings.Secure#RTT_CALLING_MODE}.
8444      *
8445      * @hide
8446      */
8447     public static final String KEY_DEFAULT_RTT_MODE_INT =
8448             "default_rtt_mode_int";
8449 
8450     /**
8451      * Indicates whether RTT is supported while roaming.
8452      */
8453     public static final String KEY_RTT_SUPPORTED_WHILE_ROAMING_BOOL =
8454             "rtt_supported_while_roaming_bool";
8455 
8456     /**
8457      * Indicates if auto-configuration server is used for the RCS config
8458      * Reference: GSMA RCC.14
8459      */
8460     public static final String KEY_USE_ACS_FOR_RCS_BOOL = "use_acs_for_rcs_bool";
8461 
8462     /**
8463      * Indicates temporarily unmetered mobile data is supported by the carrier.
8464      * @hide
8465      */
8466     public static final String KEY_NETWORK_TEMP_NOT_METERED_SUPPORTED_BOOL =
8467             "network_temp_not_metered_supported_bool";
8468 
8469     /**
8470      * Boolean indicating whether the SIM PIN can be stored and verified
8471      * seamlessly after an unattended reboot.
8472      *
8473      * The device configuration value {@code config_allow_pin_storage_for_unattended_reboot}
8474      * ultimately controls whether this carrier configuration option is used.  Where
8475      * {@code config_allow_pin_storage_for_unattended_reboot} is false, the value of the
8476      * {@link #KEY_STORE_SIM_PIN_FOR_UNATTENDED_REBOOT_BOOL} carrier configuration option is
8477      * ignored.
8478      *
8479      * @hide
8480      */
8481     public static final String KEY_STORE_SIM_PIN_FOR_UNATTENDED_REBOOT_BOOL =
8482             "store_sim_pin_for_unattended_reboot_bool";
8483 
8484     /**
8485      * Allow whether the user can use the "Allow 2G" toggle in Settings.
8486      *
8487      * If {@code true} then the toggle is disabled (i.e. grayed out).
8488      *
8489      * Used to trade privacy/security against potentially reduced carrier coverage for some
8490      * carriers.
8491      */
8492     public static final String KEY_HIDE_ENABLE_2G = "hide_enable_2g_bool";
8493 
8494     /**
8495      * Indicates the allowed APN types that can be used for LTE initial attach. The order of APN
8496      * types in the configuration is the order of APN types that will be used for initial attach.
8497      * Empty list indicates that no APN types are allowed for initial attach.
8498      *
8499      * @hide
8500      */
8501     public static final String KEY_ALLOWED_INITIAL_ATTACH_APN_TYPES_STRING_ARRAY =
8502             "allowed_initial_attach_apn_types_string_array";
8503 
8504     /**
8505      * Indicates whether or not the carrier will provision merged carrier Wi-Fi offload networks.
8506      * Such networks are considered part of the core carrier network.
8507      *
8508      * This configuration will be use to gate whether such configurations are allowed to the carrier
8509      * and correspondingly enable UI elements which are required for such configurations.
8510      */
8511     public static final String KEY_CARRIER_PROVISIONS_WIFI_MERGED_NETWORKS_BOOL =
8512             "carrier_provisions_wifi_merged_networks_bool";
8513 
8514     /**
8515      * Determines whether or not to use (IP) data connectivity as a supplemental condition to
8516      * control the visibility of the no-calling indicator for this carrier in the System UI. Setting
8517      * the configuration to true may make sense for carriers that provide OTT calling.
8518      *
8519      * Config = true: show no-calling indication only if telephony does not have voice registration
8520      *                and if no (IP) data connectivity is available.
8521      * Config = false: show no-calling indication only if telephony does not have voice
8522      *                 registration.
8523      */
8524     public static final String KEY_USE_IP_FOR_CALLING_INDICATOR_BOOL =
8525             "use_ip_for_calling_indicator_bool";
8526 
8527     /**
8528      * Determine whether or not to display a call strength indicator for this carrier in the System
8529      * UI. Disabling the indication may be reasonable if the carrier's calling is not integrated
8530      * into the Android telephony stack (e.g. it is OTT).
8531      *
8532      * true: Use telephony APIs to detect the current networking medium of calling and display a
8533      *       UI indication based on the current strength (e.g. signal level) of that medium.
8534      * false: Do not display the call strength indicator.
8535      */
8536     public static final String KEY_DISPLAY_CALL_STRENGTH_INDICATOR_BOOL =
8537             "display_call_strength_indicator_bool";
8538 
8539     /**
8540      * Determine whether or not to display no data notification when data setup is permanently
8541      * failed.
8542      *
8543      * @hide
8544      */
8545     public static final String KEY_DISPLAY_NO_DATA_NOTIFICATION_ON_PERMANENT_FAILURE_BOOL =
8546             "display_no_data_notification_on_permanent_failure_bool";
8547 
8548     /**
8549      * Boolean indicating if the VoNR setting is visible in the Call Settings menu.
8550      * If true, the VoNR setting menu will be visible. If false, the menu will be gone.
8551      *
8552      * Disabled by default.
8553      *
8554      * @hide
8555      */
8556     public static final String KEY_VONR_SETTING_VISIBILITY_BOOL = "vonr_setting_visibility_bool";
8557 
8558     /**
8559      * Flag specifying whether VoNR should be enabled for carrier.
8560      * If true, VoNr will be enabled. If false, hard disabled.
8561      *
8562      * Disabled by default.
8563      *
8564      * @hide
8565      */
8566     public static final String KEY_VONR_ENABLED_BOOL = "vonr_enabled_bool";
8567 
8568     /**
8569      * Boolean indicating the default VoNR user preference setting.
8570      * If true, the VoNR setting will be enabled. If false, it will be disabled initially.
8571      *
8572      * Enabled by default.
8573      *
8574      * @hide
8575      */
8576     public static final String KEY_VONR_ON_BY_DEFAULT_BOOL = "vonr_on_by_default_bool";
8577 
8578     /**
8579      * Determine whether unthrottle data retry when tracking area code (TAC/LAC) from cell changes
8580      *
8581      * @hide
8582      */
8583     public static final String KEY_UNTHROTTLE_DATA_RETRY_WHEN_TAC_CHANGES_BOOL =
8584             "unthrottle_data_retry_when_tac_changes_bool";
8585 
8586     /**
8587      * IWLAN handover rules that determine whether handover is allowed or disallowed between
8588      * cellular and IWLAN.
8589      *
8590      * Rule syntax: "source=[GERAN|UTRAN|EUTRAN|NGRAN|IWLAN|UNKNOWN], target=[GERAN|UTRAN|EUTRAN
8591      * |NGRAN|IWLAN], type=[allowed|disallowed], roaming=[true|false], capabilities=[INTERNET|MMS
8592      * |FOTA|IMS|CBS|SUPL|EIMS|XCAP|DUN]"
8593      *
8594      * Note that UNKNOWN can be only specified in the source access network and can be only used
8595      * in the disallowed rule.
8596      *
8597      * The handover rules will be matched in the order. Here are some sample rules.
8598      * <string-array name="iwlan_handover_rules" num="5">
8599      *     <!-- Handover from IWLAN to 2G/3G is not allowed -->
8600      *     <item value="source=IWLAN, target=GERAN|UTRAN, type=disallowed"/>
8601      *     <!-- Handover from 2G/3G to IWLAN is not allowed -->
8602      *     <item value="source=GERAN|UTRAN, target:IWLAN, type=disallowed"/>
8603      *     <!-- Handover from IWLAN to 3G/4G/5G is not allowed if the device is roaming. -->
8604      *     <item value="source=IWLAN, target=UTRAN|EUTRAN|NGRAN, roaming=true, type=disallowed"/>
8605      *     <!-- Handover from 4G to IWLAN is not allowed if the device has capability in either IMS
8606      *     or EIMS-->
8607      *     <item value="source=EUTRAN, target=IWLAN, type=disallowed, capabilities=IMS|EIMS"/>
8608      *     <!-- Handover is always allowed in any condition. -->
8609      *     <item value="source=GERAN|UTRAN|EUTRAN|NGRAN|IWLAN,
8610      *         target=GERAN|UTRAN|EUTRAN|NGRAN|IWLAN, type=allowed"/>
8611      * </string-array>
8612      *
8613      * When handover is not allowed, frameworks will tear down the data network on source transport,
8614      * and then setup a new one on the target transport when Qualified Network Service changes the
8615      * preferred access networks for particular APN types.
8616      *
8617      * @hide
8618      */
8619     public static final String KEY_IWLAN_HANDOVER_POLICY_STRING_ARRAY =
8620             "iwlan_handover_policy_string_array";
8621 
8622     /** The default value for every variable. */
8623     private final static PersistableBundle sDefaults;
8624 
8625     static {
8626         sDefaults = new PersistableBundle();
sDefaults.putString(KEY_CARRIER_CONFIG_VERSION_STRING, "")8627         sDefaults.putString(KEY_CARRIER_CONFIG_VERSION_STRING, "");
sDefaults.putBoolean(KEY_ALLOW_HOLD_IN_IMS_CALL_BOOL, true)8628         sDefaults.putBoolean(KEY_ALLOW_HOLD_IN_IMS_CALL_BOOL, true);
sDefaults.putBoolean(KEY_CARRIER_ALLOW_DEFLECT_IMS_CALL_BOOL, false)8629         sDefaults.putBoolean(KEY_CARRIER_ALLOW_DEFLECT_IMS_CALL_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_ALLOW_TRANSFER_IMS_CALL_BOOL, false)8630         sDefaults.putBoolean(KEY_CARRIER_ALLOW_TRANSFER_IMS_CALL_BOOL, false);
sDefaults.putBoolean(KEY_ALWAYS_PLAY_REMOTE_HOLD_TONE_BOOL, false)8631         sDefaults.putBoolean(KEY_ALWAYS_PLAY_REMOTE_HOLD_TONE_BOOL, false);
sDefaults.putBoolean(KEY_AUTO_RETRY_FAILED_WIFI_EMERGENCY_CALL, false)8632         sDefaults.putBoolean(KEY_AUTO_RETRY_FAILED_WIFI_EMERGENCY_CALL, false);
sDefaults.putBoolean(KEY_ADDITIONAL_CALL_SETTING_BOOL, true)8633         sDefaults.putBoolean(KEY_ADDITIONAL_CALL_SETTING_BOOL, true);
sDefaults.putBoolean(KEY_ALLOW_EMERGENCY_NUMBERS_IN_CALL_LOG_BOOL, false)8634         sDefaults.putBoolean(KEY_ALLOW_EMERGENCY_NUMBERS_IN_CALL_LOG_BOOL, false);
sDefaults.putStringArray(KEY_UNLOGGABLE_NUMBERS_STRING_ARRAY, null)8635         sDefaults.putStringArray(KEY_UNLOGGABLE_NUMBERS_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_ALLOW_LOCAL_DTMF_TONES_BOOL, true)8636         sDefaults.putBoolean(KEY_ALLOW_LOCAL_DTMF_TONES_BOOL, true);
sDefaults.putBoolean(KEY_PLAY_CALL_RECORDING_TONE_BOOL, false)8637         sDefaults.putBoolean(KEY_PLAY_CALL_RECORDING_TONE_BOOL, false);
sDefaults.putBoolean(KEY_APN_EXPAND_BOOL, true)8638         sDefaults.putBoolean(KEY_APN_EXPAND_BOOL, true);
sDefaults.putBoolean(KEY_AUTO_RETRY_ENABLED_BOOL, false)8639         sDefaults.putBoolean(KEY_AUTO_RETRY_ENABLED_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_SETTINGS_ENABLE_BOOL, false)8640         sDefaults.putBoolean(KEY_CARRIER_SETTINGS_ENABLE_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_VOLTE_AVAILABLE_BOOL, false)8641         sDefaults.putBoolean(KEY_CARRIER_VOLTE_AVAILABLE_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_VT_AVAILABLE_BOOL, false)8642         sDefaults.putBoolean(KEY_CARRIER_VT_AVAILABLE_BOOL, false);
sDefaults.putInt(KEY_CARRIER_USSD_METHOD_INT, USSD_OVER_CS_PREFERRED)8643         sDefaults.putInt(KEY_CARRIER_USSD_METHOD_INT, USSD_OVER_CS_PREFERRED);
sDefaults.putBoolean(KEY_VOLTE_5G_LIMITED_ALERT_DIALOG_BOOL, false)8644         sDefaults.putBoolean(KEY_VOLTE_5G_LIMITED_ALERT_DIALOG_BOOL, false);
sDefaults.putBoolean(KEY_NOTIFY_HANDOVER_VIDEO_FROM_WIFI_TO_LTE_BOOL, false)8645         sDefaults.putBoolean(KEY_NOTIFY_HANDOVER_VIDEO_FROM_WIFI_TO_LTE_BOOL, false);
sDefaults.putBoolean(KEY_ALLOW_MERGING_RTT_CALLS_BOOL, false)8646         sDefaults.putBoolean(KEY_ALLOW_MERGING_RTT_CALLS_BOOL, false);
sDefaults.putBoolean(KEY_NOTIFY_HANDOVER_VIDEO_FROM_LTE_TO_WIFI_BOOL, false)8647         sDefaults.putBoolean(KEY_NOTIFY_HANDOVER_VIDEO_FROM_LTE_TO_WIFI_BOOL, false);
sDefaults.putBoolean(KEY_SUPPORT_DOWNGRADE_VT_TO_AUDIO_BOOL, true)8648         sDefaults.putBoolean(KEY_SUPPORT_DOWNGRADE_VT_TO_AUDIO_BOOL, true);
sDefaults.putString(KEY_DEFAULT_VM_NUMBER_STRING, "")8649         sDefaults.putString(KEY_DEFAULT_VM_NUMBER_STRING, "");
sDefaults.putString(KEY_DEFAULT_VM_NUMBER_ROAMING_STRING, "")8650         sDefaults.putString(KEY_DEFAULT_VM_NUMBER_ROAMING_STRING, "");
sDefaults.putString(KEY_DEFAULT_VM_NUMBER_ROAMING_AND_IMS_UNREGISTERED_STRING, "")8651         sDefaults.putString(KEY_DEFAULT_VM_NUMBER_ROAMING_AND_IMS_UNREGISTERED_STRING, "");
sDefaults.putBoolean(KEY_CONFIG_TELEPHONY_USE_OWN_NUMBER_FOR_VOICEMAIL_BOOL, false)8652         sDefaults.putBoolean(KEY_CONFIG_TELEPHONY_USE_OWN_NUMBER_FOR_VOICEMAIL_BOOL, false);
sDefaults.putBoolean(KEY_IGNORE_DATA_ENABLED_CHANGED_FOR_VIDEO_CALLS, true)8653         sDefaults.putBoolean(KEY_IGNORE_DATA_ENABLED_CHANGED_FOR_VIDEO_CALLS, true);
sDefaults.putBoolean(KEY_VILTE_DATA_IS_METERED_BOOL, true)8654         sDefaults.putBoolean(KEY_VILTE_DATA_IS_METERED_BOOL, true);
sDefaults.putBoolean(KEY_CARRIER_WFC_IMS_AVAILABLE_BOOL, false)8655         sDefaults.putBoolean(KEY_CARRIER_WFC_IMS_AVAILABLE_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_CROSS_SIM_IMS_AVAILABLE_BOOL, false)8656         sDefaults.putBoolean(KEY_CARRIER_CROSS_SIM_IMS_AVAILABLE_BOOL, false);
sDefaults.putBoolean(KEY_ENABLE_CROSS_SIM_CALLING_ON_OPPORTUNISTIC_DATA_BOOL, false)8657         sDefaults.putBoolean(KEY_ENABLE_CROSS_SIM_CALLING_ON_OPPORTUNISTIC_DATA_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_WFC_SUPPORTS_WIFI_ONLY_BOOL, false)8658         sDefaults.putBoolean(KEY_CARRIER_WFC_SUPPORTS_WIFI_ONLY_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_DEFAULT_WFC_IMS_ENABLED_BOOL, false)8659         sDefaults.putBoolean(KEY_CARRIER_DEFAULT_WFC_IMS_ENABLED_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_ENABLED_BOOL, false)8660         sDefaults.putBoolean(KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_ENABLED_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_PROMOTE_WFC_ON_CALL_FAIL_BOOL, false)8661         sDefaults.putBoolean(KEY_CARRIER_PROMOTE_WFC_ON_CALL_FAIL_BOOL, false);
sDefaults.putInt(KEY_CARRIER_DEFAULT_WFC_IMS_MODE_INT, 2)8662         sDefaults.putInt(KEY_CARRIER_DEFAULT_WFC_IMS_MODE_INT, 2);
sDefaults.putInt(KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_MODE_INT, 2)8663         sDefaults.putInt(KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_MODE_INT, 2);
sDefaults.putBoolean(KEY_CARRIER_FORCE_DISABLE_ETWS_CMAS_TEST_BOOL, false)8664         sDefaults.putBoolean(KEY_CARRIER_FORCE_DISABLE_ETWS_CMAS_TEST_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_RCS_PROVISIONING_REQUIRED_BOOL, true)8665         sDefaults.putBoolean(KEY_CARRIER_RCS_PROVISIONING_REQUIRED_BOOL, true);
sDefaults.putBoolean(KEY_CARRIER_VOLTE_PROVISIONING_REQUIRED_BOOL, false)8666         sDefaults.putBoolean(KEY_CARRIER_VOLTE_PROVISIONING_REQUIRED_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_UT_PROVISIONING_REQUIRED_BOOL, false)8667         sDefaults.putBoolean(KEY_CARRIER_UT_PROVISIONING_REQUIRED_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_SUPPORTS_SS_OVER_UT_BOOL, false)8668         sDefaults.putBoolean(KEY_CARRIER_SUPPORTS_SS_OVER_UT_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_VOLTE_OVERRIDE_WFC_PROVISIONING_BOOL, false)8669         sDefaults.putBoolean(KEY_CARRIER_VOLTE_OVERRIDE_WFC_PROVISIONING_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL, true)8670         sDefaults.putBoolean(KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL, true);
sDefaults.putBoolean(KEY_CARRIER_VOWIFI_TTY_SUPPORTED_BOOL, true)8671         sDefaults.putBoolean(KEY_CARRIER_VOWIFI_TTY_SUPPORTED_BOOL, true);
sDefaults.putBoolean(KEY_CARRIER_ALLOW_TURNOFF_IMS_BOOL, true)8672         sDefaults.putBoolean(KEY_CARRIER_ALLOW_TURNOFF_IMS_BOOL, true);
sDefaults.putBoolean(KEY_CARRIER_IMS_GBA_REQUIRED_BOOL, false)8673         sDefaults.putBoolean(KEY_CARRIER_IMS_GBA_REQUIRED_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL, false)8674         sDefaults.putBoolean(KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_USE_IMS_FIRST_FOR_EMERGENCY_BOOL, true)8675         sDefaults.putBoolean(KEY_CARRIER_USE_IMS_FIRST_FOR_EMERGENCY_BOOL, true);
sDefaults.putBoolean(KEY_USE_ONLY_DIALED_SIM_ECC_LIST_BOOL, false)8676         sDefaults.putBoolean(KEY_USE_ONLY_DIALED_SIM_ECC_LIST_BOOL, false);
sDefaults.putString(KEY_CARRIER_NETWORK_SERVICE_WWAN_PACKAGE_OVERRIDE_STRING, "")8677         sDefaults.putString(KEY_CARRIER_NETWORK_SERVICE_WWAN_PACKAGE_OVERRIDE_STRING, "");
sDefaults.putString(KEY_CARRIER_NETWORK_SERVICE_WLAN_PACKAGE_OVERRIDE_STRING, "")8678         sDefaults.putString(KEY_CARRIER_NETWORK_SERVICE_WLAN_PACKAGE_OVERRIDE_STRING, "");
sDefaults.putString(KEY_CARRIER_QUALIFIED_NETWORKS_SERVICE_PACKAGE_OVERRIDE_STRING, "")8679         sDefaults.putString(KEY_CARRIER_QUALIFIED_NETWORKS_SERVICE_PACKAGE_OVERRIDE_STRING, "");
sDefaults.putString(KEY_CARRIER_DATA_SERVICE_WWAN_PACKAGE_OVERRIDE_STRING, "")8680         sDefaults.putString(KEY_CARRIER_DATA_SERVICE_WWAN_PACKAGE_OVERRIDE_STRING, "");
sDefaults.putString(KEY_CARRIER_DATA_SERVICE_WLAN_PACKAGE_OVERRIDE_STRING, "")8681         sDefaults.putString(KEY_CARRIER_DATA_SERVICE_WLAN_PACKAGE_OVERRIDE_STRING, "");
sDefaults.putString(KEY_CARRIER_INSTANT_LETTERING_INVALID_CHARS_STRING, "")8682         sDefaults.putString(KEY_CARRIER_INSTANT_LETTERING_INVALID_CHARS_STRING, "");
sDefaults.putString(KEY_CARRIER_INSTANT_LETTERING_ESCAPED_CHARS_STRING, "")8683         sDefaults.putString(KEY_CARRIER_INSTANT_LETTERING_ESCAPED_CHARS_STRING, "");
sDefaults.putString(KEY_CARRIER_INSTANT_LETTERING_ENCODING_STRING, "")8684         sDefaults.putString(KEY_CARRIER_INSTANT_LETTERING_ENCODING_STRING, "");
sDefaults.putInt(KEY_CARRIER_INSTANT_LETTERING_LENGTH_LIMIT_INT, 64)8685         sDefaults.putInt(KEY_CARRIER_INSTANT_LETTERING_LENGTH_LIMIT_INT, 64);
sDefaults.putBoolean(KEY_DISABLE_CDMA_ACTIVATION_CODE_BOOL, false)8686         sDefaults.putBoolean(KEY_DISABLE_CDMA_ACTIVATION_CODE_BOOL, false);
sDefaults.putBoolean(KEY_DTMF_TYPE_ENABLED_BOOL, false)8687         sDefaults.putBoolean(KEY_DTMF_TYPE_ENABLED_BOOL, false);
sDefaults.putBoolean(KEY_ENABLE_DIALER_KEY_VIBRATION_BOOL, true)8688         sDefaults.putBoolean(KEY_ENABLE_DIALER_KEY_VIBRATION_BOOL, true);
sDefaults.putBoolean(KEY_HAS_IN_CALL_NOISE_SUPPRESSION_BOOL, false)8689         sDefaults.putBoolean(KEY_HAS_IN_CALL_NOISE_SUPPRESSION_BOOL, false);
sDefaults.putBoolean(KEY_HIDE_CARRIER_NETWORK_SETTINGS_BOOL, false)8690         sDefaults.putBoolean(KEY_HIDE_CARRIER_NETWORK_SETTINGS_BOOL, false);
sDefaults.putBoolean(KEY_ONLY_AUTO_SELECT_IN_HOME_NETWORK_BOOL, false)8691         sDefaults.putBoolean(KEY_ONLY_AUTO_SELECT_IN_HOME_NETWORK_BOOL, false);
sDefaults.putBoolean(KEY_SHOW_SINGLE_OPERATOR_ROW_IN_CHOOSE_NETWORK_SETTING_BOOL, true)8692         sDefaults.putBoolean(KEY_SHOW_SINGLE_OPERATOR_ROW_IN_CHOOSE_NETWORK_SETTING_BOOL, true);
sDefaults.putBoolean(KEY_SHOW_SPN_FOR_HOME_IN_CHOOSE_NETWORK_SETTING_BOOL, false)8693         sDefaults.putBoolean(KEY_SHOW_SPN_FOR_HOME_IN_CHOOSE_NETWORK_SETTING_BOOL, false);
sDefaults.putBoolean(KEY_SIMPLIFIED_NETWORK_SETTINGS_BOOL, false)8694         sDefaults.putBoolean(KEY_SIMPLIFIED_NETWORK_SETTINGS_BOOL, false);
sDefaults.putBoolean(KEY_HIDE_SIM_LOCK_SETTINGS_BOOL, false)8695         sDefaults.putBoolean(KEY_HIDE_SIM_LOCK_SETTINGS_BOOL, false);
8696 
sDefaults.putBoolean(KEY_CARRIER_VOLTE_PROVISIONED_BOOL, false)8697         sDefaults.putBoolean(KEY_CARRIER_VOLTE_PROVISIONED_BOOL, false);
sDefaults.putBoolean(KEY_CALL_BARRING_VISIBILITY_BOOL, false)8698         sDefaults.putBoolean(KEY_CALL_BARRING_VISIBILITY_BOOL, false);
sDefaults.putBoolean(KEY_CALL_BARRING_SUPPORTS_PASSWORD_CHANGE_BOOL, true)8699         sDefaults.putBoolean(KEY_CALL_BARRING_SUPPORTS_PASSWORD_CHANGE_BOOL, true);
sDefaults.putBoolean(KEY_CALL_BARRING_SUPPORTS_DEACTIVATE_ALL_BOOL, true)8700         sDefaults.putBoolean(KEY_CALL_BARRING_SUPPORTS_DEACTIVATE_ALL_BOOL, true);
sDefaults.putInt(KEY_CALL_BARRING_DEFAULT_SERVICE_CLASS_INT, SERVICE_CLASS_VOICE)8701         sDefaults.putInt(KEY_CALL_BARRING_DEFAULT_SERVICE_CLASS_INT, SERVICE_CLASS_VOICE);
sDefaults.putBoolean(KEY_SUPPORT_SS_OVER_CDMA_BOOL, false)8702         sDefaults.putBoolean(KEY_SUPPORT_SS_OVER_CDMA_BOOL, false);
sDefaults.putBoolean(KEY_CALL_FORWARDING_VISIBILITY_BOOL, true)8703         sDefaults.putBoolean(KEY_CALL_FORWARDING_VISIBILITY_BOOL, true);
sDefaults.putBoolean(KEY_CALL_FORWARDING_WHEN_UNREACHABLE_SUPPORTED_BOOL, true)8704         sDefaults.putBoolean(KEY_CALL_FORWARDING_WHEN_UNREACHABLE_SUPPORTED_BOOL, true);
sDefaults.putBoolean(KEY_CALL_FORWARDING_WHEN_UNANSWERED_SUPPORTED_BOOL, true)8705         sDefaults.putBoolean(KEY_CALL_FORWARDING_WHEN_UNANSWERED_SUPPORTED_BOOL, true);
sDefaults.putBoolean(KEY_CALL_FORWARDING_WHEN_BUSY_SUPPORTED_BOOL, true)8706         sDefaults.putBoolean(KEY_CALL_FORWARDING_WHEN_BUSY_SUPPORTED_BOOL, true);
sDefaults.putBoolean(KEY_ADDITIONAL_SETTINGS_CALLER_ID_VISIBILITY_BOOL, true)8707         sDefaults.putBoolean(KEY_ADDITIONAL_SETTINGS_CALLER_ID_VISIBILITY_BOOL, true);
sDefaults.putBoolean(KEY_ADDITIONAL_SETTINGS_CALL_WAITING_VISIBILITY_BOOL, true)8708         sDefaults.putBoolean(KEY_ADDITIONAL_SETTINGS_CALL_WAITING_VISIBILITY_BOOL, true);
sDefaults.putBoolean(KEY_DISABLE_SUPPLEMENTARY_SERVICES_IN_AIRPLANE_MODE_BOOL, false)8709         sDefaults.putBoolean(KEY_DISABLE_SUPPLEMENTARY_SERVICES_IN_AIRPLANE_MODE_BOOL, false);
sDefaults.putBoolean(KEY_IGNORE_SIM_NETWORK_LOCKED_EVENTS_BOOL, false)8710         sDefaults.putBoolean(KEY_IGNORE_SIM_NETWORK_LOCKED_EVENTS_BOOL, false);
sDefaults.putBoolean(KEY_MDN_IS_ADDITIONAL_VOICEMAIL_NUMBER_BOOL, false)8711         sDefaults.putBoolean(KEY_MDN_IS_ADDITIONAL_VOICEMAIL_NUMBER_BOOL, false);
sDefaults.putBoolean(KEY_OPERATOR_SELECTION_EXPAND_BOOL, true)8712         sDefaults.putBoolean(KEY_OPERATOR_SELECTION_EXPAND_BOOL, true);
sDefaults.putBoolean(KEY_PREFER_2G_BOOL, false)8713         sDefaults.putBoolean(KEY_PREFER_2G_BOOL, false);
sDefaults.putBoolean(KEY_4G_ONLY_BOOL, false)8714         sDefaults.putBoolean(KEY_4G_ONLY_BOOL, false);
sDefaults.putBoolean(KEY_SHOW_APN_SETTING_CDMA_BOOL, false)8715         sDefaults.putBoolean(KEY_SHOW_APN_SETTING_CDMA_BOOL, false);
sDefaults.putBoolean(KEY_SHOW_CDMA_CHOICES_BOOL, false)8716         sDefaults.putBoolean(KEY_SHOW_CDMA_CHOICES_BOOL, false);
sDefaults.putBoolean(KEY_SMS_REQUIRES_DESTINATION_NUMBER_CONVERSION_BOOL, false)8717         sDefaults.putBoolean(KEY_SMS_REQUIRES_DESTINATION_NUMBER_CONVERSION_BOOL, false);
sDefaults.putBoolean(KEY_SUPPORT_EMERGENCY_SMS_OVER_IMS_BOOL, false)8718         sDefaults.putBoolean(KEY_SUPPORT_EMERGENCY_SMS_OVER_IMS_BOOL, false);
sDefaults.putBoolean(KEY_SHOW_ONSCREEN_DIAL_BUTTON_BOOL, true)8719         sDefaults.putBoolean(KEY_SHOW_ONSCREEN_DIAL_BUTTON_BOOL, true);
sDefaults.putBoolean(KEY_SIM_NETWORK_UNLOCK_ALLOW_DISMISS_BOOL, true)8720         sDefaults.putBoolean(KEY_SIM_NETWORK_UNLOCK_ALLOW_DISMISS_BOOL, true);
sDefaults.putBoolean(KEY_SUPPORT_PAUSE_IMS_VIDEO_CALLS_BOOL, false)8721         sDefaults.putBoolean(KEY_SUPPORT_PAUSE_IMS_VIDEO_CALLS_BOOL, false);
sDefaults.putBoolean(KEY_SUPPORT_SWAP_AFTER_MERGE_BOOL, true)8722         sDefaults.putBoolean(KEY_SUPPORT_SWAP_AFTER_MERGE_BOOL, true);
sDefaults.putBoolean(KEY_USE_HFA_FOR_PROVISIONING_BOOL, false)8723         sDefaults.putBoolean(KEY_USE_HFA_FOR_PROVISIONING_BOOL, false);
sDefaults.putBoolean(KEY_EDITABLE_VOICEMAIL_NUMBER_SETTING_BOOL, true)8724         sDefaults.putBoolean(KEY_EDITABLE_VOICEMAIL_NUMBER_SETTING_BOOL, true);
sDefaults.putBoolean(KEY_EDITABLE_VOICEMAIL_NUMBER_BOOL, false)8725         sDefaults.putBoolean(KEY_EDITABLE_VOICEMAIL_NUMBER_BOOL, false);
sDefaults.putBoolean(KEY_USE_OTASP_FOR_PROVISIONING_BOOL, false)8726         sDefaults.putBoolean(KEY_USE_OTASP_FOR_PROVISIONING_BOOL, false);
sDefaults.putBoolean(KEY_VOICEMAIL_NOTIFICATION_PERSISTENT_BOOL, false)8727         sDefaults.putBoolean(KEY_VOICEMAIL_NOTIFICATION_PERSISTENT_BOOL, false);
sDefaults.putBoolean(KEY_VOICE_PRIVACY_DISABLE_UI_BOOL, false)8728         sDefaults.putBoolean(KEY_VOICE_PRIVACY_DISABLE_UI_BOOL, false);
sDefaults.putBoolean(KEY_WORLD_PHONE_BOOL, false)8729         sDefaults.putBoolean(KEY_WORLD_PHONE_BOOL, false);
sDefaults.putBoolean(KEY_REQUIRE_ENTITLEMENT_CHECKS_BOOL, true)8730         sDefaults.putBoolean(KEY_REQUIRE_ENTITLEMENT_CHECKS_BOOL, true);
sDefaults.putBoolean(KEY_CARRIER_SUPPORTS_TETHERING_BOOL, true)8731         sDefaults.putBoolean(KEY_CARRIER_SUPPORTS_TETHERING_BOOL, true);
sDefaults.putBoolean(KEY_RESTART_RADIO_ON_PDP_FAIL_REGULAR_DEACTIVATION_BOOL, false)8732         sDefaults.putBoolean(KEY_RESTART_RADIO_ON_PDP_FAIL_REGULAR_DEACTIVATION_BOOL, false);
sDefaults.putIntArray(KEY_RADIO_RESTART_FAILURE_CAUSES_INT_ARRAY, new int[]{})8733         sDefaults.putIntArray(KEY_RADIO_RESTART_FAILURE_CAUSES_INT_ARRAY, new int[]{});
sDefaults.putInt(KEY_VOLTE_REPLACEMENT_RAT_INT, 0)8734         sDefaults.putInt(KEY_VOLTE_REPLACEMENT_RAT_INT, 0);
sDefaults.putString(KEY_DEFAULT_SIM_CALL_MANAGER_STRING, "")8735         sDefaults.putString(KEY_DEFAULT_SIM_CALL_MANAGER_STRING, "");
sDefaults.putString(KEY_VVM_DESTINATION_NUMBER_STRING, "")8736         sDefaults.putString(KEY_VVM_DESTINATION_NUMBER_STRING, "");
sDefaults.putInt(KEY_VVM_PORT_NUMBER_INT, 0)8737         sDefaults.putInt(KEY_VVM_PORT_NUMBER_INT, 0);
sDefaults.putString(KEY_VVM_TYPE_STRING, "")8738         sDefaults.putString(KEY_VVM_TYPE_STRING, "");
sDefaults.putBoolean(KEY_VVM_CELLULAR_DATA_REQUIRED_BOOL, false)8739         sDefaults.putBoolean(KEY_VVM_CELLULAR_DATA_REQUIRED_BOOL, false);
sDefaults.putString(KEY_VVM_CLIENT_PREFIX_STRING,"//VVM")8740         sDefaults.putString(KEY_VVM_CLIENT_PREFIX_STRING,"//VVM");
sDefaults.putBoolean(KEY_VVM_SSL_ENABLED_BOOL,false)8741         sDefaults.putBoolean(KEY_VVM_SSL_ENABLED_BOOL,false);
sDefaults.putStringArray(KEY_VVM_DISABLED_CAPABILITIES_STRING_ARRAY, null)8742         sDefaults.putStringArray(KEY_VVM_DISABLED_CAPABILITIES_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_VVM_LEGACY_MODE_ENABLED_BOOL,false)8743         sDefaults.putBoolean(KEY_VVM_LEGACY_MODE_ENABLED_BOOL,false);
sDefaults.putBoolean(KEY_VVM_PREFETCH_BOOL, true)8744         sDefaults.putBoolean(KEY_VVM_PREFETCH_BOOL, true);
sDefaults.putString(KEY_CARRIER_VVM_PACKAGE_NAME_STRING, "")8745         sDefaults.putString(KEY_CARRIER_VVM_PACKAGE_NAME_STRING, "");
sDefaults.putStringArray(KEY_CARRIER_VVM_PACKAGE_NAME_STRING_ARRAY, null)8746         sDefaults.putStringArray(KEY_CARRIER_VVM_PACKAGE_NAME_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_SHOW_ICCID_IN_SIM_STATUS_BOOL, false)8747         sDefaults.putBoolean(KEY_SHOW_ICCID_IN_SIM_STATUS_BOOL, false);
sDefaults.putBoolean(KEY_SHOW_SIGNAL_STRENGTH_IN_SIM_STATUS_BOOL, true)8748         sDefaults.putBoolean(KEY_SHOW_SIGNAL_STRENGTH_IN_SIM_STATUS_BOOL, true);
sDefaults.putBoolean(KEY_INFLATE_SIGNAL_STRENGTH_BOOL, false)8749         sDefaults.putBoolean(KEY_INFLATE_SIGNAL_STRENGTH_BOOL, false);
sDefaults.putBoolean(KEY_CI_ACTION_ON_SYS_UPDATE_BOOL, false)8750         sDefaults.putBoolean(KEY_CI_ACTION_ON_SYS_UPDATE_BOOL, false);
sDefaults.putString(KEY_CI_ACTION_ON_SYS_UPDATE_INTENT_STRING, "")8751         sDefaults.putString(KEY_CI_ACTION_ON_SYS_UPDATE_INTENT_STRING, "");
sDefaults.putString(KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_STRING, "")8752         sDefaults.putString(KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_STRING, "");
sDefaults.putString(KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_VAL_STRING, "")8753         sDefaults.putString(KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_VAL_STRING, "");
sDefaults.putBoolean(KEY_CSP_ENABLED_BOOL, false)8754         sDefaults.putBoolean(KEY_CSP_ENABLED_BOOL, false);
sDefaults.putBoolean(KEY_ALLOW_ADDING_APNS_BOOL, true)8755         sDefaults.putBoolean(KEY_ALLOW_ADDING_APNS_BOOL, true);
sDefaults.putStringArray(KEY_READ_ONLY_APN_TYPES_STRING_ARRAY, new String[] {"dun"})8756         sDefaults.putStringArray(KEY_READ_ONLY_APN_TYPES_STRING_ARRAY, new String[] {"dun"});
sDefaults.putStringArray(KEY_READ_ONLY_APN_FIELDS_STRING_ARRAY, null)8757         sDefaults.putStringArray(KEY_READ_ONLY_APN_FIELDS_STRING_ARRAY, null);
sDefaults.putStringArray(KEY_APN_SETTINGS_DEFAULT_APN_TYPES_STRING_ARRAY, null)8758         sDefaults.putStringArray(KEY_APN_SETTINGS_DEFAULT_APN_TYPES_STRING_ARRAY, null);
Apn.getDefaults()8759         sDefaults.putAll(Apn.getDefaults());
8760 
sDefaults.putBoolean(KEY_BROADCAST_EMERGENCY_CALL_STATE_CHANGES_BOOL, false)8761         sDefaults.putBoolean(KEY_BROADCAST_EMERGENCY_CALL_STATE_CHANGES_BOOL, false);
sDefaults.putBoolean(KEY_ALWAYS_SHOW_EMERGENCY_ALERT_ONOFF_BOOL, false)8762         sDefaults.putBoolean(KEY_ALWAYS_SHOW_EMERGENCY_ALERT_ONOFF_BOOL, false);
sDefaults.putInt(KEY_DEFAULT_MTU_INT, 1500)8763         sDefaults.putInt(KEY_DEFAULT_MTU_INT, 1500);
sDefaults.putStringArray(KEY_CARRIER_DATA_CALL_RETRY_CONFIG_STRINGS, new String[]{ "default:default_randomization=2000,5000,10000,20000,40000,80000:5000,160000:5000," + "320000:5000,640000:5000,1280000:5000,1800000:5000", "mms:default_randomization=2000,5000,10000,20000,40000,80000:5000,160000:5000," + "320000:5000,640000:5000,1280000:5000,1800000:5000", "ims:max_retries=10, 5000, 5000, 5000", "others:max_retries=3, 5000, 5000, 5000"})8764         sDefaults.putStringArray(KEY_CARRIER_DATA_CALL_RETRY_CONFIG_STRINGS, new String[]{
8765                 "default:default_randomization=2000,5000,10000,20000,40000,80000:5000,160000:5000,"
8766                         + "320000:5000,640000:5000,1280000:5000,1800000:5000",
8767                 "mms:default_randomization=2000,5000,10000,20000,40000,80000:5000,160000:5000,"
8768                         + "320000:5000,640000:5000,1280000:5000,1800000:5000",
8769                 "ims:max_retries=10, 5000, 5000, 5000",
8770                 "others:max_retries=3, 5000, 5000, 5000"});
sDefaults.putLong(KEY_CARRIER_DATA_CALL_APN_DELAY_DEFAULT_LONG, 20000)8771         sDefaults.putLong(KEY_CARRIER_DATA_CALL_APN_DELAY_DEFAULT_LONG, 20000);
sDefaults.putLong(KEY_CARRIER_DATA_CALL_APN_DELAY_FASTER_LONG, 3000)8772         sDefaults.putLong(KEY_CARRIER_DATA_CALL_APN_DELAY_FASTER_LONG, 3000);
sDefaults.putLong(KEY_CARRIER_DATA_CALL_APN_RETRY_AFTER_DISCONNECT_LONG, 3000)8773         sDefaults.putLong(KEY_CARRIER_DATA_CALL_APN_RETRY_AFTER_DISCONNECT_LONG, 3000);
sDefaults.putInt(KEY_CARRIER_DATA_CALL_RETRY_NETWORK_REQUESTED_MAX_COUNT_INT, 3)8774         sDefaults.putInt(KEY_CARRIER_DATA_CALL_RETRY_NETWORK_REQUESTED_MAX_COUNT_INT, 3);
sDefaults.putString(KEY_CARRIER_ERI_FILE_NAME_STRING, "eri.xml")8775         sDefaults.putString(KEY_CARRIER_ERI_FILE_NAME_STRING, "eri.xml");
sDefaults.putInt(KEY_DURATION_BLOCKING_DISABLED_AFTER_EMERGENCY_INT, 7200)8776         sDefaults.putInt(KEY_DURATION_BLOCKING_DISABLED_AFTER_EMERGENCY_INT, 7200);
sDefaults.putStringArray(KEY_CARRIER_METERED_APN_TYPES_STRINGS, new String[]{"default", "mms", "dun", "supl"})8777         sDefaults.putStringArray(KEY_CARRIER_METERED_APN_TYPES_STRINGS,
8778                 new String[]{"default", "mms", "dun", "supl"});
sDefaults.putStringArray(KEY_CARRIER_METERED_ROAMING_APN_TYPES_STRINGS, new String[]{"default", "mms", "dun", "supl"})8779         sDefaults.putStringArray(KEY_CARRIER_METERED_ROAMING_APN_TYPES_STRINGS,
8780                 new String[]{"default", "mms", "dun", "supl"});
sDefaults.putStringArray(KEY_CARRIER_WWAN_DISALLOWED_APN_TYPES_STRING_ARRAY, new String[]{""})8781         sDefaults.putStringArray(KEY_CARRIER_WWAN_DISALLOWED_APN_TYPES_STRING_ARRAY,
8782                 new String[]{""});
sDefaults.putStringArray(KEY_CARRIER_WLAN_DISALLOWED_APN_TYPES_STRING_ARRAY, new String[]{""})8783         sDefaults.putStringArray(KEY_CARRIER_WLAN_DISALLOWED_APN_TYPES_STRING_ARRAY,
8784                 new String[]{""});
sDefaults.putIntArray(KEY_ONLY_SINGLE_DC_ALLOWED_INT_ARRAY, new int[] {TelephonyManager.NETWORK_TYPE_CDMA, TelephonyManager.NETWORK_TYPE_1xRTT, TelephonyManager.NETWORK_TYPE_EVDO_0, TelephonyManager.NETWORK_TYPE_EVDO_A, TelephonyManager.NETWORK_TYPE_EVDO_B})8785         sDefaults.putIntArray(KEY_ONLY_SINGLE_DC_ALLOWED_INT_ARRAY,
8786                 new int[] {TelephonyManager.NETWORK_TYPE_CDMA, TelephonyManager.NETWORK_TYPE_1xRTT,
8787                         TelephonyManager.NETWORK_TYPE_EVDO_0, TelephonyManager.NETWORK_TYPE_EVDO_A,
8788                         TelephonyManager.NETWORK_TYPE_EVDO_B});
sDefaults.putIntArray(KEY_CAPABILITIES_EXEMPT_FROM_SINGLE_DC_CHECK_INT_ARRAY, new int[] {NetworkCapabilities.NET_CAPABILITY_IMS})8789         sDefaults.putIntArray(KEY_CAPABILITIES_EXEMPT_FROM_SINGLE_DC_CHECK_INT_ARRAY,
8790                 new int[] {NetworkCapabilities.NET_CAPABILITY_IMS});
sDefaults.putStringArray(KEY_GSM_ROAMING_NETWORKS_STRING_ARRAY, null)8791         sDefaults.putStringArray(KEY_GSM_ROAMING_NETWORKS_STRING_ARRAY, null);
sDefaults.putStringArray(KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY, null)8792         sDefaults.putStringArray(KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY, null);
sDefaults.putString(KEY_CONFIG_IMS_PACKAGE_OVERRIDE_STRING, null)8793         sDefaults.putString(KEY_CONFIG_IMS_PACKAGE_OVERRIDE_STRING, null);
sDefaults.putString(KEY_CONFIG_IMS_MMTEL_PACKAGE_OVERRIDE_STRING, null)8794         sDefaults.putString(KEY_CONFIG_IMS_MMTEL_PACKAGE_OVERRIDE_STRING, null);
sDefaults.putString(KEY_CONFIG_IMS_RCS_PACKAGE_OVERRIDE_STRING, null)8795         sDefaults.putString(KEY_CONFIG_IMS_RCS_PACKAGE_OVERRIDE_STRING, null);
sDefaults.putStringArray(KEY_CDMA_ROAMING_NETWORKS_STRING_ARRAY, null)8796         sDefaults.putStringArray(KEY_CDMA_ROAMING_NETWORKS_STRING_ARRAY, null);
sDefaults.putStringArray(KEY_CDMA_NONROAMING_NETWORKS_STRING_ARRAY, null)8797         sDefaults.putStringArray(KEY_CDMA_NONROAMING_NETWORKS_STRING_ARRAY, null);
sDefaults.putStringArray(KEY_DIAL_STRING_REPLACE_STRING_ARRAY, null)8798         sDefaults.putStringArray(KEY_DIAL_STRING_REPLACE_STRING_ARRAY, null);
sDefaults.putStringArray(KEY_INTERNATIONAL_ROAMING_DIAL_STRING_REPLACE_STRING_ARRAY, null)8799         sDefaults.putStringArray(KEY_INTERNATIONAL_ROAMING_DIAL_STRING_REPLACE_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_FORCE_HOME_NETWORK_BOOL, false)8800         sDefaults.putBoolean(KEY_FORCE_HOME_NETWORK_BOOL, false);
sDefaults.putInt(KEY_GSM_DTMF_TONE_DELAY_INT, 0)8801         sDefaults.putInt(KEY_GSM_DTMF_TONE_DELAY_INT, 0);
sDefaults.putInt(KEY_IMS_DTMF_TONE_DELAY_INT, 0)8802         sDefaults.putInt(KEY_IMS_DTMF_TONE_DELAY_INT, 0);
sDefaults.putInt(KEY_CDMA_DTMF_TONE_DELAY_INT, 100)8803         sDefaults.putInt(KEY_CDMA_DTMF_TONE_DELAY_INT, 100);
sDefaults.putBoolean(KEY_CALL_FORWARDING_MAP_NON_NUMBER_TO_VOICEMAIL_BOOL, false)8804         sDefaults.putBoolean(KEY_CALL_FORWARDING_MAP_NON_NUMBER_TO_VOICEMAIL_BOOL, false);
sDefaults.putBoolean(KEY_IGNORE_RTT_MODE_SETTING_BOOL, true)8805         sDefaults.putBoolean(KEY_IGNORE_RTT_MODE_SETTING_BOOL, true);
sDefaults.putInt(KEY_CDMA_3WAYCALL_FLASH_DELAY_INT , 0)8806         sDefaults.putInt(KEY_CDMA_3WAYCALL_FLASH_DELAY_INT , 0);
sDefaults.putBoolean(KEY_SUPPORT_ADHOC_CONFERENCE_CALLS_BOOL, false)8807         sDefaults.putBoolean(KEY_SUPPORT_ADHOC_CONFERENCE_CALLS_BOOL, false);
sDefaults.putBoolean(KEY_SUPPORT_ADD_CONFERENCE_PARTICIPANTS_BOOL, false)8808         sDefaults.putBoolean(KEY_SUPPORT_ADD_CONFERENCE_PARTICIPANTS_BOOL, false);
sDefaults.putBoolean(KEY_SUPPORT_CONFERENCE_CALL_BOOL, true)8809         sDefaults.putBoolean(KEY_SUPPORT_CONFERENCE_CALL_BOOL, true);
sDefaults.putBoolean(KEY_SUPPORT_IMS_CONFERENCE_CALL_BOOL, true)8810         sDefaults.putBoolean(KEY_SUPPORT_IMS_CONFERENCE_CALL_BOOL, true);
sDefaults.putBoolean(KEY_LOCAL_DISCONNECT_EMPTY_IMS_CONFERENCE_BOOL, false)8811         sDefaults.putBoolean(KEY_LOCAL_DISCONNECT_EMPTY_IMS_CONFERENCE_BOOL, false);
sDefaults.putBoolean(KEY_SUPPORT_MANAGE_IMS_CONFERENCE_CALL_BOOL, true)8812         sDefaults.putBoolean(KEY_SUPPORT_MANAGE_IMS_CONFERENCE_CALL_BOOL, true);
sDefaults.putBoolean(KEY_SUPPORT_IMS_CONFERENCE_EVENT_PACKAGE_BOOL, true)8813         sDefaults.putBoolean(KEY_SUPPORT_IMS_CONFERENCE_EVENT_PACKAGE_BOOL, true);
sDefaults.putBoolean(KEY_SUPPORT_IMS_CONFERENCE_EVENT_PACKAGE_ON_PEER_BOOL, true)8814         sDefaults.putBoolean(KEY_SUPPORT_IMS_CONFERENCE_EVENT_PACKAGE_ON_PEER_BOOL, true);
sDefaults.putBoolean(KEY_SUPPORTS_DEVICE_TO_DEVICE_COMMUNICATION_USING_RTP_BOOL, false)8815         sDefaults.putBoolean(KEY_SUPPORTS_DEVICE_TO_DEVICE_COMMUNICATION_USING_RTP_BOOL, false);
sDefaults.putBoolean(KEY_SUPPORTS_SDP_NEGOTIATION_OF_D2D_RTP_HEADER_EXTENSIONS_BOOL, false)8816         sDefaults.putBoolean(KEY_SUPPORTS_SDP_NEGOTIATION_OF_D2D_RTP_HEADER_EXTENSIONS_BOOL, false);
sDefaults.putBoolean(KEY_SUPPORTS_DEVICE_TO_DEVICE_COMMUNICATION_USING_DTMF_BOOL, false)8817         sDefaults.putBoolean(KEY_SUPPORTS_DEVICE_TO_DEVICE_COMMUNICATION_USING_DTMF_BOOL, false);
sDefaults.putBoolean(KEY_SUPPORT_VIDEO_CONFERENCE_CALL_BOOL, false)8818         sDefaults.putBoolean(KEY_SUPPORT_VIDEO_CONFERENCE_CALL_BOOL, false);
sDefaults.putBoolean(KEY_IS_IMS_CONFERENCE_SIZE_ENFORCED_BOOL, false)8819         sDefaults.putBoolean(KEY_IS_IMS_CONFERENCE_SIZE_ENFORCED_BOOL, false);
sDefaults.putInt(KEY_IMS_CONFERENCE_SIZE_LIMIT_INT, 5)8820         sDefaults.putInt(KEY_IMS_CONFERENCE_SIZE_LIMIT_INT, 5);
sDefaults.putBoolean(KEY_DISPLAY_HD_AUDIO_PROPERTY_BOOL, true)8821         sDefaults.putBoolean(KEY_DISPLAY_HD_AUDIO_PROPERTY_BOOL, true);
sDefaults.putBoolean(KEY_EDITABLE_ENHANCED_4G_LTE_BOOL, true)8822         sDefaults.putBoolean(KEY_EDITABLE_ENHANCED_4G_LTE_BOOL, true);
sDefaults.putBoolean(KEY_HIDE_ENHANCED_4G_LTE_BOOL, false)8823         sDefaults.putBoolean(KEY_HIDE_ENHANCED_4G_LTE_BOOL, false);
sDefaults.putBoolean(KEY_ENHANCED_4G_LTE_ON_BY_DEFAULT_BOOL, true)8824         sDefaults.putBoolean(KEY_ENHANCED_4G_LTE_ON_BY_DEFAULT_BOOL, true);
sDefaults.putBoolean(KEY_HIDE_IMS_APN_BOOL, false)8825         sDefaults.putBoolean(KEY_HIDE_IMS_APN_BOOL, false);
sDefaults.putBoolean(KEY_HIDE_PREFERRED_NETWORK_TYPE_BOOL, false)8826         sDefaults.putBoolean(KEY_HIDE_PREFERRED_NETWORK_TYPE_BOOL, false);
sDefaults.putBoolean(KEY_ALLOW_EMERGENCY_VIDEO_CALLS_BOOL, false)8827         sDefaults.putBoolean(KEY_ALLOW_EMERGENCY_VIDEO_CALLS_BOOL, false);
sDefaults.putStringArray(KEY_ENABLE_APPS_STRING_ARRAY, null)8828         sDefaults.putStringArray(KEY_ENABLE_APPS_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_EDITABLE_WFC_MODE_BOOL, true)8829         sDefaults.putBoolean(KEY_EDITABLE_WFC_MODE_BOOL, true);
sDefaults.putStringArray(KEY_WFC_OPERATOR_ERROR_CODES_STRING_ARRAY, null)8830         sDefaults.putStringArray(KEY_WFC_OPERATOR_ERROR_CODES_STRING_ARRAY, null);
sDefaults.putInt(KEY_WFC_SPN_FORMAT_IDX_INT, 0)8831         sDefaults.putInt(KEY_WFC_SPN_FORMAT_IDX_INT, 0);
sDefaults.putInt(KEY_WFC_DATA_SPN_FORMAT_IDX_INT, 0)8832         sDefaults.putInt(KEY_WFC_DATA_SPN_FORMAT_IDX_INT, 0);
sDefaults.putInt(KEY_WFC_FLIGHT_MODE_SPN_FORMAT_IDX_INT, -1)8833         sDefaults.putInt(KEY_WFC_FLIGHT_MODE_SPN_FORMAT_IDX_INT, -1);
sDefaults.putBoolean(KEY_WFC_SPN_USE_ROOT_LOCALE, false)8834         sDefaults.putBoolean(KEY_WFC_SPN_USE_ROOT_LOCALE, false);
sDefaults.putString(KEY_WFC_EMERGENCY_ADDRESS_CARRIER_APP_STRING, "")8835         sDefaults.putString(KEY_WFC_EMERGENCY_ADDRESS_CARRIER_APP_STRING, "");
sDefaults.putBoolean(KEY_CONFIG_WIFI_DISABLE_IN_ECBM, false)8836         sDefaults.putBoolean(KEY_CONFIG_WIFI_DISABLE_IN_ECBM, false);
sDefaults.putBoolean(KEY_CARRIER_NAME_OVERRIDE_BOOL, false)8837         sDefaults.putBoolean(KEY_CARRIER_NAME_OVERRIDE_BOOL, false);
sDefaults.putString(KEY_CARRIER_NAME_STRING, "")8838         sDefaults.putString(KEY_CARRIER_NAME_STRING, "");
sDefaults.putBoolean(KEY_WFC_CARRIER_NAME_OVERRIDE_BY_PNN_BOOL, false)8839         sDefaults.putBoolean(KEY_WFC_CARRIER_NAME_OVERRIDE_BY_PNN_BOOL, false);
sDefaults.putInt(KEY_CROSS_SIM_SPN_FORMAT_INT, 1)8840         sDefaults.putInt(KEY_CROSS_SIM_SPN_FORMAT_INT, 1);
sDefaults.putInt(KEY_SPN_DISPLAY_CONDITION_OVERRIDE_INT, -1)8841         sDefaults.putInt(KEY_SPN_DISPLAY_CONDITION_OVERRIDE_INT, -1);
sDefaults.putStringArray(KEY_SPDI_OVERRIDE_STRING_ARRAY, null)8842         sDefaults.putStringArray(KEY_SPDI_OVERRIDE_STRING_ARRAY, null);
sDefaults.putStringArray(KEY_PNN_OVERRIDE_STRING_ARRAY, null)8843         sDefaults.putStringArray(KEY_PNN_OVERRIDE_STRING_ARRAY, null);
sDefaults.putStringArray(KEY_OPL_OVERRIDE_STRING_ARRAY, null)8844         sDefaults.putStringArray(KEY_OPL_OVERRIDE_STRING_ARRAY, null);
sDefaults.putStringArray(KEY_EHPLMN_OVERRIDE_STRING_ARRAY, null)8845         sDefaults.putStringArray(KEY_EHPLMN_OVERRIDE_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_ALLOW_ERI_BOOL, false)8846         sDefaults.putBoolean(KEY_ALLOW_ERI_BOOL, false);
sDefaults.putBoolean(KEY_ENABLE_CARRIER_DISPLAY_NAME_RESOLVER_BOOL, false)8847         sDefaults.putBoolean(KEY_ENABLE_CARRIER_DISPLAY_NAME_RESOLVER_BOOL, false);
sDefaults.putString(KEY_SIM_COUNTRY_ISO_OVERRIDE_STRING, "")8848         sDefaults.putString(KEY_SIM_COUNTRY_ISO_OVERRIDE_STRING, "");
sDefaults.putString(KEY_CARRIER_CALL_SCREENING_APP_STRING, "")8849         sDefaults.putString(KEY_CARRIER_CALL_SCREENING_APP_STRING, "");
sDefaults.putString(KEY_CALL_REDIRECTION_SERVICE_COMPONENT_NAME_STRING, null)8850         sDefaults.putString(KEY_CALL_REDIRECTION_SERVICE_COMPONENT_NAME_STRING, null);
sDefaults.putBoolean(KEY_CDMA_HOME_REGISTERED_PLMN_NAME_OVERRIDE_BOOL, false)8851         sDefaults.putBoolean(KEY_CDMA_HOME_REGISTERED_PLMN_NAME_OVERRIDE_BOOL, false);
sDefaults.putString(KEY_CDMA_HOME_REGISTERED_PLMN_NAME_STRING, "")8852         sDefaults.putString(KEY_CDMA_HOME_REGISTERED_PLMN_NAME_STRING, "");
sDefaults.putBoolean(KEY_SUPPORT_DIRECT_FDN_DIALING_BOOL, false)8853         sDefaults.putBoolean(KEY_SUPPORT_DIRECT_FDN_DIALING_BOOL, false);
sDefaults.putInt(KEY_FDN_NUMBER_LENGTH_LIMIT_INT, 20)8854         sDefaults.putInt(KEY_FDN_NUMBER_LENGTH_LIMIT_INT, 20);
sDefaults.putBoolean(KEY_CARRIER_DEFAULT_DATA_ROAMING_ENABLED_BOOL, false)8855         sDefaults.putBoolean(KEY_CARRIER_DEFAULT_DATA_ROAMING_ENABLED_BOOL, false);
sDefaults.putBoolean(KEY_SKIP_CF_FAIL_TO_DISABLE_DIALOG_BOOL, false)8856         sDefaults.putBoolean(KEY_SKIP_CF_FAIL_TO_DISABLE_DIALOG_BOOL, false);
sDefaults.putBoolean(KEY_SUPPORT_ENHANCED_CALL_BLOCKING_BOOL, true)8857         sDefaults.putBoolean(KEY_SUPPORT_ENHANCED_CALL_BLOCKING_BOOL, true);
8858 
8859         // MMS defaults
sDefaults.putBoolean(KEY_MMS_ALIAS_ENABLED_BOOL, false)8860         sDefaults.putBoolean(KEY_MMS_ALIAS_ENABLED_BOOL, false);
sDefaults.putBoolean(KEY_MMS_ALLOW_ATTACH_AUDIO_BOOL, true)8861         sDefaults.putBoolean(KEY_MMS_ALLOW_ATTACH_AUDIO_BOOL, true);
sDefaults.putBoolean(KEY_MMS_APPEND_TRANSACTION_ID_BOOL, false)8862         sDefaults.putBoolean(KEY_MMS_APPEND_TRANSACTION_ID_BOOL, false);
sDefaults.putBoolean(KEY_MMS_GROUP_MMS_ENABLED_BOOL, true)8863         sDefaults.putBoolean(KEY_MMS_GROUP_MMS_ENABLED_BOOL, true);
sDefaults.putBoolean(KEY_MMS_MMS_DELIVERY_REPORT_ENABLED_BOOL, false)8864         sDefaults.putBoolean(KEY_MMS_MMS_DELIVERY_REPORT_ENABLED_BOOL, false);
sDefaults.putBoolean(KEY_MMS_MMS_ENABLED_BOOL, true)8865         sDefaults.putBoolean(KEY_MMS_MMS_ENABLED_BOOL, true);
sDefaults.putBoolean(KEY_MMS_MMS_READ_REPORT_ENABLED_BOOL, false)8866         sDefaults.putBoolean(KEY_MMS_MMS_READ_REPORT_ENABLED_BOOL, false);
sDefaults.putBoolean(KEY_MMS_MULTIPART_SMS_ENABLED_BOOL, true)8867         sDefaults.putBoolean(KEY_MMS_MULTIPART_SMS_ENABLED_BOOL, true);
sDefaults.putBoolean(KEY_MMS_NOTIFY_WAP_MMSC_ENABLED_BOOL, false)8868         sDefaults.putBoolean(KEY_MMS_NOTIFY_WAP_MMSC_ENABLED_BOOL, false);
sDefaults.putBoolean(KEY_MMS_SEND_MULTIPART_SMS_AS_SEPARATE_MESSAGES_BOOL, false)8869         sDefaults.putBoolean(KEY_MMS_SEND_MULTIPART_SMS_AS_SEPARATE_MESSAGES_BOOL, false);
sDefaults.putBoolean(KEY_MMS_SHOW_CELL_BROADCAST_APP_LINKS_BOOL, true)8870         sDefaults.putBoolean(KEY_MMS_SHOW_CELL_BROADCAST_APP_LINKS_BOOL, true);
sDefaults.putBoolean(KEY_MMS_SMS_DELIVERY_REPORT_ENABLED_BOOL, true)8871         sDefaults.putBoolean(KEY_MMS_SMS_DELIVERY_REPORT_ENABLED_BOOL, true);
sDefaults.putBoolean(KEY_MMS_SUPPORT_HTTP_CHARSET_HEADER_BOOL, false)8872         sDefaults.putBoolean(KEY_MMS_SUPPORT_HTTP_CHARSET_HEADER_BOOL, false);
sDefaults.putBoolean(KEY_MMS_SUPPORT_MMS_CONTENT_DISPOSITION_BOOL, true)8873         sDefaults.putBoolean(KEY_MMS_SUPPORT_MMS_CONTENT_DISPOSITION_BOOL, true);
sDefaults.putBoolean(KEY_MMS_CLOSE_CONNECTION_BOOL, false)8874         sDefaults.putBoolean(KEY_MMS_CLOSE_CONNECTION_BOOL, false);
sDefaults.putInt(KEY_MMS_ALIAS_MAX_CHARS_INT, 48)8875         sDefaults.putInt(KEY_MMS_ALIAS_MAX_CHARS_INT, 48);
sDefaults.putInt(KEY_MMS_ALIAS_MIN_CHARS_INT, 2)8876         sDefaults.putInt(KEY_MMS_ALIAS_MIN_CHARS_INT, 2);
sDefaults.putInt(KEY_MMS_HTTP_SOCKET_TIMEOUT_INT, 60 * 1000)8877         sDefaults.putInt(KEY_MMS_HTTP_SOCKET_TIMEOUT_INT, 60 * 1000);
sDefaults.putInt(KEY_MMS_MAX_IMAGE_HEIGHT_INT, 480)8878         sDefaults.putInt(KEY_MMS_MAX_IMAGE_HEIGHT_INT, 480);
sDefaults.putInt(KEY_MMS_MAX_IMAGE_WIDTH_INT, 640)8879         sDefaults.putInt(KEY_MMS_MAX_IMAGE_WIDTH_INT, 640);
sDefaults.putInt(KEY_MMS_MAX_MESSAGE_SIZE_INT, 300 * 1024)8880         sDefaults.putInt(KEY_MMS_MAX_MESSAGE_SIZE_INT, 300 * 1024);
sDefaults.putInt(KEY_MMS_MESSAGE_TEXT_MAX_SIZE_INT, -1)8881         sDefaults.putInt(KEY_MMS_MESSAGE_TEXT_MAX_SIZE_INT, -1);
sDefaults.putInt(KEY_MMS_RECIPIENT_LIMIT_INT, Integer.MAX_VALUE)8882         sDefaults.putInt(KEY_MMS_RECIPIENT_LIMIT_INT, Integer.MAX_VALUE);
sDefaults.putInt(KEY_MMS_SMS_TO_MMS_TEXT_LENGTH_THRESHOLD_INT, -1)8883         sDefaults.putInt(KEY_MMS_SMS_TO_MMS_TEXT_LENGTH_THRESHOLD_INT, -1);
sDefaults.putInt(KEY_MMS_SMS_TO_MMS_TEXT_THRESHOLD_INT, -1)8884         sDefaults.putInt(KEY_MMS_SMS_TO_MMS_TEXT_THRESHOLD_INT, -1);
sDefaults.putInt(KEY_MMS_SUBJECT_MAX_LENGTH_INT, 40)8885         sDefaults.putInt(KEY_MMS_SUBJECT_MAX_LENGTH_INT, 40);
sDefaults.putString(KEY_MMS_EMAIL_GATEWAY_NUMBER_STRING, "")8886         sDefaults.putString(KEY_MMS_EMAIL_GATEWAY_NUMBER_STRING, "");
sDefaults.putString(KEY_MMS_HTTP_PARAMS_STRING, "")8887         sDefaults.putString(KEY_MMS_HTTP_PARAMS_STRING, "");
sDefaults.putString(KEY_MMS_NAI_SUFFIX_STRING, "")8888         sDefaults.putString(KEY_MMS_NAI_SUFFIX_STRING, "");
sDefaults.putString(KEY_MMS_UA_PROF_TAG_NAME_STRING, "x-wap-profile")8889         sDefaults.putString(KEY_MMS_UA_PROF_TAG_NAME_STRING, "x-wap-profile");
sDefaults.putString(KEY_MMS_UA_PROF_URL_STRING, "")8890         sDefaults.putString(KEY_MMS_UA_PROF_URL_STRING, "");
sDefaults.putString(KEY_MMS_USER_AGENT_STRING, "")8891         sDefaults.putString(KEY_MMS_USER_AGENT_STRING, "");
sDefaults.putBoolean(KEY_ALLOW_NON_EMERGENCY_CALLS_IN_ECM_BOOL, true)8892         sDefaults.putBoolean(KEY_ALLOW_NON_EMERGENCY_CALLS_IN_ECM_BOOL, true);
sDefaults.putInt(KEY_EMERGENCY_SMS_MODE_TIMER_MS_INT, 0)8893         sDefaults.putInt(KEY_EMERGENCY_SMS_MODE_TIMER_MS_INT, 0);
sDefaults.putBoolean(KEY_ALLOW_HOLD_CALL_DURING_EMERGENCY_BOOL, true)8894         sDefaults.putBoolean(KEY_ALLOW_HOLD_CALL_DURING_EMERGENCY_BOOL, true);
sDefaults.putBoolean(KEY_USE_RCS_PRESENCE_BOOL, false)8895         sDefaults.putBoolean(KEY_USE_RCS_PRESENCE_BOOL, false);
sDefaults.putBoolean(KEY_USE_RCS_SIP_OPTIONS_BOOL, false)8896         sDefaults.putBoolean(KEY_USE_RCS_SIP_OPTIONS_BOOL, false);
sDefaults.putBoolean(KEY_FORCE_IMEI_BOOL, false)8897         sDefaults.putBoolean(KEY_FORCE_IMEI_BOOL, false);
sDefaults.putInt( KEY_CDMA_ROAMING_MODE_INT, TelephonyManager.CDMA_ROAMING_MODE_RADIO_DEFAULT)8898         sDefaults.putInt(
8899                 KEY_CDMA_ROAMING_MODE_INT, TelephonyManager.CDMA_ROAMING_MODE_RADIO_DEFAULT);
sDefaults.putBoolean(KEY_SUPPORT_CDMA_1X_VOICE_CALLS_BOOL, true)8900         sDefaults.putBoolean(KEY_SUPPORT_CDMA_1X_VOICE_CALLS_BOOL, true);
sDefaults.putString(KEY_RCS_CONFIG_SERVER_URL_STRING, "")8901         sDefaults.putString(KEY_RCS_CONFIG_SERVER_URL_STRING, "");
8902 
8903         // Carrier Signalling Receivers
sDefaults.putString(KEY_CARRIER_SETUP_APP_STRING, "")8904         sDefaults.putString(KEY_CARRIER_SETUP_APP_STRING, "");
sDefaults.putStringArray(KEY_CARRIER_APP_WAKE_SIGNAL_CONFIG_STRING_ARRAY, new String[]{ "com.android.carrierdefaultapp/.CarrierDefaultBroadcastReceiver:" + "com.android.internal.telephony.CARRIER_SIGNAL_RESET" })8905         sDefaults.putStringArray(KEY_CARRIER_APP_WAKE_SIGNAL_CONFIG_STRING_ARRAY,
8906                 new String[]{
8907                         "com.android.carrierdefaultapp/.CarrierDefaultBroadcastReceiver:"
8908                                 + "com.android.internal.telephony.CARRIER_SIGNAL_RESET"
8909                 });
sDefaults.putStringArray(KEY_CARRIER_APP_NO_WAKE_SIGNAL_CONFIG_STRING_ARRAY, null)8910         sDefaults.putStringArray(KEY_CARRIER_APP_NO_WAKE_SIGNAL_CONFIG_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_CARRIER_APP_REQUIRED_DURING_SIM_SETUP_BOOL, false)8911         sDefaults.putBoolean(KEY_CARRIER_APP_REQUIRED_DURING_SIM_SETUP_BOOL, false);
8912 
8913 
8914         // Default carrier app configurations
sDefaults.putStringArray(KEY_CARRIER_DEFAULT_ACTIONS_ON_REDIRECTION_STRING_ARRAY, new String[]{ "9, 4, 1" })8915         sDefaults.putStringArray(KEY_CARRIER_DEFAULT_ACTIONS_ON_REDIRECTION_STRING_ARRAY,
8916                 new String[]{
8917                         "9, 4, 1"
8918                         //9: CARRIER_ACTION_REGISTER_NETWORK_AVAIL
8919                         //4: CARRIER_ACTION_DISABLE_METERED_APNS
8920                         //1: CARRIER_ACTION_SHOW_PORTAL_NOTIFICATION
8921                 });
sDefaults.putStringArray(KEY_CARRIER_DEFAULT_ACTIONS_ON_RESET, new String[]{ "6, 8" })8922         sDefaults.putStringArray(KEY_CARRIER_DEFAULT_ACTIONS_ON_RESET, new String[]{
8923                 "6, 8"
8924                 //6: CARRIER_ACTION_CANCEL_ALL_NOTIFICATIONS
8925                 //8: CARRIER_ACTION_DISABLE_DEFAULT_URL_HANDLER
8926                 });
sDefaults.putStringArray(KEY_CARRIER_DEFAULT_ACTIONS_ON_DEFAULT_NETWORK_AVAILABLE, new String[] { String.valueOf(false) + ": 7", String.valueOf(true) + ": 8" })8927         sDefaults.putStringArray(KEY_CARRIER_DEFAULT_ACTIONS_ON_DEFAULT_NETWORK_AVAILABLE, new String[] {
8928                 String.valueOf(false) + ": 7", //7: CARRIER_ACTION_ENABLE_DEFAULT_URL_HANDLER
8929                 String.valueOf(true) + ": 8"  //8: CARRIER_ACTION_DISABLE_DEFAULT_URL_HANDLER
8930                 });
sDefaults.putStringArray(KEY_CARRIER_DEFAULT_REDIRECTION_URL_STRING_ARRAY, null)8931         sDefaults.putStringArray(KEY_CARRIER_DEFAULT_REDIRECTION_URL_STRING_ARRAY, null);
8932 
sDefaults.putInt(KEY_MONTHLY_DATA_CYCLE_DAY_INT, DATA_CYCLE_USE_PLATFORM_DEFAULT)8933         sDefaults.putInt(KEY_MONTHLY_DATA_CYCLE_DAY_INT, DATA_CYCLE_USE_PLATFORM_DEFAULT);
sDefaults.putLong(KEY_DATA_WARNING_THRESHOLD_BYTES_LONG, DATA_CYCLE_USE_PLATFORM_DEFAULT)8934         sDefaults.putLong(KEY_DATA_WARNING_THRESHOLD_BYTES_LONG, DATA_CYCLE_USE_PLATFORM_DEFAULT);
sDefaults.putBoolean(KEY_DATA_WARNING_NOTIFICATION_BOOL, true)8935         sDefaults.putBoolean(KEY_DATA_WARNING_NOTIFICATION_BOOL, true);
sDefaults.putBoolean(KEY_LIMITED_SIM_FUNCTION_NOTIFICATION_FOR_DSDS_BOOL, false)8936         sDefaults.putBoolean(KEY_LIMITED_SIM_FUNCTION_NOTIFICATION_FOR_DSDS_BOOL, false);
sDefaults.putLong(KEY_DATA_LIMIT_THRESHOLD_BYTES_LONG, DATA_CYCLE_USE_PLATFORM_DEFAULT)8937         sDefaults.putLong(KEY_DATA_LIMIT_THRESHOLD_BYTES_LONG, DATA_CYCLE_USE_PLATFORM_DEFAULT);
sDefaults.putBoolean(KEY_DATA_LIMIT_NOTIFICATION_BOOL, true)8938         sDefaults.putBoolean(KEY_DATA_LIMIT_NOTIFICATION_BOOL, true);
sDefaults.putBoolean(KEY_DATA_RAPID_NOTIFICATION_BOOL, true)8939         sDefaults.putBoolean(KEY_DATA_RAPID_NOTIFICATION_BOOL, true);
8940 
8941         // Rat families: {GPRS, EDGE}, {EVDO, EVDO_A, EVDO_B}, {UMTS, HSPA, HSDPA, HSUPA, HSPAP},
8942         // {LTE, LTE_CA}
8943         // Order is important - lowest precidence first
sDefaults.putStringArray(KEY_RATCHET_RAT_FAMILIES, new String[]{"1,2","7,8,12","3,11,9,10,15","14,19"})8944         sDefaults.putStringArray(KEY_RATCHET_RAT_FAMILIES,
8945                 new String[]{"1,2","7,8,12","3,11,9,10,15","14,19"});
sDefaults.putBoolean(KEY_TREAT_DOWNGRADED_VIDEO_CALLS_AS_VIDEO_CALLS_BOOL, false)8946         sDefaults.putBoolean(KEY_TREAT_DOWNGRADED_VIDEO_CALLS_AS_VIDEO_CALLS_BOOL, false);
sDefaults.putBoolean(KEY_DROP_VIDEO_CALL_WHEN_ANSWERING_AUDIO_CALL_BOOL, false)8947         sDefaults.putBoolean(KEY_DROP_VIDEO_CALL_WHEN_ANSWERING_AUDIO_CALL_BOOL, false);
sDefaults.putBoolean(KEY_ALLOW_MERGE_WIFI_CALLS_WHEN_VOWIFI_OFF_BOOL, true)8948         sDefaults.putBoolean(KEY_ALLOW_MERGE_WIFI_CALLS_WHEN_VOWIFI_OFF_BOOL, true);
sDefaults.putBoolean(KEY_ALLOW_ADD_CALL_DURING_VIDEO_CALL_BOOL, true)8949         sDefaults.putBoolean(KEY_ALLOW_ADD_CALL_DURING_VIDEO_CALL_BOOL, true);
sDefaults.putBoolean(KEY_ALLOW_HOLD_VIDEO_CALL_BOOL, true)8950         sDefaults.putBoolean(KEY_ALLOW_HOLD_VIDEO_CALL_BOOL, true);
sDefaults.putBoolean(KEY_WIFI_CALLS_CAN_BE_HD_AUDIO, true)8951         sDefaults.putBoolean(KEY_WIFI_CALLS_CAN_BE_HD_AUDIO, true);
sDefaults.putBoolean(KEY_VIDEO_CALLS_CAN_BE_HD_AUDIO, true)8952         sDefaults.putBoolean(KEY_VIDEO_CALLS_CAN_BE_HD_AUDIO, true);
sDefaults.putBoolean(KEY_GSM_CDMA_CALLS_CAN_BE_HD_AUDIO, false)8953         sDefaults.putBoolean(KEY_GSM_CDMA_CALLS_CAN_BE_HD_AUDIO, false);
sDefaults.putBoolean(KEY_ALLOW_VIDEO_CALLING_FALLBACK_BOOL, true)8954         sDefaults.putBoolean(KEY_ALLOW_VIDEO_CALLING_FALLBACK_BOOL, true);
8955 
sDefaults.putStringArray(KEY_IMS_REASONINFO_MAPPING_STRING_ARRAY, null)8956         sDefaults.putStringArray(KEY_IMS_REASONINFO_MAPPING_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_ENHANCED_4G_LTE_TITLE_VARIANT_BOOL, false)8957         sDefaults.putBoolean(KEY_ENHANCED_4G_LTE_TITLE_VARIANT_BOOL, false);
sDefaults.putInt(KEY_ENHANCED_4G_LTE_TITLE_VARIANT_INT, 0)8958         sDefaults.putInt(KEY_ENHANCED_4G_LTE_TITLE_VARIANT_INT, 0);
sDefaults.putBoolean(KEY_NOTIFY_VT_HANDOVER_TO_WIFI_FAILURE_BOOL, false)8959         sDefaults.putBoolean(KEY_NOTIFY_VT_HANDOVER_TO_WIFI_FAILURE_BOOL, false);
sDefaults.putStringArray(KEY_FILTERED_CNAP_NAMES_STRING_ARRAY, null)8960         sDefaults.putStringArray(KEY_FILTERED_CNAP_NAMES_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_EDITABLE_WFC_ROAMING_MODE_BOOL, false)8961         sDefaults.putBoolean(KEY_EDITABLE_WFC_ROAMING_MODE_BOOL, false);
sDefaults.putBoolean(KEY_SHOW_BLOCKING_PAY_PHONE_OPTION_BOOL, false)8962         sDefaults.putBoolean(KEY_SHOW_BLOCKING_PAY_PHONE_OPTION_BOOL, false);
sDefaults.putBoolean(KEY_USE_WFC_HOME_NETWORK_MODE_IN_ROAMING_NETWORK_BOOL, false)8963         sDefaults.putBoolean(KEY_USE_WFC_HOME_NETWORK_MODE_IN_ROAMING_NETWORK_BOOL, false);
sDefaults.putBoolean(KEY_STK_DISABLE_LAUNCH_BROWSER_BOOL, false)8964         sDefaults.putBoolean(KEY_STK_DISABLE_LAUNCH_BROWSER_BOOL, false);
sDefaults.putBoolean(KEY_ALLOW_METERED_NETWORK_FOR_CERT_DOWNLOAD_BOOL, false)8965         sDefaults.putBoolean(KEY_ALLOW_METERED_NETWORK_FOR_CERT_DOWNLOAD_BOOL, false);
sDefaults.putBoolean(KEY_HIDE_DIGITS_HELPER_TEXT_ON_STK_INPUT_SCREEN_BOOL, true)8966         sDefaults.putBoolean(KEY_HIDE_DIGITS_HELPER_TEXT_ON_STK_INPUT_SCREEN_BOOL, true);
sDefaults.putInt(KEY_PREF_NETWORK_NOTIFICATION_DELAY_INT, -1)8967         sDefaults.putInt(KEY_PREF_NETWORK_NOTIFICATION_DELAY_INT, -1);
sDefaults.putInt(KEY_EMERGENCY_NOTIFICATION_DELAY_INT, -1)8968         sDefaults.putInt(KEY_EMERGENCY_NOTIFICATION_DELAY_INT, -1);
sDefaults.putBoolean(KEY_ALLOW_USSD_REQUESTS_VIA_TELEPHONY_MANAGER_BOOL, true)8969         sDefaults.putBoolean(KEY_ALLOW_USSD_REQUESTS_VIA_TELEPHONY_MANAGER_BOOL, true);
sDefaults.putBoolean(KEY_SUPPORT_3GPP_CALL_FORWARDING_WHILE_ROAMING_BOOL, true)8970         sDefaults.putBoolean(KEY_SUPPORT_3GPP_CALL_FORWARDING_WHILE_ROAMING_BOOL, true);
sDefaults.putBoolean(KEY_DISPLAY_VOICEMAIL_NUMBER_AS_DEFAULT_CALL_FORWARDING_NUMBER_BOOL, false)8971         sDefaults.putBoolean(KEY_DISPLAY_VOICEMAIL_NUMBER_AS_DEFAULT_CALL_FORWARDING_NUMBER_BOOL,
8972                 false);
sDefaults.putBoolean(KEY_NOTIFY_INTERNATIONAL_CALL_ON_WFC_BOOL, false)8973         sDefaults.putBoolean(KEY_NOTIFY_INTERNATIONAL_CALL_ON_WFC_BOOL, false);
sDefaults.putBoolean(KEY_HIDE_PRESET_APN_DETAILS_BOOL, false)8974         sDefaults.putBoolean(KEY_HIDE_PRESET_APN_DETAILS_BOOL, false);
sDefaults.putBoolean(KEY_SHOW_VIDEO_CALL_CHARGES_ALERT_DIALOG_BOOL, false)8975         sDefaults.putBoolean(KEY_SHOW_VIDEO_CALL_CHARGES_ALERT_DIALOG_BOOL, false);
sDefaults.putStringArray(KEY_CALL_FORWARDING_BLOCKS_WHILE_ROAMING_STRING_ARRAY, null)8976         sDefaults.putStringArray(KEY_CALL_FORWARDING_BLOCKS_WHILE_ROAMING_STRING_ARRAY,
8977                 null);
sDefaults.putBoolean(KEY_SUPPORT_IMS_CALL_FORWARDING_WHILE_ROAMING_BOOL, true)8978         sDefaults.putBoolean(KEY_SUPPORT_IMS_CALL_FORWARDING_WHILE_ROAMING_BOOL, true);
sDefaults.putInt(KEY_LTE_EARFCNS_RSRP_BOOST_INT, 0)8979         sDefaults.putInt(KEY_LTE_EARFCNS_RSRP_BOOST_INT, 0);
sDefaults.putStringArray(KEY_BOOSTED_LTE_EARFCNS_STRING_ARRAY, null)8980         sDefaults.putStringArray(KEY_BOOSTED_LTE_EARFCNS_STRING_ARRAY, null);
sDefaults.putIntArray(KEY_NRARFCNS_RSRP_BOOST_INT_ARRAY, null)8981         sDefaults.putIntArray(KEY_NRARFCNS_RSRP_BOOST_INT_ARRAY, null);
sDefaults.putStringArray(KEY_BOOSTED_NRARFCNS_STRING_ARRAY, null)8982         sDefaults.putStringArray(KEY_BOOSTED_NRARFCNS_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_USE_ONLY_RSRP_FOR_LTE_SIGNAL_BAR_BOOL, false)8983         sDefaults.putBoolean(KEY_USE_ONLY_RSRP_FOR_LTE_SIGNAL_BAR_BOOL, false);
sDefaults.putBoolean(KEY_DISABLE_VOICE_BARRING_NOTIFICATION_BOOL, false)8984         sDefaults.putBoolean(KEY_DISABLE_VOICE_BARRING_NOTIFICATION_BOOL, false);
sDefaults.putInt(IMSI_KEY_AVAILABILITY_INT, 0)8985         sDefaults.putInt(IMSI_KEY_AVAILABILITY_INT, 0);
sDefaults.putString(IMSI_KEY_DOWNLOAD_URL_STRING, null)8986         sDefaults.putString(IMSI_KEY_DOWNLOAD_URL_STRING, null);
sDefaults.putString(IMSI_CARRIER_PUBLIC_KEY_EPDG_STRING, null)8987         sDefaults.putString(IMSI_CARRIER_PUBLIC_KEY_EPDG_STRING, null);
sDefaults.putString(IMSI_CARRIER_PUBLIC_KEY_WLAN_STRING, null)8988         sDefaults.putString(IMSI_CARRIER_PUBLIC_KEY_WLAN_STRING, null);
sDefaults.putBoolean(KEY_CONVERT_CDMA_CALLER_ID_MMI_CODES_WHILE_ROAMING_ON_3GPP_BOOL, false)8989         sDefaults.putBoolean(KEY_CONVERT_CDMA_CALLER_ID_MMI_CODES_WHILE_ROAMING_ON_3GPP_BOOL,
8990                 false);
sDefaults.putStringArray(KEY_NON_ROAMING_OPERATOR_STRING_ARRAY, null)8991         sDefaults.putStringArray(KEY_NON_ROAMING_OPERATOR_STRING_ARRAY, null);
sDefaults.putStringArray(KEY_ROAMING_OPERATOR_STRING_ARRAY, null)8992         sDefaults.putStringArray(KEY_ROAMING_OPERATOR_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_SHOW_IMS_REGISTRATION_STATUS_BOOL, false)8993         sDefaults.putBoolean(KEY_SHOW_IMS_REGISTRATION_STATUS_BOOL, false);
sDefaults.putBoolean(KEY_RTT_SUPPORTED_BOOL, false)8994         sDefaults.putBoolean(KEY_RTT_SUPPORTED_BOOL, false);
sDefaults.putBoolean(KEY_TTY_SUPPORTED_BOOL, true)8995         sDefaults.putBoolean(KEY_TTY_SUPPORTED_BOOL, true);
sDefaults.putBoolean(KEY_HIDE_TTY_HCO_VCO_WITH_RTT_BOOL, false)8996         sDefaults.putBoolean(KEY_HIDE_TTY_HCO_VCO_WITH_RTT_BOOL, false);
sDefaults.putBoolean(KEY_RTT_SUPPORTED_WHILE_ROAMING_BOOL, false)8997         sDefaults.putBoolean(KEY_RTT_SUPPORTED_WHILE_ROAMING_BOOL, false);
sDefaults.putBoolean(KEY_RTT_UPGRADE_SUPPORTED_FOR_DOWNGRADED_VT_CALL_BOOL, true)8998         sDefaults.putBoolean(KEY_RTT_UPGRADE_SUPPORTED_FOR_DOWNGRADED_VT_CALL_BOOL, true);
sDefaults.putBoolean(KEY_VT_UPGRADE_SUPPORTED_FOR_DOWNGRADED_RTT_CALL_BOOL, true)8999         sDefaults.putBoolean(KEY_VT_UPGRADE_SUPPORTED_FOR_DOWNGRADED_RTT_CALL_BOOL, true);
sDefaults.putBoolean(KEY_DISABLE_CHARGE_INDICATION_BOOL, false)9000         sDefaults.putBoolean(KEY_DISABLE_CHARGE_INDICATION_BOOL, false);
sDefaults.putBoolean(KEY_SUPPORT_NO_REPLY_TIMER_FOR_CFNRY_BOOL, true)9001         sDefaults.putBoolean(KEY_SUPPORT_NO_REPLY_TIMER_FOR_CFNRY_BOOL, true);
sDefaults.putStringArray(KEY_FEATURE_ACCESS_CODES_STRING_ARRAY, null)9002         sDefaults.putStringArray(KEY_FEATURE_ACCESS_CODES_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_IDENTIFY_HIGH_DEFINITION_CALLS_IN_CALL_LOG_BOOL, false)9003         sDefaults.putBoolean(KEY_IDENTIFY_HIGH_DEFINITION_CALLS_IN_CALL_LOG_BOOL, false);
sDefaults.putBoolean(KEY_SHOW_PRECISE_FAILED_CAUSE_BOOL, false)9004         sDefaults.putBoolean(KEY_SHOW_PRECISE_FAILED_CAUSE_BOOL, false);
sDefaults.putBoolean(KEY_SPN_DISPLAY_RULE_USE_ROAMING_FROM_SERVICE_STATE_BOOL, false)9005         sDefaults.putBoolean(KEY_SPN_DISPLAY_RULE_USE_ROAMING_FROM_SERVICE_STATE_BOOL, false);
sDefaults.putBoolean(KEY_ALWAYS_SHOW_DATA_RAT_ICON_BOOL, false)9006         sDefaults.putBoolean(KEY_ALWAYS_SHOW_DATA_RAT_ICON_BOOL, false);
sDefaults.putBoolean(KEY_SHOW_4G_FOR_LTE_DATA_ICON_BOOL, false)9007         sDefaults.putBoolean(KEY_SHOW_4G_FOR_LTE_DATA_ICON_BOOL, false);
sDefaults.putBoolean(KEY_SHOW_4GLTE_FOR_LTE_DATA_ICON_BOOL, false)9008         sDefaults.putBoolean(KEY_SHOW_4GLTE_FOR_LTE_DATA_ICON_BOOL, false);
sDefaults.putBoolean(KEY_SHOW_4G_FOR_3G_DATA_ICON_BOOL, false)9009         sDefaults.putBoolean(KEY_SHOW_4G_FOR_3G_DATA_ICON_BOOL, false);
sDefaults.putString(KEY_OPERATOR_NAME_FILTER_PATTERN_STRING, "")9010         sDefaults.putString(KEY_OPERATOR_NAME_FILTER_PATTERN_STRING, "");
sDefaults.putString(KEY_SHOW_CARRIER_DATA_ICON_PATTERN_STRING, "")9011         sDefaults.putString(KEY_SHOW_CARRIER_DATA_ICON_PATTERN_STRING, "");
sDefaults.putBoolean(KEY_HIDE_LTE_PLUS_DATA_ICON_BOOL, true)9012         sDefaults.putBoolean(KEY_HIDE_LTE_PLUS_DATA_ICON_BOOL, true);
sDefaults.putInt(KEY_LTE_PLUS_THRESHOLD_BANDWIDTH_KHZ_INT, 20000)9013         sDefaults.putInt(KEY_LTE_PLUS_THRESHOLD_BANDWIDTH_KHZ_INT, 20000);
sDefaults.putInt(KEY_NR_ADVANCED_THRESHOLD_BANDWIDTH_KHZ_INT, 0)9014         sDefaults.putInt(KEY_NR_ADVANCED_THRESHOLD_BANDWIDTH_KHZ_INT, 0);
sDefaults.putBoolean(KEY_INCLUDE_LTE_FOR_NR_ADVANCED_THRESHOLD_BANDWIDTH_BOOL, false)9015         sDefaults.putBoolean(KEY_INCLUDE_LTE_FOR_NR_ADVANCED_THRESHOLD_BANDWIDTH_BOOL, false);
sDefaults.putIntArray(KEY_CARRIER_NR_AVAILABILITIES_INT_ARRAY, new int[]{CARRIER_NR_AVAILABILITY_NSA, CARRIER_NR_AVAILABILITY_SA})9016         sDefaults.putIntArray(KEY_CARRIER_NR_AVAILABILITIES_INT_ARRAY,
9017                 new int[]{CARRIER_NR_AVAILABILITY_NSA, CARRIER_NR_AVAILABILITY_SA});
sDefaults.putBoolean(KEY_LTE_ENABLED_BOOL, true)9018         sDefaults.putBoolean(KEY_LTE_ENABLED_BOOL, true);
sDefaults.putBoolean(KEY_SUPPORT_TDSCDMA_BOOL, false)9019         sDefaults.putBoolean(KEY_SUPPORT_TDSCDMA_BOOL, false);
sDefaults.putStringArray(KEY_SUPPORT_TDSCDMA_ROAMING_NETWORKS_STRING_ARRAY, null)9020         sDefaults.putStringArray(KEY_SUPPORT_TDSCDMA_ROAMING_NETWORKS_STRING_ARRAY, null);
sDefaults.putBoolean(KEY_WORLD_MODE_ENABLED_BOOL, false)9021         sDefaults.putBoolean(KEY_WORLD_MODE_ENABLED_BOOL, false);
sDefaults.putString(KEY_CARRIER_SETTINGS_ACTIVITY_COMPONENT_NAME_STRING, "")9022         sDefaults.putString(KEY_CARRIER_SETTINGS_ACTIVITY_COMPONENT_NAME_STRING, "");
sDefaults.putBoolean(KEY_SHOW_OPERATOR_NAME_IN_STATUSBAR_BOOL, false)9023         sDefaults.putBoolean(KEY_SHOW_OPERATOR_NAME_IN_STATUSBAR_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_CONFIG_APPLIED_BOOL, false)9024         sDefaults.putBoolean(KEY_CARRIER_CONFIG_APPLIED_BOOL, false);
sDefaults.putBoolean(KEY_CHECK_PRICING_WITH_CARRIER_FOR_DATA_ROAMING_BOOL, false)9025         sDefaults.putBoolean(KEY_CHECK_PRICING_WITH_CARRIER_FOR_DATA_ROAMING_BOOL, false);
sDefaults.putBoolean(KEY_SHOW_DATA_CONNECTED_ROAMING_NOTIFICATION_BOOL, false)9026         sDefaults.putBoolean(KEY_SHOW_DATA_CONNECTED_ROAMING_NOTIFICATION_BOOL, false);
sDefaults.putIntArray(KEY_LTE_RSRP_THRESHOLDS_INT_ARRAY, new int[] { -128, -118, -108, -98, })9027         sDefaults.putIntArray(KEY_LTE_RSRP_THRESHOLDS_INT_ARRAY,
9028                 new int[] {
9029                         -128, /* SIGNAL_STRENGTH_POOR */
9030                         -118, /* SIGNAL_STRENGTH_MODERATE */
9031                         -108, /* SIGNAL_STRENGTH_GOOD */
9032                         -98,  /* SIGNAL_STRENGTH_GREAT */
9033                 });
sDefaults.putIntArray(KEY_LTE_RSRQ_THRESHOLDS_INT_ARRAY, new int[] { -20, -17, -14, -11 })9034         sDefaults.putIntArray(KEY_LTE_RSRQ_THRESHOLDS_INT_ARRAY,
9035                 new int[] {
9036                         -20, /* SIGNAL_STRENGTH_POOR */
9037                         -17, /* SIGNAL_STRENGTH_MODERATE */
9038                         -14, /* SIGNAL_STRENGTH_GOOD */
9039                         -11  /* SIGNAL_STRENGTH_GREAT */
9040                 });
sDefaults.putIntArray(KEY_LTE_RSSNR_THRESHOLDS_INT_ARRAY, new int[] { -3, 1, 5, 13 })9041         sDefaults.putIntArray(KEY_LTE_RSSNR_THRESHOLDS_INT_ARRAY,
9042                 new int[] {
9043                         -3, /* SIGNAL_STRENGTH_POOR */
9044                         1,  /* SIGNAL_STRENGTH_MODERATE */
9045                         5,  /* SIGNAL_STRENGTH_GOOD */
9046                         13  /* SIGNAL_STRENGTH_GREAT */
9047                 });
sDefaults.putIntArray(KEY_WCDMA_RSCP_THRESHOLDS_INT_ARRAY, new int[] { -115, -105, -95, -85 })9048         sDefaults.putIntArray(KEY_WCDMA_RSCP_THRESHOLDS_INT_ARRAY,
9049                 new int[] {
9050                         -115,  /* SIGNAL_STRENGTH_POOR */
9051                         -105, /* SIGNAL_STRENGTH_MODERATE */
9052                         -95, /* SIGNAL_STRENGTH_GOOD */
9053                         -85  /* SIGNAL_STRENGTH_GREAT */
9054                 });
sDefaults.putIntArray(KEY_5G_NR_SSRSRP_THRESHOLDS_INT_ARRAY, new int[] { -110, -90, -80, -65, })9055         sDefaults.putIntArray(KEY_5G_NR_SSRSRP_THRESHOLDS_INT_ARRAY,
9056                 // Boundaries: [-140 dB, -44 dB]
9057                 new int[] {
9058                     -110, /* SIGNAL_STRENGTH_POOR */
9059                     -90, /* SIGNAL_STRENGTH_MODERATE */
9060                     -80, /* SIGNAL_STRENGTH_GOOD */
9061                     -65,  /* SIGNAL_STRENGTH_GREAT */
9062                 });
sDefaults.putIntArray(KEY_5G_NR_SSRSRQ_THRESHOLDS_INT_ARRAY, new int[] { -31, -19, -7, 6 })9063         sDefaults.putIntArray(KEY_5G_NR_SSRSRQ_THRESHOLDS_INT_ARRAY,
9064                 // Boundaries: [-43 dB, 20 dB]
9065                 new int[] {
9066                     -31, /* SIGNAL_STRENGTH_POOR */
9067                     -19, /* SIGNAL_STRENGTH_MODERATE */
9068                     -7, /* SIGNAL_STRENGTH_GOOD */
9069                     6  /* SIGNAL_STRENGTH_GREAT */
9070                 });
sDefaults.putIntArray(KEY_5G_NR_SSSINR_THRESHOLDS_INT_ARRAY, new int[] { -5, 5, 15, 30 })9071         sDefaults.putIntArray(KEY_5G_NR_SSSINR_THRESHOLDS_INT_ARRAY,
9072                 // Boundaries: [-23 dB, 40 dB]
9073                 new int[] {
9074                     -5, /* SIGNAL_STRENGTH_POOR */
9075                     5, /* SIGNAL_STRENGTH_MODERATE */
9076                     15, /* SIGNAL_STRENGTH_GOOD */
9077                     30  /* SIGNAL_STRENGTH_GREAT */
9078                 });
sDefaults.putInt(KEY_PARAMETERS_USE_FOR_5G_NR_SIGNAL_BAR_INT, CellSignalStrengthNr.USE_SSRSRP)9079         sDefaults.putInt(KEY_PARAMETERS_USE_FOR_5G_NR_SIGNAL_BAR_INT,
9080                 CellSignalStrengthNr.USE_SSRSRP);
sDefaults.putBoolean(KEY_SIGNAL_STRENGTH_NR_NSA_USE_LTE_AS_PRIMARY_BOOL, true)9081         sDefaults.putBoolean(KEY_SIGNAL_STRENGTH_NR_NSA_USE_LTE_AS_PRIMARY_BOOL, true);
sDefaults.putStringArray(KEY_BANDWIDTH_STRING_ARRAY, new String[]{ "GPRS:24,24", "EDGE:70,18", "UMTS:115,115", "CDMA:14,14", "1xRTT:30,30", "EvDo_0:750,48", "EvDo_A:950,550", "HSDPA:4300,620", "HSUPA:4300,1800", "HSPA:4300,1800", "EvDo_B:1500,550", "eHRPD:750,48", "iDEN:14,14", "LTE:30000,15000", "HSPA+:13000,3400", "GSM:24,24", "TD_SCDMA:115,115", "LTE_CA:30000,15000", "NR_NSA:47000,18000", "NR_NSA_MMWAVE:145000,60000", "NR_SA:145000,60000", "NR_SA_MMWAVE:145000,60000"})9082         sDefaults.putStringArray(KEY_BANDWIDTH_STRING_ARRAY, new String[]{
9083                 "GPRS:24,24", "EDGE:70,18", "UMTS:115,115", "CDMA:14,14",
9084                 "1xRTT:30,30", "EvDo_0:750,48", "EvDo_A:950,550", "HSDPA:4300,620",
9085                 "HSUPA:4300,1800", "HSPA:4300,1800", "EvDo_B:1500,550", "eHRPD:750,48",
9086                 "iDEN:14,14", "LTE:30000,15000", "HSPA+:13000,3400", "GSM:24,24",
9087                 "TD_SCDMA:115,115", "LTE_CA:30000,15000", "NR_NSA:47000,18000",
9088                 "NR_NSA_MMWAVE:145000,60000", "NR_SA:145000,60000", "NR_SA_MMWAVE:145000,60000"});
sDefaults.putBoolean(KEY_BANDWIDTH_NR_NSA_USE_LTE_VALUE_FOR_UPLINK_BOOL, false)9089         sDefaults.putBoolean(KEY_BANDWIDTH_NR_NSA_USE_LTE_VALUE_FOR_UPLINK_BOOL, false);
sDefaults.putString(KEY_WCDMA_DEFAULT_SIGNAL_STRENGTH_MEASUREMENT_STRING, "rssi")9090         sDefaults.putString(KEY_WCDMA_DEFAULT_SIGNAL_STRENGTH_MEASUREMENT_STRING, "rssi");
sDefaults.putBoolean(KEY_CONFIG_SHOW_ORIG_DIAL_STRING_FOR_CDMA_BOOL, false)9091         sDefaults.putBoolean(KEY_CONFIG_SHOW_ORIG_DIAL_STRING_FOR_CDMA_BOOL, false);
sDefaults.putBoolean(KEY_SHOW_CALL_BLOCKING_DISABLED_NOTIFICATION_ALWAYS_BOOL, false)9092         sDefaults.putBoolean(KEY_SHOW_CALL_BLOCKING_DISABLED_NOTIFICATION_ALWAYS_BOOL, false);
sDefaults.putBoolean(KEY_CALL_FORWARDING_OVER_UT_WARNING_BOOL, false)9093         sDefaults.putBoolean(KEY_CALL_FORWARDING_OVER_UT_WARNING_BOOL, false);
sDefaults.putBoolean(KEY_CALL_BARRING_OVER_UT_WARNING_BOOL, false)9094         sDefaults.putBoolean(KEY_CALL_BARRING_OVER_UT_WARNING_BOOL, false);
sDefaults.putBoolean(KEY_CALLER_ID_OVER_UT_WARNING_BOOL, false)9095         sDefaults.putBoolean(KEY_CALLER_ID_OVER_UT_WARNING_BOOL, false);
sDefaults.putBoolean(KEY_CALL_WAITING_OVER_UT_WARNING_BOOL, false)9096         sDefaults.putBoolean(KEY_CALL_WAITING_OVER_UT_WARNING_BOOL, false);
sDefaults.putBoolean(KEY_SUPPORT_CLIR_NETWORK_DEFAULT_BOOL, true)9097         sDefaults.putBoolean(KEY_SUPPORT_CLIR_NETWORK_DEFAULT_BOOL, true);
sDefaults.putBoolean(KEY_SUPPORT_EMERGENCY_DIALER_SHORTCUT_BOOL, true)9098         sDefaults.putBoolean(KEY_SUPPORT_EMERGENCY_DIALER_SHORTCUT_BOOL, true);
sDefaults.putBoolean(KEY_USE_CALL_FORWARDING_USSD_BOOL, false)9099         sDefaults.putBoolean(KEY_USE_CALL_FORWARDING_USSD_BOOL, false);
sDefaults.putBoolean(KEY_USE_CALLER_ID_USSD_BOOL, false)9100         sDefaults.putBoolean(KEY_USE_CALLER_ID_USSD_BOOL, false);
sDefaults.putBoolean(KEY_USE_CALL_WAITING_USSD_BOOL, false)9101         sDefaults.putBoolean(KEY_USE_CALL_WAITING_USSD_BOOL, false);
sDefaults.putInt(KEY_CALL_WAITING_SERVICE_CLASS_INT, 1 )9102         sDefaults.putInt(KEY_CALL_WAITING_SERVICE_CLASS_INT, 1 /* SERVICE_CLASS_VOICE */);
sDefaults.putString(KEY_5G_ICON_CONFIGURATION_STRING, "connected_mmwave:5G,connected:5G,not_restricted_rrc_idle:5G," + "not_restricted_rrc_con:5G")9103         sDefaults.putString(KEY_5G_ICON_CONFIGURATION_STRING,
9104                 "connected_mmwave:5G,connected:5G,not_restricted_rrc_idle:5G,"
9105                         + "not_restricted_rrc_con:5G");
sDefaults.putString(KEY_5G_ICON_DISPLAY_GRACE_PERIOD_STRING, "")9106         sDefaults.putString(KEY_5G_ICON_DISPLAY_GRACE_PERIOD_STRING, "");
sDefaults.putString(KEY_5G_ICON_DISPLAY_SECONDARY_GRACE_PERIOD_STRING, "")9107         sDefaults.putString(KEY_5G_ICON_DISPLAY_SECONDARY_GRACE_PERIOD_STRING, "");
sDefaults.putBoolean(KEY_NR_TIMERS_RESET_IF_NON_ENDC_AND_RRC_IDLE_BOOL, false)9108         sDefaults.putBoolean(KEY_NR_TIMERS_RESET_IF_NON_ENDC_AND_RRC_IDLE_BOOL, false);
9109         /* Default value is 1 hour. */
sDefaults.putLong(KEY_5G_WATCHDOG_TIME_MS_LONG, 3600000)9110         sDefaults.putLong(KEY_5G_WATCHDOG_TIME_MS_LONG, 3600000);
sDefaults.putIntArray(KEY_ADDITIONAL_NR_ADVANCED_BANDS_INT_ARRAY, new int[0])9111         sDefaults.putIntArray(KEY_ADDITIONAL_NR_ADVANCED_BANDS_INT_ARRAY, new int[0]);
sDefaults.putInt(KEY_NR_ADVANCED_CAPABLE_PCO_ID_INT, 0)9112         sDefaults.putInt(KEY_NR_ADVANCED_CAPABLE_PCO_ID_INT, 0);
sDefaults.putBoolean(KEY_ENABLE_NR_ADVANCED_WHILE_ROAMING_BOOL, true)9113         sDefaults.putBoolean(KEY_ENABLE_NR_ADVANCED_WHILE_ROAMING_BOOL, true);
sDefaults.putBoolean(KEY_LTE_ENDC_USING_USER_DATA_FOR_RRC_DETECTION_BOOL, false)9114         sDefaults.putBoolean(KEY_LTE_ENDC_USING_USER_DATA_FOR_RRC_DETECTION_BOOL, false);
sDefaults.putStringArray(KEY_UNMETERED_NETWORK_TYPES_STRING_ARRAY, new String[] { "NR_NSA", "NR_NSA_MMWAVE", "NR_SA", "NR_SA_MMWAVE"})9115         sDefaults.putStringArray(KEY_UNMETERED_NETWORK_TYPES_STRING_ARRAY, new String[] {
9116                 "NR_NSA", "NR_NSA_MMWAVE", "NR_SA", "NR_SA_MMWAVE"});
sDefaults.putStringArray(KEY_ROAMING_UNMETERED_NETWORK_TYPES_STRING_ARRAY, new String[0])9117         sDefaults.putStringArray(KEY_ROAMING_UNMETERED_NETWORK_TYPES_STRING_ARRAY, new String[0]);
sDefaults.putBoolean(KEY_UNMETERED_NR_NSA_BOOL, false)9118         sDefaults.putBoolean(KEY_UNMETERED_NR_NSA_BOOL, false);
sDefaults.putBoolean(KEY_UNMETERED_NR_NSA_MMWAVE_BOOL, false)9119         sDefaults.putBoolean(KEY_UNMETERED_NR_NSA_MMWAVE_BOOL, false);
sDefaults.putBoolean(KEY_UNMETERED_NR_NSA_SUB6_BOOL, false)9120         sDefaults.putBoolean(KEY_UNMETERED_NR_NSA_SUB6_BOOL, false);
sDefaults.putBoolean(KEY_UNMETERED_NR_NSA_WHEN_ROAMING_BOOL, false)9121         sDefaults.putBoolean(KEY_UNMETERED_NR_NSA_WHEN_ROAMING_BOOL, false);
sDefaults.putBoolean(KEY_UNMETERED_NR_SA_BOOL, false)9122         sDefaults.putBoolean(KEY_UNMETERED_NR_SA_BOOL, false);
sDefaults.putBoolean(KEY_UNMETERED_NR_SA_MMWAVE_BOOL, false)9123         sDefaults.putBoolean(KEY_UNMETERED_NR_SA_MMWAVE_BOOL, false);
sDefaults.putBoolean(KEY_UNMETERED_NR_SA_SUB6_BOOL, false)9124         sDefaults.putBoolean(KEY_UNMETERED_NR_SA_SUB6_BOOL, false);
sDefaults.putBoolean(KEY_ASCII_7_BIT_SUPPORT_FOR_LONG_MESSAGE_BOOL, false)9125         sDefaults.putBoolean(KEY_ASCII_7_BIT_SUPPORT_FOR_LONG_MESSAGE_BOOL, false);
sDefaults.putBoolean(KEY_SHOW_WIFI_CALLING_ICON_IN_STATUS_BAR_BOOL, false)9126         sDefaults.putBoolean(KEY_SHOW_WIFI_CALLING_ICON_IN_STATUS_BAR_BOOL, false);
sDefaults.putBoolean(KEY_CARRIER_SUPPORTS_OPP_DATA_AUTO_PROVISIONING_BOOL, false)9127         sDefaults.putBoolean(KEY_CARRIER_SUPPORTS_OPP_DATA_AUTO_PROVISIONING_BOOL, false);
sDefaults.putString(KEY_SMDP_SERVER_ADDRESS_STRING, "")9128         sDefaults.putString(KEY_SMDP_SERVER_ADDRESS_STRING, "");
sDefaults.putInt(KEY_ESIM_MAX_DOWNLOAD_RETRY_ATTEMPTS_INT, 5)9129         sDefaults.putInt(KEY_ESIM_MAX_DOWNLOAD_RETRY_ATTEMPTS_INT, 5);
sDefaults.putInt(KEY_ESIM_DOWNLOAD_RETRY_BACKOFF_TIMER_SEC_INT, 60)9130         sDefaults.putInt(KEY_ESIM_DOWNLOAD_RETRY_BACKOFF_TIMER_SEC_INT, 60);
sDefaults.putIntArray(KEY_OPPORTUNISTIC_CARRIER_IDS_INT_ARRAY, new int[] {0})9131         sDefaults.putIntArray(KEY_OPPORTUNISTIC_CARRIER_IDS_INT_ARRAY, new int[] {0});
sDefaults.putBoolean(KEY_OPPORTUNISTIC_ESIM_DOWNLOAD_VIA_WIFI_ONLY_BOOL, false)9132         sDefaults.putBoolean(KEY_OPPORTUNISTIC_ESIM_DOWNLOAD_VIA_WIFI_ONLY_BOOL, false);
9133         /* Default value is minimum RSRP level needed for SIGNAL_STRENGTH_GOOD */
sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_RSRP_INT, -108)9134         sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_RSRP_INT, -108);
9135         /* Default value is minimum RSRP level needed for SIGNAL_STRENGTH_MODERATE */
sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_EXIT_THRESHOLD_RSRP_INT, -118)9136         sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_EXIT_THRESHOLD_RSRP_INT, -118);
9137         /* Default value is minimum RSSNR level needed for SIGNAL_STRENGTH_GOOD */
sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_RSSNR_INT, 5)9138         sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_RSSNR_INT, 5);
9139         /* Default value is minimum RSSNR level needed for SIGNAL_STRENGTH_MODERATE */
sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_EXIT_THRESHOLD_RSSNR_INT, 1)9140         sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_EXIT_THRESHOLD_RSSNR_INT, 1);
9141         /* Default value is 1024 kbps */
sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_BANDWIDTH_INT, 1024)9142         sDefaults.putInt(KEY_OPPORTUNISTIC_NETWORK_ENTRY_THRESHOLD_BANDWIDTH_INT, 1024);
9143         /* Default value is 10 seconds */
sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_ENTRY_OR_EXIT_HYSTERESIS_TIME_LONG, 10000)9144         sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_ENTRY_OR_EXIT_HYSTERESIS_TIME_LONG, 10000);
9145         /* Default value is 10 seconds. */
sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_DATA_SWITCH_HYSTERESIS_TIME_LONG, 10000)9146         sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_DATA_SWITCH_HYSTERESIS_TIME_LONG, 10000);
9147         /* Default value is 3 seconds. */
sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_DATA_SWITCH_EXIT_HYSTERESIS_TIME_LONG, 3000)9148         sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_DATA_SWITCH_EXIT_HYSTERESIS_TIME_LONG, 3000);
OpportunisticNetwork.getDefaults()9149         sDefaults.putAll(OpportunisticNetwork.getDefaults());
sDefaults.putBoolean(KEY_PING_TEST_BEFORE_DATA_SWITCH_BOOL, true)9150         sDefaults.putBoolean(KEY_PING_TEST_BEFORE_DATA_SWITCH_BOOL, true);
sDefaults.putBoolean(KEY_SWITCH_DATA_TO_PRIMARY_IF_PRIMARY_IS_OOS_BOOL, true)9151         sDefaults.putBoolean(KEY_SWITCH_DATA_TO_PRIMARY_IF_PRIMARY_IS_OOS_BOOL, true);
9152         /* Default value is 60 seconds. */
sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_PING_PONG_TIME_LONG, 60000)9153         sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_PING_PONG_TIME_LONG, 60000);
9154         /* Default value is 10 seconds. */
sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_BACKOFF_TIME_LONG, 10000)9155         sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_BACKOFF_TIME_LONG, 10000);
9156         /* Default value is 60 seconds. */
sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_MAX_BACKOFF_TIME_LONG, 60000)9157         sDefaults.putLong(KEY_OPPORTUNISTIC_NETWORK_MAX_BACKOFF_TIME_LONG, 60000);
sDefaults.putBoolean(KEY_ENABLE_4G_OPPORTUNISTIC_NETWORK_SCAN_BOOL, true)9158         sDefaults.putBoolean(KEY_ENABLE_4G_OPPORTUNISTIC_NETWORK_SCAN_BOOL, true);
sDefaults.putLong(KEY_TIME_TO_SWITCH_BACK_TO_PRIMARY_IF_OPPORTUNISTIC_OOS_LONG, 60000L)9159         sDefaults.putLong(KEY_TIME_TO_SWITCH_BACK_TO_PRIMARY_IF_OPPORTUNISTIC_OOS_LONG, 60000L);
sDefaults.putLong( KEY_OPPORTUNISTIC_TIME_TO_SCAN_AFTER_CAPABILITY_SWITCH_TO_PRIMARY_LONG, 120000L)9160         sDefaults.putLong(
9161                 KEY_OPPORTUNISTIC_TIME_TO_SCAN_AFTER_CAPABILITY_SWITCH_TO_PRIMARY_LONG,
9162                 120000L);
ImsServiceEntitlement.getDefaults()9163         sDefaults.putAll(ImsServiceEntitlement.getDefaults());
Gps.getDefaults()9164         sDefaults.putAll(Gps.getDefaults());
sDefaults.putIntArray(KEY_CDMA_ENHANCED_ROAMING_INDICATOR_FOR_HOME_NETWORK_INT_ARRAY, new int[] { 1 })9165         sDefaults.putIntArray(KEY_CDMA_ENHANCED_ROAMING_INDICATOR_FOR_HOME_NETWORK_INT_ARRAY,
9166                 new int[] {
9167                         1 /* Roaming Indicator Off */
9168                 });
sDefaults.putStringArray(KEY_EMERGENCY_NUMBER_PREFIX_STRING_ARRAY, new String[0])9169         sDefaults.putStringArray(KEY_EMERGENCY_NUMBER_PREFIX_STRING_ARRAY, new String[0]);
sDefaults.putBoolean(KEY_CARRIER_SUPPORTS_CALLER_ID_VERTICAL_SERVICE_CODES_BOOL, false)9170         sDefaults.putBoolean(KEY_CARRIER_SUPPORTS_CALLER_ID_VERTICAL_SERVICE_CODES_BOOL, false);
sDefaults.putBoolean(KEY_USE_USIM_BOOL, false)9171         sDefaults.putBoolean(KEY_USE_USIM_BOOL, false);
sDefaults.putBoolean(KEY_SHOW_WFC_LOCATION_PRIVACY_POLICY_BOOL, false)9172         sDefaults.putBoolean(KEY_SHOW_WFC_LOCATION_PRIVACY_POLICY_BOOL, false);
sDefaults.putBoolean(KEY_AUTO_CANCEL_CS_REJECT_NOTIFICATION, true)9173         sDefaults.putBoolean(KEY_AUTO_CANCEL_CS_REJECT_NOTIFICATION, true);
sDefaults.putString(KEY_SMART_FORWARDING_CONFIG_COMPONENT_NAME_STRING, "")9174         sDefaults.putString(KEY_SMART_FORWARDING_CONFIG_COMPONENT_NAME_STRING, "");
sDefaults.putBoolean(KEY_ALWAYS_SHOW_PRIMARY_SIGNAL_BAR_IN_OPPORTUNISTIC_NETWORK_BOOLEAN, false)9175         sDefaults.putBoolean(KEY_ALWAYS_SHOW_PRIMARY_SIGNAL_BAR_IN_OPPORTUNISTIC_NETWORK_BOOLEAN,
9176                 false);
sDefaults.putString(KEY_SUBSCRIPTION_GROUP_UUID_STRING, "")9177         sDefaults.putString(KEY_SUBSCRIPTION_GROUP_UUID_STRING, "");
sDefaults.putBoolean(KEY_IS_OPPORTUNISTIC_SUBSCRIPTION_BOOL, false)9178         sDefaults.putBoolean(KEY_IS_OPPORTUNISTIC_SUBSCRIPTION_BOOL, false);
sDefaults.putIntArray(KEY_GSM_RSSI_THRESHOLDS_INT_ARRAY, new int[] { -107, -103, -97, -89, })9179         sDefaults.putIntArray(KEY_GSM_RSSI_THRESHOLDS_INT_ARRAY,
9180                 new int[] {
9181                         -107, /* SIGNAL_STRENGTH_POOR */
9182                         -103, /* SIGNAL_STRENGTH_MODERATE */
9183                         -97, /* SIGNAL_STRENGTH_GOOD */
9184                         -89,  /* SIGNAL_STRENGTH_GREAT */
9185                 });
sDefaults.putBoolean(KEY_SUPPORT_WPS_OVER_IMS_BOOL, true)9186         sDefaults.putBoolean(KEY_SUPPORT_WPS_OVER_IMS_BOOL, true);
Ims.getDefaults()9187         sDefaults.putAll(Ims.getDefaults());
ImsVoice.getDefaults()9188         sDefaults.putAll(ImsVoice.getDefaults());
ImsSms.getDefaults()9189         sDefaults.putAll(ImsSms.getDefaults());
ImsRtt.getDefaults()9190         sDefaults.putAll(ImsRtt.getDefaults());
ImsEmergency.getDefaults()9191         sDefaults.putAll(ImsEmergency.getDefaults());
ImsVt.getDefaults()9192         sDefaults.putAll(ImsVt.getDefaults());
ImsWfc.getDefaults()9193         sDefaults.putAll(ImsWfc.getDefaults());
ImsSs.getDefaults()9194         sDefaults.putAll(ImsSs.getDefaults());
Bsf.getDefaults()9195         sDefaults.putAll(Bsf.getDefaults());
Iwlan.getDefaults()9196         sDefaults.putAll(Iwlan.getDefaults());
sDefaults.putStringArray(KEY_CARRIER_CERTIFICATE_STRING_ARRAY, new String[0])9197         sDefaults.putStringArray(KEY_CARRIER_CERTIFICATE_STRING_ARRAY, new String[0]);
sDefaults.putBoolean(KEY_FORMAT_INCOMING_NUMBER_TO_NATIONAL_FOR_JP_BOOL, false)9198          sDefaults.putBoolean(KEY_FORMAT_INCOMING_NUMBER_TO_NATIONAL_FOR_JP_BOOL, false);
sDefaults.putIntArray(KEY_DISCONNECT_CAUSE_PLAY_BUSYTONE_INT_ARRAY, new int[] {4 })9199         sDefaults.putIntArray(KEY_DISCONNECT_CAUSE_PLAY_BUSYTONE_INT_ARRAY,
9200                 new int[] {4 /* BUSY */});
sDefaults.putBoolean(KEY_PREVENT_CLIR_ACTIVATION_AND_DEACTIVATION_CODE_BOOL, false)9201         sDefaults.putBoolean(KEY_PREVENT_CLIR_ACTIVATION_AND_DEACTIVATION_CODE_BOOL, false);
sDefaults.putLong(KEY_DATA_SWITCH_VALIDATION_TIMEOUT_LONG, 2000)9202         sDefaults.putLong(KEY_DATA_SWITCH_VALIDATION_TIMEOUT_LONG, 2000);
sDefaults.putStringArray(KEY_MMI_TWO_DIGIT_NUMBER_PATTERN_STRING_ARRAY, new String[0])9203         sDefaults.putStringArray(KEY_MMI_TWO_DIGIT_NUMBER_PATTERN_STRING_ARRAY, new String[0]);
sDefaults.putInt(KEY_PARAMETERS_USED_FOR_LTE_SIGNAL_BAR_INT, CellSignalStrengthLte.USE_RSRP)9204         sDefaults.putInt(KEY_PARAMETERS_USED_FOR_LTE_SIGNAL_BAR_INT,
9205                 CellSignalStrengthLte.USE_RSRP);
9206         // Default wifi configurations.
Wifi.getDefaults()9207         sDefaults.putAll(Wifi.getDefaults());
sDefaults.putBoolean(ENABLE_EAP_METHOD_PREFIX_BOOL, false)9208         sDefaults.putBoolean(ENABLE_EAP_METHOD_PREFIX_BOOL, false);
sDefaults.putInt(KEY_GBA_MODE_INT, GBA_ME)9209         sDefaults.putInt(KEY_GBA_MODE_INT, GBA_ME);
sDefaults.putInt(KEY_GBA_UA_SECURITY_ORGANIZATION_INT, UaSecurityProtocolIdentifier.ORG_3GPP)9210         sDefaults.putInt(KEY_GBA_UA_SECURITY_ORGANIZATION_INT,
9211                 UaSecurityProtocolIdentifier.ORG_3GPP);
sDefaults.putInt(KEY_GBA_UA_SECURITY_PROTOCOL_INT, UaSecurityProtocolIdentifier.UA_SECURITY_PROTOCOL_3GPP_TLS_DEFAULT)9212         sDefaults.putInt(KEY_GBA_UA_SECURITY_PROTOCOL_INT,
9213                 UaSecurityProtocolIdentifier.UA_SECURITY_PROTOCOL_3GPP_TLS_DEFAULT);
sDefaults.putInt(KEY_GBA_UA_TLS_CIPHER_SUITE_INT, TlsParams.TLS_NULL_WITH_NULL_NULL)9214         sDefaults.putInt(KEY_GBA_UA_TLS_CIPHER_SUITE_INT, TlsParams.TLS_NULL_WITH_NULL_NULL);
9215 
sDefaults.putBoolean(KEY_SHOW_FORWARDED_NUMBER_BOOL, false)9216         sDefaults.putBoolean(KEY_SHOW_FORWARDED_NUMBER_BOOL, false);
sDefaults.putLong(KEY_DATA_SWITCH_VALIDATION_MIN_GAP_LONG, TimeUnit.DAYS.toMillis(1))9217         sDefaults.putLong(KEY_DATA_SWITCH_VALIDATION_MIN_GAP_LONG, TimeUnit.DAYS.toMillis(1));
sDefaults.putStringArray(KEY_MISSED_INCOMING_CALL_SMS_ORIGINATOR_STRING_ARRAY, new String[0])9218         sDefaults.putStringArray(KEY_MISSED_INCOMING_CALL_SMS_ORIGINATOR_STRING_ARRAY,
9219                 new String[0]);
sDefaults.putStringArray(KEY_APN_PRIORITY_STRING_ARRAY, new String[] { "enterprise:0", "default:1", "mms:2", "supl:2", "dun:2", "hipri:3", "fota:2", "ims:2", "cbs:2", "ia:2", "emergency:2", "mcx:3", "xcap:3" })9220         sDefaults.putStringArray(KEY_APN_PRIORITY_STRING_ARRAY, new String[] {
9221                 "enterprise:0", "default:1", "mms:2", "supl:2", "dun:2", "hipri:3", "fota:2",
9222                 "ims:2", "cbs:2", "ia:2", "emergency:2", "mcx:3", "xcap:3"
9223         });
9224 
9225         // Do not modify the priority unless you know what you are doing. This will have significant
9226         // impacts on the order of data network setup.
sDefaults.putStringArray( KEY_TELEPHONY_NETWORK_CAPABILITY_PRIORITIES_STRING_ARRAY, new String[] { "eims:90", "supl:80", "mms:70", "xcap:70", "cbs:50", "mcx:50", "fota:50", "ims:40", "dun:30", "enterprise:20", "internet:20" })9227         sDefaults.putStringArray(
9228                 KEY_TELEPHONY_NETWORK_CAPABILITY_PRIORITIES_STRING_ARRAY, new String[] {
9229                         "eims:90", "supl:80", "mms:70", "xcap:70", "cbs:50", "mcx:50", "fota:50",
9230                         "ims:40", "dun:30", "enterprise:20", "internet:20"
9231                 });
sDefaults.putStringArray( KEY_TELEPHONY_DATA_SETUP_RETRY_RULES_STRING_ARRAY, new String[] { "capabilities=eims, retry_interval=1000, maximum_retries=20", "permanent_fail_causes=8|27|28|29|30|32|33|35|50|51|111|-5|-6|65537|65538|" + "-3|65543|65547|2252|2253|2254, retry_interval=2500", "capabilities=mms|supl|cbs, retry_interval=2000", "capabilities=internet|enterprise|dun|ims|fota, retry_interval=2500|3000|" + "5000|10000|15000|20000|40000|60000|120000|240000|" + "600000|1200000|1800000, maximum_retries=20" })9232         sDefaults.putStringArray(
9233                 KEY_TELEPHONY_DATA_SETUP_RETRY_RULES_STRING_ARRAY, new String[] {
9234                         "capabilities=eims, retry_interval=1000, maximum_retries=20",
9235                         // Permanent fail causes. When setup data call fails with the following
9236                         // fail causes, telephony data frameworks will stop timer-based retry on
9237                         // the failed APN until power cycle, APM, or some special events. Note that
9238                         // even though timer-based retry is not performed, condition-based (RAT
9239                         // changes, registration state changes) retry can still happen.
9240                         "permanent_fail_causes=8|27|28|29|30|32|33|35|50|51|111|-5|-6|65537|65538|"
9241                                 + "-3|65543|65547|2252|2253|2254, retry_interval=2500",
9242                         "capabilities=mms|supl|cbs, retry_interval=2000",
9243                         "capabilities=internet|enterprise|dun|ims|fota, retry_interval=2500|3000|"
9244                                 + "5000|10000|15000|20000|40000|60000|120000|240000|"
9245                                 + "600000|1200000|1800000, maximum_retries=20"
9246                 });
sDefaults.putStringArray( KEY_TELEPHONY_DATA_HANDOVER_RETRY_RULES_STRING_ARRAY, new String[] { "retry_interval=1000|2000|4000|8000|16000, maximum_retries=5" })9247         sDefaults.putStringArray(
9248                 KEY_TELEPHONY_DATA_HANDOVER_RETRY_RULES_STRING_ARRAY, new String[] {
9249                         "retry_interval=1000|2000|4000|8000|16000, maximum_retries=5"
9250                 });
sDefaults.putBoolean(KEY_DELAY_IMS_TEAR_DOWN_UNTIL_CALL_END_BOOL, false)9251         sDefaults.putBoolean(KEY_DELAY_IMS_TEAR_DOWN_UNTIL_CALL_END_BOOL, false);
sDefaults.putStringArray(KEY_MISSED_INCOMING_CALL_SMS_PATTERN_STRING_ARRAY, new String[0])9252         sDefaults.putStringArray(KEY_MISSED_INCOMING_CALL_SMS_PATTERN_STRING_ARRAY, new String[0]);
sDefaults.putBoolean(KEY_DISABLE_DUN_APN_WHILE_ROAMING_WITH_PRESET_APN_BOOL, false)9253         sDefaults.putBoolean(KEY_DISABLE_DUN_APN_WHILE_ROAMING_WITH_PRESET_APN_BOOL, false);
sDefaults.putString(KEY_DEFAULT_PREFERRED_APN_NAME_STRING, "")9254         sDefaults.putString(KEY_DEFAULT_PREFERRED_APN_NAME_STRING, "");
sDefaults.putBoolean(KEY_SUPPORTS_CALL_COMPOSER_BOOL, false)9255         sDefaults.putBoolean(KEY_SUPPORTS_CALL_COMPOSER_BOOL, false);
sDefaults.putString(KEY_CALL_COMPOSER_PICTURE_SERVER_URL_STRING, "")9256         sDefaults.putString(KEY_CALL_COMPOSER_PICTURE_SERVER_URL_STRING, "");
sDefaults.putBoolean(KEY_USE_ACS_FOR_RCS_BOOL, false)9257         sDefaults.putBoolean(KEY_USE_ACS_FOR_RCS_BOOL, false);
sDefaults.putBoolean(KEY_NETWORK_TEMP_NOT_METERED_SUPPORTED_BOOL, true)9258         sDefaults.putBoolean(KEY_NETWORK_TEMP_NOT_METERED_SUPPORTED_BOOL, true);
sDefaults.putInt(KEY_DEFAULT_RTT_MODE_INT, 0)9259         sDefaults.putInt(KEY_DEFAULT_RTT_MODE_INT, 0);
sDefaults.putBoolean(KEY_STORE_SIM_PIN_FOR_UNATTENDED_REBOOT_BOOL, true)9260         sDefaults.putBoolean(KEY_STORE_SIM_PIN_FOR_UNATTENDED_REBOOT_BOOL, true);
sDefaults.putBoolean(KEY_HIDE_ENABLE_2G, false)9261         sDefaults.putBoolean(KEY_HIDE_ENABLE_2G, false);
sDefaults.putStringArray(KEY_ALLOWED_INITIAL_ATTACH_APN_TYPES_STRING_ARRAY, new String[]{"ia", "default"})9262         sDefaults.putStringArray(KEY_ALLOWED_INITIAL_ATTACH_APN_TYPES_STRING_ARRAY,
9263                 new String[]{"ia", "default"});
sDefaults.putBoolean(KEY_CARRIER_PROVISIONS_WIFI_MERGED_NETWORKS_BOOL, false)9264         sDefaults.putBoolean(KEY_CARRIER_PROVISIONS_WIFI_MERGED_NETWORKS_BOOL, false);
sDefaults.putBoolean(KEY_USE_IP_FOR_CALLING_INDICATOR_BOOL, false)9265         sDefaults.putBoolean(KEY_USE_IP_FOR_CALLING_INDICATOR_BOOL, false);
sDefaults.putBoolean(KEY_DISPLAY_CALL_STRENGTH_INDICATOR_BOOL, true)9266         sDefaults.putBoolean(KEY_DISPLAY_CALL_STRENGTH_INDICATOR_BOOL, true);
sDefaults.putString(KEY_CARRIER_PROVISIONING_APP_STRING, "")9267         sDefaults.putString(KEY_CARRIER_PROVISIONING_APP_STRING, "");
sDefaults.putBoolean(KEY_DISPLAY_NO_DATA_NOTIFICATION_ON_PERMANENT_FAILURE_BOOL, false)9268         sDefaults.putBoolean(KEY_DISPLAY_NO_DATA_NOTIFICATION_ON_PERMANENT_FAILURE_BOOL, false);
sDefaults.putBoolean(KEY_UNTHROTTLE_DATA_RETRY_WHEN_TAC_CHANGES_BOOL, false)9269         sDefaults.putBoolean(KEY_UNTHROTTLE_DATA_RETRY_WHEN_TAC_CHANGES_BOOL, false);
sDefaults.putBoolean(KEY_VONR_SETTING_VISIBILITY_BOOL, true)9270         sDefaults.putBoolean(KEY_VONR_SETTING_VISIBILITY_BOOL, true);
sDefaults.putBoolean(KEY_VONR_ENABLED_BOOL, false)9271         sDefaults.putBoolean(KEY_VONR_ENABLED_BOOL, false);
sDefaults.putBoolean(KEY_VONR_ON_BY_DEFAULT_BOOL, true)9272         sDefaults.putBoolean(KEY_VONR_ON_BY_DEFAULT_BOOL, true);
sDefaults.putStringArray(KEY_IWLAN_HANDOVER_POLICY_STRING_ARRAY, new String[]{ "source=GERAN|UTRAN|EUTRAN|NGRAN|IWLAN, " + "target=GERAN|UTRAN|EUTRAN|NGRAN|IWLAN, type=allowed"})9273         sDefaults.putStringArray(KEY_IWLAN_HANDOVER_POLICY_STRING_ARRAY, new String[]{
9274                 "source=GERAN|UTRAN|EUTRAN|NGRAN|IWLAN, "
9275                         + "target=GERAN|UTRAN|EUTRAN|NGRAN|IWLAN, type=allowed"});
sDefaults.putInt(KEY_CELLULAR_USAGE_SETTING_INT, SubscriptionManager.USAGE_SETTING_UNKNOWN)9276         sDefaults.putInt(KEY_CELLULAR_USAGE_SETTING_INT,
9277                 SubscriptionManager.USAGE_SETTING_UNKNOWN);
9278         // Default data stall recovery configurations.
sDefaults.putLongArray(KEY_DATA_STALL_RECOVERY_TIMERS_LONG_ARRAY, new long[] {180000, 180000, 180000, 180000})9279         sDefaults.putLongArray(KEY_DATA_STALL_RECOVERY_TIMERS_LONG_ARRAY,
9280                 new long[] {180000, 180000, 180000, 180000});
sDefaults.putBooleanArray(KEY_DATA_STALL_RECOVERY_SHOULD_SKIP_BOOL_ARRAY, new boolean[] {false, false, true, false, false})9281         sDefaults.putBooleanArray(KEY_DATA_STALL_RECOVERY_SHOULD_SKIP_BOOL_ARRAY,
9282                 new boolean[] {false, false, true, false, false});
9283     }
9284 
9285     /**
9286      * Wi-Fi configs used in WiFi Module.
9287      *
9288      * @hide
9289      */
9290     @SystemApi
9291     public static final class Wifi {
9292         /** Prefix of all Wifi.KEY_* constants. */
9293         public static final String KEY_PREFIX = "wifi.";
9294         /**
9295         * It contains the maximum client count definition that the carrier sets.
9296         * The default is 0, which means that the carrier hasn't set a requirement.
9297         */
9298         public static final String KEY_HOTSPOT_MAX_CLIENT_COUNT =
9299                 KEY_PREFIX + "hotspot_maximum_client_count";
9300 
9301         /**
9302          * This configuration is intended to be a narrow exception for provisioning
9303          * {@link android.net.wifi.WifiNetworkSuggestion} of widely-known carrier networks that do
9304          * not support using randomized MAC address.
9305          * Carrier provisioned {@link android.net.wifi.WifiNetworkSuggestion} with SSIDs included
9306          * in this list will have MAC randomization disabled.
9307          *
9308          * Note: the SSIDs in the list are expected to be interpreted as is - do not add double
9309          * quotes to the SSIDs.
9310          */
9311         public static final String KEY_SUGGESTION_SSID_LIST_WITH_MAC_RANDOMIZATION_DISABLED =
9312                 KEY_PREFIX + "suggestion_ssid_list_with_mac_randomization_disabled";
9313 
9314         /**
9315          * Avoid SoftAp in 5GHz if cellular is on unlicensed 5Ghz using License Assisted Access
9316          * (LAA).
9317          */
9318         public static final String KEY_AVOID_5GHZ_SOFTAP_FOR_LAA_BOOL =
9319                 KEY_PREFIX + "avoid_5ghz_softap_for_laa_bool";
9320 
9321         /**
9322          * Avoid Wifi Direct in 5GHz if cellular is on unlicensed 5Ghz using License Assisted
9323          * Access (LAA).
9324          */
9325         public static final String KEY_AVOID_5GHZ_WIFI_DIRECT_FOR_LAA_BOOL =
9326                 KEY_PREFIX + "avoid_5ghz_wifi_direct_for_laa_bool";
9327 
9328 
getDefaults()9329         private static PersistableBundle getDefaults() {
9330             PersistableBundle defaults = new PersistableBundle();
9331             defaults.putInt(KEY_HOTSPOT_MAX_CLIENT_COUNT, 0);
9332             defaults.putStringArray(KEY_SUGGESTION_SSID_LIST_WITH_MAC_RANDOMIZATION_DISABLED,
9333                     new String[0]);
9334             defaults.putBoolean(KEY_AVOID_5GHZ_SOFTAP_FOR_LAA_BOOL, false);
9335             defaults.putBoolean(KEY_AVOID_5GHZ_WIFI_DIRECT_FOR_LAA_BOOL, false);
9336 
9337             return defaults;
9338         }
9339 
Wifi()9340         private Wifi() {}
9341     }
9342 
9343     /**
9344      * Gets the configuration values for a particular subscription, which is associated with a
9345      * specific SIM card. If an invalid subId is used, the returned config will contain default
9346      * values. After using this method to get the configuration bundle,
9347      * {@link #isConfigForIdentifiedCarrier(PersistableBundle)} should be called to confirm whether
9348      * any carrier specific configuration has been applied.
9349      *
9350      * <p>Requires Permission:
9351      * {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE}, or the calling app
9352      * has carrier privileges (see {@link TelephonyManager#hasCarrierPrivileges()}).
9353      *
9354      * @param subId the subscription ID, normally obtained from {@link SubscriptionManager}.
9355      * @return A {@link PersistableBundle} containing the config for the given subId, or default
9356      *         values for an invalid subId.
9357      */
9358     @SuppressAutoDoc // Blocked by b/72967236 - no support for carrier privileges
9359     @RequiresPermission(Manifest.permission.READ_PHONE_STATE)
9360     @Nullable
getConfigForSubId(int subId)9361     public PersistableBundle getConfigForSubId(int subId) {
9362         try {
9363             ICarrierConfigLoader loader = getICarrierConfigLoader();
9364             if (loader == null) {
9365                 Rlog.w(TAG, "Error getting config for subId " + subId
9366                         + " ICarrierConfigLoader is null");
9367                 return null;
9368             }
9369             return loader.getConfigForSubIdWithFeature(subId, mContext.getOpPackageName(),
9370                     mContext.getAttributionTag());
9371         } catch (RemoteException ex) {
9372             Rlog.e(TAG, "Error getting config for subId " + subId + ": "
9373                     + ex.toString());
9374         }
9375         return null;
9376     }
9377 
9378     /**
9379      * Overrides the carrier config of the provided subscription ID with the provided values.
9380      *
9381      * Any further queries to carrier config from any process will return the overridden values
9382      * after this method returns. The overrides are effective for the lifetime of the phone process
9383      * until the user passes in {@code null} for {@code overrideValues}. This removes all previous
9384      * overrides and sets the carrier config back to production values.
9385      *
9386      * May throw an {@link IllegalArgumentException} if {@code overrideValues} contains invalid
9387      * values for the specified config keys.
9388      *
9389      * NOTE: This API is meant for testing purposes only.
9390      *
9391      * @param subscriptionId The subscription ID for which the override should be done.
9392      * @param overrideValues Key-value pairs of the values that are to be overridden. If set to
9393      *                       {@code null}, this will remove all previous overrides and set the
9394      *                       carrier configuration back to production values.
9395      * @hide
9396      */
9397     @RequiresPermission(Manifest.permission.MODIFY_PHONE_STATE)
9398     @SystemApi
overrideConfig(int subscriptionId, @Nullable PersistableBundle overrideValues)9399     public void overrideConfig(int subscriptionId, @Nullable PersistableBundle overrideValues) {
9400         overrideConfig(subscriptionId, overrideValues, false);
9401     }
9402 
9403     /**
9404      * Overrides the carrier config of the provided subscription ID with the provided values.
9405      *
9406      * Any further queries to carrier config from any process will return the overridden values
9407      * after this method returns. The overrides are effective until the user passes in {@code null}
9408      * for {@code overrideValues}. This removes all previous overrides and sets the carrier config
9409      * back to production values.
9410      *
9411      * The overrides is stored persistently and will survive a reboot if {@code persistent} is true.
9412      *
9413      * May throw an {@link IllegalArgumentException} if {@code overrideValues} contains invalid
9414      * values for the specified config keys.
9415      *
9416      * NOTE: This API is meant for testing purposes only.
9417      *
9418      * @param subscriptionId The subscription ID for which the override should be done.
9419      * @param overrideValues Key-value pairs of the values that are to be overridden. If set to
9420      *                       {@code null}, this will remove all previous overrides and set the
9421      *                       carrier configuration back to production values.
9422      * @param persistent     Determines whether the override should be persistent.
9423      * @hide
9424      */
9425     @RequiresPermission(Manifest.permission.MODIFY_PHONE_STATE)
overrideConfig(int subscriptionId, @Nullable PersistableBundle overrideValues, boolean persistent)9426     public void overrideConfig(int subscriptionId, @Nullable PersistableBundle overrideValues,
9427             boolean persistent) {
9428         try {
9429             ICarrierConfigLoader loader = getICarrierConfigLoader();
9430             if (loader == null) {
9431                 Rlog.w(TAG, "Error setting config for subId " + subscriptionId
9432                         + " ICarrierConfigLoader is null");
9433                 return;
9434             }
9435             loader.overrideConfig(subscriptionId, overrideValues, persistent);
9436         } catch (RemoteException ex) {
9437             Rlog.e(TAG, "Error setting config for subId " + subscriptionId + ": "
9438                     + ex.toString());
9439         }
9440     }
9441 
9442     /**
9443      * Gets the configuration values for the default subscription. After using this method to get
9444      * the configuration bundle, {@link #isConfigForIdentifiedCarrier(PersistableBundle)} should be
9445      * called to confirm whether any carrier specific configuration has been applied.
9446      *
9447      * <p>Requires Permission:
9448      * {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE}, or the calling app
9449      * has carrier privileges (see {@link TelephonyManager#hasCarrierPrivileges()}).
9450      *
9451      * @see #getConfigForSubId
9452      */
9453     @SuppressAutoDoc // Blocked by b/72967236 - no support for carrier privileges
9454     @RequiresPermission(Manifest.permission.READ_PHONE_STATE)
9455     @Nullable
getConfig()9456     public PersistableBundle getConfig() {
9457         return getConfigForSubId(SubscriptionManager.getDefaultSubscriptionId());
9458     }
9459 
9460     /**
9461      * Determines whether a configuration {@link PersistableBundle} obtained from
9462      * {@link #getConfig()} or {@link #getConfigForSubId(int)} corresponds to an identified carrier.
9463      *
9464      * <p>When an app receives the {@link CarrierConfigManager#ACTION_CARRIER_CONFIG_CHANGED}
9465      * broadcast which informs it that the carrier configuration has changed, it is possible
9466      * that another reload of the carrier configuration has begun since the intent was sent.
9467      * In this case, the carrier configuration the app fetches (e.g. via {@link #getConfig()})
9468      * may not represent the configuration for the current carrier. It should be noted that it
9469      * does not necessarily mean the configuration belongs to current carrier when this function
9470      * return true because it may belong to another previous identified carrier. Users should
9471      * always call {@link #getConfig()} or {@link #getConfigForSubId(int)} after receiving the
9472      * broadcast {@link #ACTION_CARRIER_CONFIG_CHANGED}.
9473      *
9474      * <p>After using {@link #getConfig()} or {@link #getConfigForSubId(int)} an app should always
9475      * use this method to confirm whether any carrier specific configuration has been applied.
9476      * Especially when an app misses the broadcast {@link #ACTION_CARRIER_CONFIG_CHANGED} but it
9477      * still needs to get the current configuration, it must use this method to verify whether the
9478      * configuration is default or carrier overridden.
9479      *
9480      * @param bundle the configuration bundle to be checked.
9481      * @return boolean true if any carrier specific configuration bundle has been applied, false
9482      * otherwise or the bundle is null.
9483      */
isConfigForIdentifiedCarrier(PersistableBundle bundle)9484     public static boolean isConfigForIdentifiedCarrier(PersistableBundle bundle) {
9485         return bundle != null && bundle.getBoolean(KEY_CARRIER_CONFIG_APPLIED_BOOL);
9486     }
9487 
9488     /**
9489      * Calling this method triggers telephony services to fetch the current carrier configuration.
9490      *
9491      * <p>Normally this does not need to be called because the platform reloads config on its own.
9492      * This should be called by a carrier service app if it wants to update config at an arbitrary
9493      * moment.
9494      *
9495      * <p>Requires Permission:
9496      * {@link android.Manifest.permission#MODIFY_PHONE_STATE MODIFY_PHONE_STATE}, or the calling app
9497      * has carrier privileges (see {@link TelephonyManager#hasCarrierPrivileges()}).
9498      *
9499      * <p>This method returns before the reload has completed, and {@link
9500      * android.service.carrier.CarrierService#onLoadConfig} will be called from an arbitrary thread.
9501      */
9502     @SuppressAutoDoc // Blocked by b/72967236 - no support for carrier privileges
9503     @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE)
notifyConfigChangedForSubId(int subId)9504     public void notifyConfigChangedForSubId(int subId) {
9505         try {
9506             ICarrierConfigLoader loader = getICarrierConfigLoader();
9507             if (loader == null) {
9508                 Rlog.w(TAG, "Error reloading config for subId=" + subId
9509                         + " ICarrierConfigLoader is null");
9510                 return;
9511             }
9512             loader.notifyConfigChangedForSubId(subId);
9513         } catch (RemoteException ex) {
9514             Rlog.e(TAG, "Error reloading config for subId=" + subId + ": " + ex.toString());
9515         }
9516     }
9517 
9518     /**
9519      * Request the carrier config loader to update the config for phoneId.
9520      *
9521      * <p>Depending on simState, the config may be cleared or loaded from config app. This is only
9522      * used by SubscriptionInfoUpdater.
9523      *
9524      * @hide
9525      */
9526     @SystemApi
9527     @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE)
updateConfigForPhoneId(int phoneId, String simState)9528     public void updateConfigForPhoneId(int phoneId, String simState) {
9529         try {
9530             ICarrierConfigLoader loader = getICarrierConfigLoader();
9531             if (loader == null) {
9532                 Rlog.w(TAG, "Error updating config for phoneId=" + phoneId
9533                         + " ICarrierConfigLoader is null");
9534                 return;
9535             }
9536             loader.updateConfigForPhoneId(phoneId, simState);
9537         } catch (RemoteException ex) {
9538             Rlog.e(TAG, "Error updating config for phoneId=" + phoneId + ": " + ex.toString());
9539         }
9540     }
9541 
9542     /**
9543      * Gets the package name for a default carrier service.
9544      * @return the package name for a default carrier service; empty string if not available.
9545      *
9546      * @hide
9547      */
9548     @NonNull
9549     @SystemApi
9550     @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE)
getDefaultCarrierServicePackageName()9551     public String getDefaultCarrierServicePackageName() {
9552         try {
9553             ICarrierConfigLoader loader = getICarrierConfigLoader();
9554             if (loader == null) {
9555                 Rlog.w(TAG, "getDefaultCarrierServicePackageName ICarrierConfigLoader is null");
9556                 return "";
9557             }
9558             return loader.getDefaultCarrierServicePackageName();
9559         } catch (RemoteException ex) {
9560             Rlog.e(TAG, "getDefaultCarrierServicePackageName ICarrierConfigLoader is null"
9561                     + ex.toString());
9562             ex.rethrowAsRuntimeException();
9563         }
9564         return "";
9565     }
9566 
9567     /**
9568      * Returns a new bundle with the default value for every supported configuration variable.
9569      *
9570      * @hide
9571      */
9572     @NonNull
9573     @SystemApi
9574     @SuppressLint("RequiresPermission")
getDefaultConfig()9575     public static PersistableBundle getDefaultConfig() {
9576         return new PersistableBundle(sDefaults);
9577     }
9578 
9579     /** @hide */
9580     @Nullable
getICarrierConfigLoader()9581     private ICarrierConfigLoader getICarrierConfigLoader() {
9582         return ICarrierConfigLoader.Stub.asInterface(
9583                 TelephonyFrameworkInitializer
9584                         .getTelephonyServiceManager()
9585                         .getCarrierConfigServiceRegisterer()
9586                         .get());
9587     }
9588 
9589     /**
9590      * Gets the configuration values for a component using its prefix.
9591      *
9592      * <p>Requires Permission:
9593      * {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE}, or the calling app
9594      * has carrier privileges (see {@link TelephonyManager#hasCarrierPrivileges()}).
9595      *
9596      * @param prefix prefix of the component.
9597      * @param subId the subscription ID, normally obtained from {@link SubscriptionManager}.
9598      *
9599      * @see #getConfigForSubId
9600      */
9601     @SuppressAutoDoc // Blocked by b/72967236 - no support for carrier privileges
9602     @RequiresPermission(Manifest.permission.READ_PHONE_STATE)
9603     @Nullable
getConfigByComponentForSubId(@onNull String prefix, int subId)9604     public PersistableBundle getConfigByComponentForSubId(@NonNull String prefix, int subId) {
9605         PersistableBundle configs = getConfigForSubId(subId);
9606 
9607         if (configs == null) {
9608             return null;
9609         }
9610 
9611         PersistableBundle ret = new PersistableBundle();
9612         for (String configKey : configs.keySet()) {
9613             if (configKey.startsWith(prefix)) {
9614                 addConfig(configKey, configs.get(configKey), ret);
9615             }
9616         }
9617 
9618         return ret;
9619     }
9620 
addConfig(String key, Object value, PersistableBundle configs)9621     private void addConfig(String key, Object value, PersistableBundle configs) {
9622         if (value instanceof String) {
9623             configs.putString(key, (String) value);
9624         } else if (value instanceof String[]) {
9625             configs.putStringArray(key, (String[]) value);
9626         } else if (value instanceof Integer) {
9627             configs.putInt(key, (Integer) value);
9628         } else if (value instanceof Long) {
9629             configs.putLong(key, (Long) value);
9630         } else if (value instanceof Double) {
9631             configs.putDouble(key, (Double) value);
9632         } else if (value instanceof Boolean) {
9633             configs.putBoolean(key, (Boolean) value);
9634         } else if (value instanceof int[]) {
9635             configs.putIntArray(key, (int[]) value);
9636         } else if (value instanceof double[]) {
9637             configs.putDoubleArray(key, (double[]) value);
9638         } else if (value instanceof boolean[]) {
9639             configs.putBooleanArray(key, (boolean[]) value);
9640         } else if (value instanceof long[]) {
9641             configs.putLongArray(key, (long[]) value);
9642         } else if (value instanceof PersistableBundle) {
9643             configs.putPersistableBundle(key, (PersistableBundle) value);
9644         }
9645     }
9646 }
9647