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