Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 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 | |
Jonathan Basseri | b731c3d | 2015-05-05 12:00:59 -0700 | [diff] [blame] | 19 | import android.annotation.NonNull; |
| 20 | import android.annotation.Nullable; |
Jeff Sharkey | d86b8fe | 2017-06-02 17:36:26 -0600 | [diff] [blame] | 21 | import android.annotation.RequiresPermission; |
| 22 | import android.annotation.SuppressLint; |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 23 | import android.annotation.SystemApi; |
Jeff Sharkey | d86b8fe | 2017-06-02 17:36:26 -0600 | [diff] [blame] | 24 | import android.annotation.SystemService; |
Mathew Inwood | 323d08f | 2018-08-16 11:30:29 +0100 | [diff] [blame] | 25 | import android.annotation.UnsupportedAppUsage; |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 26 | import android.content.Context; |
Jonathan Basseri | 4f9ad167 | 2015-05-12 10:06:32 -0700 | [diff] [blame] | 27 | import android.os.PersistableBundle; |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 28 | import android.os.RemoteException; |
| 29 | import android.os.ServiceManager; |
Jeff Sharkey | 17bebd2 | 2017-07-19 21:00:38 -0600 | [diff] [blame] | 30 | import android.service.carrier.CarrierService; |
Brad Ebinger | f8c3cd8 | 2018-01-22 13:51:52 -0800 | [diff] [blame] | 31 | import android.telephony.ims.ImsReasonInfo; |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 32 | |
Ta-wei Yen | 3f9306f | 2016-04-20 14:46:20 -0700 | [diff] [blame] | 33 | import com.android.internal.telephony.ICarrierConfigLoader; |
| 34 | |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 35 | /** |
| 36 | * Provides access to telephony configuration values that are carrier-specific. |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 37 | */ |
Jeff Sharkey | d86b8fe | 2017-06-02 17:36:26 -0600 | [diff] [blame] | 38 | @SystemService(Context.CARRIER_CONFIG_SERVICE) |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 39 | public class CarrierConfigManager { |
Jonathan Basseri | f31ac33 | 2015-05-27 01:18:46 -0700 | [diff] [blame] | 40 | private final static String TAG = "CarrierConfigManager"; |
| 41 | |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 42 | /** |
Amit Mahajan | 8a4275f | 2018-01-24 12:54:44 -0800 | [diff] [blame] | 43 | * Extra included in {@link #ACTION_CARRIER_CONFIG_CHANGED} to indicate the slot index that the |
| 44 | * broadcast is for. |
| 45 | */ |
| 46 | public static final String EXTRA_SLOT_INDEX = "android.telephony.extra.SLOT_INDEX"; |
| 47 | |
| 48 | /** |
| 49 | * Optional extra included in {@link #ACTION_CARRIER_CONFIG_CHANGED} to indicate the |
| 50 | * subscription index that the broadcast is for, if a valid one is available. |
| 51 | */ |
| 52 | public static final String EXTRA_SUBSCRIPTION_INDEX = |
| 53 | SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX; |
| 54 | |
Malcolm Chen | d1272d1 | 2018-02-28 15:20:45 -0800 | [diff] [blame] | 55 | private final Context mContext; |
| 56 | |
Amit Mahajan | 8a4275f | 2018-01-24 12:54:44 -0800 | [diff] [blame] | 57 | /** |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 58 | * @hide |
| 59 | */ |
Malcolm Chen | d1272d1 | 2018-02-28 15:20:45 -0800 | [diff] [blame] | 60 | public CarrierConfigManager(Context context) { |
| 61 | mContext = context; |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 62 | } |
| 63 | |
| 64 | /** |
Amit Mahajan | 8a4275f | 2018-01-24 12:54:44 -0800 | [diff] [blame] | 65 | * This intent is broadcast by the system when carrier config changes. An int is specified in |
| 66 | * {@link #EXTRA_SLOT_INDEX} to indicate the slot index that this is for. An optional int extra |
| 67 | * {@link #EXTRA_SUBSCRIPTION_INDEX} is included to indicate the subscription index if a valid |
| 68 | * one is available for the slot index. |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 69 | */ |
| 70 | public static final String |
| 71 | ACTION_CARRIER_CONFIG_CHANGED = "android.telephony.action.CARRIER_CONFIG_CHANGED"; |
| 72 | |
Jonathan Basseri | 08e318e | 2015-05-29 10:12:23 -0700 | [diff] [blame] | 73 | // Below are the keys used in carrier config bundles. To add a new variable, define the key and |
| 74 | // give it a default value in sDefaults. If you need to ship a per-network override in the |
| 75 | // system image, that can be added in packages/apps/CarrierConfig. |
| 76 | |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 77 | /** |
Jordan Liu | c82d113 | 2016-10-03 11:35:33 -0700 | [diff] [blame] | 78 | * This flag specifies whether VoLTE availability is based on provisioning. By default this is |
| 79 | * false. |
| 80 | */ |
| 81 | public static final String |
| 82 | KEY_CARRIER_VOLTE_PROVISIONED_BOOL = "carrier_volte_provisioned_bool"; |
| 83 | |
SongFerngWang | 0605716 | 2018-06-28 17:28:22 +0800 | [diff] [blame] | 84 | /** |
| 85 | * Boolean indicating if the "Call forwarding" item is visible in the Call Settings menu. |
| 86 | * true means visible. false means gone. |
| 87 | * @hide |
| 88 | */ |
| 89 | public static final String KEY_CALL_FORWARDING_VISIBILITY_BOOL = |
| 90 | "call_forwarding_visibility_bool"; |
| 91 | |
| 92 | /** |
| 93 | * Boolean indicating if the "Caller ID" item is visible in the Additional Settings menu. |
| 94 | * true means visible. false means gone. |
| 95 | * @hide |
| 96 | */ |
| 97 | public static final String KEY_ADDITIONAL_SETTINGS_CALLER_ID_VISIBILITY_BOOL = |
| 98 | "additional_settings_caller_id_visibility_bool"; |
| 99 | |
| 100 | /** |
| 101 | * Boolean indicating if the "Call Waiting" item is visible in the Additional Settings menu. |
| 102 | * true means visible. false means gone. |
| 103 | * @hide |
| 104 | */ |
| 105 | public static final String KEY_ADDITIONAL_SETTINGS_CALL_WAITING_VISIBILITY_BOOL = |
| 106 | "additional_settings_call_waiting_visibility_bool"; |
| 107 | |
Wenting Xiong | d585368 | 2016-08-12 18:28:37 +0800 | [diff] [blame] | 108 | /** |
| 109 | * Boolean indicating if the "Call barring" item is visible in the Call Settings menu. |
Brad Ebinger | 0819bac | 2018-08-29 16:08:29 -0700 | [diff] [blame] | 110 | * If true, the "Call Barring" menu will be visible. If false, the menu will be gone. |
| 111 | * |
| 112 | * Disabled by default. |
Wenting Xiong | d585368 | 2016-08-12 18:28:37 +0800 | [diff] [blame] | 113 | */ |
| 114 | public static final String KEY_CALL_BARRING_VISIBILITY_BOOL = |
| 115 | "call_barring_visibility_bool"; |
| 116 | |
Jordan Liu | c82d113 | 2016-10-03 11:35:33 -0700 | [diff] [blame] | 117 | /** |
Brad Ebinger | 0819bac | 2018-08-29 16:08:29 -0700 | [diff] [blame] | 118 | * Flag indicating whether or not changing the call barring password via the "Call Barring" |
| 119 | * settings menu is supported. If true, the option will be visible in the "Call |
| 120 | * Barring" settings menu. If false, the option will not be visible. |
| 121 | * |
| 122 | * Enabled by default. |
| 123 | */ |
| 124 | public static final String KEY_CALL_BARRING_SUPPORTS_PASSWORD_CHANGE_BOOL = |
| 125 | "call_barring_supports_password_change_bool"; |
| 126 | |
| 127 | /** |
| 128 | * Flag indicating whether or not deactivating all call barring features via the "Call Barring" |
| 129 | * settings menu is supported. If true, the option will be visible in the "Call |
| 130 | * Barring" settings menu. If false, the option will not be visible. |
| 131 | * |
| 132 | * Enabled by default. |
| 133 | */ |
| 134 | public static final String KEY_CALL_BARRING_SUPPORTS_DEACTIVATE_ALL_BOOL = |
| 135 | "call_barring_supports_deactivate_all_bool"; |
| 136 | |
| 137 | /** |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 138 | * Flag indicating whether the Phone app should ignore EVENT_SIM_NETWORK_LOCKED |
| 139 | * events from the Sim. |
| 140 | * If true, this will prevent the IccNetworkDepersonalizationPanel from being shown, and |
| 141 | * effectively disable the "Sim network lock" feature. |
| 142 | */ |
| 143 | public static final String |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 144 | KEY_IGNORE_SIM_NETWORK_LOCKED_EVENTS_BOOL = "ignore_sim_network_locked_events_bool"; |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 145 | |
| 146 | /** |
Jordan Liu | be45b8c | 2016-11-09 13:23:42 -0800 | [diff] [blame] | 147 | * When checking if a given number is the voicemail number, if this flag is true |
| 148 | * then in addition to comparing the given number to the voicemail number, we also compare it |
| 149 | * to the mdn. If this flag is false, the given number is only compared to the voicemail number. |
| 150 | * By default this value is false. |
| 151 | */ |
| 152 | public static final String KEY_MDN_IS_ADDITIONAL_VOICEMAIL_NUMBER_BOOL = |
| 153 | "mdn_is_additional_voicemail_number_bool"; |
| 154 | |
| 155 | /** |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 156 | * Flag indicating whether the Phone app should provide a "Dismiss" button on the SIM network |
| 157 | * unlock screen. The default value is true. If set to false, there will be *no way* to dismiss |
| 158 | * the SIM network unlock screen if you don't enter the correct unlock code. (One important |
| 159 | * consequence: there will be no way to make an Emergency Call if your SIM is network-locked and |
| 160 | * you don't know the PIN.) |
| 161 | */ |
| 162 | public static final String |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 163 | KEY_SIM_NETWORK_UNLOCK_ALLOW_DISMISS_BOOL = "sim_network_unlock_allow_dismiss_bool"; |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 164 | |
Avinash Nalluri | ceaf722 | 2018-04-21 14:06:06 -0700 | [diff] [blame] | 165 | /** |
| 166 | * Flag indicating whether or not sending emergency SMS messages over IMS |
| 167 | * is supported when in LTE/limited LTE (Emergency only) service mode.. |
| 168 | * |
| 169 | */ |
| 170 | public static final String |
| 171 | KEY_SUPPORT_EMERGENCY_SMS_OVER_IMS_BOOL = "support_emergency_sms_over_ims_bool"; |
| 172 | |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 173 | /** Flag indicating if the phone is a world phone */ |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 174 | public static final String KEY_WORLD_PHONE_BOOL = "world_phone_bool"; |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 175 | |
| 176 | /** |
Chris Manton | 1ba0fa0 | 2015-09-01 13:56:46 -0700 | [diff] [blame] | 177 | * Flag to require or skip entitlement checks. |
| 178 | * If true, entitlement checks will be executed if device has been configured for it, |
| 179 | * If false, entitlement checks will be skipped. |
Chris Manton | 1ba0fa0 | 2015-09-01 13:56:46 -0700 | [diff] [blame] | 180 | */ |
| 181 | public static final String |
| 182 | KEY_REQUIRE_ENTITLEMENT_CHECKS_BOOL = "require_entitlement_checks_bool"; |
| 183 | |
| 184 | /** |
Jordan Liu | a5a8b59 | 2016-09-12 10:57:27 -0700 | [diff] [blame] | 185 | * Flag indicating whether radio is to be restarted on error PDP_FAIL_REGULAR_DEACTIVATION |
| 186 | * This is false by default. |
Jack Yu | 3399f36 | 2018-08-21 16:57:36 -0700 | [diff] [blame] | 187 | * |
Jack Yu | a219efb | 2018-08-22 17:19:44 -0700 | [diff] [blame] | 188 | * @deprecated Use {@link #KEY_RADIO_RESTART_FAILURE_CAUSES_INT_ARRAY} instead |
Jordan Liu | a5a8b59 | 2016-09-12 10:57:27 -0700 | [diff] [blame] | 189 | */ |
Jack Yu | 3399f36 | 2018-08-21 16:57:36 -0700 | [diff] [blame] | 190 | @Deprecated |
| 191 | public static final String KEY_RESTART_RADIO_ON_PDP_FAIL_REGULAR_DEACTIVATION_BOOL = |
| 192 | "restart_radio_on_pdp_fail_regular_deactivation_bool"; |
| 193 | |
| 194 | /** |
| 195 | * A list of failure cause codes that will trigger a modem restart when telephony receiving |
| 196 | * one of those during data setup. The cause codes are defined in 3GPP TS 24.008 Annex I and |
| 197 | * TS 24.301 Annex B. |
| 198 | */ |
| 199 | public static final String KEY_RADIO_RESTART_FAILURE_CAUSES_INT_ARRAY = |
| 200 | "radio_restart_failure_causes_int_array"; |
Jordan Liu | a5a8b59 | 2016-09-12 10:57:27 -0700 | [diff] [blame] | 201 | |
| 202 | /** |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 203 | * If true, enable vibration (haptic feedback) for key presses in the EmergencyDialer activity. |
| 204 | * The pattern is set on a per-platform basis using config_virtualKeyVibePattern. To be |
| 205 | * consistent with the regular Dialer, this value should agree with the corresponding values |
| 206 | * from config.xml under apps/Contacts. |
| 207 | */ |
| 208 | public static final String |
Jonathan Basseri | 1826c23 | 2015-06-19 16:04:38 -0700 | [diff] [blame] | 209 | KEY_ENABLE_DIALER_KEY_VIBRATION_BOOL = "enable_dialer_key_vibration_bool"; |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 210 | |
| 211 | /** Flag indicating if dtmf tone type is enabled */ |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 212 | public static final String KEY_DTMF_TYPE_ENABLED_BOOL = "dtmf_type_enabled_bool"; |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 213 | |
| 214 | /** Flag indicating if auto retry is enabled */ |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 215 | public static final String KEY_AUTO_RETRY_ENABLED_BOOL = "auto_retry_enabled_bool"; |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 216 | |
| 217 | /** |
| 218 | * Determine whether we want to play local DTMF tones in a call, or just let the radio/BP handle |
| 219 | * playing of the tones. |
| 220 | */ |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 221 | public static final String KEY_ALLOW_LOCAL_DTMF_TONES_BOOL = "allow_local_dtmf_tones_bool"; |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 222 | |
| 223 | /** |
Tyler Gunn | acdb686 | 2018-01-29 14:30:52 -0800 | [diff] [blame] | 224 | * Determines if the carrier requires that a tone be played to the remote party when an app is |
| 225 | * recording audio during a call (e.g. using a call recording app). |
| 226 | * <p> |
| 227 | * Note: This requires the Telephony config_supports_telephony_audio_device overlay to be true |
| 228 | * in order to work. |
| 229 | * @hide |
| 230 | */ |
| 231 | public static final String KEY_PLAY_CALL_RECORDING_TONE_BOOL = "play_call_recording_tone_bool"; |
| 232 | /** |
Jordan Liu | 5ac6f5c | 2016-10-03 12:28:27 -0700 | [diff] [blame] | 233 | * Determines if the carrier requires converting the destination number before sending out an |
| 234 | * SMS. Certain networks and numbering plans require different formats. |
| 235 | */ |
| 236 | public static final String KEY_SMS_REQUIRES_DESTINATION_NUMBER_CONVERSION_BOOL= |
| 237 | "sms_requires_destination_number_conversion_bool"; |
| 238 | |
| 239 | /** |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 240 | * If true, show an onscreen "Dial" button in the dialer. In practice this is used on all |
| 241 | * platforms, even the ones with hard SEND/END keys, but for maximum flexibility it's controlled |
| 242 | * by a flag here (which can be overridden on a per-product basis.) |
| 243 | */ |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 244 | public static final String KEY_SHOW_ONSCREEN_DIAL_BUTTON_BOOL = "show_onscreen_dial_button_bool"; |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 245 | |
| 246 | /** Determines if device implements a noise suppression device for in call audio. */ |
| 247 | public static final String |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 248 | KEY_HAS_IN_CALL_NOISE_SUPPRESSION_BOOL = "has_in_call_noise_suppression_bool"; |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 249 | |
| 250 | /** |
| 251 | * Determines if the current device should allow emergency numbers to be logged in the Call Log. |
| 252 | * (Some carriers require that emergency calls *not* be logged, presumably to avoid the risk of |
| 253 | * accidental redialing from the call log UI. This is a good idea, so the default here is |
| 254 | * false.) |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 255 | */ |
| 256 | public static final String |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 257 | KEY_ALLOW_EMERGENCY_NUMBERS_IN_CALL_LOG_BOOL = "allow_emergency_numbers_in_call_log_bool"; |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 258 | |
Hall Liu | e6e6ec4 | 2018-08-03 18:25:24 -0700 | [diff] [blame] | 259 | /** |
| 260 | * A string array containing numbers that shouldn't be included in the call log. |
| 261 | * @hide |
| 262 | */ |
| 263 | public static final String KEY_UNLOGGABLE_NUMBERS_STRING_ARRAY = |
| 264 | "unloggable_numbers_string_array"; |
| 265 | |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 266 | /** If true, removes the Voice Privacy option from Call Settings */ |
Jonathan Basseri | 3360c26 | 2015-06-09 15:16:21 -0700 | [diff] [blame] | 267 | public static final String KEY_VOICE_PRIVACY_DISABLE_UI_BOOL = "voice_privacy_disable_ui_bool"; |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 268 | |
| 269 | /** Control whether users can reach the carrier portions of Cellular Network Settings. */ |
| 270 | public static final String |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 271 | KEY_HIDE_CARRIER_NETWORK_SETTINGS_BOOL = "hide_carrier_network_settings_bool"; |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 272 | |
Joe LaPenna | 2b22ae3 | 2016-12-07 16:27:24 -0800 | [diff] [blame] | 273 | /** |
Mattias Nilsson | ef87416 | 2017-12-11 13:45:40 +0100 | [diff] [blame] | 274 | * Do only allow auto selection in Advanced Network Settings when in home network. |
| 275 | * Manual selection is allowed when in roaming network. |
| 276 | * @hide |
| 277 | */ |
| 278 | public static final String |
| 279 | KEY_ONLY_AUTO_SELECT_IN_HOME_NETWORK_BOOL = "only_auto_select_in_home_network"; |
| 280 | |
| 281 | /** |
Joe LaPenna | 2b22ae3 | 2016-12-07 16:27:24 -0800 | [diff] [blame] | 282 | * Control whether users receive a simplified network settings UI and improved network |
| 283 | * selection. |
Joe LaPenna | 2b22ae3 | 2016-12-07 16:27:24 -0800 | [diff] [blame] | 284 | */ |
| 285 | public static final String |
| 286 | KEY_SIMPLIFIED_NETWORK_SETTINGS_BOOL = "simplified_network_settings_bool"; |
| 287 | |
Junda Liu | e15cca7 | 2015-06-17 09:55:57 -0700 | [diff] [blame] | 288 | /** Control whether users can reach the SIM lock settings. */ |
| 289 | public static final String |
| 290 | KEY_HIDE_SIM_LOCK_SETTINGS_BOOL = "hide_sim_lock_settings_bool"; |
| 291 | |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 292 | /** Control whether users can edit APNs in Settings. */ |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 293 | public static final String KEY_APN_EXPAND_BOOL = "apn_expand_bool"; |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 294 | |
| 295 | /** Control whether users can choose a network operator. */ |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 296 | public static final String KEY_OPERATOR_SELECTION_EXPAND_BOOL = "operator_selection_expand_bool"; |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 297 | |
| 298 | /** Used in Cellular Network Settings for preferred network type. */ |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 299 | public static final String KEY_PREFER_2G_BOOL = "prefer_2g_bool"; |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 300 | |
Junda Liu | cd115b7 | 2015-05-13 14:57:48 -0700 | [diff] [blame] | 301 | /** Show cdma network mode choices 1x, 3G, global etc. */ |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 302 | public static final String KEY_SHOW_CDMA_CHOICES_BOOL = "show_cdma_choices_bool"; |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 303 | |
| 304 | /** CDMA activation goes through HFA */ |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 305 | public static final String KEY_USE_HFA_FOR_PROVISIONING_BOOL = "use_hfa_for_provisioning_bool"; |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 306 | |
| 307 | /** |
| 308 | * CDMA activation goes through OTASP. |
| 309 | * <p> |
| 310 | * TODO: This should be combined with config_use_hfa_for_provisioning and implemented as an enum |
| 311 | * (NONE, HFA, OTASP). |
| 312 | */ |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 313 | public static final String KEY_USE_OTASP_FOR_PROVISIONING_BOOL = "use_otasp_for_provisioning_bool"; |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 314 | |
| 315 | /** Display carrier settings menu if true */ |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 316 | public static final String KEY_CARRIER_SETTINGS_ENABLE_BOOL = "carrier_settings_enable_bool"; |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 317 | |
Bin Chen | 503513d | 2017-09-01 18:12:53 +0800 | [diff] [blame] | 318 | /** Does not display additional call setting for IMS phone based on GSM Phone */ |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 319 | public static final String KEY_ADDITIONAL_CALL_SETTING_BOOL = "additional_call_setting_bool"; |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 320 | |
| 321 | /** Show APN Settings for some CDMA carriers */ |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 322 | public static final String KEY_SHOW_APN_SETTING_CDMA_BOOL = "show_apn_setting_cdma_bool"; |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 323 | |
| 324 | /** After a CDMA conference call is merged, the swap button should be displayed. */ |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 325 | public static final String KEY_SUPPORT_SWAP_AFTER_MERGE_BOOL = "support_swap_after_merge_bool"; |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 326 | |
| 327 | /** |
manabu, shimoda | 1de99d1 | 2017-10-20 17:16:06 +0900 | [diff] [blame] | 328 | * Determine whether user can edit voicemail number in Settings. |
| 329 | */ |
| 330 | public static final String KEY_EDITABLE_VOICEMAIL_NUMBER_SETTING_BOOL = |
| 331 | "editable_voicemail_number_setting_bool"; |
| 332 | |
| 333 | /** |
Jordan Liu | 4a54638 | 2016-09-08 12:45:58 -0700 | [diff] [blame] | 334 | * Since the default voicemail number is empty, if a SIM card does not have a voicemail number |
| 335 | * available the user cannot use voicemail. This flag allows the user to edit the voicemail |
| 336 | * number in such cases, and is false by default. |
| 337 | */ |
| 338 | public static final String KEY_EDITABLE_VOICEMAIL_NUMBER_BOOL= "editable_voicemail_number_bool"; |
| 339 | |
| 340 | /** |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 341 | * Determine whether the voicemail notification is persistent in the notification bar. If true, |
| 342 | * the voicemail notifications cannot be dismissed from the notification bar. |
| 343 | */ |
| 344 | public static final String |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 345 | KEY_VOICEMAIL_NOTIFICATION_PERSISTENT_BOOL = "voicemail_notification_persistent_bool"; |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 346 | |
| 347 | /** For IMS video over LTE calls, determines whether video pause signalling is supported. */ |
| 348 | public static final String |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 349 | KEY_SUPPORT_PAUSE_IMS_VIDEO_CALLS_BOOL = "support_pause_ims_video_calls_bool"; |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 350 | |
| 351 | /** |
| 352 | * Disables dialing "*228" (OTASP provisioning) on CDMA carriers where it is not supported or is |
| 353 | * potentially harmful by locking the SIM to 3G. |
| 354 | */ |
| 355 | public static final String |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 356 | KEY_DISABLE_CDMA_ACTIVATION_CODE_BOOL = "disable_cdma_activation_code_bool"; |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 357 | |
Amit Mahajan | 412e7c8 | 2015-10-05 11:05:02 -0700 | [diff] [blame] | 358 | /** |
Jordan Liu | 2420a0a | 2016-10-04 11:46:03 -0700 | [diff] [blame] | 359 | * List of RIL radio technologies (See {@link ServiceState} {@code RIL_RADIO_TECHNOLOGY_*} |
| 360 | * constants) which support only a single data connection at a time. Some carriers do not |
| 361 | * support multiple pdp on UMTS. |
| 362 | */ |
| 363 | public static final String |
| 364 | KEY_ONLY_SINGLE_DC_ALLOWED_INT_ARRAY = "only_single_dc_allowed_int_array"; |
| 365 | |
| 366 | /** |
Chris Manton | ca16a79 | 2015-06-16 12:06:08 -0700 | [diff] [blame] | 367 | * Override the platform's notion of a network operator being considered roaming. |
| 368 | * Value is string array of MCCMNCs to be considered roaming for 3GPP RATs. |
| 369 | */ |
| 370 | public static final String |
| 371 | KEY_GSM_ROAMING_NETWORKS_STRING_ARRAY = "gsm_roaming_networks_string_array"; |
| 372 | |
| 373 | /** |
| 374 | * Override the platform's notion of a network operator being considered not roaming. |
| 375 | * Value is string array of MCCMNCs to be considered not roaming for 3GPP RATs. |
| 376 | */ |
| 377 | public static final String |
| 378 | KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY = "gsm_nonroaming_networks_string_array"; |
| 379 | |
| 380 | /** |
Brad Ebinger | 024aaf2 | 2017-01-23 15:17:50 -0800 | [diff] [blame] | 381 | * Override the device's configuration for the ImsService to use for this SIM card. |
| 382 | */ |
| 383 | public static final String KEY_CONFIG_IMS_PACKAGE_OVERRIDE_STRING = |
| 384 | "config_ims_package_override_string"; |
| 385 | |
| 386 | /** |
Jeff Sharkey | 17bebd2 | 2017-07-19 21:00:38 -0600 | [diff] [blame] | 387 | * Override the package that will manage {@link SubscriptionPlan} |
| 388 | * information instead of the {@link CarrierService} that defines this |
| 389 | * value. |
| 390 | * |
| 391 | * @see SubscriptionManager#getSubscriptionPlans(int) |
| 392 | * @see SubscriptionManager#setSubscriptionPlans(int, java.util.List) |
| 393 | */ |
Jeff Sharkey | b7479988 | 2017-07-28 16:55:41 -0600 | [diff] [blame] | 394 | @SystemApi |
Jeff Sharkey | 17bebd2 | 2017-07-19 21:00:38 -0600 | [diff] [blame] | 395 | public static final String KEY_CONFIG_PLANS_PACKAGE_OVERRIDE_STRING = |
| 396 | "config_plans_package_override_string"; |
| 397 | |
| 398 | /** |
Chris Manton | ca16a79 | 2015-06-16 12:06:08 -0700 | [diff] [blame] | 399 | * Override the platform's notion of a network operator being considered roaming. |
| 400 | * Value is string array of SIDs to be considered roaming for 3GPP2 RATs. |
| 401 | */ |
| 402 | public static final String |
| 403 | KEY_CDMA_ROAMING_NETWORKS_STRING_ARRAY = "cdma_roaming_networks_string_array"; |
| 404 | |
| 405 | /** |
| 406 | * Override the platform's notion of a network operator being considered non roaming. |
| 407 | * Value is string array of SIDs to be considered not roaming for 3GPP2 RATs. |
| 408 | */ |
| 409 | public static final String |
| 410 | KEY_CDMA_NONROAMING_NETWORKS_STRING_ARRAY = "cdma_nonroaming_networks_string_array"; |
| 411 | |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 412 | /** |
Chris Manton | 63f25b6 | 2015-06-24 16:47:49 -0700 | [diff] [blame] | 413 | * Override the platform's notion of a network operator being considered non roaming. |
| 414 | * If true all networks are considered as home network a.k.a non-roaming. When false, |
| 415 | * the 2 pairs of CMDA and GSM roaming/non-roaming arrays are consulted. |
| 416 | * |
Ricardo Loo Foronda | f2a8aea | 2017-10-26 17:02:31 -0700 | [diff] [blame] | 417 | * @see #KEY_GSM_ROAMING_NETWORKS_STRING_ARRAY |
| 418 | * @see #KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY |
| 419 | * @see #KEY_CDMA_ROAMING_NETWORKS_STRING_ARRAY |
| 420 | * @see #KEY_CDMA_NONROAMING_NETWORKS_STRING_ARRAY |
Chris Manton | 63f25b6 | 2015-06-24 16:47:49 -0700 | [diff] [blame] | 421 | */ |
| 422 | public static final String |
| 423 | KEY_FORCE_HOME_NETWORK_BOOL = "force_home_network_bool"; |
| 424 | |
| 425 | /** |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 426 | * Flag specifying whether VoLTE should be available for carrier, independent of carrier |
| 427 | * provisioning. If false: hard disabled. If true: then depends on carrier provisioning, |
| 428 | * availability, etc. |
| 429 | */ |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 430 | public static final String KEY_CARRIER_VOLTE_AVAILABLE_BOOL = "carrier_volte_available_bool"; |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 431 | |
Junda Liu | e478649 | 2015-06-15 13:15:28 -0700 | [diff] [blame] | 432 | /** |
Junda Liu | e5c7ca7 | 2015-06-24 14:41:14 -0700 | [diff] [blame] | 433 | * Flag specifying whether video telephony is available for carrier. If false: hard disabled. |
| 434 | * If true: then depends on carrier provisioning, availability, etc. |
| 435 | */ |
| 436 | public static final String KEY_CARRIER_VT_AVAILABLE_BOOL = "carrier_vt_available_bool"; |
| 437 | |
| 438 | /** |
Tyler Gunn | 481255d | 2016-08-16 16:04:48 -0700 | [diff] [blame] | 439 | * Flag specifying whether the carrier wants to notify the user when a VT call has been handed |
| 440 | * over from WIFI to LTE. |
| 441 | * <p> |
| 442 | * The handover notification is sent as a |
| 443 | * {@link TelephonyManager#EVENT_HANDOVER_VIDEO_FROM_WIFI_TO_LTE} |
| 444 | * {@link android.telecom.Connection} event, which an {@link android.telecom.InCallService} |
| 445 | * should use to trigger the display of a user-facing message. |
| 446 | * <p> |
| 447 | * The Connection event is sent to the InCallService only once, the first time it occurs. |
| 448 | * @hide |
| 449 | */ |
| 450 | public static final String KEY_NOTIFY_HANDOVER_VIDEO_FROM_WIFI_TO_LTE_BOOL = |
| 451 | "notify_handover_video_from_wifi_to_lte_bool"; |
| 452 | |
| 453 | /** |
Tyler Gunn | 5ce0d3a | 2017-12-14 14:06:15 -0800 | [diff] [blame] | 454 | * Flag specifying whether the carrier wants to notify the user when a VT call has been handed |
| 455 | * over from LTE to WIFI. |
| 456 | * <p> |
| 457 | * The handover notification is sent as a |
| 458 | * {@link TelephonyManager#EVENT_HANDOVER_VIDEO_FROM_LTE_TO_WIFI} |
| 459 | * {@link android.telecom.Connection} event, which an {@link android.telecom.InCallService} |
| 460 | * should use to trigger the display of a user-facing message. |
| 461 | * @hide |
| 462 | */ |
| 463 | public static final String KEY_NOTIFY_HANDOVER_VIDEO_FROM_LTE_TO_WIFI_BOOL = |
| 464 | "notify_handover_video_from_lte_to_wifi_bool"; |
| 465 | |
| 466 | /** |
Tyler Gunn | 86d5c3f | 2016-08-12 14:14:13 -0700 | [diff] [blame] | 467 | * Flag specifying whether the carrier supports downgrading a video call (tx, rx or tx/rx) |
| 468 | * directly to an audio call. |
| 469 | * @hide |
| 470 | */ |
| 471 | public static final String KEY_SUPPORT_DOWNGRADE_VT_TO_AUDIO_BOOL = |
| 472 | "support_downgrade_vt_to_audio_bool"; |
| 473 | |
| 474 | /** |
Jordan Liu | 3ff30d2 | 2016-09-01 13:25:13 -0700 | [diff] [blame] | 475 | * Where there is no preloaded voicemail number on a SIM card, specifies the carrier's default |
| 476 | * voicemail number. |
| 477 | * When empty string, no default voicemail number is specified. |
| 478 | */ |
| 479 | public static final String KEY_DEFAULT_VM_NUMBER_STRING = "default_vm_number_string"; |
| 480 | |
Jack Yu | 2030cd9 | 2016-11-17 09:51:29 -0800 | [diff] [blame] | 481 | /** |
SongFerngWang | 310f6d0 | 2018-03-23 15:07:05 +0800 | [diff] [blame] | 482 | * Where there is no preloaded voicemail number on a SIM card, specifies the carrier's default |
| 483 | * voicemail number for roaming network. |
| 484 | * When empty string, no default voicemail number is specified for roaming network. |
| 485 | * @hide |
| 486 | */ |
| 487 | public static final String KEY_DEFAULT_VM_NUMBER_ROAMING_STRING = |
| 488 | "default_vm_number_roaming_string"; |
| 489 | |
| 490 | /** |
Cassie | 4c6f72c | 2017-10-10 14:33:38 -0700 | [diff] [blame] | 491 | * Flag that specifies to use the user's own phone number as the voicemail number when there is |
| 492 | * no pre-loaded voicemail number on the SIM card. |
| 493 | * <p> |
| 494 | * {@link #KEY_DEFAULT_VM_NUMBER_STRING} takes precedence over this flag. |
| 495 | * <p> |
| 496 | * If false, the system default (*86) will be used instead. |
| 497 | */ |
| 498 | public static final String KEY_CONFIG_TELEPHONY_USE_OWN_NUMBER_FOR_VOICEMAIL_BOOL = |
| 499 | "config_telephony_use_own_number_for_voicemail_bool"; |
| 500 | |
| 501 | /** |
Tyler Gunn | 9a961f5 | 2017-08-17 15:58:47 -0700 | [diff] [blame] | 502 | * When {@code true}, changes to the mobile data enabled switch will not cause the VT |
| 503 | * registration state to change. That is, turning on or off mobile data will not cause VT to be |
| 504 | * enabled or disabled. |
| 505 | * When {@code false}, disabling mobile data will cause VT to be de-registered. |
| 506 | * <p> |
| 507 | * See also {@link #KEY_VILTE_DATA_IS_METERED_BOOL}. |
Jack Yu | 2030cd9 | 2016-11-17 09:51:29 -0800 | [diff] [blame] | 508 | * @hide |
| 509 | */ |
| 510 | public static final String KEY_IGNORE_DATA_ENABLED_CHANGED_FOR_VIDEO_CALLS = |
| 511 | "ignore_data_enabled_changed_for_video_calls"; |
Jordan Liu | 3ff30d2 | 2016-09-01 13:25:13 -0700 | [diff] [blame] | 512 | |
| 513 | /** |
Tyler Gunn | 9a961f5 | 2017-08-17 15:58:47 -0700 | [diff] [blame] | 514 | * Flag indicating whether data used for a video call over LTE is metered or not. |
| 515 | * <p> |
| 516 | * When {@code true}, if the device hits the data limit or data is disabled during a ViLTE call, |
| 517 | * the call will be downgraded to audio-only (or paused if |
| 518 | * {@link #KEY_SUPPORT_PAUSE_IMS_VIDEO_CALLS_BOOL} is {@code true}). |
| 519 | * |
| 520 | * @hide |
| 521 | */ |
| 522 | public static final String KEY_VILTE_DATA_IS_METERED_BOOL = "vilte_data_is_metered_bool"; |
| 523 | |
| 524 | /** |
Junda Liu | e478649 | 2015-06-15 13:15:28 -0700 | [diff] [blame] | 525 | * Flag specifying whether WFC over IMS should be available for carrier: independent of |
| 526 | * carrier provisioning. If false: hard disabled. If true: then depends on carrier |
| 527 | * provisioning, availability etc. |
| 528 | */ |
| 529 | public static final String KEY_CARRIER_WFC_IMS_AVAILABLE_BOOL = "carrier_wfc_ims_available_bool"; |
| 530 | |
fionaxu | c71e824 | 2016-03-08 11:46:55 -0800 | [diff] [blame] | 531 | /** |
Jordan Liu | 02ec2a0 | 2016-09-09 11:48:48 -0700 | [diff] [blame] | 532 | * Specifies a map from dialstrings to replacements for roaming network service numbers which |
| 533 | * cannot be replaced on the carrier side. |
| 534 | * <p> |
| 535 | * Individual entries have the format: |
| 536 | * [dialstring to replace]:[replacement] |
| 537 | */ |
| 538 | public static final String KEY_DIAL_STRING_REPLACE_STRING_ARRAY = |
| 539 | "dial_string_replace_string_array"; |
| 540 | |
| 541 | /** |
Tyler Gunn | 5bbeea0 | 2016-03-30 14:50:30 -0700 | [diff] [blame] | 542 | * Flag specifying whether WFC over IMS supports the "wifi only" option. If false, the wifi |
| 543 | * calling settings will not include an option for "wifi only". If true, the wifi calling |
| 544 | * settings will include an option for "wifi only" |
| 545 | * <p> |
| 546 | * By default, it is assumed that WFC supports "wifi only". |
| 547 | */ |
| 548 | public static final String KEY_CARRIER_WFC_SUPPORTS_WIFI_ONLY_BOOL = |
| 549 | "carrier_wfc_supports_wifi_only_bool"; |
| 550 | |
| 551 | /** |
Meng Wang | 71b6039 | 2018-08-24 15:40:02 -0700 | [diff] [blame] | 552 | * Default mode for WFC over IMS on home network: |
| 553 | * <ul> |
| 554 | * <li>0: Wi-Fi only |
| 555 | * <li>1: prefer mobile network |
| 556 | * <li>2: prefer Wi-Fi |
| 557 | * </ul> |
fionaxu | c71e824 | 2016-03-08 11:46:55 -0800 | [diff] [blame] | 558 | */ |
| 559 | public static final String KEY_CARRIER_DEFAULT_WFC_IMS_MODE_INT = |
| 560 | "carrier_default_wfc_ims_mode_int"; |
Meng Wang | 2c25e4a | 2016-09-19 14:18:05 -0700 | [diff] [blame] | 561 | |
| 562 | /** |
Meng Wang | 71b6039 | 2018-08-24 15:40:02 -0700 | [diff] [blame] | 563 | * Default mode for WFC over IMS on roaming network. |
| 564 | * See {@link #KEY_CARRIER_DEFAULT_WFC_IMS_MODE_INT} for meaning of values. |
Meng Wang | 2c25e4a | 2016-09-19 14:18:05 -0700 | [diff] [blame] | 565 | */ |
| 566 | public static final String KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_MODE_INT = |
| 567 | "carrier_default_wfc_ims_roaming_mode_int"; |
| 568 | |
fionaxu | c71e824 | 2016-03-08 11:46:55 -0800 | [diff] [blame] | 569 | /** |
| 570 | * Default WFC_IMS_enabled: true VoWiFi by default is on |
| 571 | * false VoWiFi by default is off |
| 572 | * @hide |
| 573 | */ |
| 574 | public static final String KEY_CARRIER_DEFAULT_WFC_IMS_ENABLED_BOOL = |
| 575 | "carrier_default_wfc_ims_enabled_bool"; |
| 576 | |
| 577 | /** |
| 578 | * Default WFC_IMS_roaming_enabled: true VoWiFi roaming by default is on |
| 579 | * false VoWiFi roaming by default is off |
| 580 | * @hide |
| 581 | */ |
| 582 | public static final String KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_ENABLED_BOOL = |
| 583 | "carrier_default_wfc_ims_roaming_enabled_bool"; |
| 584 | |
Tyler Gunn | c3e6c93 | 2016-07-07 10:11:14 -0700 | [diff] [blame] | 585 | /** |
| 586 | * Flag indicating whether failed calls due to no service should prompt the user to enable |
| 587 | * WIFI calling. When {@code true}, if the user attempts to establish a call when there is no |
| 588 | * service available, they are connected to WIFI, and WIFI calling is disabled, a different |
| 589 | * call failure message will be used to encourage the user to enable WIFI calling. |
| 590 | * @hide |
| 591 | */ |
| 592 | public static final String KEY_CARRIER_PROMOTE_WFC_ON_CALL_FAIL_BOOL = |
| 593 | "carrier_promote_wfc_on_call_fail_bool"; |
| 594 | |
Junda Liu | e5c7ca7 | 2015-06-24 14:41:14 -0700 | [diff] [blame] | 595 | /** Flag specifying whether provisioning is required for VOLTE. */ |
| 596 | public static final String KEY_CARRIER_VOLTE_PROVISIONING_REQUIRED_BOOL |
| 597 | = "carrier_volte_provisioning_required_bool"; |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 598 | |
Meng Wang | 0506299 | 2017-02-14 21:55:09 -0800 | [diff] [blame] | 599 | /** |
| 600 | * Flag specifying if WFC provisioning depends on VoLTE provisioning. |
| 601 | * |
| 602 | * {@code false}: default value; honor actual WFC provisioning state. |
| 603 | * {@code true}: when VoLTE is not provisioned, treat WFC as not provisioned; when VoLTE is |
| 604 | * provisioned, honor actual WFC provisioning state. |
| 605 | * |
| 606 | * As of now, Verizon is the only carrier enforcing this dependency in their |
| 607 | * WFC awareness and activation requirements. |
| 608 | * |
| 609 | * @hide |
| 610 | * */ |
| 611 | public static final String KEY_CARRIER_VOLTE_OVERRIDE_WFC_PROVISIONING_BOOL |
| 612 | = "carrier_volte_override_wfc_provisioning_bool"; |
| 613 | |
Jack Yu | fcbda45 | 2018-02-01 14:50:53 -0800 | [diff] [blame] | 614 | /** |
| 615 | * Override the device's configuration for the cellular data service to use for this SIM card. |
| 616 | * @hide |
| 617 | */ |
| 618 | public static final String KEY_CARRIER_DATA_SERVICE_WWAN_PACKAGE_OVERRIDE_STRING |
| 619 | = "carrier_data_service_wwan_package_override_string"; |
| 620 | |
| 621 | /** |
| 622 | * Override the device's configuration for the IWLAN data service to use for this SIM card. |
| 623 | * @hide |
| 624 | */ |
| 625 | public static final String KEY_CARRIER_DATA_SERVICE_WLAN_PACKAGE_OVERRIDE_STRING |
| 626 | = "carrier_data_service_wlan_package_override_string"; |
| 627 | |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 628 | /** Flag specifying whether VoLTE TTY is supported. */ |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 629 | public static final String KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL |
| 630 | = "carrier_volte_tty_supported_bool"; |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 631 | |
| 632 | /** |
Junda Liu | e5c7ca7 | 2015-06-24 14:41:14 -0700 | [diff] [blame] | 633 | * Flag specifying whether IMS service can be turned off. If false then the service will not be |
| 634 | * turned-off completely, but individual features can be disabled. |
| 635 | */ |
| 636 | public static final String KEY_CARRIER_ALLOW_TURNOFF_IMS_BOOL |
| 637 | = "carrier_allow_turnoff_ims_bool"; |
| 638 | |
| 639 | /** |
Pavel Zhamaitsiak | b4faf34 | 2015-10-16 16:39:00 -0700 | [diff] [blame] | 640 | * Flag specifying whether Generic Bootstrapping Architecture capable SIM is required for IMS. |
Pavel Zhamaitsiak | b4faf34 | 2015-10-16 16:39:00 -0700 | [diff] [blame] | 641 | */ |
| 642 | public static final String KEY_CARRIER_IMS_GBA_REQUIRED_BOOL |
| 643 | = "carrier_ims_gba_required_bool"; |
| 644 | |
| 645 | /** |
Tyler Gunn | ac2aefc | 2015-07-31 15:34:46 -0700 | [diff] [blame] | 646 | * Flag specifying whether IMS instant lettering is available for the carrier. {@code True} if |
| 647 | * instant lettering is available for the carrier, {@code false} otherwise. |
Tyler Gunn | ac2aefc | 2015-07-31 15:34:46 -0700 | [diff] [blame] | 648 | */ |
| 649 | public static final String KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL = |
| 650 | "carrier_instant_lettering_available_bool"; |
| 651 | |
Etan Cohen | cd811f0 | 2015-08-18 11:11:29 -0700 | [diff] [blame] | 652 | /* |
| 653 | * Flag specifying whether IMS should be the first phone attempted for E911 even if the |
| 654 | * phone is not in service. |
Etan Cohen | cd811f0 | 2015-08-18 11:11:29 -0700 | [diff] [blame] | 655 | */ |
| 656 | public static final String KEY_CARRIER_USE_IMS_FIRST_FOR_EMERGENCY_BOOL |
| 657 | = "carrier_use_ims_first_for_emergency_bool"; |
| 658 | |
Tyler Gunn | ac2aefc | 2015-07-31 15:34:46 -0700 | [diff] [blame] | 659 | /** |
Tyler Gunn | eb5fcb9 | 2015-09-04 13:16:37 -0700 | [diff] [blame] | 660 | * When IMS instant lettering is available for a carrier (see |
| 661 | * {@link #KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL}), determines the list of characters |
| 662 | * which may not be contained in messages. Should be specified as a regular expression suitable |
| 663 | * for use with {@link String#matches(String)}. |
Tyler Gunn | eb5fcb9 | 2015-09-04 13:16:37 -0700 | [diff] [blame] | 664 | */ |
| 665 | public static final String KEY_CARRIER_INSTANT_LETTERING_INVALID_CHARS_STRING = |
| 666 | "carrier_instant_lettering_invalid_chars_string"; |
| 667 | |
| 668 | /** |
Tyler Gunn | 14be4cf | 2015-09-10 13:33:28 -0700 | [diff] [blame] | 669 | * When IMS instant lettering is available for a carrier (see |
| 670 | * {@link #KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL}), determines a list of characters which |
| 671 | * must be escaped with a backslash '\' character. Should be specified as a string containing |
| 672 | * the characters to be escaped. For example to escape quote and backslash the string would be |
| 673 | * a quote and a backslash. |
Tyler Gunn | 14be4cf | 2015-09-10 13:33:28 -0700 | [diff] [blame] | 674 | */ |
| 675 | public static final String KEY_CARRIER_INSTANT_LETTERING_ESCAPED_CHARS_STRING = |
| 676 | "carrier_instant_lettering_escaped_chars_string"; |
| 677 | |
| 678 | /** |
Tyler Gunn | db3da5c | 2015-09-21 22:11:30 -0700 | [diff] [blame] | 679 | * When IMS instant lettering is available for a carrier (see |
| 680 | * {@link #KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL}), determines the character encoding |
| 681 | * which will be used when determining the length of messages. Used in the InCall UI to limit |
| 682 | * the number of characters the user may type. If empty-string, the instant lettering |
| 683 | * message size limit will be enforced on a 1:1 basis. That is, each character will count |
| 684 | * towards the messages size limit as a single bye. If a character encoding is specified, the |
| 685 | * message size limit will be based on the number of bytes in the message per the specified |
| 686 | * encoding. |
Tyler Gunn | db3da5c | 2015-09-21 22:11:30 -0700 | [diff] [blame] | 687 | */ |
| 688 | public static final String KEY_CARRIER_INSTANT_LETTERING_ENCODING_STRING = |
| 689 | "carrier_instant_lettering_encoding_string"; |
| 690 | |
| 691 | /** |
| 692 | * When IMS instant lettering is available for a carrier (see |
| 693 | * {@link #KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL}), the length limit for messages. Used |
| 694 | * in the InCall UI to ensure the user cannot enter more characters than allowed by the carrier. |
| 695 | * See also {@link #KEY_CARRIER_INSTANT_LETTERING_ENCODING_STRING} for more information on how |
| 696 | * the length of the message is calculated. |
Tyler Gunn | db3da5c | 2015-09-21 22:11:30 -0700 | [diff] [blame] | 697 | */ |
| 698 | public static final String KEY_CARRIER_INSTANT_LETTERING_LENGTH_LIMIT_INT = |
| 699 | "carrier_instant_lettering_length_limit_int"; |
| 700 | |
| 701 | /** |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 702 | * If Voice Radio Technology is RIL_RADIO_TECHNOLOGY_LTE:14 or RIL_RADIO_TECHNOLOGY_UNKNOWN:0 |
| 703 | * this is the value that should be used instead. A configuration value of |
| 704 | * RIL_RADIO_TECHNOLOGY_UNKNOWN:0 means there is no replacement value and that the default |
| 705 | * assumption for phone type (GSM) should be used. |
| 706 | */ |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 707 | public static final String KEY_VOLTE_REPLACEMENT_RAT_INT = "volte_replacement_rat_int"; |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 708 | |
Junda Liu | e478649 | 2015-06-15 13:15:28 -0700 | [diff] [blame] | 709 | /** |
| 710 | * The default sim call manager to use when the default dialer doesn't implement one. A sim call |
| 711 | * manager can control and route outgoing and incoming phone calls, even if they're placed |
| 712 | * using another connection service (PSTN, for example). |
| 713 | */ |
| 714 | public static final String KEY_DEFAULT_SIM_CALL_MANAGER_STRING = "default_sim_call_manager_string"; |
| 715 | |
Jack Yu | a4f2da3 | 2015-07-22 13:36:42 -0700 | [diff] [blame] | 716 | /** |
| 717 | * The default flag specifying whether ETWS/CMAS test setting is forcibly disabled in |
| 718 | * Settings->More->Emergency broadcasts menu even though developer options is turned on. |
Jack Yu | a4f2da3 | 2015-07-22 13:36:42 -0700 | [diff] [blame] | 719 | */ |
| 720 | public static final String KEY_CARRIER_FORCE_DISABLE_ETWS_CMAS_TEST_BOOL = |
| 721 | "carrier_force_disable_etws_cmas_test_bool"; |
| 722 | |
Jack Yu | 6af6c34 | 2015-09-14 16:18:59 -0700 | [diff] [blame] | 723 | /** |
| 724 | * The default flag specifying whether "Turn on Notifications" option will be always shown in |
| 725 | * Settings->More->Emergency broadcasts menu regardless developer options is turned on or not. |
Jack Yu | 6af6c34 | 2015-09-14 16:18:59 -0700 | [diff] [blame] | 726 | */ |
| 727 | public static final String KEY_ALWAYS_SHOW_EMERGENCY_ALERT_ONOFF_BOOL = |
| 728 | "always_show_emergency_alert_onoff_bool"; |
| 729 | |
Jack Yu | 090dd72 | 2015-12-18 15:16:24 -0800 | [diff] [blame] | 730 | /** |
Jack Yu | e794198 | 2016-07-19 15:20:06 -0700 | [diff] [blame] | 731 | * The flag to disable cell broadcast severe alert when extreme alert is disabled. |
| 732 | * @hide |
| 733 | */ |
| 734 | public static final String KEY_DISABLE_SEVERE_WHEN_EXTREME_DISABLED_BOOL = |
| 735 | "disable_severe_when_extreme_disabled_bool"; |
| 736 | |
| 737 | /** |
Jack Yu | c045652 | 2016-11-03 12:24:22 -0700 | [diff] [blame] | 738 | * The message expiration time in milliseconds for duplicate detection purposes. |
| 739 | * @hide |
| 740 | */ |
| 741 | public static final String KEY_MESSAGE_EXPIRATION_TIME_LONG = |
| 742 | "message_expiration_time_long"; |
| 743 | |
| 744 | /** |
Jack Yu | c1f0e87 | 2016-09-10 00:41:17 -0700 | [diff] [blame] | 745 | * The data call retry configuration for different types of APN. |
Jack Yu | 090dd72 | 2015-12-18 15:16:24 -0800 | [diff] [blame] | 746 | * @hide |
| 747 | */ |
Jack Yu | c1f0e87 | 2016-09-10 00:41:17 -0700 | [diff] [blame] | 748 | public static final String KEY_CARRIER_DATA_CALL_RETRY_CONFIG_STRINGS = |
| 749 | "carrier_data_call_retry_config_strings"; |
Jack Yu | 090dd72 | 2015-12-18 15:16:24 -0800 | [diff] [blame] | 750 | |
| 751 | /** |
Jack Yu | 5523dc5 | 2017-08-16 14:26:56 -0700 | [diff] [blame] | 752 | * Delay in milliseconds between trying APN from the pool |
Jack Yu | 090dd72 | 2015-12-18 15:16:24 -0800 | [diff] [blame] | 753 | * @hide |
| 754 | */ |
| 755 | public static final String KEY_CARRIER_DATA_CALL_APN_DELAY_DEFAULT_LONG = |
| 756 | "carrier_data_call_apn_delay_default_long"; |
| 757 | |
| 758 | /** |
Jack Yu | 5523dc5 | 2017-08-16 14:26:56 -0700 | [diff] [blame] | 759 | * Faster delay in milliseconds between trying APN from the pool |
Jack Yu | 090dd72 | 2015-12-18 15:16:24 -0800 | [diff] [blame] | 760 | * @hide |
| 761 | */ |
| 762 | public static final String KEY_CARRIER_DATA_CALL_APN_DELAY_FASTER_LONG = |
| 763 | "carrier_data_call_apn_delay_faster_long"; |
| 764 | |
Jack Yu | 66a6be3 | 2016-03-30 11:14:39 -0700 | [diff] [blame] | 765 | /** |
Jack Yu | 5523dc5 | 2017-08-16 14:26:56 -0700 | [diff] [blame] | 766 | * Delay in milliseconds for retrying APN after disconnect |
| 767 | * @hide |
| 768 | */ |
| 769 | public static final String KEY_CARRIER_DATA_CALL_APN_RETRY_AFTER_DISCONNECT_LONG = |
| 770 | "carrier_data_call_apn_retry_after_disconnect_long"; |
| 771 | |
| 772 | /** |
Jack Yu | 8a81a21 | 2016-06-15 14:26:59 -0700 | [diff] [blame] | 773 | * Data call setup permanent failure causes by the carrier |
| 774 | */ |
| 775 | public static final String KEY_CARRIER_DATA_CALL_PERMANENT_FAILURE_STRINGS = |
| 776 | "carrier_data_call_permanent_failure_strings"; |
| 777 | |
| 778 | /** |
Jack Yu | 66a6be3 | 2016-03-30 11:14:39 -0700 | [diff] [blame] | 779 | * Default APN types that are metered by the carrier |
| 780 | * @hide |
| 781 | */ |
| 782 | public static final String KEY_CARRIER_METERED_APN_TYPES_STRINGS = |
| 783 | "carrier_metered_apn_types_strings"; |
fionaxu | 28ffb60 | 2016-04-17 23:56:42 -0700 | [diff] [blame] | 784 | /** |
Jack Yu | 7dc56ee | 2017-05-20 17:06:33 -0700 | [diff] [blame] | 785 | * Default APN types that are roaming-metered by the carrier |
fionaxu | 28ffb60 | 2016-04-17 23:56:42 -0700 | [diff] [blame] | 786 | * @hide |
| 787 | */ |
| 788 | public static final String KEY_CARRIER_METERED_ROAMING_APN_TYPES_STRINGS = |
| 789 | "carrier_metered_roaming_apn_types_strings"; |
Jack Yu | 7dc56ee | 2017-05-20 17:06:33 -0700 | [diff] [blame] | 790 | |
| 791 | /** |
| 792 | * Default APN types that are metered on IWLAN by the carrier |
| 793 | * @hide |
| 794 | */ |
| 795 | public static final String KEY_CARRIER_METERED_IWLAN_APN_TYPES_STRINGS = |
| 796 | "carrier_metered_iwlan_apn_types_strings"; |
| 797 | |
Jack Yu | 360dc21 | 2016-04-08 17:11:25 -0700 | [diff] [blame] | 798 | /** |
| 799 | * CDMA carrier ERI (Enhanced Roaming Indicator) file name |
| 800 | * @hide |
| 801 | */ |
| 802 | public static final String KEY_CARRIER_ERI_FILE_NAME_STRING = |
| 803 | "carrier_eri_file_name_string"; |
| 804 | |
Nancy Chen | 5c86e92 | 2015-04-09 13:17:20 -0700 | [diff] [blame] | 805 | /* The following 3 fields are related to carrier visual voicemail. */ |
| 806 | |
| 807 | /** |
Jonathan Basseri | 6c1dc31 | 2015-06-18 16:05:39 -0700 | [diff] [blame] | 808 | * The carrier number mobile outgoing (MO) sms messages are sent to. |
Nancy Chen | 5c86e92 | 2015-04-09 13:17:20 -0700 | [diff] [blame] | 809 | */ |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 810 | public static final String KEY_VVM_DESTINATION_NUMBER_STRING = "vvm_destination_number_string"; |
Nancy Chen | 5c86e92 | 2015-04-09 13:17:20 -0700 | [diff] [blame] | 811 | |
| 812 | /** |
Jonathan Basseri | 6c1dc31 | 2015-06-18 16:05:39 -0700 | [diff] [blame] | 813 | * The port through which the mobile outgoing (MO) sms messages are sent through. |
Nancy Chen | 5c86e92 | 2015-04-09 13:17:20 -0700 | [diff] [blame] | 814 | */ |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 815 | public static final String KEY_VVM_PORT_NUMBER_INT = "vvm_port_number_int"; |
Nancy Chen | 5c86e92 | 2015-04-09 13:17:20 -0700 | [diff] [blame] | 816 | |
| 817 | /** |
Nancy Chen | cb43f42 | 2015-05-27 15:06:58 -0700 | [diff] [blame] | 818 | * The type of visual voicemail protocol the carrier adheres to. See {@link TelephonyManager} |
| 819 | * for possible values. For example {@link TelephonyManager#VVM_TYPE_OMTP}. |
Nancy Chen | 5c86e92 | 2015-04-09 13:17:20 -0700 | [diff] [blame] | 820 | */ |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 821 | public static final String KEY_VVM_TYPE_STRING = "vvm_type_string"; |
Nancy Chen | 5c86e92 | 2015-04-09 13:17:20 -0700 | [diff] [blame] | 822 | |
Nancy Chen | 97f5ccd | 2015-06-04 12:00:25 -0700 | [diff] [blame] | 823 | /** |
Ta-wei Yen | 685f53c | 2015-11-30 18:00:08 -0800 | [diff] [blame] | 824 | * Whether cellular data is required to access visual voicemail. |
| 825 | */ |
Ta-wei Yen | 153fcd7 | 2016-05-17 15:57:20 -0700 | [diff] [blame] | 826 | public static final String KEY_VVM_CELLULAR_DATA_REQUIRED_BOOL = |
| 827 | "vvm_cellular_data_required_bool"; |
Ta-wei Yen | 685f53c | 2015-11-30 18:00:08 -0800 | [diff] [blame] | 828 | |
| 829 | /** |
Ta-wei Yen | b618d0f | 2017-01-17 13:52:10 -0800 | [diff] [blame] | 830 | * The default OMTP visual voicemail client prefix to use. Defaulted to "//VVM" |
| 831 | */ |
| 832 | public static final String KEY_VVM_CLIENT_PREFIX_STRING = |
| 833 | "vvm_client_prefix_string"; |
| 834 | |
| 835 | /** |
| 836 | * Whether to use SSL to connect to the visual voicemail IMAP server. Defaulted to false. |
| 837 | */ |
| 838 | public static final String KEY_VVM_SSL_ENABLED_BOOL = "vvm_ssl_enabled_bool"; |
| 839 | |
| 840 | /** |
| 841 | * A set of capabilities that should not be used even if it is reported by the visual voicemail |
| 842 | * IMAP CAPABILITY command. |
| 843 | */ |
| 844 | public static final String KEY_VVM_DISABLED_CAPABILITIES_STRING_ARRAY = |
| 845 | "vvm_disabled_capabilities_string_array"; |
| 846 | |
| 847 | /** |
| 848 | * Whether legacy mode should be used when the visual voicemail client is disabled. |
| 849 | * |
| 850 | * <p>Legacy mode is a mode that on the carrier side visual voicemail is still activated, but on |
| 851 | * the client side all network operations are disabled. SMSs are still monitored so a new |
| 852 | * message SYNC SMS will be translated to show a message waiting indicator, like traditional |
| 853 | * voicemails. |
| 854 | * |
| 855 | * <p>This is for carriers that does not support VVM deactivation so voicemail can continue to |
| 856 | * function without the data cost. |
| 857 | */ |
| 858 | public static final String KEY_VVM_LEGACY_MODE_ENABLED_BOOL = |
| 859 | "vvm_legacy_mode_enabled_bool"; |
| 860 | |
| 861 | /** |
Ta-wei Yen | 76193dc | 2016-01-25 19:04:36 -0800 | [diff] [blame] | 862 | * Whether to prefetch audio data on new voicemail arrival, defaulted to true. |
| 863 | */ |
Ta-wei Yen | 153fcd7 | 2016-05-17 15:57:20 -0700 | [diff] [blame] | 864 | public static final String KEY_VVM_PREFETCH_BOOL = "vvm_prefetch_bool"; |
Ta-wei Yen | 76193dc | 2016-01-25 19:04:36 -0800 | [diff] [blame] | 865 | |
| 866 | /** |
Nancy Chen | 97f5ccd | 2015-06-04 12:00:25 -0700 | [diff] [blame] | 867 | * The package name of the carrier's visual voicemail app to ensure that dialer visual voicemail |
| 868 | * and carrier visual voicemail are not active at the same time. |
Ta-wei Yen | b618d0f | 2017-01-17 13:52:10 -0800 | [diff] [blame] | 869 | * |
| 870 | * @deprecated use {@link #KEY_CARRIER_VVM_PACKAGE_NAME_STRING_ARRAY}. |
Nancy Chen | 97f5ccd | 2015-06-04 12:00:25 -0700 | [diff] [blame] | 871 | */ |
Ta-wei Yen | b618d0f | 2017-01-17 13:52:10 -0800 | [diff] [blame] | 872 | @Deprecated |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 873 | public static final String KEY_CARRIER_VVM_PACKAGE_NAME_STRING = "carrier_vvm_package_name_string"; |
Nancy Chen | 97f5ccd | 2015-06-04 12:00:25 -0700 | [diff] [blame] | 874 | |
Amit Mahajan | 02008b7 | 2015-06-11 14:54:20 -0700 | [diff] [blame] | 875 | /** |
Ta-wei Yen | b618d0f | 2017-01-17 13:52:10 -0800 | [diff] [blame] | 876 | * A list of the carrier's visual voicemail app package names to ensure that dialer visual |
| 877 | * voicemail and carrier visual voicemail are not active at the same time. |
| 878 | */ |
| 879 | public static final String KEY_CARRIER_VVM_PACKAGE_NAME_STRING_ARRAY = |
| 880 | "carrier_vvm_package_name_string_array"; |
| 881 | |
| 882 | /** |
Meng Wang | 6b2995a | 2016-03-14 10:08:41 -0700 | [diff] [blame] | 883 | * Flag specifying whether ICCID is showed in SIM Status screen, default to false. |
| 884 | */ |
| 885 | public static final String KEY_SHOW_ICCID_IN_SIM_STATUS_BOOL = "show_iccid_in_sim_status_bool"; |
| 886 | |
| 887 | /** |
Jordan Liu | a59a5eb | 2017-12-11 16:23:25 -0800 | [diff] [blame] | 888 | * Flag specifying whether the {@link android.telephony.SignalStrength} is shown in the SIM |
| 889 | * Status screen. The default value is true. |
Patrik Bannura | 9124ec5 | 2017-11-24 12:39:50 +0100 | [diff] [blame] | 890 | */ |
Jordan Liu | a59a5eb | 2017-12-11 16:23:25 -0800 | [diff] [blame] | 891 | public static final String KEY_SHOW_SIGNAL_STRENGTH_IN_SIM_STATUS_BOOL = |
| 892 | "show_signal_strength_in_sim_status_bool"; |
Patrik Bannura | 9124ec5 | 2017-11-24 12:39:50 +0100 | [diff] [blame] | 893 | |
| 894 | /** |
Amit Mahajan | 02008b7 | 2015-06-11 14:54:20 -0700 | [diff] [blame] | 895 | * Flag specifying whether an additional (client initiated) intent needs to be sent on System |
| 896 | * update |
Amit Mahajan | 02008b7 | 2015-06-11 14:54:20 -0700 | [diff] [blame] | 897 | */ |
| 898 | public static final String KEY_CI_ACTION_ON_SYS_UPDATE_BOOL = "ci_action_on_sys_update_bool"; |
| 899 | |
| 900 | /** |
| 901 | * Intent to be sent for the additional action on System update |
Amit Mahajan | 02008b7 | 2015-06-11 14:54:20 -0700 | [diff] [blame] | 902 | */ |
| 903 | public static final String KEY_CI_ACTION_ON_SYS_UPDATE_INTENT_STRING = |
| 904 | "ci_action_on_sys_update_intent_string"; |
| 905 | |
| 906 | /** |
| 907 | * Extra to be included in the intent sent for additional action on System update |
Amit Mahajan | 02008b7 | 2015-06-11 14:54:20 -0700 | [diff] [blame] | 908 | */ |
| 909 | public static final String KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_STRING = |
| 910 | "ci_action_on_sys_update_extra_string"; |
| 911 | |
| 912 | /** |
| 913 | * Value of extra included in intent sent for additional action on System update |
Amit Mahajan | 02008b7 | 2015-06-11 14:54:20 -0700 | [diff] [blame] | 914 | */ |
| 915 | public static final String KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_VAL_STRING = |
| 916 | "ci_action_on_sys_update_extra_val_string"; |
| 917 | |
Jonathan Basseri | 019523a | 2015-06-19 11:07:22 -0700 | [diff] [blame] | 918 | /** |
Roshan Pius | a52c5e2 | 2015-08-14 12:58:08 -0700 | [diff] [blame] | 919 | * Specifies the amount of gap to be added in millis between postdial DTMF tones. When a |
| 920 | * non-zero value is specified, the UE shall wait for the specified amount of time before it |
| 921 | * sends out successive DTMF tones on the network. |
Roshan Pius | 9f81ce7 | 2015-08-12 12:01:42 -0700 | [diff] [blame] | 922 | */ |
Roshan Pius | dc364fe | 2015-09-10 10:28:06 -0700 | [diff] [blame] | 923 | public static final String KEY_GSM_DTMF_TONE_DELAY_INT = "gsm_dtmf_tone_delay_int"; |
| 924 | |
| 925 | /** |
| 926 | * Specifies the amount of gap to be added in millis between DTMF tones. When a non-zero value |
| 927 | * is specified, the UE shall wait for the specified amount of time before it sends out |
| 928 | * successive DTMF tones on the network. |
Roshan Pius | dc364fe | 2015-09-10 10:28:06 -0700 | [diff] [blame] | 929 | */ |
Roshan Pius | 9f81ce7 | 2015-08-12 12:01:42 -0700 | [diff] [blame] | 930 | public static final String KEY_IMS_DTMF_TONE_DELAY_INT = "ims_dtmf_tone_delay_int"; |
| 931 | |
| 932 | /** |
Roshan Pius | a52c5e2 | 2015-08-14 12:58:08 -0700 | [diff] [blame] | 933 | * Specifies the amount of gap to be added in millis between postdial DTMF tones. When a |
| 934 | * non-zero value is specified, the UE shall wait for the specified amount of time before it |
| 935 | * sends out successive DTMF tones on the network. |
Roshan Pius | a52c5e2 | 2015-08-14 12:58:08 -0700 | [diff] [blame] | 936 | */ |
| 937 | public static final String KEY_CDMA_DTMF_TONE_DELAY_INT = "cdma_dtmf_tone_delay_int"; |
| 938 | |
| 939 | /** |
Brad Ebinger | 11085643 | 2017-10-12 13:58:55 -0700 | [diff] [blame] | 940 | * Some carriers will send call forwarding responses for voicemail in a format that is not 3gpp |
| 941 | * compliant, which causes issues during parsing. This causes the |
| 942 | * {@link com.android.internal.telephony.CallForwardInfo#number} to contain non-numerical |
| 943 | * characters instead of a number. |
| 944 | * |
| 945 | * If true, we will detect the non-numerical characters and replace them with "Voicemail". |
| 946 | * @hide |
| 947 | */ |
| 948 | public static final String KEY_CALL_FORWARDING_MAP_NON_NUMBER_TO_VOICEMAIL_BOOL = |
| 949 | "call_forwarding_map_non_number_to_voicemail_bool"; |
| 950 | |
| 951 | /** |
Sungmin Choi | 8c651ae | 2015-08-14 15:55:13 -0700 | [diff] [blame] | 952 | * Determines whether conference calls are supported by a carrier. When {@code true}, |
| 953 | * conference calling is supported, {@code false otherwise}. |
Sungmin Choi | 8c651ae | 2015-08-14 15:55:13 -0700 | [diff] [blame] | 954 | */ |
| 955 | public static final String KEY_SUPPORT_CONFERENCE_CALL_BOOL = "support_conference_call_bool"; |
| 956 | |
| 957 | /** |
Tyler Gunn | ec5b6e3 | 2016-12-01 19:40:30 -0800 | [diff] [blame] | 958 | * Determines whether a maximum size limit for IMS conference calls is enforced on the device. |
| 959 | * When {@code true}, IMS conference calls will be limited to at most |
| 960 | * {@link #KEY_IMS_CONFERENCE_SIZE_LIMIT_INT} participants. When {@code false}, no attempt is made |
| 961 | * to limit the number of participants in a conference (the carrier will raise an error when an |
| 962 | * attempt is made to merge too many participants into a conference). |
| 963 | */ |
| 964 | public static final String KEY_IS_IMS_CONFERENCE_SIZE_ENFORCED_BOOL = |
| 965 | "is_ims_conference_size_enforced_bool"; |
| 966 | |
| 967 | /** |
| 968 | * Determines the maximum number of participants the carrier supports for a conference call. |
| 969 | * This number is exclusive of the current device. A conference between 3 devices, for example, |
| 970 | * would have a size limit of 2 participants. |
| 971 | * Enforced when {@link #KEY_IS_IMS_CONFERENCE_SIZE_ENFORCED_BOOL} is {@code true}. |
| 972 | */ |
| 973 | public static final String KEY_IMS_CONFERENCE_SIZE_LIMIT_INT = "ims_conference_size_limit_int"; |
| 974 | |
| 975 | /** |
Wei Huang | 594039c | 2016-04-22 14:33:55 +0800 | [diff] [blame] | 976 | * Determines whether manage IMS conference calls is supported by a carrier. When {@code true}, |
| 977 | * manage IMS conference call is supported, {@code false otherwise}. |
| 978 | * @hide |
| 979 | */ |
| 980 | public static final String KEY_SUPPORT_MANAGE_IMS_CONFERENCE_CALL_BOOL = |
| 981 | "support_manage_ims_conference_call_bool"; |
| 982 | |
| 983 | /** |
Wei Huang | 237d775 | 2016-03-01 17:02:40 +0800 | [diff] [blame] | 984 | * Determines whether High Definition audio property is displayed in the dialer UI. |
| 985 | * If {@code false}, remove the HD audio property from the connection so that HD audio related |
| 986 | * UI is not displayed. If {@code true}, keep HD audio property as it is configured. |
Wei Huang | 237d775 | 2016-03-01 17:02:40 +0800 | [diff] [blame] | 987 | */ |
| 988 | public static final String KEY_DISPLAY_HD_AUDIO_PROPERTY_BOOL = |
| 989 | "display_hd_audio_property_bool"; |
| 990 | |
| 991 | /** |
Wei Huang | a8ad152 | 2016-03-01 15:25:04 +0800 | [diff] [blame] | 992 | * Determines whether IMS conference calls are supported by a carrier. When {@code true}, |
| 993 | * IMS conference calling is supported, {@code false} otherwise. |
| 994 | * @hide |
| 995 | */ |
| 996 | public static final String KEY_SUPPORT_IMS_CONFERENCE_CALL_BOOL = |
| 997 | "support_ims_conference_call_bool"; |
| 998 | |
| 999 | /** |
Tyler Gunn | ee61c62 | 2016-04-19 16:17:19 -0700 | [diff] [blame] | 1000 | * Determines whether video conference calls are supported by a carrier. When {@code true}, |
| 1001 | * video calls can be merged into conference calls, {@code false} otherwiwse. |
| 1002 | * <p> |
| 1003 | * Note: even if video conference calls are not supported, audio calls may be merged into a |
| 1004 | * conference if {@link #KEY_SUPPORT_CONFERENCE_CALL_BOOL} is {@code true}. |
| 1005 | * @hide |
| 1006 | */ |
| 1007 | public static final String KEY_SUPPORT_VIDEO_CONFERENCE_CALL_BOOL = |
| 1008 | "support_video_conference_call_bool"; |
| 1009 | |
| 1010 | /** |
Sungmin Choi | 8d2826b | 2015-08-25 23:30:34 -0700 | [diff] [blame] | 1011 | * Determine whether user can toggle Enhanced 4G LTE Mode in Settings. |
Sungmin Choi | 8d2826b | 2015-08-25 23:30:34 -0700 | [diff] [blame] | 1012 | */ |
| 1013 | public static final String KEY_EDITABLE_ENHANCED_4G_LTE_BOOL = "editable_enhanced_4g_lte_bool"; |
| 1014 | |
| 1015 | /** |
yinxu | 34016ae | 2017-03-14 15:36:17 -0700 | [diff] [blame] | 1016 | * Determines whether the Enhanced 4G LTE toggle will be shown in the settings. When this |
| 1017 | * option is {@code true}, the toggle will be hidden regardless of whether the device and |
| 1018 | * carrier supports 4G LTE or not. |
| 1019 | */ |
| 1020 | public static final String KEY_HIDE_ENHANCED_4G_LTE_BOOL = "hide_enhanced_4g_lte_bool"; |
| 1021 | |
| 1022 | /** |
manabu, shimoda | 14723e3 | 2017-10-06 14:39:01 +0900 | [diff] [blame] | 1023 | * Default Enhanced 4G LTE mode enabled. When this is {@code true}, Enhanced 4G LTE mode by |
| 1024 | * default is on, otherwise if {@code false}, Enhanced 4G LTE mode by default is off. |
| 1025 | * @hide |
| 1026 | */ |
| 1027 | public static final String KEY_ENHANCED_4G_LTE_ON_BY_DEFAULT_BOOL = |
| 1028 | "enhanced_4g_lte_on_by_default_bool"; |
| 1029 | |
| 1030 | /** |
Sungmin Choi | e9d3c11 | 2015-08-31 15:32:20 -0700 | [diff] [blame] | 1031 | * Determine whether IMS apn can be shown. |
Sungmin Choi | e9d3c11 | 2015-08-31 15:32:20 -0700 | [diff] [blame] | 1032 | */ |
| 1033 | public static final String KEY_HIDE_IMS_APN_BOOL = "hide_ims_apn_bool"; |
| 1034 | |
| 1035 | /** |
Sungmin Choi | c03a1da | 2015-09-08 15:34:23 -0700 | [diff] [blame] | 1036 | * Determine whether preferred network type can be shown. |
Sungmin Choi | c03a1da | 2015-09-08 15:34:23 -0700 | [diff] [blame] | 1037 | */ |
| 1038 | public static final String KEY_HIDE_PREFERRED_NETWORK_TYPE_BOOL = "hide_preferred_network_type_bool"; |
| 1039 | |
| 1040 | /** |
Junda Liu | 8531328 | 2017-03-28 13:58:51 -0700 | [diff] [blame] | 1041 | * String array for package names that need to be enabled for this carrier. |
| 1042 | * If user has explicitly disabled some packages in the list, won't re-enable. |
| 1043 | * Other carrier specific apps which are not in this list may be disabled for current carrier, |
| 1044 | * and only be re-enabled when this config for another carrier includes it. |
Meng Wang | d5e1af5 | 2018-03-23 16:25:03 -0700 | [diff] [blame] | 1045 | * |
| 1046 | * @hide |
Junda Liu | 8531328 | 2017-03-28 13:58:51 -0700 | [diff] [blame] | 1047 | */ |
| 1048 | public static final String KEY_ENABLE_APPS_STRING_ARRAY = "enable_apps_string_array"; |
| 1049 | |
| 1050 | /** |
Sungmin Choi | d3b2826 | 2015-12-23 14:10:41 +0900 | [diff] [blame] | 1051 | * Determine whether user can switch Wi-Fi preferred or Cellular preferred in calling preference. |
| 1052 | * Some operators support Wi-Fi Calling only, not VoLTE. |
| 1053 | * They don't need "Cellular preferred" option. |
| 1054 | * In this case, set uneditalbe attribute for preferred preference. |
| 1055 | * @hide |
| 1056 | */ |
| 1057 | public static final String KEY_EDITABLE_WFC_MODE_BOOL = "editable_wfc_mode_bool"; |
| 1058 | |
Sunil Dutt | 7c5fda8 | 2016-04-05 22:08:57 +0530 | [diff] [blame] | 1059 | /** |
| 1060 | * Flag to indicate if Wi-Fi needs to be disabled in ECBM |
| 1061 | * @hide |
| 1062 | **/ |
| 1063 | public static final String |
| 1064 | KEY_CONFIG_WIFI_DISABLE_IN_ECBM = "config_wifi_disable_in_ecbm"; |
| 1065 | |
Sungmin Choi | d3b2826 | 2015-12-23 14:10:41 +0900 | [diff] [blame] | 1066 | /** |
Pavel Zhamaitsiak | 7b7c4fc | 2016-04-12 14:24:07 -0700 | [diff] [blame] | 1067 | * List operator-specific error codes and indices of corresponding error strings in |
| 1068 | * wfcOperatorErrorAlertMessages and wfcOperatorErrorNotificationMessages. |
| 1069 | * |
| 1070 | * Example: "REG09|0" specifies error code "REG09" and index "0". This index will be |
| 1071 | * used to find alert and notification messages in wfcOperatorErrorAlertMessages and |
| 1072 | * wfcOperatorErrorNotificationMessages. |
| 1073 | * |
| 1074 | * @hide |
| 1075 | */ |
| 1076 | public static final String KEY_WFC_OPERATOR_ERROR_CODES_STRING_ARRAY = |
| 1077 | "wfc_operator_error_codes_string_array"; |
| 1078 | |
| 1079 | /** |
| 1080 | * Indexes of SPN format strings in wfcSpnFormats and wfcDataSpnFormats. |
Torbjorn Eklund | 5768483 | 2018-08-21 16:12:42 +0200 | [diff] [blame] | 1081 | * |
| 1082 | * <p>Available options are: |
| 1083 | * <ul> |
| 1084 | * <li> 0: %s</li> |
| 1085 | * <li> 1: %s Wi-Fi Calling</li> |
| 1086 | * <li> 2: WLAN Call</li> |
| 1087 | * <li> 3: %s WLAN Call</li> |
| 1088 | * <li> 4: %s Wi-Fi</li> |
| 1089 | * <li> 5: WiFi Calling | %s</li> |
| 1090 | * <li> 6: %s VoWifi</li> |
Pavel Zhamaitsiak | 7b7c4fc | 2016-04-12 14:24:07 -0700 | [diff] [blame] | 1091 | * @hide |
| 1092 | */ |
| 1093 | public static final String KEY_WFC_SPN_FORMAT_IDX_INT = "wfc_spn_format_idx_int"; |
| 1094 | /** @hide */ |
| 1095 | public static final String KEY_WFC_DATA_SPN_FORMAT_IDX_INT = "wfc_data_spn_format_idx_int"; |
| 1096 | |
| 1097 | /** |
Torbjorn Eklund | 99c11d8 | 2018-08-21 16:06:47 +0200 | [diff] [blame] | 1098 | * Use root locale when reading wfcSpnFormats. |
| 1099 | * |
| 1100 | * If true, then the root locale will always be used when reading wfcSpnFormats. This means the |
| 1101 | * non localized version of wfcSpnFormats will be used. |
| 1102 | * @hide |
| 1103 | */ |
| 1104 | public static final String KEY_WFC_SPN_USE_ROOT_LOCALE = "wfc_spn_use_root_locale"; |
| 1105 | |
| 1106 | /** |
Vineeta Srivastava | c7d7ab7 | 2016-05-14 11:05:28 -0700 | [diff] [blame] | 1107 | * The Component Name of the activity that can setup the emergency addrees for WiFi Calling |
| 1108 | * as per carrier requirement. |
| 1109 | * @hide |
| 1110 | */ |
| 1111 | public static final String KEY_WFC_EMERGENCY_ADDRESS_CARRIER_APP_STRING = |
| 1112 | "wfc_emergency_address_carrier_app_string"; |
| 1113 | |
| 1114 | /** |
Nathan Harold | 8366bcb | 2018-02-28 14:57:54 -0800 | [diff] [blame] | 1115 | * Unconditionally override the carrier name string using #KEY_CARRIER_NAME_STRING. |
| 1116 | * |
Nathan Harold | 178020a | 2018-04-06 11:27:40 -0700 | [diff] [blame] | 1117 | * If true, then the carrier name string will be #KEY_CARRIER_NAME_STRING, unconditionally. |
Nathan Harold | 8366bcb | 2018-02-28 14:57:54 -0800 | [diff] [blame] | 1118 | * |
| 1119 | * <p>If false, then the override will be performed conditionally and the |
| 1120 | * #KEY_CARRIER_NAME_STRING will have the lowest-precedence; it will only be used in the event |
Nathan Harold | 178020a | 2018-04-06 11:27:40 -0700 | [diff] [blame] | 1121 | * that the name string would otherwise be empty, allowing it to serve as a last-resort. If |
| 1122 | * used, this value functions in place of the SPN on any/all ICC records for the corresponding |
| 1123 | * subscription. |
Sanket Padawe | 49b2042 | 2016-06-01 12:17:23 -0700 | [diff] [blame] | 1124 | */ |
| 1125 | public static final String KEY_CARRIER_NAME_OVERRIDE_BOOL = "carrier_name_override_bool"; |
| 1126 | |
| 1127 | /** |
Nathan Harold | baaa68d | 2018-01-15 10:48:00 -0800 | [diff] [blame] | 1128 | * String to identify carrier name in CarrierConfig app. This string overrides SPN if |
| 1129 | * #KEY_CARRIER_NAME_OVERRIDE_BOOL is true; otherwise, it will be used if its value is provided |
| 1130 | * and SPN is unavailable |
Sanket Padawe | 49b2042 | 2016-06-01 12:17:23 -0700 | [diff] [blame] | 1131 | */ |
| 1132 | public static final String KEY_CARRIER_NAME_STRING = "carrier_name_string"; |
| 1133 | |
Sanket Padawe | 49b2042 | 2016-06-01 12:17:23 -0700 | [diff] [blame] | 1134 | /** |
Amit Mahajan | 22e89f4 | 2018-06-05 16:27:32 -0700 | [diff] [blame] | 1135 | * Override the registered PLMN name using #KEY_CDMA_HOME_REGISTERED_PLMN_NAME_STRING. |
| 1136 | * |
| 1137 | * If true, then the registered PLMN name (only for CDMA/CDMA-LTE and only when not roaming) |
| 1138 | * will be #KEY_CDMA_HOME_REGISTERED_PLMN_NAME_STRING. If false, or if phone type is not |
| 1139 | * CDMA/CDMA-LTE or if roaming, then #KEY_CDMA_HOME_REGISTERED_PLMN_NAME_STRING will be ignored. |
| 1140 | * @hide |
| 1141 | */ |
| 1142 | public static final String KEY_CDMA_HOME_REGISTERED_PLMN_NAME_OVERRIDE_BOOL = |
| 1143 | "cdma_home_registered_plmn_name_override_bool"; |
| 1144 | |
| 1145 | /** |
| 1146 | * String to identify registered PLMN name in CarrierConfig app. This string overrides |
| 1147 | * registered PLMN name if #KEY_CDMA_HOME_REGISTERED_PLMN_NAME_OVERRIDE_BOOL is true, phone type |
| 1148 | * is CDMA/CDMA-LTE and device is not in roaming state; otherwise, it will be ignored. |
| 1149 | * @hide |
| 1150 | */ |
| 1151 | public static final String KEY_CDMA_HOME_REGISTERED_PLMN_NAME_STRING = |
| 1152 | "cdma_home_registered_plmn_name_string"; |
| 1153 | |
| 1154 | /** |
Jonathan Basseri | 019523a | 2015-06-19 11:07:22 -0700 | [diff] [blame] | 1155 | * If this is true, the SIM card (through Customer Service Profile EF file) will be able to |
| 1156 | * prevent manual operator selection. If false, this SIM setting will be ignored and manual |
| 1157 | * operator selection will always be available. See CPHS4_2.WW6, CPHS B.4.7.1 for more |
| 1158 | * information |
| 1159 | */ |
| 1160 | public static final String KEY_CSP_ENABLED_BOOL = "csp_enabled_bool"; |
| 1161 | |
Amit Mahajan | 412e7c8 | 2015-10-05 11:05:02 -0700 | [diff] [blame] | 1162 | /** |
| 1163 | * Allow user to add APNs |
Amit Mahajan | 412e7c8 | 2015-10-05 11:05:02 -0700 | [diff] [blame] | 1164 | */ |
| 1165 | public static final String KEY_ALLOW_ADDING_APNS_BOOL = "allow_adding_apns_bool"; |
| 1166 | |
Amit Mahajan | 0c08148 | 2016-01-12 18:25:33 -0800 | [diff] [blame] | 1167 | /** |
Amit Mahajan | d7bb907 | 2016-09-14 18:12:11 -0700 | [diff] [blame] | 1168 | * APN types that user is not allowed to modify |
| 1169 | * @hide |
| 1170 | */ |
| 1171 | public static final String KEY_READ_ONLY_APN_TYPES_STRING_ARRAY = |
| 1172 | "read_only_apn_types_string_array"; |
| 1173 | |
| 1174 | /** |
Amit Mahajan | 71e9ea6 | 2016-09-20 10:57:47 -0700 | [diff] [blame] | 1175 | * APN fields that user is not allowed to modify |
| 1176 | * @hide |
| 1177 | */ |
| 1178 | public static final String KEY_READ_ONLY_APN_FIELDS_STRING_ARRAY = |
| 1179 | "read_only_apn_fields_string_array"; |
| 1180 | |
| 1181 | /** |
Amit Mahajan | 0c08148 | 2016-01-12 18:25:33 -0800 | [diff] [blame] | 1182 | * Boolean indicating if intent for emergency call state changes should be broadcast |
| 1183 | * @hide |
| 1184 | */ |
| 1185 | public static final String KEY_BROADCAST_EMERGENCY_CALL_STATE_CHANGES_BOOL = |
| 1186 | "broadcast_emergency_call_state_changes_bool"; |
| 1187 | |
Jack Yu | bf0fd72 | 2016-05-03 11:53:30 -0700 | [diff] [blame] | 1188 | /** |
Sooraj Sasindran | 6a3d36f | 2016-10-13 11:36:34 -0700 | [diff] [blame] | 1189 | * Indicates whether STK LAUNCH_BROWSER command is disabled. |
| 1190 | * If {@code true}, then the browser will not be launched |
| 1191 | * on UI for the LAUNCH_BROWSER STK command. |
| 1192 | * @hide |
| 1193 | */ |
| 1194 | public static final String KEY_STK_DISABLE_LAUNCH_BROWSER_BOOL = |
| 1195 | "stk_disable_launch_browser_bool"; |
| 1196 | |
Wenting Xiong | 63364fe | 2017-02-07 19:12:27 +0800 | [diff] [blame] | 1197 | /** |
| 1198 | * Boolean indicating if show data RAT icon on status bar even when data is disabled |
| 1199 | * @hide |
| 1200 | */ |
| 1201 | public static final String KEY_ALWAYS_SHOW_DATA_RAT_ICON_BOOL = |
| 1202 | "always_show_data_rat_icon_bool"; |
Sooraj Sasindran | 6a3d36f | 2016-10-13 11:36:34 -0700 | [diff] [blame] | 1203 | |
Wenting Xiong | f21f3cf | 2016-04-01 15:25:45 +0800 | [diff] [blame] | 1204 | /** |
| 1205 | * Boolean to decide whether to show precise call failed cause to user |
| 1206 | * @hide |
| 1207 | */ |
| 1208 | public static final String KEY_SHOW_PRECISE_FAILED_CAUSE_BOOL = |
| 1209 | "show_precise_failed_cause_bool"; |
| 1210 | |
Jonathan Basseri | f31ac33 | 2015-05-27 01:18:46 -0700 | [diff] [blame] | 1211 | // These variables are used by the MMS service and exposed through another API, {@link |
| 1212 | // SmsManager}. The variable names and string values are copied from there. |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 1213 | public static final String KEY_MMS_ALIAS_ENABLED_BOOL = "aliasEnabled"; |
| 1214 | public static final String KEY_MMS_ALLOW_ATTACH_AUDIO_BOOL = "allowAttachAudio"; |
| 1215 | public static final String KEY_MMS_APPEND_TRANSACTION_ID_BOOL = "enabledTransID"; |
| 1216 | public static final String KEY_MMS_GROUP_MMS_ENABLED_BOOL = "enableGroupMms"; |
| 1217 | public static final String KEY_MMS_MMS_DELIVERY_REPORT_ENABLED_BOOL = "enableMMSDeliveryReports"; |
| 1218 | public static final String KEY_MMS_MMS_ENABLED_BOOL = "enabledMMS"; |
| 1219 | public static final String KEY_MMS_MMS_READ_REPORT_ENABLED_BOOL = "enableMMSReadReports"; |
| 1220 | public static final String KEY_MMS_MULTIPART_SMS_ENABLED_BOOL = "enableMultipartSMS"; |
| 1221 | public static final String KEY_MMS_NOTIFY_WAP_MMSC_ENABLED_BOOL = "enabledNotifyWapMMSC"; |
| 1222 | public static final String KEY_MMS_SEND_MULTIPART_SMS_AS_SEPARATE_MESSAGES_BOOL = "sendMultipartSmsAsSeparateMessages"; |
| 1223 | public static final String KEY_MMS_SHOW_CELL_BROADCAST_APP_LINKS_BOOL = "config_cellBroadcastAppLinks"; |
| 1224 | public static final String KEY_MMS_SMS_DELIVERY_REPORT_ENABLED_BOOL = "enableSMSDeliveryReports"; |
| 1225 | public static final String KEY_MMS_SUPPORT_HTTP_CHARSET_HEADER_BOOL = "supportHttpCharsetHeader"; |
| 1226 | public static final String KEY_MMS_SUPPORT_MMS_CONTENT_DISPOSITION_BOOL = "supportMmsContentDisposition"; |
| 1227 | public static final String KEY_MMS_ALIAS_MAX_CHARS_INT = "aliasMaxChars"; |
| 1228 | public static final String KEY_MMS_ALIAS_MIN_CHARS_INT = "aliasMinChars"; |
| 1229 | public static final String KEY_MMS_HTTP_SOCKET_TIMEOUT_INT = "httpSocketTimeout"; |
| 1230 | public static final String KEY_MMS_MAX_IMAGE_HEIGHT_INT = "maxImageHeight"; |
| 1231 | public static final String KEY_MMS_MAX_IMAGE_WIDTH_INT = "maxImageWidth"; |
| 1232 | public static final String KEY_MMS_MAX_MESSAGE_SIZE_INT = "maxMessageSize"; |
| 1233 | public static final String KEY_MMS_MESSAGE_TEXT_MAX_SIZE_INT = "maxMessageTextSize"; |
| 1234 | public static final String KEY_MMS_RECIPIENT_LIMIT_INT = "recipientLimit"; |
| 1235 | public static final String KEY_MMS_SMS_TO_MMS_TEXT_LENGTH_THRESHOLD_INT = "smsToMmsTextLengthThreshold"; |
| 1236 | public static final String KEY_MMS_SMS_TO_MMS_TEXT_THRESHOLD_INT = "smsToMmsTextThreshold"; |
| 1237 | public static final String KEY_MMS_SUBJECT_MAX_LENGTH_INT = "maxSubjectLength"; |
| 1238 | public static final String KEY_MMS_EMAIL_GATEWAY_NUMBER_STRING = "emailGatewayNumber"; |
| 1239 | public static final String KEY_MMS_HTTP_PARAMS_STRING = "httpParams"; |
| 1240 | public static final String KEY_MMS_NAI_SUFFIX_STRING = "naiSuffix"; |
| 1241 | public static final String KEY_MMS_UA_PROF_TAG_NAME_STRING = "uaProfTagName"; |
| 1242 | public static final String KEY_MMS_UA_PROF_URL_STRING = "uaProfUrl"; |
| 1243 | public static final String KEY_MMS_USER_AGENT_STRING = "userAgent"; |
Ye Wen | 406a41b | 2016-07-18 14:36:22 -0700 | [diff] [blame] | 1244 | /** @hide */ |
| 1245 | public static final String KEY_MMS_CLOSE_CONNECTION_BOOL = "mmsCloseConnection"; |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 1246 | |
Tyler Gunn | 387ce2f | 2015-08-28 14:14:11 -0700 | [diff] [blame] | 1247 | /** |
Stuart Scott | 9abc273 | 2016-05-11 15:42:01 -0700 | [diff] [blame] | 1248 | * If carriers require differentiate un-provisioned status: cold sim or out of credit sim |
| 1249 | * a package name and activity name can be provided to launch a supported carrier application |
| 1250 | * that check the sim provisioning status |
| 1251 | * The first element is the package name and the second element is the activity name |
| 1252 | * of the provisioning app |
| 1253 | * example: |
| 1254 | * <item>com.google.android.carrierPackageName</item> |
| 1255 | * <item>com.google.android.carrierPackageName.CarrierActivityName</item> |
| 1256 | * The ComponentName of the carrier activity that can setup the device and activate with the |
| 1257 | * network as part of the Setup Wizard flow. |
| 1258 | * @hide |
| 1259 | */ |
| 1260 | public static final String KEY_CARRIER_SETUP_APP_STRING = "carrier_setup_app_string"; |
| 1261 | |
| 1262 | /** |
fionaxu | a21a87b | 2016-12-13 17:15:11 -0800 | [diff] [blame] | 1263 | * Defines carrier-specific actions which act upon |
fionaxu | abeba60 | 2017-02-23 18:06:52 -0800 | [diff] [blame] | 1264 | * com.android.internal.telephony.CARRIER_SIGNAL_REDIRECTED, used for customization of the |
fionaxu | a21a87b | 2016-12-13 17:15:11 -0800 | [diff] [blame] | 1265 | * default carrier app |
| 1266 | * Format: "CARRIER_ACTION_IDX, ..." |
| 1267 | * Where {@code CARRIER_ACTION_IDX} is an integer defined in |
| 1268 | * {@link com.android.carrierdefaultapp.CarrierActionUtils CarrierActionUtils} |
| 1269 | * Example: |
| 1270 | * {@link com.android.carrierdefaultapp.CarrierActionUtils#CARRIER_ACTION_DISABLE_METERED_APNS |
| 1271 | * disable_metered_apns} |
| 1272 | * @hide |
| 1273 | */ |
Mathew Inwood | 323d08f | 2018-08-16 11:30:29 +0100 | [diff] [blame] | 1274 | @UnsupportedAppUsage |
fionaxu | a21a87b | 2016-12-13 17:15:11 -0800 | [diff] [blame] | 1275 | public static final String KEY_CARRIER_DEFAULT_ACTIONS_ON_REDIRECTION_STRING_ARRAY = |
| 1276 | "carrier_default_actions_on_redirection_string_array"; |
| 1277 | |
| 1278 | /** |
| 1279 | * Defines carrier-specific actions which act upon |
fionaxu | abeba60 | 2017-02-23 18:06:52 -0800 | [diff] [blame] | 1280 | * com.android.internal.telephony.CARRIER_SIGNAL_REQUEST_NETWORK_FAILED |
fionaxu | a21a87b | 2016-12-13 17:15:11 -0800 | [diff] [blame] | 1281 | * and configured signal args: |
| 1282 | * {@link com.android.internal.telephony.TelephonyIntents#EXTRA_APN_TYPE_KEY apnType}, |
| 1283 | * {@link com.android.internal.telephony.TelephonyIntents#EXTRA_ERROR_CODE_KEY errorCode} |
| 1284 | * used for customization of the default carrier app |
| 1285 | * Format: |
| 1286 | * { |
| 1287 | * "APN_1, ERROR_CODE_1 : CARRIER_ACTION_IDX_1, CARRIER_ACTION_IDX_2...", |
| 1288 | * "APN_1, ERROR_CODE_2 : CARRIER_ACTION_IDX_1 " |
| 1289 | * } |
| 1290 | * Where {@code APN_1} is a string defined in |
| 1291 | * {@link com.android.internal.telephony.PhoneConstants PhoneConstants} |
| 1292 | * Example: "default" |
| 1293 | * |
| 1294 | * {@code ERROR_CODE_1} is an integer defined in |
| 1295 | * {@link com.android.internal.telephony.dataconnection.DcFailCause DcFailure} |
| 1296 | * Example: |
| 1297 | * {@link com.android.internal.telephony.dataconnection.DcFailCause#MISSING_UNKNOWN_APN} |
| 1298 | * |
| 1299 | * {@code CARRIER_ACTION_IDX_1} is an integer defined in |
| 1300 | * {@link com.android.carrierdefaultapp.CarrierActionUtils CarrierActionUtils} |
| 1301 | * Example: |
| 1302 | * {@link com.android.carrierdefaultapp.CarrierActionUtils#CARRIER_ACTION_DISABLE_METERED_APNS} |
| 1303 | * @hide |
| 1304 | */ |
| 1305 | public static final String KEY_CARRIER_DEFAULT_ACTIONS_ON_DCFAILURE_STRING_ARRAY = |
| 1306 | "carrier_default_actions_on_dcfailure_string_array"; |
| 1307 | |
| 1308 | /** |
fionaxu | 77f466d | 2017-04-26 16:05:25 -0700 | [diff] [blame] | 1309 | * Defines carrier-specific actions which act upon |
| 1310 | * com.android.internal.telephony.CARRIER_SIGNAL_RESET, used for customization of the |
| 1311 | * default carrier app |
| 1312 | * Format: "CARRIER_ACTION_IDX, ..." |
| 1313 | * Where {@code CARRIER_ACTION_IDX} is an integer defined in |
| 1314 | * {@link com.android.carrierdefaultapp.CarrierActionUtils CarrierActionUtils} |
| 1315 | * Example: |
| 1316 | * {@link com.android.carrierdefaultapp.CarrierActionUtils |
| 1317 | * #CARRIER_ACTION_CANCEL_ALL_NOTIFICATIONS clear all notifications on reset} |
| 1318 | * @hide |
| 1319 | */ |
| 1320 | public static final String KEY_CARRIER_DEFAULT_ACTIONS_ON_RESET = |
| 1321 | "carrier_default_actions_on_reset_string_array"; |
fionaxu | d60a9d0 | 2017-05-23 14:55:27 -0700 | [diff] [blame] | 1322 | |
| 1323 | /** |
| 1324 | * Defines carrier-specific actions which act upon |
| 1325 | * com.android.internal.telephony.CARRIER_SIGNAL_DEFAULT_NETWORK_AVAILABLE, |
| 1326 | * used for customization of the default carrier app |
| 1327 | * Format: |
| 1328 | * { |
| 1329 | * "true : CARRIER_ACTION_IDX_1", |
| 1330 | * "false: CARRIER_ACTION_IDX_2" |
| 1331 | * } |
| 1332 | * Where {@code true} is a boolean indicates default network available/unavailable |
| 1333 | * Where {@code CARRIER_ACTION_IDX} is an integer defined in |
| 1334 | * {@link com.android.carrierdefaultapp.CarrierActionUtils CarrierActionUtils} |
| 1335 | * Example: |
| 1336 | * {@link com.android.carrierdefaultapp.CarrierActionUtils |
| 1337 | * #CARRIER_ACTION_ENABLE_DEFAULT_URL_HANDLER enable the app as the default URL handler} |
| 1338 | * @hide |
| 1339 | */ |
| 1340 | public static final String KEY_CARRIER_DEFAULT_ACTIONS_ON_DEFAULT_NETWORK_AVAILABLE = |
| 1341 | "carrier_default_actions_on_default_network_available_string_array"; |
fionaxu | 77f466d | 2017-04-26 16:05:25 -0700 | [diff] [blame] | 1342 | /** |
fionaxu | a21a87b | 2016-12-13 17:15:11 -0800 | [diff] [blame] | 1343 | * Defines a list of acceptable redirection url for default carrier app |
| 1344 | * @hides |
| 1345 | */ |
| 1346 | public static final String KEY_CARRIER_DEFAULT_REDIRECTION_URL_STRING_ARRAY = |
| 1347 | "carrier_default_redirection_url_string_array"; |
| 1348 | |
| 1349 | /** |
fionaxu | 41ca937 | 2016-11-17 16:46:30 -0800 | [diff] [blame] | 1350 | * Each config includes the componentName of the carrier app, followed by a list of interesting |
| 1351 | * signals(declared in the manifest) which could wake up the app. |
| 1352 | * @see com.android.internal.telephony.TelephonyIntents |
| 1353 | * Example: |
| 1354 | * <item>com.google.android.carrierAPK/.CarrierSignalReceiverA: |
fionaxu | abeba60 | 2017-02-23 18:06:52 -0800 | [diff] [blame] | 1355 | * com.android.internal.telephony.CARRIER_SIGNAL_REDIRECTED, |
| 1356 | * com.android.internal.telephony.CARRIER_SIGNAL_PCO_VALUE |
fionaxu | 41ca937 | 2016-11-17 16:46:30 -0800 | [diff] [blame] | 1357 | * </item> |
| 1358 | * <item>com.google.android.carrierAPK/.CarrierSignalReceiverB: |
fionaxu | abeba60 | 2017-02-23 18:06:52 -0800 | [diff] [blame] | 1359 | * com.android.internal.telephony.CARRIER_SIGNAL_PCO_VALUE |
fionaxu | 41ca937 | 2016-11-17 16:46:30 -0800 | [diff] [blame] | 1360 | * </item> |
| 1361 | * @hide |
| 1362 | */ |
| 1363 | public static final String KEY_CARRIER_APP_WAKE_SIGNAL_CONFIG_STRING_ARRAY = |
| 1364 | "carrier_app_wake_signal_config"; |
| 1365 | |
| 1366 | /** |
| 1367 | * Each config includes the componentName of the carrier app, followed by a list of interesting |
| 1368 | * signals for the app during run-time. The list of signals(intents) are targeting on run-time |
| 1369 | * broadcast receivers only, aiming to avoid unnecessary wake-ups and should not be declared in |
| 1370 | * the app's manifest. |
| 1371 | * @see com.android.internal.telephony.TelephonyIntents |
| 1372 | * Example: |
| 1373 | * <item>com.google.android.carrierAPK/.CarrierSignalReceiverA: |
fionaxu | abeba60 | 2017-02-23 18:06:52 -0800 | [diff] [blame] | 1374 | * com.android.internal.telephony.CARRIER_SIGNAL_REQUEST_NETWORK_FAILED, |
| 1375 | * com.android.internal.telephony.CARRIER_SIGNAL_PCO_VALUE |
fionaxu | 41ca937 | 2016-11-17 16:46:30 -0800 | [diff] [blame] | 1376 | * </item> |
| 1377 | * <item>com.google.android.carrierAPK/.CarrierSignalReceiverB: |
fionaxu | abeba60 | 2017-02-23 18:06:52 -0800 | [diff] [blame] | 1378 | * com.android.internal.telephony.CARRIER_SIGNAL_REQUEST_NETWORK_FAILED |
fionaxu | 41ca937 | 2016-11-17 16:46:30 -0800 | [diff] [blame] | 1379 | * </item> |
| 1380 | * @hide |
| 1381 | */ |
| 1382 | public static final String KEY_CARRIER_APP_NO_WAKE_SIGNAL_CONFIG_STRING_ARRAY = |
| 1383 | "carrier_app_no_wake_signal_config"; |
| 1384 | |
| 1385 | /** |
fionaxu | 7834be2 | 2017-06-22 18:14:23 -0700 | [diff] [blame] | 1386 | * Default value for {@link Settings.Global#DATA_ROAMING} |
| 1387 | * @hide |
| 1388 | */ |
| 1389 | public static final String KEY_CARRIER_DEFAULT_DATA_ROAMING_ENABLED_BOOL = |
| 1390 | "carrier_default_data_roaming_enabled_bool"; |
| 1391 | |
| 1392 | /** |
Tyler Gunn | 387ce2f | 2015-08-28 14:14:11 -0700 | [diff] [blame] | 1393 | * Determines whether the carrier supports making non-emergency phone calls while the phone is |
| 1394 | * in emergency callback mode. Default value is {@code true}, meaning that non-emergency calls |
| 1395 | * are allowed in emergency callback mode. |
Tyler Gunn | 387ce2f | 2015-08-28 14:14:11 -0700 | [diff] [blame] | 1396 | */ |
| 1397 | public static final String KEY_ALLOW_NON_EMERGENCY_CALLS_IN_ECM_BOOL = |
Tyler Gunn | 6ef57c3 | 2015-08-31 13:15:27 -0700 | [diff] [blame] | 1398 | "allow_non_emergency_calls_in_ecm_bool"; |
Tyler Gunn | 387ce2f | 2015-08-28 14:14:11 -0700 | [diff] [blame] | 1399 | |
Tyler Gunn | 1cee477 | 2015-12-04 21:03:30 -0800 | [diff] [blame] | 1400 | /** |
Tyler Gunn | abfdaea | 2015-05-28 15:09:10 -0700 | [diff] [blame] | 1401 | * Flag indicating whether to allow carrier video calls to emergency numbers. |
| 1402 | * When {@code true}, video calls to emergency numbers will be allowed. When {@code false}, |
| 1403 | * video calls to emergency numbers will be initiated as audio-only calls instead. |
Tyler Gunn | abfdaea | 2015-05-28 15:09:10 -0700 | [diff] [blame] | 1404 | */ |
Tyler Gunn | f083619 | 2016-03-15 20:33:13 -0700 | [diff] [blame] | 1405 | public static final String KEY_ALLOW_EMERGENCY_VIDEO_CALLS_BOOL = |
| 1406 | "allow_emergency_video_calls_bool"; |
Tyler Gunn | 3e122f7 | 2016-01-11 19:25:00 -0800 | [diff] [blame] | 1407 | |
| 1408 | /** |
| 1409 | * Flag indicating whether the carrier supports RCS presence indication for video calls. When |
| 1410 | * {@code true}, the carrier supports RCS presence indication for video calls. When presence |
| 1411 | * is supported, the device should use the |
| 1412 | * {@link android.provider.ContactsContract.Data#CARRIER_PRESENCE} bit mask and set the |
| 1413 | * {@link android.provider.ContactsContract.Data#CARRIER_PRESENCE_VT_CAPABLE} bit to indicate |
| 1414 | * whether each contact supports video calling. The UI is made aware that presence is enabled |
| 1415 | * via {@link android.telecom.PhoneAccount#CAPABILITY_VIDEO_CALLING_RELIES_ON_PRESENCE} |
| 1416 | * and can choose to hide or show the video calling icon based on whether a contact supports |
| 1417 | * video. |
Tyler Gunn | 3e122f7 | 2016-01-11 19:25:00 -0800 | [diff] [blame] | 1418 | */ |
Tyler Gunn | 3e122f7 | 2016-01-11 19:25:00 -0800 | [diff] [blame] | 1419 | public static final String KEY_USE_RCS_PRESENCE_BOOL = "use_rcs_presence_bool"; |
| 1420 | |
Abhijith Shastry | d4893587 | 2016-02-04 17:28:03 -0800 | [diff] [blame] | 1421 | /** |
| 1422 | * The duration in seconds that platform call and message blocking is disabled after the user |
Tyler Gunn | 48c570b | 2018-03-09 02:33:22 +0000 | [diff] [blame] | 1423 | * contacts emergency services. Platform considers values for below cases: |
| 1424 | * 1) 0 <= VALUE <= 604800(one week): the value will be used as the duration directly. |
| 1425 | * 2) VALUE > 604800(one week): will use the default value as duration instead. |
| 1426 | * 3) VALUE < 0: block will be disabled forever until user re-eanble block manually, |
| 1427 | * the suggested value to disable forever is -1. |
| 1428 | * See {@code android.provider.BlockedNumberContract#notifyEmergencyContact(Context)} |
| 1429 | * See {@code android.provider.BlockedNumberContract#isBlocked(Context, String)}. |
Abhijith Shastry | d4893587 | 2016-02-04 17:28:03 -0800 | [diff] [blame] | 1430 | */ |
| 1431 | public static final String KEY_DURATION_BLOCKING_DISABLED_AFTER_EMERGENCY_INT = |
| 1432 | "duration_blocking_disabled_after_emergency_int"; |
| 1433 | |
qingxi | 247e7f4 | 2016-06-03 15:24:33 -0700 | [diff] [blame] | 1434 | /** |
Tyler Gunn | 48c570b | 2018-03-09 02:33:22 +0000 | [diff] [blame] | 1435 | * Determines whether to enable enhanced call blocking feature on the device. |
| 1436 | * @see SystemContract#ENHANCED_SETTING_KEY_BLOCK_UNREGISTERED |
| 1437 | * @see SystemContract#ENHANCED_SETTING_KEY_BLOCK_PRIVATE |
| 1438 | * @see SystemContract#ENHANCED_SETTING_KEY_BLOCK_PAYPHONE |
| 1439 | * @see SystemContract#ENHANCED_SETTING_KEY_BLOCK_UNKNOWN |
| 1440 | * |
| 1441 | * <p> |
| 1442 | * 1. For Single SIM(SS) device, it can be customized in both carrier_config_mccmnc.xml |
| 1443 | * and vendor.xml. |
| 1444 | * <p> |
| 1445 | * 2. For Dual SIM(DS) device, it should be customized in vendor.xml, since call blocking |
| 1446 | * function is used regardless of SIM. |
| 1447 | * <p> |
| 1448 | * If {@code true} enable enhanced call blocking feature on the device, {@code false} otherwise. |
| 1449 | * @hide |
| 1450 | */ |
| 1451 | public static final String KEY_SUPPORT_ENHANCED_CALL_BLOCKING_BOOL = |
| 1452 | "support_enhanced_call_blocking_bool"; |
| 1453 | |
| 1454 | /** |
Jordan Liu | e166356 | 2016-09-07 12:01:24 -0700 | [diff] [blame] | 1455 | * For carriers which require an empty flash to be sent before sending the normal 3-way calling |
| 1456 | * flash, the duration in milliseconds of the empty flash to send. When {@code 0}, no empty |
| 1457 | * flash is sent. |
| 1458 | */ |
| 1459 | public static final String KEY_CDMA_3WAYCALL_FLASH_DELAY_INT = "cdma_3waycall_flash_delay_int"; |
| 1460 | |
Jordan Liu | e166356 | 2016-09-07 12:01:24 -0700 | [diff] [blame] | 1461 | /** |
Jeff Davidson | af1d320 | 2017-10-25 12:51:43 -0700 | [diff] [blame] | 1462 | * The CDMA roaming mode (aka CDMA system select). |
| 1463 | * |
| 1464 | * <p>The value should be one of the CDMA_ROAMING_MODE_ constants in {@link TelephonyManager}. |
| 1465 | * Values other than {@link TelephonyManager#CDMA_ROAMING_MODE_RADIO_DEFAULT} (which is the |
| 1466 | * default) will take precedence over user selection. |
| 1467 | * |
| 1468 | * @see TelephonyManager#CDMA_ROAMING_MODE_RADIO_DEFAULT |
| 1469 | * @see TelephonyManager#CDMA_ROAMING_MODE_HOME |
| 1470 | * @see TelephonyManager#CDMA_ROAMING_MODE_AFFILIATED |
| 1471 | * @see TelephonyManager#CDMA_ROAMING_MODE_ANY |
qingxi | 247e7f4 | 2016-06-03 15:24:33 -0700 | [diff] [blame] | 1472 | */ |
| 1473 | public static final String KEY_CDMA_ROAMING_MODE_INT = "cdma_roaming_mode_int"; |
Jeff Davidson | af1d320 | 2017-10-25 12:51:43 -0700 | [diff] [blame] | 1474 | |
| 1475 | |
Wileen Chiu | 5e8e308 | 2016-07-15 10:00:09 -0700 | [diff] [blame] | 1476 | /** |
| 1477 | * Boolean indicating if support is provided for directly dialing FDN number from FDN list. |
| 1478 | * If false, this feature is not supported. |
| 1479 | * @hide |
| 1480 | */ |
| 1481 | public static final String KEY_SUPPORT_DIRECT_FDN_DIALING_BOOL = |
| 1482 | "support_direct_fdn_dialing_bool"; |
qingxi | 247e7f4 | 2016-06-03 15:24:33 -0700 | [diff] [blame] | 1483 | |
Robert Greenwalt | 60551b6 | 2016-06-09 16:28:40 -0700 | [diff] [blame] | 1484 | /** |
Junda Liu | 276f4d6 | 2016-07-14 13:55:03 -0700 | [diff] [blame] | 1485 | * Report IMEI as device id even if it's a CDMA/LTE phone. |
| 1486 | * |
| 1487 | * @hide |
| 1488 | */ |
| 1489 | public static final String KEY_FORCE_IMEI_BOOL = "force_imei_bool"; |
| 1490 | |
| 1491 | /** |
Robert Greenwalt | 60551b6 | 2016-06-09 16:28:40 -0700 | [diff] [blame] | 1492 | * The families of Radio Access Technologies that will get clustered and ratcheted, |
| 1493 | * ie, we will report transitions up within the family, but not down until we change |
| 1494 | * cells. This prevents flapping between base technologies and higher techs that are |
| 1495 | * granted on demand within the cell. |
| 1496 | * @hide |
| 1497 | */ |
| 1498 | public static final String KEY_RATCHET_RAT_FAMILIES = |
| 1499 | "ratchet_rat_families"; |
| 1500 | |
Tyler Gunn | 4b6614e | 2016-06-22 10:35:13 -0700 | [diff] [blame] | 1501 | /** |
| 1502 | * Flag indicating whether some telephony logic will treat a call which was formerly a video |
| 1503 | * call as if it is still a video call. When {@code true}: |
| 1504 | * <p> |
| 1505 | * Logic which will automatically drop a video call which takes place over WIFI when a |
| 1506 | * voice call is answered (see {@link #KEY_DROP_VIDEO_CALL_WHEN_ANSWERING_AUDIO_CALL_BOOL}. |
| 1507 | * <p> |
| 1508 | * Logic which determines whether the user can use TTY calling. |
| 1509 | */ |
| 1510 | public static final String KEY_TREAT_DOWNGRADED_VIDEO_CALLS_AS_VIDEO_CALLS_BOOL = |
| 1511 | "treat_downgraded_video_calls_as_video_calls_bool"; |
| 1512 | |
| 1513 | /** |
| 1514 | * When {@code true}, if the user is in an ongoing video call over WIFI and answers an incoming |
| 1515 | * audio call, the video call will be disconnected before the audio call is answered. This is |
| 1516 | * in contrast to the usual expected behavior where a foreground video call would be put into |
| 1517 | * the background and held when an incoming audio call is answered. |
| 1518 | */ |
| 1519 | public static final String KEY_DROP_VIDEO_CALL_WHEN_ANSWERING_AUDIO_CALL_BOOL = |
| 1520 | "drop_video_call_when_answering_audio_call_bool"; |
| 1521 | |
Tyler Gunn | 7d633d3 | 2016-06-24 07:30:10 -0700 | [diff] [blame] | 1522 | /** |
| 1523 | * Flag indicating whether the carrier supports merging wifi calls when VoWIFI is disabled. |
| 1524 | * This can happen in the case of a carrier which allows offloading video calls to WIFI |
| 1525 | * separately of whether voice over wifi is enabled. In such a scenario when two video calls |
| 1526 | * are downgraded to voice, they remain over wifi. However, if VoWIFI is disabled, these calls |
| 1527 | * cannot be merged. |
| 1528 | */ |
| 1529 | public static final String KEY_ALLOW_MERGE_WIFI_CALLS_WHEN_VOWIFI_OFF_BOOL = |
| 1530 | "allow_merge_wifi_calls_when_vowifi_off_bool"; |
| 1531 | |
Hall Liu | 1020866 | 2016-06-15 17:55:00 -0700 | [diff] [blame] | 1532 | /** |
Brad Ebinger | c860101 | 2016-07-19 14:09:23 -0700 | [diff] [blame] | 1533 | * Flag indicating whether the carrier supports the Hold command while in an IMS call. |
Tyler Gunn | d81c426 | 2016-08-03 10:53:52 -0700 | [diff] [blame] | 1534 | * <p> |
| 1535 | * The device configuration value {@code config_device_respects_hold_carrier_config} ultimately |
| 1536 | * controls whether this carrier configuration option is used. Where |
| 1537 | * {@code config_device_respects_hold_carrier_config} is false, the value of the |
| 1538 | * {@link #KEY_ALLOW_HOLD_IN_IMS_CALL_BOOL} carrier configuration option is ignored. |
Brad Ebinger | c860101 | 2016-07-19 14:09:23 -0700 | [diff] [blame] | 1539 | * @hide |
| 1540 | */ |
| 1541 | public static final String KEY_ALLOW_HOLD_IN_IMS_CALL_BOOL = "allow_hold_in_ims_call"; |
| 1542 | |
Pooja Jain | d34698d | 2017-12-28 14:15:31 +0530 | [diff] [blame] | 1543 | /** |
| 1544 | * Flag indicating whether the carrier supports call deflection for an incoming IMS call. |
| 1545 | * @hide |
| 1546 | */ |
| 1547 | public static final String KEY_CARRIER_ALLOW_DEFLECT_IMS_CALL_BOOL = |
| 1548 | "carrier_allow_deflect_ims_call_bool"; |
Tyler Gunn | 3088942 | 2017-11-28 09:04:31 -0800 | [diff] [blame] | 1549 | |
| 1550 | /** |
| 1551 | * Flag indicating whether the carrier always wants to play an "on-hold" tone when a call has |
| 1552 | * been remotely held. |
| 1553 | * <p> |
| 1554 | * When {@code true}, if the IMS stack indicates that the call session has been held, a signal |
| 1555 | * will be sent from Telephony to play an audible "on-hold" tone played to the user. |
| 1556 | * When {@code false}, a hold tone will only be played if the audio session becomes inactive. |
| 1557 | * @hide |
| 1558 | */ |
| 1559 | public static final String KEY_ALWAYS_PLAY_REMOTE_HOLD_TONE_BOOL = |
| 1560 | "always_play_remote_hold_tone_bool"; |
| 1561 | |
Brad Ebinger | c860101 | 2016-07-19 14:09:23 -0700 | [diff] [blame] | 1562 | /** |
Hall Liu | f31f385 | 2018-07-25 18:48:55 -0700 | [diff] [blame] | 1563 | * When true, the Telephony stack will automatically turn off airplane mode and retry a wifi |
| 1564 | * emergency call over the cell network if the initial attempt at dialing was met with a SIP 308 |
| 1565 | * error. |
| 1566 | * @hide |
| 1567 | */ |
| 1568 | public static final String KEY_AUTO_RETRY_FAILED_WIFI_EMERGENCY_CALL = |
| 1569 | "auto_retry_failed_wifi_emergency_call"; |
| 1570 | |
| 1571 | /** |
Hall Liu | 4102700 | 2016-07-06 16:32:43 -0700 | [diff] [blame] | 1572 | * When true, indicates that adding a call is disabled when there is an ongoing video call |
| 1573 | * or when there is an ongoing call on wifi which was downgraded from video and VoWifi is |
| 1574 | * turned off. |
Hall Liu | 1020866 | 2016-06-15 17:55:00 -0700 | [diff] [blame] | 1575 | */ |
| 1576 | public static final String KEY_ALLOW_ADD_CALL_DURING_VIDEO_CALL_BOOL = |
| 1577 | "allow_add_call_during_video_call"; |
| 1578 | |
Tyler Gunn | c96b5e0 | 2016-07-07 22:53:57 -0700 | [diff] [blame] | 1579 | /** |
Hall Liu | 7c3c28b | 2016-07-19 11:18:49 -0700 | [diff] [blame] | 1580 | * When true, indicates that the HD audio icon in the in-call screen should not be shown for |
| 1581 | * VoWifi calls. |
| 1582 | * @hide |
| 1583 | */ |
| 1584 | public static final String KEY_WIFI_CALLS_CAN_BE_HD_AUDIO = "wifi_calls_can_be_hd_audio"; |
| 1585 | |
| 1586 | /** |
| 1587 | * When true, indicates that the HD audio icon in the in-call screen should not be shown for |
| 1588 | * video calls. |
| 1589 | * @hide |
| 1590 | */ |
| 1591 | public static final String KEY_VIDEO_CALLS_CAN_BE_HD_AUDIO = "video_calls_can_be_hd_audio"; |
| 1592 | |
| 1593 | /** |
Alex Khlivnuik | abdd37c | 2017-11-29 12:18:05 +0900 | [diff] [blame] | 1594 | * When true, indicates that the HD audio icon in the in-call screen should be shown for |
| 1595 | * GSM/CDMA calls. |
| 1596 | * @hide |
| 1597 | */ |
| 1598 | public static final String KEY_GSM_CDMA_CALLS_CAN_BE_HD_AUDIO = |
| 1599 | "gsm_cdma_calls_can_be_hd_audio"; |
| 1600 | |
| 1601 | /** |
Ta-wei Yen | 9d20d98 | 2017-06-02 11:07:07 -0700 | [diff] [blame] | 1602 | * Whether system apps are allowed to use fallback if carrier video call is not available. |
| 1603 | * Defaults to {@code true}. |
| 1604 | * |
| 1605 | * @hide |
| 1606 | */ |
| 1607 | public static final String KEY_ALLOW_VIDEO_CALLING_FALLBACK_BOOL = |
| 1608 | "allow_video_calling_fallback_bool"; |
| 1609 | |
| 1610 | /** |
Brad Ebinger | f8c3cd8 | 2018-01-22 13:51:52 -0800 | [diff] [blame] | 1611 | * Defines operator-specific {@link ImsReasonInfo} mappings. |
Tyler Gunn | c96b5e0 | 2016-07-07 22:53:57 -0700 | [diff] [blame] | 1612 | * |
| 1613 | * Format: "ORIGINAL_CODE|MESSAGE|NEW_CODE" |
| 1614 | * Where {@code ORIGINAL_CODE} corresponds to a {@link ImsReasonInfo#getCode()} code, |
| 1615 | * {@code MESSAGE} corresponds to an expected {@link ImsReasonInfo#getExtraMessage()} string, |
| 1616 | * and {@code NEW_CODE} is the new {@code ImsReasonInfo#CODE_*} which this combination of |
| 1617 | * original code and message shall be remapped to. |
| 1618 | * |
Tyler Gunn | e071469 | 2017-01-30 09:52:55 -0800 | [diff] [blame] | 1619 | * Note: If {@code *} is specified for the original code, any ImsReasonInfo with the matching |
| 1620 | * {@code MESSAGE} will be remapped to {@code NEW_CODE}. |
| 1621 | * |
Tyler Gunn | c96b5e0 | 2016-07-07 22:53:57 -0700 | [diff] [blame] | 1622 | * Example: "501|call completion elsewhere|1014" |
| 1623 | * When the {@link ImsReasonInfo#getCode()} is {@link ImsReasonInfo#CODE_USER_TERMINATED} and |
| 1624 | * the {@link ImsReasonInfo#getExtraMessage()} is {@code "call completion elsewhere"}, |
| 1625 | * {@link ImsReasonInfo#CODE_ANSWERED_ELSEWHERE} shall be used as the {@link ImsReasonInfo} |
| 1626 | * code instead. |
| 1627 | * @hide |
| 1628 | */ |
| 1629 | public static final String KEY_IMS_REASONINFO_MAPPING_STRING_ARRAY = |
| 1630 | "ims_reasoninfo_mapping_string_array"; |
| 1631 | |
Meng Wang | 542e262 | 2016-08-03 10:18:36 -0700 | [diff] [blame] | 1632 | /** |
| 1633 | * When {@code false}, use default title for Enhanced 4G LTE Mode settings. |
| 1634 | * When {@code true}, use the variant. |
| 1635 | * @hide |
clownshen | 6400b93 | 2018-08-16 16:54:16 +0800 | [diff] [blame^] | 1636 | * @deprecated use {@link #KEY_ENHANCED_4G_LTE_TITLE_VARIANT_INT}. |
Meng Wang | 542e262 | 2016-08-03 10:18:36 -0700 | [diff] [blame] | 1637 | */ |
clownshen | 6400b93 | 2018-08-16 16:54:16 +0800 | [diff] [blame^] | 1638 | @Deprecated |
Meng Wang | 542e262 | 2016-08-03 10:18:36 -0700 | [diff] [blame] | 1639 | public static final String KEY_ENHANCED_4G_LTE_TITLE_VARIANT_BOOL = |
| 1640 | "enhanced_4g_lte_title_variant_bool"; |
| 1641 | |
Tyler Gunn | 0f20d93 | 2016-08-09 15:56:43 -0700 | [diff] [blame] | 1642 | /** |
clownshen | 6400b93 | 2018-08-16 16:54:16 +0800 | [diff] [blame^] | 1643 | * The index indicates the carrier specified title string of Enahnce 4G LTE Mode settings. |
| 1644 | * Default value is 0, which indicates the default title string. |
| 1645 | * @hide |
| 1646 | */ |
| 1647 | public static final String KEY_ENHANCED_4G_LTE_TITLE_VARIANT_INT = |
| 1648 | "enhanced_4g_lte_title_variant_int"; |
| 1649 | |
| 1650 | /** |
Tyler Gunn | 0f20d93 | 2016-08-09 15:56:43 -0700 | [diff] [blame] | 1651 | * Indicates whether the carrier wants to notify the user when handover of an LTE video call to |
| 1652 | * WIFI fails. |
| 1653 | * <p> |
| 1654 | * When {@code true}, if a video call starts on LTE and the modem reports a failure to handover |
| 1655 | * the call to WIFI or if no handover success is reported within 60 seconds of call initiation, |
| 1656 | * the {@link android.telephony.TelephonyManager#EVENT_HANDOVER_TO_WIFI_FAILED} event is raised |
| 1657 | * on the connection. |
| 1658 | * @hide |
| 1659 | */ |
| 1660 | public static final String KEY_NOTIFY_VT_HANDOVER_TO_WIFI_FAILURE_BOOL = |
| 1661 | "notify_vt_handover_to_wifi_failure_bool"; |
| 1662 | |
Brad Ebinger | 9b63ad1a | 2016-08-15 11:28:26 -0700 | [diff] [blame] | 1663 | /** |
| 1664 | * A upper case list of CNAP names that are unhelpful to the user for distinguising calls and |
| 1665 | * should be filtered out of the CNAP information. This includes CNAP names such as "WIRELESS |
| 1666 | * CALLER" or "UNKNOWN NAME". By default, if there are no filtered names for this carrier, null |
| 1667 | * is returned. |
| 1668 | * @hide |
| 1669 | */ |
Jordan Liu | 1ca2e31d | 2016-12-01 11:39:30 -0800 | [diff] [blame] | 1670 | public static final String KEY_FILTERED_CNAP_NAMES_STRING_ARRAY = "filtered_cnap_names_string_array"; |
Brad Ebinger | 9b63ad1a | 2016-08-15 11:28:26 -0700 | [diff] [blame] | 1671 | |
Abhijith Shastry | 2215c9b | 2016-08-24 15:17:39 -0700 | [diff] [blame] | 1672 | /** |
| 1673 | * The RCS configuration server URL. This URL is used to initiate RCS provisioning. |
| 1674 | */ |
| 1675 | public static final String KEY_RCS_CONFIG_SERVER_URL_STRING = "rcs_config_server_url_string"; |
| 1676 | |
Meng Wang | 587a5f9c7 | 2016-09-28 21:06:55 -0700 | [diff] [blame] | 1677 | /** |
Meng Wang | 2c25e4a | 2016-09-19 14:18:05 -0700 | [diff] [blame] | 1678 | * Determine whether user can change Wi-Fi Calling preference in roaming. |
| 1679 | * {@code false} - roaming preference {@link KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_MODE_INT} is |
| 1680 | * the same as home preference {@link KEY_CARRIER_DEFAULT_WFC_IMS_MODE_INT} |
| 1681 | * and cannot be changed. |
| 1682 | * {@code true} - roaming preference can be changed by user independently. |
| 1683 | * |
| 1684 | * @hide |
| 1685 | */ |
| 1686 | public static final String KEY_EDITABLE_WFC_ROAMING_MODE_BOOL = |
| 1687 | "editable_wfc_roaming_mode_bool"; |
| 1688 | |
Amit Mahajan | 22e89f4 | 2018-06-05 16:27:32 -0700 | [diff] [blame] | 1689 | /** |
Ecco Park | 4fa1ab7 | 2016-10-24 13:04:52 -0700 | [diff] [blame] | 1690 | * Determine whether current lpp_mode used for E-911 needs to be kept persistently. |
| 1691 | * {@code false} - not keeping the lpp_mode means using default configuration of gps.conf |
| 1692 | * when sim is not presented. |
| 1693 | * {@code true} - current lpp_profile of carrier will be kepted persistently |
| 1694 | * even after sim is removed. |
| 1695 | * |
| 1696 | * @hide |
| 1697 | */ |
| 1698 | public static final String KEY_PERSIST_LPP_MODE_BOOL = "persist_lpp_mode_bool"; |
| 1699 | |
pkanwar | d0063ae | 2016-11-23 11:20:30 -0800 | [diff] [blame] | 1700 | /** |
| 1701 | * Carrier specified WiFi networks. |
| 1702 | * @hide |
| 1703 | */ |
| 1704 | public static final String KEY_CARRIER_WIFI_STRING_ARRAY = "carrier_wifi_string_array"; |
Ecco Park | 4fa1ab7 | 2016-10-24 13:04:52 -0700 | [diff] [blame] | 1705 | |
pkanwar | ffd4583 | 2016-12-11 17:45:50 -0800 | [diff] [blame] | 1706 | /** |
| 1707 | * Time delay (in ms) after which we show the notification to switch the preferred |
| 1708 | * network. |
| 1709 | * @hide |
| 1710 | */ |
| 1711 | public static final String KEY_PREF_NETWORK_NOTIFICATION_DELAY_INT = |
| 1712 | "network_notification_delay_int"; |
| 1713 | |
Brad Ebinger | 17acc15 | 2016-12-09 13:18:30 -0800 | [diff] [blame] | 1714 | /** |
pkanwar | 68e3de7 | 2017-08-13 12:18:19 -0700 | [diff] [blame] | 1715 | * Time delay (in ms) after which we show the notification for emergency calls, |
| 1716 | * while the device is registered over WFC. Default value is -1, which indicates |
| 1717 | * that this notification is not pertinent for a particular carrier. We've added a delay |
| 1718 | * to prevent false positives. |
| 1719 | * @hide |
| 1720 | */ |
| 1721 | public static final String KEY_EMERGENCY_NOTIFICATION_DELAY_INT = |
| 1722 | "emergency_notification_delay_int"; |
| 1723 | |
| 1724 | /** |
Tyler Gunn | 02212db | 2017-06-05 11:26:46 -0700 | [diff] [blame] | 1725 | * When {@code true}, the carrier allows the user of the |
| 1726 | * {@link TelephonyManager#sendUssdRequest(String, TelephonyManager.UssdResponseCallback, |
| 1727 | * Handler)} API to perform USSD requests. {@code True} by default. |
| 1728 | * @hide |
| 1729 | */ |
| 1730 | public static final String KEY_ALLOW_USSD_REQUESTS_VIA_TELEPHONY_MANAGER_BOOL = |
| 1731 | "allow_ussd_requests_via_telephony_manager_bool"; |
| 1732 | |
| 1733 | /** |
Brad Ebinger | 17acc15 | 2016-12-09 13:18:30 -0800 | [diff] [blame] | 1734 | * Indicates whether the carrier supports 3gpp call forwarding MMI codes while roaming. If |
| 1735 | * false, the user will be notified that call forwarding is not available when the MMI code |
| 1736 | * fails. |
| 1737 | */ |
| 1738 | public static final String KEY_SUPPORT_3GPP_CALL_FORWARDING_WHILE_ROAMING_BOOL = |
| 1739 | "support_3gpp_call_forwarding_while_roaming_bool"; |
| 1740 | |
Junda Liu | f1adc1d | 2016-12-16 16:45:10 -0800 | [diff] [blame] | 1741 | /** |
Qiong Liu | 48fe53f | 2017-10-16 17:04:30 +0800 | [diff] [blame] | 1742 | * Boolean indicating whether to display voicemail number as default call forwarding number in |
| 1743 | * call forwarding settings. |
| 1744 | * If true, display vm number when cf number is null. |
| 1745 | * If false, display the cf number from network. |
| 1746 | * By default this value is false. |
| 1747 | * @hide |
| 1748 | */ |
| 1749 | public static final String KEY_DISPLAY_VOICEMAIL_NUMBER_AS_DEFAULT_CALL_FORWARDING_NUMBER_BOOL = |
| 1750 | "display_voicemail_number_as_default_call_forwarding_number"; |
| 1751 | |
| 1752 | /** |
Tyler Gunn | 662ae09 | 2017-02-16 16:21:14 -0800 | [diff] [blame] | 1753 | * When {@code true}, the user will be notified when they attempt to place an international call |
| 1754 | * when the call is placed using wifi calling. |
| 1755 | * @hide |
| 1756 | */ |
| 1757 | public static final String KEY_NOTIFY_INTERNATIONAL_CALL_ON_WFC_BOOL = |
| 1758 | "notify_international_call_on_wfc_bool"; |
| 1759 | |
| 1760 | /** |
Masaho Nishikawa | 4c7511c | 2017-12-18 14:33:38 +0900 | [diff] [blame] | 1761 | * Flag specifying whether to show an alert dialog for video call charges. |
| 1762 | * By default this value is {@code false}. |
| 1763 | * @hide |
| 1764 | */ |
| 1765 | public static final String KEY_SHOW_VIDEO_CALL_CHARGES_ALERT_DIALOG_BOOL = |
| 1766 | "show_video_call_charges_alert_dialog_bool"; |
| 1767 | |
| 1768 | /** |
Brad Ebinger | 9ab4321 | 2016-12-12 14:57:37 -0800 | [diff] [blame] | 1769 | * An array containing custom call forwarding number prefixes that will be blocked while the |
| 1770 | * device is reporting that it is roaming. By default, there are no custom call |
| 1771 | * forwarding prefixes and none of these numbers will be filtered. If one or more entries are |
| 1772 | * present, the system will not complete the call and display an error message. |
| 1773 | * |
| 1774 | * To display a message to the user when call forwarding fails for 3gpp MMI codes while roaming, |
| 1775 | * use the {@link #KEY_SUPPORT_3GPP_CALL_FORWARDING_WHILE_ROAMING_BOOL} option instead. |
| 1776 | */ |
| 1777 | public static final String KEY_CALL_FORWARDING_BLOCKS_WHILE_ROAMING_STRING_ARRAY = |
| 1778 | "call_forwarding_blocks_while_roaming_string_array"; |
| 1779 | |
Ammar Aijazi | 11b4498 | 2017-01-17 17:32:15 -0800 | [diff] [blame] | 1780 | /** |
| 1781 | * The day of the month (1-31) on which the data cycle rolls over. |
| 1782 | * <p> |
Jeff Sharkey | 17bebd2 | 2017-07-19 21:00:38 -0600 | [diff] [blame] | 1783 | * If the current month does not have this day, the cycle will roll over at |
| 1784 | * the start of the next month. |
Ammar Aijazi | 11b4498 | 2017-01-17 17:32:15 -0800 | [diff] [blame] | 1785 | * <p> |
Jeff Sharkey | 17bebd2 | 2017-07-19 21:00:38 -0600 | [diff] [blame] | 1786 | * This setting may be still overridden by explicit user choice. By default, |
| 1787 | * the platform value will be used. |
Ammar Aijazi | 11b4498 | 2017-01-17 17:32:15 -0800 | [diff] [blame] | 1788 | */ |
| 1789 | public static final String KEY_MONTHLY_DATA_CYCLE_DAY_INT = |
| 1790 | "monthly_data_cycle_day_int"; |
| 1791 | |
| 1792 | /** |
| 1793 | * When {@link #KEY_MONTHLY_DATA_CYCLE_DAY_INT}, {@link #KEY_DATA_LIMIT_THRESHOLD_BYTES_LONG}, |
| 1794 | * or {@link #KEY_DATA_WARNING_THRESHOLD_BYTES_LONG} are set to this value, the platform default |
| 1795 | * value will be used for that key. |
| 1796 | * |
| 1797 | * @hide |
| 1798 | */ |
Jeff Sharkey | 17bebd2 | 2017-07-19 21:00:38 -0600 | [diff] [blame] | 1799 | @Deprecated |
Ammar Aijazi | 11b4498 | 2017-01-17 17:32:15 -0800 | [diff] [blame] | 1800 | public static final int DATA_CYCLE_USE_PLATFORM_DEFAULT = -1; |
| 1801 | |
| 1802 | /** |
| 1803 | * Flag indicating that a data cycle threshold should be disabled. |
| 1804 | * <p> |
| 1805 | * If {@link #KEY_DATA_WARNING_THRESHOLD_BYTES_LONG} is set to this value, the platform's |
| 1806 | * default data warning, if one exists, will be disabled. A user selected data warning will not |
| 1807 | * be overridden. |
| 1808 | * <p> |
| 1809 | * If {@link #KEY_DATA_LIMIT_THRESHOLD_BYTES_LONG} is set to this value, the platform's |
| 1810 | * default data limit, if one exists, will be disabled. A user selected data limit will not be |
| 1811 | * overridden. |
| 1812 | */ |
| 1813 | public static final int DATA_CYCLE_THRESHOLD_DISABLED = -2; |
| 1814 | |
| 1815 | /** |
| 1816 | * Controls the data usage warning. |
| 1817 | * <p> |
| 1818 | * If the user uses more than this amount of data in their billing cycle, as defined by |
| 1819 | * {@link #KEY_MONTHLY_DATA_CYCLE_DAY_INT}, the user will be alerted about the usage. |
| 1820 | * If the value is set to {@link #DATA_CYCLE_THRESHOLD_DISABLED}, the data usage warning will |
| 1821 | * be disabled. |
| 1822 | * <p> |
| 1823 | * This setting may be overridden by explicit user choice. By default, the platform value |
| 1824 | * will be used. |
| 1825 | */ |
| 1826 | public static final String KEY_DATA_WARNING_THRESHOLD_BYTES_LONG = |
| 1827 | "data_warning_threshold_bytes_long"; |
| 1828 | |
| 1829 | /** |
Jeff Sharkey | 0a5570d | 2018-04-10 12:38:29 -0600 | [diff] [blame] | 1830 | * Controls if the device should automatically notify the user as they reach |
| 1831 | * their cellular data warning. When set to {@code false} the carrier is |
| 1832 | * expected to have implemented their own notification mechanism. |
Jeff Sharkey | 1df7ee5 | 2018-04-12 12:21:59 -0600 | [diff] [blame] | 1833 | * @hide |
Jeff Sharkey | 0a5570d | 2018-04-10 12:38:29 -0600 | [diff] [blame] | 1834 | */ |
| 1835 | public static final String KEY_DATA_WARNING_NOTIFICATION_BOOL = |
| 1836 | "data_warning_notification_bool"; |
| 1837 | |
| 1838 | /** |
Ammar Aijazi | 11b4498 | 2017-01-17 17:32:15 -0800 | [diff] [blame] | 1839 | * Controls the cellular data limit. |
| 1840 | * <p> |
| 1841 | * If the user uses more than this amount of data in their billing cycle, as defined by |
| 1842 | * {@link #KEY_MONTHLY_DATA_CYCLE_DAY_INT}, cellular data will be turned off by the user's |
| 1843 | * phone. If the value is set to {@link #DATA_CYCLE_THRESHOLD_DISABLED}, the data limit will be |
| 1844 | * disabled. |
| 1845 | * <p> |
| 1846 | * This setting may be overridden by explicit user choice. By default, the platform value |
| 1847 | * will be used. |
| 1848 | */ |
| 1849 | public static final String KEY_DATA_LIMIT_THRESHOLD_BYTES_LONG = |
| 1850 | "data_limit_threshold_bytes_long"; |
| 1851 | |
Sooraj Sasindran | 1b7bec5 | 2017-03-08 23:43:17 -0800 | [diff] [blame] | 1852 | /** |
Jeff Sharkey | 0a5570d | 2018-04-10 12:38:29 -0600 | [diff] [blame] | 1853 | * Controls if the device should automatically notify the user as they reach |
| 1854 | * their cellular data limit. When set to {@code false} the carrier is |
| 1855 | * expected to have implemented their own notification mechanism. |
Jeff Sharkey | 1df7ee5 | 2018-04-12 12:21:59 -0600 | [diff] [blame] | 1856 | * @hide |
Jeff Sharkey | 0a5570d | 2018-04-10 12:38:29 -0600 | [diff] [blame] | 1857 | */ |
| 1858 | public static final String KEY_DATA_LIMIT_NOTIFICATION_BOOL = |
| 1859 | "data_limit_notification_bool"; |
| 1860 | |
| 1861 | /** |
| 1862 | * Controls if the device should automatically notify the user when rapid |
| 1863 | * cellular data usage is observed. When set to {@code false} the carrier is |
| 1864 | * expected to have implemented their own notification mechanism. |
Jeff Sharkey | 1df7ee5 | 2018-04-12 12:21:59 -0600 | [diff] [blame] | 1865 | * @hide |
Jeff Sharkey | 0a5570d | 2018-04-10 12:38:29 -0600 | [diff] [blame] | 1866 | */ |
| 1867 | public static final String KEY_DATA_RAPID_NOTIFICATION_BOOL = |
| 1868 | "data_rapid_notification_bool"; |
| 1869 | |
| 1870 | /** |
Sooraj Sasindran | 1b7bec5 | 2017-03-08 23:43:17 -0800 | [diff] [blame] | 1871 | * Offset to be reduced from rsrp threshold while calculating signal strength level. |
| 1872 | * @hide |
| 1873 | */ |
| 1874 | public static final String KEY_LTE_EARFCNS_RSRP_BOOST_INT = "lte_earfcns_rsrp_boost_int"; |
| 1875 | |
| 1876 | /** |
| 1877 | * List of EARFCN (E-UTRA Absolute Radio Frequency Channel Number, |
| 1878 | * Reference: 3GPP TS 36.104 5.4.3) inclusive ranges on which lte_rsrp_boost_int |
| 1879 | * will be applied. Format of the String array is expected to be {"erafcn1_start-earfcn1_end", |
| 1880 | * "earfcn2_start-earfcn2_end" ... } |
| 1881 | * @hide |
| 1882 | */ |
| 1883 | public static final String KEY_BOOSTED_LTE_EARFCNS_STRING_ARRAY = |
| 1884 | "boosted_lte_earfcns_string_array"; |
| 1885 | |
Sanket Padawe | db688bb | 2017-03-28 15:26:13 -0700 | [diff] [blame] | 1886 | /** |
Wenting Xiong | cb35e99 | 2017-10-18 15:05:49 +0900 | [diff] [blame] | 1887 | * Determine whether to use only RSRP for the number of LTE signal bars. |
| 1888 | * @hide |
| 1889 | */ |
| 1890 | public static final String KEY_USE_ONLY_RSRP_FOR_LTE_SIGNAL_BAR_BOOL = |
| 1891 | "use_only_rsrp_for_lte_signal_bar_bool"; |
| 1892 | |
| 1893 | /** |
Sanket Padawe | db688bb | 2017-03-28 15:26:13 -0700 | [diff] [blame] | 1894 | * Key identifying if voice call barring notification is required to be shown to the user. |
| 1895 | * @hide |
| 1896 | */ |
Mathew Inwood | 323d08f | 2018-08-16 11:30:29 +0100 | [diff] [blame] | 1897 | @UnsupportedAppUsage |
Sanket Padawe | db688bb | 2017-03-28 15:26:13 -0700 | [diff] [blame] | 1898 | public static final String KEY_DISABLE_VOICE_BARRING_NOTIFICATION_BOOL = |
| 1899 | "disable_voice_barring_notification_bool"; |
| 1900 | |
pkanwar | 232573f | 2017-05-31 13:10:03 -0700 | [diff] [blame] | 1901 | /** |
fionaxu | 1c6027c | 2017-06-01 18:52:17 -0700 | [diff] [blame] | 1902 | * List of operators considered non-roaming which won't show roaming icon. |
| 1903 | * <p> |
| 1904 | * Can use mcc or mcc+mnc as item. For example, 302 or 21407. |
| 1905 | * If operators, 21404 and 21407, make roaming agreements, users of 21404 should not see |
| 1906 | * the roaming icon as using 21407 network. |
| 1907 | * @hide |
| 1908 | */ |
| 1909 | public static final String KEY_NON_ROAMING_OPERATOR_STRING_ARRAY = |
| 1910 | "non_roaming_operator_string_array"; |
| 1911 | |
| 1912 | /** |
| 1913 | * List of operators considered roaming with the roaming icon. |
| 1914 | * <p> |
| 1915 | * Can use mcc or mcc+mnc as item. For example, 302 or 21407. |
| 1916 | * If operators, 21404 and 21407, make roaming agreements, users of 21404 should see |
| 1917 | * the roaming icon as using 21407 network. |
| 1918 | * <p> |
| 1919 | * A match on this supersedes a match on {@link #KEY_NON_ROAMING_OPERATOR_STRING_ARRAY}. |
| 1920 | * @hide |
| 1921 | */ |
| 1922 | public static final String KEY_ROAMING_OPERATOR_STRING_ARRAY = |
| 1923 | "roaming_operator_string_array"; |
| 1924 | |
pkanwar | 766f461 | 2017-05-31 13:10:03 -0700 | [diff] [blame] | 1925 | /** |
| 1926 | * URL from which the proto containing the public key of the Carrier used for |
| 1927 | * IMSI encryption will be downloaded. |
| 1928 | * @hide |
| 1929 | */ |
| 1930 | public static final String IMSI_KEY_DOWNLOAD_URL_STRING = "imsi_key_download_url_string"; |
| 1931 | |
| 1932 | /** |
pkanwar | becc869 | 2017-07-04 16:04:44 -0700 | [diff] [blame] | 1933 | * Identifies if the key is available for WLAN or EPDG or both. The value is a bitmask. |
| 1934 | * 0 indicates that neither EPDG or WLAN is enabled. |
| 1935 | * 1 indicates that key type {@link TelephonyManager#KEY_TYPE_EPDG} is enabled. |
| 1936 | * 2 indicates that key type {@link TelephonyManager#KEY_TYPE_WLAN} is enabled. |
| 1937 | * 3 indicates that both are enabled. |
pkanwar | 766f461 | 2017-05-31 13:10:03 -0700 | [diff] [blame] | 1938 | * @hide |
| 1939 | */ |
pkanwar | becc869 | 2017-07-04 16:04:44 -0700 | [diff] [blame] | 1940 | public static final String IMSI_KEY_AVAILABILITY_INT = "imsi_key_availability_int"; |
| 1941 | |
pkanwar | 766f461 | 2017-05-31 13:10:03 -0700 | [diff] [blame] | 1942 | |
Naveen Kalla | abd2842 | 2017-07-11 20:03:58 -0700 | [diff] [blame] | 1943 | /** |
| 1944 | * Key identifying if the CDMA Caller ID presentation and suppression MMI codes |
| 1945 | * should be converted to 3GPP CLIR codes when a multimode (CDMA+UMTS+LTE) device is roaming |
| 1946 | * on a 3GPP network. Specifically *67<number> will be converted to #31#<number> and |
| 1947 | * *82<number> will be converted to *31#<number> before dialing a call when this key is |
| 1948 | * set TRUE and device is roaming on a 3GPP network. |
| 1949 | * @hide |
| 1950 | */ |
| 1951 | public static final String KEY_CONVERT_CDMA_CALLER_ID_MMI_CODES_WHILE_ROAMING_ON_3GPP_BOOL = |
| 1952 | "convert_cdma_caller_id_mmi_codes_while_roaming_on_3gpp_bool"; |
| 1953 | |
Ping Sun | e0e3cbd | 2016-03-02 19:09:27 +0800 | [diff] [blame] | 1954 | /** |
| 1955 | * Flag specifying whether IMS registration state menu is shown in Status Info setting, |
| 1956 | * default to false. |
| 1957 | * @hide |
| 1958 | */ |
| 1959 | public static final String KEY_SHOW_IMS_REGISTRATION_STATUS_BOOL = |
| 1960 | "show_ims_registration_status_bool"; |
| 1961 | |
Omata Shou | 9766b18 | 2017-08-22 17:17:55 +0900 | [diff] [blame] | 1962 | /** |
Hall Liu | 47ed620 | 2017-11-20 16:25:39 -0800 | [diff] [blame] | 1963 | * Flag indicating whether the carrier supports RTT over IMS. |
| 1964 | */ |
| 1965 | public static final String KEY_RTT_SUPPORTED_BOOL = "rtt_supported_bool"; |
| 1966 | |
| 1967 | /** |
Omata Shou | 9766b18 | 2017-08-22 17:17:55 +0900 | [diff] [blame] | 1968 | * The flag to disable the popup dialog which warns the user of data charges. |
| 1969 | * @hide |
| 1970 | */ |
| 1971 | public static final String KEY_DISABLE_CHARGE_INDICATION_BOOL = |
| 1972 | "disable_charge_indication_bool"; |
| 1973 | |
DongYuchen | 439f16d | 2017-02-16 18:22:36 +0800 | [diff] [blame] | 1974 | /** |
| 1975 | * Boolean indicating whether to skip the call forwarding (CF) fail-to-disable dialog. |
| 1976 | * The logic used to determine whether we succeeded in disabling is carrier specific, |
| 1977 | * so the dialog may not always be accurate. |
| 1978 | * {@code false} - show CF fail-to-disable dialog. |
| 1979 | * {@code true} - skip showing CF fail-to-disable dialog. |
| 1980 | * |
| 1981 | * @hide |
| 1982 | */ |
| 1983 | public static final String KEY_SKIP_CF_FAIL_TO_DISABLE_DIALOG_BOOL = |
| 1984 | "skip_cf_fail_to_disable_dialog_bool"; |
| 1985 | |
Kazuya Ohshiro | 990af17 | 2017-09-27 16:02:55 +0900 | [diff] [blame] | 1986 | /** |
manabu, shimoda | 6ce3138 | 2017-12-25 18:38:47 +0900 | [diff] [blame] | 1987 | * Flag specifying whether operator supports including no reply condition timer option on |
| 1988 | * CFNRy (3GPP TS 24.082 3: Call Forwarding on No Reply) in the call forwarding settings UI. |
| 1989 | * {@code true} - include no reply condition timer option on CFNRy |
| 1990 | * {@code false} - don't include no reply condition timer option on CFNRy |
| 1991 | * |
| 1992 | * @hide |
| 1993 | */ |
| 1994 | public static final String KEY_SUPPORT_NO_REPLY_TIMER_FOR_CFNRY_BOOL = |
| 1995 | "support_no_reply_timer_for_cfnry_bool"; |
| 1996 | |
| 1997 | /** |
Kazuya Ohshiro | 990af17 | 2017-09-27 16:02:55 +0900 | [diff] [blame] | 1998 | * List of the FAC (feature access codes) to dial as a normal call. |
| 1999 | * @hide |
| 2000 | */ |
| 2001 | public static final String KEY_FEATURE_ACCESS_CODES_STRING_ARRAY = |
| 2002 | "feature_access_codes_string_array"; |
| 2003 | |
Kazuya Ohshiro | b8981ba | 2017-10-27 16:26:15 +0900 | [diff] [blame] | 2004 | /** |
| 2005 | * Determines if the carrier wants to identify high definition calls in the call log. |
| 2006 | * @hide |
| 2007 | */ |
| 2008 | public static final String KEY_IDENTIFY_HIGH_DEFINITION_CALLS_IN_CALL_LOG_BOOL = |
| 2009 | "identify_high_definition_calls_in_call_log_bool"; |
| 2010 | |
Masaho Nishikawa | 4018435 | 2017-11-01 20:33:36 +0900 | [diff] [blame] | 2011 | /** |
| 2012 | * Flag specifying whether to use the {@link ServiceState} roaming status, which can be |
| 2013 | * affected by other carrier configs (e.g. |
| 2014 | * {@link #KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY}), when setting the SPN display. |
| 2015 | * <p> |
| 2016 | * If {@code true}, the SPN display uses {@link ServiceState#getRoaming}. |
| 2017 | * If {@code false} the SPN display checks if the current MCC/MNC is different from the |
| 2018 | * SIM card's MCC/MNC. |
| 2019 | * |
| 2020 | * @see KEY_GSM_ROAMING_NETWORKS_STRING_ARRAY |
| 2021 | * @see KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY |
| 2022 | * @see KEY_NON_ROAMING_OPERATOR_STRING_ARRAY |
| 2023 | * @see KEY_ROAMING_OPERATOR_STRING_ARRAY |
| 2024 | * @see KEY_FORCE_HOME_NETWORK_BOOL |
| 2025 | * |
| 2026 | * @hide |
| 2027 | */ |
| 2028 | public static final String KEY_SPN_DISPLAY_RULE_USE_ROAMING_FROM_SERVICE_STATE_BOOL = |
| 2029 | "spn_display_rule_use_roaming_from_service_state_bool"; |
| 2030 | |
yinxu | 0d56f3c | 2017-11-29 15:02:05 -0800 | [diff] [blame] | 2031 | /** |
| 2032 | * Determines whether any carrier has been identified and its specific config has been applied, |
| 2033 | * default to false. |
| 2034 | * @hide |
| 2035 | */ |
| 2036 | public static final String KEY_CARRIER_CONFIG_APPLIED_BOOL = "carrier_config_applied_bool"; |
| 2037 | |
pkanwar | 1e96fae | 2018-01-03 18:41:18 -0800 | [diff] [blame] | 2038 | /** |
| 2039 | * Determines whether we should show a warning asking the user to check with their carrier |
| 2040 | * on pricing when the user enabled data roaming. |
| 2041 | * default to false. |
| 2042 | * @hide |
| 2043 | */ |
| 2044 | public static final String KEY_CHECK_PRICING_WITH_CARRIER_FOR_DATA_ROAMING_BOOL = |
| 2045 | "check_pricing_with_carrier_data_roaming_bool"; |
| 2046 | |
Kitta Koutarou | 911f56c | 2017-12-01 19:19:49 +0900 | [diff] [blame] | 2047 | /** |
Jordan Liu | 407b479 | 2018-02-26 15:50:21 -0800 | [diff] [blame] | 2048 | * A list of 4 LTE RSRP thresholds above which a signal level is considered POOR, |
| 2049 | * MODERATE, GOOD, or EXCELLENT, to be used in SignalStrength reporting. |
| 2050 | * |
| 2051 | * Note that the min and max thresholds are fixed at -140 and -44, as explained in |
| 2052 | * TS 136.133 9.1.4 - RSRP Measurement Report Mapping. |
| 2053 | * <p> |
| 2054 | * See SignalStrength#MAX_LTE_RSRP and SignalStrength#MIN_LTE_RSRP. Any signal level outside |
| 2055 | * these boundaries is considered invalid. |
Kitta Koutarou | 911f56c | 2017-12-01 19:19:49 +0900 | [diff] [blame] | 2056 | * @hide |
| 2057 | */ |
| 2058 | public static final String KEY_LTE_RSRP_THRESHOLDS_INT_ARRAY = |
| 2059 | "lte_rsrp_thresholds_int_array"; |
| 2060 | |
Malcolm Chen | ec10221 | 2018-01-29 15:10:46 -0800 | [diff] [blame] | 2061 | /** |
| 2062 | * Decides when clients try to bind to iwlan network service, which package name will |
| 2063 | * the binding intent go to. |
| 2064 | * @hide |
| 2065 | */ |
Jack Yu | 4d21a40 | 2018-08-27 16:59:05 -0700 | [diff] [blame] | 2066 | public static final String KEY_CARRIER_NETWORK_SERVICE_WLAN_PACKAGE_OVERRIDE_STRING = |
| 2067 | "carrier_network_service_wlan_package_override_string"; |
Malcolm Chen | ec10221 | 2018-01-29 15:10:46 -0800 | [diff] [blame] | 2068 | |
| 2069 | /** |
| 2070 | * Decides when clients try to bind to wwan (cellular) network service, which package name will |
| 2071 | * the binding intent go to. |
| 2072 | * @hide |
| 2073 | */ |
Jack Yu | 4d21a40 | 2018-08-27 16:59:05 -0700 | [diff] [blame] | 2074 | public static final String KEY_CARRIER_NETWORK_SERVICE_WWAN_PACKAGE_OVERRIDE_STRING = |
| 2075 | "carrier_network_service_wwan_package_override_string"; |
Malcolm Chen | ec10221 | 2018-01-29 15:10:46 -0800 | [diff] [blame] | 2076 | |
Tomita, Ryounosuke X | d41feee | 2017-12-13 18:46:12 +0900 | [diff] [blame] | 2077 | /** |
Jack Yu | 4d21a40 | 2018-08-27 16:59:05 -0700 | [diff] [blame] | 2078 | * The package name of qualified networks service that telephony binds to. |
| 2079 | * |
| 2080 | * @hide |
| 2081 | */ |
| 2082 | public static final String KEY_CARRIER_QUALIFIED_NETWORKS_SERVICE_PACKAGE_OVERRIDE_STRING = |
| 2083 | "carrier_qualified_networks_service_package_override_string"; |
| 2084 | /** |
Tomita, Ryounosuke X | d41feee | 2017-12-13 18:46:12 +0900 | [diff] [blame] | 2085 | * A list of 4 LTE RSCP thresholds above which a signal level is considered POOR, |
| 2086 | * MODERATE, GOOD, or EXCELLENT, to be used in SignalStrength reporting. |
| 2087 | * |
| 2088 | * Note that the min and max thresholds are fixed at -120 and -24, as set in 3GPP TS 27.007 |
| 2089 | * section 8.69. |
| 2090 | * <p> |
| 2091 | * See SignalStrength#MAX_WCDMA_RSCP and SignalStrength#MIN_WDCMA_RSCP. Any signal level outside |
| 2092 | * these boundaries is considered invalid. |
| 2093 | * @hide |
| 2094 | */ |
| 2095 | public static final String KEY_WCDMA_RSCP_THRESHOLDS_INT_ARRAY = |
| 2096 | "wcdma_rscp_thresholds_int_array"; |
| 2097 | |
| 2098 | /** |
| 2099 | * The default measurement to use for signal strength reporting. If this is not specified, the |
| 2100 | * RSSI is used. |
| 2101 | * <p> |
| 2102 | * e.g.) To use RSCP by default, set the value to "rscp". The signal strength level will |
| 2103 | * then be determined by #KEY_WCDMA_RSCP_THRESHOLDS_INT_ARRAY |
| 2104 | * <p> |
| 2105 | * Currently this only supports the value "rscp" |
| 2106 | * @hide |
| 2107 | */ |
| 2108 | public static final String KEY_WCDMA_DEFAULT_SIGNAL_STRENGTH_MEASUREMENT_STRING = |
| 2109 | "wcdma_default_signal_strength_measurement_string"; |
| 2110 | |
Malcolm Chen | b56234f | 2018-04-16 15:20:38 -0700 | [diff] [blame] | 2111 | /** |
| 2112 | * When a partial sms / mms message stay in raw table for too long without being completed, |
| 2113 | * we expire them and delete them from the raw table. This carrier config defines the |
| 2114 | * expiration time. |
| 2115 | * @hide |
| 2116 | */ |
| 2117 | public static final String KEY_UNDELIVERED_SMS_MESSAGE_EXPIRATION_TIME = |
| 2118 | "undelivered_sms_message_expiration_time"; |
| 2119 | |
sqian | ea8970c | 2018-06-06 22:54:04 -0700 | [diff] [blame] | 2120 | /** |
| 2121 | * Specifies a carrier-defined {@link CallRedirectionService} which Telecom will bind |
| 2122 | * to for outgoing calls. An empty string indicates that no carrier-defined |
| 2123 | * {@link CallRedirectionService} is specified. |
| 2124 | * @hide |
| 2125 | */ |
| 2126 | public static final String KEY_CALL_REDIRECTION_SERVICE_COMPONENT_NAME_STRING = |
| 2127 | "call_redirection_service_component_name_string"; |
Mengjun Leng | c935622 | 2018-08-28 11:05:34 +0800 | [diff] [blame] | 2128 | /** |
| 2129 | * Support for the original string display of CDMA MO call. |
| 2130 | * By default, it is disabled. |
| 2131 | * @hide |
| 2132 | */ |
| 2133 | public static final String KEY_CONFIG_SHOW_ORIG_DIAL_STRING_FOR_CDMA_BOOL = |
| 2134 | "config_show_orig_dial_string_for_cdma"; |
sqian | ea8970c | 2018-06-06 22:54:04 -0700 | [diff] [blame] | 2135 | |
Kikkawa Shohei | 638d11e | 2018-09-21 17:06:07 +0900 | [diff] [blame] | 2136 | /** |
| 2137 | * Flag specifying whether to show notification(call blocking disabled) when Enhanced Call |
| 2138 | * Blocking(KEY_SUPPORT_ENHANCED_CALL_BLOCKING_BOOL) is enabled and making emergency call. |
| 2139 | * When true, notification is shown always. |
| 2140 | * When false, notification is shown only when any setting of "Enhanced Blocked number" is |
| 2141 | * enabled. |
| 2142 | */ |
| 2143 | public static final String KEY_SHOW_CALL_BLOCKING_DISABLED_NOTIFICATION_ALWAYS_BOOL = |
| 2144 | "show_call_blocking_disabled_notification_always_bool"; |
| 2145 | |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 2146 | /** The default value for every variable. */ |
Jonathan Basseri | 4f9ad167 | 2015-05-12 10:06:32 -0700 | [diff] [blame] | 2147 | private final static PersistableBundle sDefaults; |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 2148 | |
| 2149 | static { |
Jonathan Basseri | 4f9ad167 | 2015-05-12 10:06:32 -0700 | [diff] [blame] | 2150 | sDefaults = new PersistableBundle(); |
Brad Ebinger | c860101 | 2016-07-19 14:09:23 -0700 | [diff] [blame] | 2151 | sDefaults.putBoolean(KEY_ALLOW_HOLD_IN_IMS_CALL_BOOL, true); |
Pooja Jain | d34698d | 2017-12-28 14:15:31 +0530 | [diff] [blame] | 2152 | sDefaults.putBoolean(KEY_CARRIER_ALLOW_DEFLECT_IMS_CALL_BOOL, false); |
Tyler Gunn | 3088942 | 2017-11-28 09:04:31 -0800 | [diff] [blame] | 2153 | sDefaults.putBoolean(KEY_ALWAYS_PLAY_REMOTE_HOLD_TONE_BOOL, false); |
Hall Liu | f31f385 | 2018-07-25 18:48:55 -0700 | [diff] [blame] | 2154 | sDefaults.putBoolean(KEY_AUTO_RETRY_FAILED_WIFI_EMERGENCY_CALL, false); |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 2155 | sDefaults.putBoolean(KEY_ADDITIONAL_CALL_SETTING_BOOL, true); |
| 2156 | sDefaults.putBoolean(KEY_ALLOW_EMERGENCY_NUMBERS_IN_CALL_LOG_BOOL, false); |
Hall Liu | e6e6ec4 | 2018-08-03 18:25:24 -0700 | [diff] [blame] | 2157 | sDefaults.putStringArray(KEY_UNLOGGABLE_NUMBERS_STRING_ARRAY, null); |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 2158 | sDefaults.putBoolean(KEY_ALLOW_LOCAL_DTMF_TONES_BOOL, true); |
Tyler Gunn | acdb686 | 2018-01-29 14:30:52 -0800 | [diff] [blame] | 2159 | sDefaults.putBoolean(KEY_PLAY_CALL_RECORDING_TONE_BOOL, false); |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 2160 | sDefaults.putBoolean(KEY_APN_EXPAND_BOOL, true); |
| 2161 | sDefaults.putBoolean(KEY_AUTO_RETRY_ENABLED_BOOL, false); |
| 2162 | sDefaults.putBoolean(KEY_CARRIER_SETTINGS_ENABLE_BOOL, false); |
| 2163 | sDefaults.putBoolean(KEY_CARRIER_VOLTE_AVAILABLE_BOOL, false); |
Junda Liu | e5c7ca7 | 2015-06-24 14:41:14 -0700 | [diff] [blame] | 2164 | sDefaults.putBoolean(KEY_CARRIER_VT_AVAILABLE_BOOL, false); |
Tyler Gunn | 481255d | 2016-08-16 16:04:48 -0700 | [diff] [blame] | 2165 | sDefaults.putBoolean(KEY_NOTIFY_HANDOVER_VIDEO_FROM_WIFI_TO_LTE_BOOL, false); |
Tyler Gunn | 5ce0d3a | 2017-12-14 14:06:15 -0800 | [diff] [blame] | 2166 | sDefaults.putBoolean(KEY_NOTIFY_HANDOVER_VIDEO_FROM_LTE_TO_WIFI_BOOL, false); |
Tyler Gunn | 86d5c3f | 2016-08-12 14:14:13 -0700 | [diff] [blame] | 2167 | sDefaults.putBoolean(KEY_SUPPORT_DOWNGRADE_VT_TO_AUDIO_BOOL, true); |
Jordan Liu | 3ff30d2 | 2016-09-01 13:25:13 -0700 | [diff] [blame] | 2168 | sDefaults.putString(KEY_DEFAULT_VM_NUMBER_STRING, ""); |
SongFerngWang | 310f6d0 | 2018-03-23 15:07:05 +0800 | [diff] [blame] | 2169 | sDefaults.putString(KEY_DEFAULT_VM_NUMBER_ROAMING_STRING, ""); |
Cassie | 4c6f72c | 2017-10-10 14:33:38 -0700 | [diff] [blame] | 2170 | sDefaults.putBoolean(KEY_CONFIG_TELEPHONY_USE_OWN_NUMBER_FOR_VOICEMAIL_BOOL, false); |
Tyler Gunn | 9a961f5 | 2017-08-17 15:58:47 -0700 | [diff] [blame] | 2171 | sDefaults.putBoolean(KEY_IGNORE_DATA_ENABLED_CHANGED_FOR_VIDEO_CALLS, true); |
| 2172 | sDefaults.putBoolean(KEY_VILTE_DATA_IS_METERED_BOOL, true); |
Junda Liu | e478649 | 2015-06-15 13:15:28 -0700 | [diff] [blame] | 2173 | sDefaults.putBoolean(KEY_CARRIER_WFC_IMS_AVAILABLE_BOOL, false); |
fionaxu | dcf5c2b | 2016-05-12 13:40:05 -0700 | [diff] [blame] | 2174 | sDefaults.putBoolean(KEY_CARRIER_WFC_SUPPORTS_WIFI_ONLY_BOOL, false); |
fionaxu | c71e824 | 2016-03-08 11:46:55 -0800 | [diff] [blame] | 2175 | sDefaults.putBoolean(KEY_CARRIER_DEFAULT_WFC_IMS_ENABLED_BOOL, false); |
| 2176 | sDefaults.putBoolean(KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_ENABLED_BOOL, false); |
Tyler Gunn | c3e6c93 | 2016-07-07 10:11:14 -0700 | [diff] [blame] | 2177 | sDefaults.putBoolean(KEY_CARRIER_PROMOTE_WFC_ON_CALL_FAIL_BOOL, false); |
fionaxu | c71e824 | 2016-03-08 11:46:55 -0800 | [diff] [blame] | 2178 | sDefaults.putInt(KEY_CARRIER_DEFAULT_WFC_IMS_MODE_INT, 2); |
Meng Wang | 2c25e4a | 2016-09-19 14:18:05 -0700 | [diff] [blame] | 2179 | sDefaults.putInt(KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_MODE_INT, 2); |
Jack Yu | a4f2da3 | 2015-07-22 13:36:42 -0700 | [diff] [blame] | 2180 | sDefaults.putBoolean(KEY_CARRIER_FORCE_DISABLE_ETWS_CMAS_TEST_BOOL, false); |
Junda Liu | e5c7ca7 | 2015-06-24 14:41:14 -0700 | [diff] [blame] | 2181 | sDefaults.putBoolean(KEY_CARRIER_VOLTE_PROVISIONING_REQUIRED_BOOL, false); |
Meng Wang | 0506299 | 2017-02-14 21:55:09 -0800 | [diff] [blame] | 2182 | sDefaults.putBoolean(KEY_CARRIER_VOLTE_OVERRIDE_WFC_PROVISIONING_BOOL, false); |
Pankaj Kanwar | 9a7abe6 | 2018-03-21 20:20:06 +0000 | [diff] [blame] | 2183 | sDefaults.putBoolean(KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL, true); |
Junda Liu | e5c7ca7 | 2015-06-24 14:41:14 -0700 | [diff] [blame] | 2184 | sDefaults.putBoolean(KEY_CARRIER_ALLOW_TURNOFF_IMS_BOOL, true); |
Pavel Zhamaitsiak | b4faf34 | 2015-10-16 16:39:00 -0700 | [diff] [blame] | 2185 | sDefaults.putBoolean(KEY_CARRIER_IMS_GBA_REQUIRED_BOOL, false); |
Tyler Gunn | ac2aefc | 2015-07-31 15:34:46 -0700 | [diff] [blame] | 2186 | sDefaults.putBoolean(KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL, false); |
Etan Cohen | cd811f0 | 2015-08-18 11:11:29 -0700 | [diff] [blame] | 2187 | sDefaults.putBoolean(KEY_CARRIER_USE_IMS_FIRST_FOR_EMERGENCY_BOOL, true); |
Malcolm Chen | ec10221 | 2018-01-29 15:10:46 -0800 | [diff] [blame] | 2188 | sDefaults.putString(KEY_CARRIER_NETWORK_SERVICE_WWAN_PACKAGE_OVERRIDE_STRING, ""); |
| 2189 | sDefaults.putString(KEY_CARRIER_NETWORK_SERVICE_WLAN_PACKAGE_OVERRIDE_STRING, ""); |
Jack Yu | 4d21a40 | 2018-08-27 16:59:05 -0700 | [diff] [blame] | 2190 | sDefaults.putString(KEY_CARRIER_QUALIFIED_NETWORKS_SERVICE_PACKAGE_OVERRIDE_STRING, ""); |
Jack Yu | fcbda45 | 2018-02-01 14:50:53 -0800 | [diff] [blame] | 2191 | sDefaults.putString(KEY_CARRIER_DATA_SERVICE_WWAN_PACKAGE_OVERRIDE_STRING, ""); |
| 2192 | sDefaults.putString(KEY_CARRIER_DATA_SERVICE_WLAN_PACKAGE_OVERRIDE_STRING, ""); |
Tyler Gunn | eb5fcb9 | 2015-09-04 13:16:37 -0700 | [diff] [blame] | 2193 | sDefaults.putString(KEY_CARRIER_INSTANT_LETTERING_INVALID_CHARS_STRING, ""); |
Tyler Gunn | 14be4cf | 2015-09-10 13:33:28 -0700 | [diff] [blame] | 2194 | sDefaults.putString(KEY_CARRIER_INSTANT_LETTERING_ESCAPED_CHARS_STRING, ""); |
Tyler Gunn | db3da5c | 2015-09-21 22:11:30 -0700 | [diff] [blame] | 2195 | sDefaults.putString(KEY_CARRIER_INSTANT_LETTERING_ENCODING_STRING, ""); |
| 2196 | sDefaults.putInt(KEY_CARRIER_INSTANT_LETTERING_LENGTH_LIMIT_INT, 64); |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 2197 | sDefaults.putBoolean(KEY_DISABLE_CDMA_ACTIVATION_CODE_BOOL, false); |
| 2198 | sDefaults.putBoolean(KEY_DTMF_TYPE_ENABLED_BOOL, false); |
| 2199 | sDefaults.putBoolean(KEY_ENABLE_DIALER_KEY_VIBRATION_BOOL, true); |
| 2200 | sDefaults.putBoolean(KEY_HAS_IN_CALL_NOISE_SUPPRESSION_BOOL, false); |
| 2201 | sDefaults.putBoolean(KEY_HIDE_CARRIER_NETWORK_SETTINGS_BOOL, false); |
Mattias Nilsson | ef87416 | 2017-12-11 13:45:40 +0100 | [diff] [blame] | 2202 | sDefaults.putBoolean(KEY_ONLY_AUTO_SELECT_IN_HOME_NETWORK_BOOL, false); |
Joe LaPenna | 2b22ae3 | 2016-12-07 16:27:24 -0800 | [diff] [blame] | 2203 | sDefaults.putBoolean(KEY_SIMPLIFIED_NETWORK_SETTINGS_BOOL, false); |
Junda Liu | e15cca7 | 2015-06-17 09:55:57 -0700 | [diff] [blame] | 2204 | sDefaults.putBoolean(KEY_HIDE_SIM_LOCK_SETTINGS_BOOL, false); |
Jordan Liu | c82d113 | 2016-10-03 11:35:33 -0700 | [diff] [blame] | 2205 | |
| 2206 | sDefaults.putBoolean(KEY_CARRIER_VOLTE_PROVISIONED_BOOL, false); |
Wenting Xiong | d585368 | 2016-08-12 18:28:37 +0800 | [diff] [blame] | 2207 | sDefaults.putBoolean(KEY_CALL_BARRING_VISIBILITY_BOOL, false); |
Brad Ebinger | 0819bac | 2018-08-29 16:08:29 -0700 | [diff] [blame] | 2208 | sDefaults.putBoolean(KEY_CALL_BARRING_SUPPORTS_PASSWORD_CHANGE_BOOL, true); |
| 2209 | sDefaults.putBoolean(KEY_CALL_BARRING_SUPPORTS_DEACTIVATE_ALL_BOOL, true); |
SongFerngWang | 0605716 | 2018-06-28 17:28:22 +0800 | [diff] [blame] | 2210 | sDefaults.putBoolean(KEY_CALL_FORWARDING_VISIBILITY_BOOL, true); |
| 2211 | sDefaults.putBoolean(KEY_ADDITIONAL_SETTINGS_CALLER_ID_VISIBILITY_BOOL, true); |
| 2212 | sDefaults.putBoolean(KEY_ADDITIONAL_SETTINGS_CALL_WAITING_VISIBILITY_BOOL, true); |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 2213 | sDefaults.putBoolean(KEY_IGNORE_SIM_NETWORK_LOCKED_EVENTS_BOOL, false); |
Jordan Liu | be45b8c | 2016-11-09 13:23:42 -0800 | [diff] [blame] | 2214 | sDefaults.putBoolean(KEY_MDN_IS_ADDITIONAL_VOICEMAIL_NUMBER_BOOL, false); |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 2215 | sDefaults.putBoolean(KEY_OPERATOR_SELECTION_EXPAND_BOOL, true); |
| 2216 | sDefaults.putBoolean(KEY_PREFER_2G_BOOL, true); |
| 2217 | sDefaults.putBoolean(KEY_SHOW_APN_SETTING_CDMA_BOOL, false); |
| 2218 | sDefaults.putBoolean(KEY_SHOW_CDMA_CHOICES_BOOL, false); |
Jordan Liu | 5ac6f5c | 2016-10-03 12:28:27 -0700 | [diff] [blame] | 2219 | sDefaults.putBoolean(KEY_SMS_REQUIRES_DESTINATION_NUMBER_CONVERSION_BOOL, false); |
Avinash Nalluri | ceaf722 | 2018-04-21 14:06:06 -0700 | [diff] [blame] | 2220 | sDefaults.putBoolean(KEY_SUPPORT_EMERGENCY_SMS_OVER_IMS_BOOL, false); |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 2221 | sDefaults.putBoolean(KEY_SHOW_ONSCREEN_DIAL_BUTTON_BOOL, true); |
| 2222 | sDefaults.putBoolean(KEY_SIM_NETWORK_UNLOCK_ALLOW_DISMISS_BOOL, true); |
Omkar Kolangade | 2e8f8fe | 2015-12-22 21:07:04 +0530 | [diff] [blame] | 2223 | sDefaults.putBoolean(KEY_SUPPORT_PAUSE_IMS_VIDEO_CALLS_BOOL, false); |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 2224 | sDefaults.putBoolean(KEY_SUPPORT_SWAP_AFTER_MERGE_BOOL, true); |
| 2225 | sDefaults.putBoolean(KEY_USE_HFA_FOR_PROVISIONING_BOOL, false); |
manabu, shimoda | 1de99d1 | 2017-10-20 17:16:06 +0900 | [diff] [blame] | 2226 | sDefaults.putBoolean(KEY_EDITABLE_VOICEMAIL_NUMBER_SETTING_BOOL, true); |
Jordan Liu | 4a54638 | 2016-09-08 12:45:58 -0700 | [diff] [blame] | 2227 | sDefaults.putBoolean(KEY_EDITABLE_VOICEMAIL_NUMBER_BOOL, false); |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 2228 | sDefaults.putBoolean(KEY_USE_OTASP_FOR_PROVISIONING_BOOL, false); |
| 2229 | sDefaults.putBoolean(KEY_VOICEMAIL_NOTIFICATION_PERSISTENT_BOOL, false); |
Jonathan Basseri | 3360c26 | 2015-06-09 15:16:21 -0700 | [diff] [blame] | 2230 | sDefaults.putBoolean(KEY_VOICE_PRIVACY_DISABLE_UI_BOOL, false); |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 2231 | sDefaults.putBoolean(KEY_WORLD_PHONE_BOOL, false); |
Chris Manton | 1ba0fa0 | 2015-09-01 13:56:46 -0700 | [diff] [blame] | 2232 | sDefaults.putBoolean(KEY_REQUIRE_ENTITLEMENT_CHECKS_BOOL, true); |
Jordan Liu | a5a8b59 | 2016-09-12 10:57:27 -0700 | [diff] [blame] | 2233 | sDefaults.putBoolean(KEY_RESTART_RADIO_ON_PDP_FAIL_REGULAR_DEACTIVATION_BOOL, false); |
Jack Yu | 3399f36 | 2018-08-21 16:57:36 -0700 | [diff] [blame] | 2234 | sDefaults.putIntArray(KEY_RADIO_RESTART_FAILURE_CAUSES_INT_ARRAY, new int[]{}); |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 2235 | sDefaults.putInt(KEY_VOLTE_REPLACEMENT_RAT_INT, 0); |
Junda Liu | e478649 | 2015-06-15 13:15:28 -0700 | [diff] [blame] | 2236 | sDefaults.putString(KEY_DEFAULT_SIM_CALL_MANAGER_STRING, ""); |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 2237 | sDefaults.putString(KEY_VVM_DESTINATION_NUMBER_STRING, ""); |
| 2238 | sDefaults.putInt(KEY_VVM_PORT_NUMBER_INT, 0); |
| 2239 | sDefaults.putString(KEY_VVM_TYPE_STRING, ""); |
Ta-wei Yen | 3f9306f | 2016-04-20 14:46:20 -0700 | [diff] [blame] | 2240 | sDefaults.putBoolean(KEY_VVM_CELLULAR_DATA_REQUIRED_BOOL, false); |
Ta-wei Yen | b618d0f | 2017-01-17 13:52:10 -0800 | [diff] [blame] | 2241 | sDefaults.putString(KEY_VVM_CLIENT_PREFIX_STRING,"//VVM"); |
| 2242 | sDefaults.putBoolean(KEY_VVM_SSL_ENABLED_BOOL,false); |
| 2243 | sDefaults.putStringArray(KEY_VVM_DISABLED_CAPABILITIES_STRING_ARRAY, null); |
| 2244 | sDefaults.putBoolean(KEY_VVM_LEGACY_MODE_ENABLED_BOOL,false); |
Ta-wei Yen | 3f9306f | 2016-04-20 14:46:20 -0700 | [diff] [blame] | 2245 | sDefaults.putBoolean(KEY_VVM_PREFETCH_BOOL, true); |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 2246 | sDefaults.putString(KEY_CARRIER_VVM_PACKAGE_NAME_STRING, ""); |
Ta-wei Yen | b618d0f | 2017-01-17 13:52:10 -0800 | [diff] [blame] | 2247 | sDefaults.putStringArray(KEY_CARRIER_VVM_PACKAGE_NAME_STRING_ARRAY, null); |
Meng Wang | 6b2995a | 2016-03-14 10:08:41 -0700 | [diff] [blame] | 2248 | sDefaults.putBoolean(KEY_SHOW_ICCID_IN_SIM_STATUS_BOOL, false); |
Jordan Liu | a59a5eb | 2017-12-11 16:23:25 -0800 | [diff] [blame] | 2249 | sDefaults.putBoolean(KEY_SHOW_SIGNAL_STRENGTH_IN_SIM_STATUS_BOOL, true); |
Amit Mahajan | 02008b7 | 2015-06-11 14:54:20 -0700 | [diff] [blame] | 2250 | sDefaults.putBoolean(KEY_CI_ACTION_ON_SYS_UPDATE_BOOL, false); |
| 2251 | sDefaults.putString(KEY_CI_ACTION_ON_SYS_UPDATE_INTENT_STRING, ""); |
| 2252 | sDefaults.putString(KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_STRING, ""); |
| 2253 | sDefaults.putString(KEY_CI_ACTION_ON_SYS_UPDATE_EXTRA_VAL_STRING, ""); |
Jonathan Basseri | 019523a | 2015-06-19 11:07:22 -0700 | [diff] [blame] | 2254 | sDefaults.putBoolean(KEY_CSP_ENABLED_BOOL, false); |
Amit Mahajan | 412e7c8 | 2015-10-05 11:05:02 -0700 | [diff] [blame] | 2255 | sDefaults.putBoolean(KEY_ALLOW_ADDING_APNS_BOOL, true); |
Amit Mahajan | 94222f4 | 2017-05-17 15:36:30 -0700 | [diff] [blame] | 2256 | sDefaults.putStringArray(KEY_READ_ONLY_APN_TYPES_STRING_ARRAY, new String[] {"dun"}); |
Amit Mahajan | 71e9ea6 | 2016-09-20 10:57:47 -0700 | [diff] [blame] | 2257 | sDefaults.putStringArray(KEY_READ_ONLY_APN_FIELDS_STRING_ARRAY, null); |
Amit Mahajan | 0c08148 | 2016-01-12 18:25:33 -0800 | [diff] [blame] | 2258 | sDefaults.putBoolean(KEY_BROADCAST_EMERGENCY_CALL_STATE_CHANGES_BOOL, false); |
Jack Yu | 6af6c34 | 2015-09-14 16:18:59 -0700 | [diff] [blame] | 2259 | sDefaults.putBoolean(KEY_ALWAYS_SHOW_EMERGENCY_ALERT_ONOFF_BOOL, false); |
Jack Yu | e794198 | 2016-07-19 15:20:06 -0700 | [diff] [blame] | 2260 | sDefaults.putBoolean(KEY_DISABLE_SEVERE_WHEN_EXTREME_DISABLED_BOOL, true); |
Jack Yu | c045652 | 2016-11-03 12:24:22 -0700 | [diff] [blame] | 2261 | sDefaults.putLong(KEY_MESSAGE_EXPIRATION_TIME_LONG, 86400000L); |
Jack Yu | c1f0e87 | 2016-09-10 00:41:17 -0700 | [diff] [blame] | 2262 | sDefaults.putStringArray(KEY_CARRIER_DATA_CALL_RETRY_CONFIG_STRINGS, new String[]{ |
| 2263 | "default:default_randomization=2000,5000,10000,20000,40000,80000:5000,160000:5000," |
| 2264 | + "320000:5000,640000:5000,1280000:5000,1800000:5000", |
| 2265 | "mms:default_randomization=2000,5000,10000,20000,40000,80000:5000,160000:5000," |
| 2266 | + "320000:5000,640000:5000,1280000:5000,1800000:5000", |
| 2267 | "others:max_retries=3, 5000, 5000, 5000"}); |
Jack Yu | 090dd72 | 2015-12-18 15:16:24 -0800 | [diff] [blame] | 2268 | sDefaults.putLong(KEY_CARRIER_DATA_CALL_APN_DELAY_DEFAULT_LONG, 20000); |
| 2269 | sDefaults.putLong(KEY_CARRIER_DATA_CALL_APN_DELAY_FASTER_LONG, 3000); |
Jack Yu | 5523dc5 | 2017-08-16 14:26:56 -0700 | [diff] [blame] | 2270 | sDefaults.putLong(KEY_CARRIER_DATA_CALL_APN_RETRY_AFTER_DISCONNECT_LONG, 10000); |
Jack Yu | 360dc21 | 2016-04-08 17:11:25 -0700 | [diff] [blame] | 2271 | sDefaults.putString(KEY_CARRIER_ERI_FILE_NAME_STRING, "eri.xml"); |
Abhijith Shastry | d4893587 | 2016-02-04 17:28:03 -0800 | [diff] [blame] | 2272 | sDefaults.putInt(KEY_DURATION_BLOCKING_DISABLED_AFTER_EMERGENCY_INT, 7200); |
Jack Yu | 66a6be3 | 2016-03-30 11:14:39 -0700 | [diff] [blame] | 2273 | sDefaults.putStringArray(KEY_CARRIER_METERED_APN_TYPES_STRINGS, |
| 2274 | new String[]{"default", "mms", "dun", "supl"}); |
fionaxu | 28ffb60 | 2016-04-17 23:56:42 -0700 | [diff] [blame] | 2275 | sDefaults.putStringArray(KEY_CARRIER_METERED_ROAMING_APN_TYPES_STRINGS, |
| 2276 | new String[]{"default", "mms", "dun", "supl"}); |
Jack Yu | 1e9793f | 2018-04-20 16:13:51 -0700 | [diff] [blame] | 2277 | // By default all APNs should be unmetered if the device is on IWLAN. However, we add |
| 2278 | // default APN as metered here as a workaround for P because in some cases, a data |
| 2279 | // connection was brought up on cellular, but later on the device camped on IWLAN. That |
| 2280 | // data connection was incorrectly treated as unmetered due to the current RAT IWLAN. |
| 2281 | // Marking it as metered for now can workaround the issue. |
| 2282 | // Todo: This will be fixed in Q when IWLAN full refactoring is completed. |
Jack Yu | 7dc56ee | 2017-05-20 17:06:33 -0700 | [diff] [blame] | 2283 | sDefaults.putStringArray(KEY_CARRIER_METERED_IWLAN_APN_TYPES_STRINGS, |
Jack Yu | 1e9793f | 2018-04-20 16:13:51 -0700 | [diff] [blame] | 2284 | new String[]{"default"}); |
Jonathan Basseri | f31ac33 | 2015-05-27 01:18:46 -0700 | [diff] [blame] | 2285 | |
Jordan Liu | 2420a0a | 2016-10-04 11:46:03 -0700 | [diff] [blame] | 2286 | sDefaults.putIntArray(KEY_ONLY_SINGLE_DC_ALLOWED_INT_ARRAY, |
| 2287 | new int[]{ |
| 2288 | 4, /* IS95A */ |
| 2289 | 5, /* IS95B */ |
| 2290 | 6, /* 1xRTT */ |
| 2291 | 7, /* EVDO_0 */ |
| 2292 | 8, /* EVDO_A */ |
| 2293 | 12 /* EVDO_B */ |
| 2294 | }); |
Chris Manton | ca16a79 | 2015-06-16 12:06:08 -0700 | [diff] [blame] | 2295 | sDefaults.putStringArray(KEY_GSM_ROAMING_NETWORKS_STRING_ARRAY, null); |
| 2296 | sDefaults.putStringArray(KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY, null); |
Brad Ebinger | 024aaf2 | 2017-01-23 15:17:50 -0800 | [diff] [blame] | 2297 | sDefaults.putString(KEY_CONFIG_IMS_PACKAGE_OVERRIDE_STRING, null); |
Chris Manton | ca16a79 | 2015-06-16 12:06:08 -0700 | [diff] [blame] | 2298 | sDefaults.putStringArray(KEY_CDMA_ROAMING_NETWORKS_STRING_ARRAY, null); |
| 2299 | sDefaults.putStringArray(KEY_CDMA_NONROAMING_NETWORKS_STRING_ARRAY, null); |
Jordan Liu | 02ec2a0 | 2016-09-09 11:48:48 -0700 | [diff] [blame] | 2300 | sDefaults.putStringArray(KEY_DIAL_STRING_REPLACE_STRING_ARRAY, null); |
Chris Manton | 63f25b6 | 2015-06-24 16:47:49 -0700 | [diff] [blame] | 2301 | sDefaults.putBoolean(KEY_FORCE_HOME_NETWORK_BOOL, false); |
Roshan Pius | dc364fe | 2015-09-10 10:28:06 -0700 | [diff] [blame] | 2302 | sDefaults.putInt(KEY_GSM_DTMF_TONE_DELAY_INT, 0); |
Roshan Pius | 9f81ce7 | 2015-08-12 12:01:42 -0700 | [diff] [blame] | 2303 | sDefaults.putInt(KEY_IMS_DTMF_TONE_DELAY_INT, 0); |
Roshan Pius | a52c5e2 | 2015-08-14 12:58:08 -0700 | [diff] [blame] | 2304 | sDefaults.putInt(KEY_CDMA_DTMF_TONE_DELAY_INT, 100); |
Brad Ebinger | 11085643 | 2017-10-12 13:58:55 -0700 | [diff] [blame] | 2305 | sDefaults.putBoolean(KEY_CALL_FORWARDING_MAP_NON_NUMBER_TO_VOICEMAIL_BOOL, false); |
Jordan Liu | e166356 | 2016-09-07 12:01:24 -0700 | [diff] [blame] | 2306 | sDefaults.putInt(KEY_CDMA_3WAYCALL_FLASH_DELAY_INT , 0); |
Sungmin Choi | 8c651ae | 2015-08-14 15:55:13 -0700 | [diff] [blame] | 2307 | sDefaults.putBoolean(KEY_SUPPORT_CONFERENCE_CALL_BOOL, true); |
Wei Huang | a8ad152 | 2016-03-01 15:25:04 +0800 | [diff] [blame] | 2308 | sDefaults.putBoolean(KEY_SUPPORT_IMS_CONFERENCE_CALL_BOOL, true); |
Wei Huang | 594039c | 2016-04-22 14:33:55 +0800 | [diff] [blame] | 2309 | sDefaults.putBoolean(KEY_SUPPORT_MANAGE_IMS_CONFERENCE_CALL_BOOL, true); |
Tyler Gunn | ee61c62 | 2016-04-19 16:17:19 -0700 | [diff] [blame] | 2310 | sDefaults.putBoolean(KEY_SUPPORT_VIDEO_CONFERENCE_CALL_BOOL, false); |
Tyler Gunn | ec5b6e3 | 2016-12-01 19:40:30 -0800 | [diff] [blame] | 2311 | sDefaults.putBoolean(KEY_IS_IMS_CONFERENCE_SIZE_ENFORCED_BOOL, false); |
| 2312 | sDefaults.putInt(KEY_IMS_CONFERENCE_SIZE_LIMIT_INT, 5); |
Wei Huang | 237d775 | 2016-03-01 17:02:40 +0800 | [diff] [blame] | 2313 | sDefaults.putBoolean(KEY_DISPLAY_HD_AUDIO_PROPERTY_BOOL, true); |
Sungmin Choi | 8d2826b | 2015-08-25 23:30:34 -0700 | [diff] [blame] | 2314 | sDefaults.putBoolean(KEY_EDITABLE_ENHANCED_4G_LTE_BOOL, true); |
yinxu | 34016ae | 2017-03-14 15:36:17 -0700 | [diff] [blame] | 2315 | sDefaults.putBoolean(KEY_HIDE_ENHANCED_4G_LTE_BOOL, false); |
manabu, shimoda | 14723e3 | 2017-10-06 14:39:01 +0900 | [diff] [blame] | 2316 | sDefaults.putBoolean(KEY_ENHANCED_4G_LTE_ON_BY_DEFAULT_BOOL, true); |
Sungmin Choi | e9d3c11 | 2015-08-31 15:32:20 -0700 | [diff] [blame] | 2317 | sDefaults.putBoolean(KEY_HIDE_IMS_APN_BOOL, false); |
Sungmin Choi | c03a1da | 2015-09-08 15:34:23 -0700 | [diff] [blame] | 2318 | sDefaults.putBoolean(KEY_HIDE_PREFERRED_NETWORK_TYPE_BOOL, false); |
Tyler Gunn | f083619 | 2016-03-15 20:33:13 -0700 | [diff] [blame] | 2319 | sDefaults.putBoolean(KEY_ALLOW_EMERGENCY_VIDEO_CALLS_BOOL, false); |
Junda Liu | 8531328 | 2017-03-28 13:58:51 -0700 | [diff] [blame] | 2320 | sDefaults.putStringArray(KEY_ENABLE_APPS_STRING_ARRAY, null); |
Sungmin Choi | d3b2826 | 2015-12-23 14:10:41 +0900 | [diff] [blame] | 2321 | sDefaults.putBoolean(KEY_EDITABLE_WFC_MODE_BOOL, true); |
Pavel Zhamaitsiak | 7b7c4fc | 2016-04-12 14:24:07 -0700 | [diff] [blame] | 2322 | sDefaults.putStringArray(KEY_WFC_OPERATOR_ERROR_CODES_STRING_ARRAY, null); |
| 2323 | sDefaults.putInt(KEY_WFC_SPN_FORMAT_IDX_INT, 0); |
| 2324 | sDefaults.putInt(KEY_WFC_DATA_SPN_FORMAT_IDX_INT, 0); |
Torbjorn Eklund | 99c11d8 | 2018-08-21 16:06:47 +0200 | [diff] [blame] | 2325 | sDefaults.putBoolean(KEY_WFC_SPN_USE_ROOT_LOCALE, false); |
Vineeta Srivastava | c7d7ab7 | 2016-05-14 11:05:28 -0700 | [diff] [blame] | 2326 | sDefaults.putString(KEY_WFC_EMERGENCY_ADDRESS_CARRIER_APP_STRING, ""); |
Sunil Dutt | 7c5fda8 | 2016-04-05 22:08:57 +0530 | [diff] [blame] | 2327 | sDefaults.putBoolean(KEY_CONFIG_WIFI_DISABLE_IN_ECBM, false); |
Sanket Padawe | 49b2042 | 2016-06-01 12:17:23 -0700 | [diff] [blame] | 2328 | sDefaults.putBoolean(KEY_CARRIER_NAME_OVERRIDE_BOOL, false); |
| 2329 | sDefaults.putString(KEY_CARRIER_NAME_STRING, ""); |
Amit Mahajan | 22e89f4 | 2018-06-05 16:27:32 -0700 | [diff] [blame] | 2330 | sDefaults.putBoolean(KEY_CDMA_HOME_REGISTERED_PLMN_NAME_OVERRIDE_BOOL, false); |
| 2331 | sDefaults.putString(KEY_CDMA_HOME_REGISTERED_PLMN_NAME_STRING, ""); |
Wileen Chiu | 5e8e308 | 2016-07-15 10:00:09 -0700 | [diff] [blame] | 2332 | sDefaults.putBoolean(KEY_SUPPORT_DIRECT_FDN_DIALING_BOOL, false); |
fionaxu | 7834be2 | 2017-06-22 18:14:23 -0700 | [diff] [blame] | 2333 | sDefaults.putBoolean(KEY_CARRIER_DEFAULT_DATA_ROAMING_ENABLED_BOOL, false); |
DongYuchen | 439f16d | 2017-02-16 18:22:36 +0800 | [diff] [blame] | 2334 | sDefaults.putBoolean(KEY_SKIP_CF_FAIL_TO_DISABLE_DIALOG_BOOL, false); |
Tyler Gunn | 212c157 | 2018-09-12 17:50:49 -0700 | [diff] [blame] | 2335 | sDefaults.putBoolean(KEY_SUPPORT_ENHANCED_CALL_BLOCKING_BOOL, true); |
Chris Manton | ca16a79 | 2015-06-16 12:06:08 -0700 | [diff] [blame] | 2336 | |
Jonathan Basseri | f31ac33 | 2015-05-27 01:18:46 -0700 | [diff] [blame] | 2337 | // MMS defaults |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 2338 | sDefaults.putBoolean(KEY_MMS_ALIAS_ENABLED_BOOL, false); |
| 2339 | sDefaults.putBoolean(KEY_MMS_ALLOW_ATTACH_AUDIO_BOOL, true); |
| 2340 | sDefaults.putBoolean(KEY_MMS_APPEND_TRANSACTION_ID_BOOL, false); |
| 2341 | sDefaults.putBoolean(KEY_MMS_GROUP_MMS_ENABLED_BOOL, true); |
| 2342 | sDefaults.putBoolean(KEY_MMS_MMS_DELIVERY_REPORT_ENABLED_BOOL, false); |
| 2343 | sDefaults.putBoolean(KEY_MMS_MMS_ENABLED_BOOL, true); |
| 2344 | sDefaults.putBoolean(KEY_MMS_MMS_READ_REPORT_ENABLED_BOOL, false); |
| 2345 | sDefaults.putBoolean(KEY_MMS_MULTIPART_SMS_ENABLED_BOOL, true); |
| 2346 | sDefaults.putBoolean(KEY_MMS_NOTIFY_WAP_MMSC_ENABLED_BOOL, false); |
| 2347 | sDefaults.putBoolean(KEY_MMS_SEND_MULTIPART_SMS_AS_SEPARATE_MESSAGES_BOOL, false); |
| 2348 | sDefaults.putBoolean(KEY_MMS_SHOW_CELL_BROADCAST_APP_LINKS_BOOL, true); |
| 2349 | sDefaults.putBoolean(KEY_MMS_SMS_DELIVERY_REPORT_ENABLED_BOOL, true); |
| 2350 | sDefaults.putBoolean(KEY_MMS_SUPPORT_HTTP_CHARSET_HEADER_BOOL, false); |
| 2351 | sDefaults.putBoolean(KEY_MMS_SUPPORT_MMS_CONTENT_DISPOSITION_BOOL, true); |
Ye Wen | 406a41b | 2016-07-18 14:36:22 -0700 | [diff] [blame] | 2352 | sDefaults.putBoolean(KEY_MMS_CLOSE_CONNECTION_BOOL, false); |
Jonathan Basseri | 69822f0 | 2015-06-04 13:48:08 -0700 | [diff] [blame] | 2353 | sDefaults.putInt(KEY_MMS_ALIAS_MAX_CHARS_INT, 48); |
| 2354 | sDefaults.putInt(KEY_MMS_ALIAS_MIN_CHARS_INT, 2); |
| 2355 | sDefaults.putInt(KEY_MMS_HTTP_SOCKET_TIMEOUT_INT, 60 * 1000); |
| 2356 | sDefaults.putInt(KEY_MMS_MAX_IMAGE_HEIGHT_INT, 480); |
| 2357 | sDefaults.putInt(KEY_MMS_MAX_IMAGE_WIDTH_INT, 640); |
| 2358 | sDefaults.putInt(KEY_MMS_MAX_MESSAGE_SIZE_INT, 300 * 1024); |
| 2359 | sDefaults.putInt(KEY_MMS_MESSAGE_TEXT_MAX_SIZE_INT, -1); |
| 2360 | sDefaults.putInt(KEY_MMS_RECIPIENT_LIMIT_INT, Integer.MAX_VALUE); |
| 2361 | sDefaults.putInt(KEY_MMS_SMS_TO_MMS_TEXT_LENGTH_THRESHOLD_INT, -1); |
| 2362 | sDefaults.putInt(KEY_MMS_SMS_TO_MMS_TEXT_THRESHOLD_INT, -1); |
| 2363 | sDefaults.putInt(KEY_MMS_SUBJECT_MAX_LENGTH_INT, 40); |
| 2364 | sDefaults.putString(KEY_MMS_EMAIL_GATEWAY_NUMBER_STRING, ""); |
| 2365 | sDefaults.putString(KEY_MMS_HTTP_PARAMS_STRING, ""); |
| 2366 | sDefaults.putString(KEY_MMS_NAI_SUFFIX_STRING, ""); |
| 2367 | sDefaults.putString(KEY_MMS_UA_PROF_TAG_NAME_STRING, "x-wap-profile"); |
| 2368 | sDefaults.putString(KEY_MMS_UA_PROF_URL_STRING, ""); |
| 2369 | sDefaults.putString(KEY_MMS_USER_AGENT_STRING, ""); |
Tyler Gunn | 387ce2f | 2015-08-28 14:14:11 -0700 | [diff] [blame] | 2370 | sDefaults.putBoolean(KEY_ALLOW_NON_EMERGENCY_CALLS_IN_ECM_BOOL, true); |
Tyler Gunn | 3e122f7 | 2016-01-11 19:25:00 -0800 | [diff] [blame] | 2371 | sDefaults.putBoolean(KEY_USE_RCS_PRESENCE_BOOL, false); |
Junda Liu | 276f4d6 | 2016-07-14 13:55:03 -0700 | [diff] [blame] | 2372 | sDefaults.putBoolean(KEY_FORCE_IMEI_BOOL, false); |
Jeff Davidson | af1d320 | 2017-10-25 12:51:43 -0700 | [diff] [blame] | 2373 | sDefaults.putInt( |
| 2374 | KEY_CDMA_ROAMING_MODE_INT, TelephonyManager.CDMA_ROAMING_MODE_RADIO_DEFAULT); |
Abhijith Shastry | 2215c9b | 2016-08-24 15:17:39 -0700 | [diff] [blame] | 2375 | sDefaults.putString(KEY_RCS_CONFIG_SERVER_URL_STRING, ""); |
fionaxu | b5592dc | 2016-04-08 13:19:31 -0700 | [diff] [blame] | 2376 | |
fionaxu | 1bf6ec2 | 2016-05-23 16:33:16 -0700 | [diff] [blame] | 2377 | // Carrier Signalling Receivers |
Stuart Scott | 9abc273 | 2016-05-11 15:42:01 -0700 | [diff] [blame] | 2378 | sDefaults.putString(KEY_CARRIER_SETUP_APP_STRING, ""); |
fionaxu | b537d74 | 2017-09-06 12:07:14 -0700 | [diff] [blame] | 2379 | sDefaults.putStringArray(KEY_CARRIER_APP_WAKE_SIGNAL_CONFIG_STRING_ARRAY, |
| 2380 | new String[]{ |
| 2381 | "com.android.carrierdefaultapp/.CarrierDefaultBroadcastReceiver:" |
| 2382 | + "com.android.internal.telephony.CARRIER_SIGNAL_RESET" |
| 2383 | }); |
fionaxu | 41ca937 | 2016-11-17 16:46:30 -0800 | [diff] [blame] | 2384 | sDefaults.putStringArray(KEY_CARRIER_APP_NO_WAKE_SIGNAL_CONFIG_STRING_ARRAY, null); |
| 2385 | |
Robert Greenwalt | 60551b6 | 2016-06-09 16:28:40 -0700 | [diff] [blame] | 2386 | |
fionaxu | a21a87b | 2016-12-13 17:15:11 -0800 | [diff] [blame] | 2387 | // Default carrier app configurations |
| 2388 | sDefaults.putStringArray(KEY_CARRIER_DEFAULT_ACTIONS_ON_REDIRECTION_STRING_ARRAY, |
| 2389 | new String[]{ |
fionaxu | d60a9d0 | 2017-05-23 14:55:27 -0700 | [diff] [blame] | 2390 | "9, 4, 1" |
| 2391 | //9: CARRIER_ACTION_REGISTER_NETWORK_AVAIL |
fionaxu | a21a87b | 2016-12-13 17:15:11 -0800 | [diff] [blame] | 2392 | //4: CARRIER_ACTION_DISABLE_METERED_APNS |
| 2393 | //1: CARRIER_ACTION_SHOW_PORTAL_NOTIFICATION |
| 2394 | }); |
fionaxu | 77f466d | 2017-04-26 16:05:25 -0700 | [diff] [blame] | 2395 | sDefaults.putStringArray(KEY_CARRIER_DEFAULT_ACTIONS_ON_RESET, new String[]{ |
fionaxu | d60a9d0 | 2017-05-23 14:55:27 -0700 | [diff] [blame] | 2396 | "6, 8" |
| 2397 | //6: CARRIER_ACTION_CANCEL_ALL_NOTIFICATIONS |
| 2398 | //8: CARRIER_ACTION_DISABLE_DEFAULT_URL_HANDLER |
| 2399 | }); |
| 2400 | sDefaults.putStringArray(KEY_CARRIER_DEFAULT_ACTIONS_ON_DEFAULT_NETWORK_AVAILABLE, |
| 2401 | new String[] { |
| 2402 | String.valueOf(false) + ": 7", |
| 2403 | //7: CARRIER_ACTION_ENABLE_DEFAULT_URL_HANDLER |
| 2404 | String.valueOf(true) + ": 8" |
| 2405 | //8: CARRIER_ACTION_DISABLE_DEFAULT_URL_HANDLER |
fionaxu | 77f466d | 2017-04-26 16:05:25 -0700 | [diff] [blame] | 2406 | }); |
fionaxu | a21a87b | 2016-12-13 17:15:11 -0800 | [diff] [blame] | 2407 | sDefaults.putStringArray(KEY_CARRIER_DEFAULT_REDIRECTION_URL_STRING_ARRAY, null); |
| 2408 | |
Ammar Aijazi | 11b4498 | 2017-01-17 17:32:15 -0800 | [diff] [blame] | 2409 | sDefaults.putInt(KEY_MONTHLY_DATA_CYCLE_DAY_INT, DATA_CYCLE_USE_PLATFORM_DEFAULT); |
| 2410 | sDefaults.putLong(KEY_DATA_WARNING_THRESHOLD_BYTES_LONG, DATA_CYCLE_USE_PLATFORM_DEFAULT); |
Jeff Sharkey | 0a5570d | 2018-04-10 12:38:29 -0600 | [diff] [blame] | 2411 | sDefaults.putBoolean(KEY_DATA_WARNING_NOTIFICATION_BOOL, true); |
Ammar Aijazi | 11b4498 | 2017-01-17 17:32:15 -0800 | [diff] [blame] | 2412 | sDefaults.putLong(KEY_DATA_LIMIT_THRESHOLD_BYTES_LONG, DATA_CYCLE_USE_PLATFORM_DEFAULT); |
Jeff Sharkey | 0a5570d | 2018-04-10 12:38:29 -0600 | [diff] [blame] | 2413 | sDefaults.putBoolean(KEY_DATA_LIMIT_NOTIFICATION_BOOL, true); |
| 2414 | sDefaults.putBoolean(KEY_DATA_RAPID_NOTIFICATION_BOOL, true); |
Ammar Aijazi | 11b4498 | 2017-01-17 17:32:15 -0800 | [diff] [blame] | 2415 | |
Ajay Nambi | 7965fa4 | 2015-05-14 18:48:33 -0700 | [diff] [blame] | 2416 | // Rat families: {GPRS, EDGE}, {EVDO, EVDO_A, EVDO_B}, {UMTS, HSPA, HSDPA, HSUPA, HSPAP}, |
| 2417 | // {LTE, LTE_CA} |
Robert Greenwalt | 60551b6 | 2016-06-09 16:28:40 -0700 | [diff] [blame] | 2418 | // Order is important - lowest precidence first |
| 2419 | sDefaults.putStringArray(KEY_RATCHET_RAT_FAMILIES, |
Ajay Nambi | 7965fa4 | 2015-05-14 18:48:33 -0700 | [diff] [blame] | 2420 | new String[]{"1,2","7,8,12","3,11,9,10,15","14,19"}); |
Tyler Gunn | 7d633d3 | 2016-06-24 07:30:10 -0700 | [diff] [blame] | 2421 | sDefaults.putBoolean(KEY_TREAT_DOWNGRADED_VIDEO_CALLS_AS_VIDEO_CALLS_BOOL, false); |
| 2422 | sDefaults.putBoolean(KEY_DROP_VIDEO_CALL_WHEN_ANSWERING_AUDIO_CALL_BOOL, false); |
| 2423 | sDefaults.putBoolean(KEY_ALLOW_MERGE_WIFI_CALLS_WHEN_VOWIFI_OFF_BOOL, true); |
Hall Liu | 1020866 | 2016-06-15 17:55:00 -0700 | [diff] [blame] | 2424 | sDefaults.putBoolean(KEY_ALLOW_ADD_CALL_DURING_VIDEO_CALL_BOOL, true); |
Hall Liu | 7c3c28b | 2016-07-19 11:18:49 -0700 | [diff] [blame] | 2425 | sDefaults.putBoolean(KEY_WIFI_CALLS_CAN_BE_HD_AUDIO, true); |
| 2426 | sDefaults.putBoolean(KEY_VIDEO_CALLS_CAN_BE_HD_AUDIO, true); |
Alex Khlivnuik | abdd37c | 2017-11-29 12:18:05 +0900 | [diff] [blame] | 2427 | sDefaults.putBoolean(KEY_GSM_CDMA_CALLS_CAN_BE_HD_AUDIO, false); |
Ta-wei Yen | 9d20d98 | 2017-06-02 11:07:07 -0700 | [diff] [blame] | 2428 | sDefaults.putBoolean(KEY_ALLOW_VIDEO_CALLING_FALLBACK_BOOL, true); |
Tyler Gunn | c96b5e0 | 2016-07-07 22:53:57 -0700 | [diff] [blame] | 2429 | |
| 2430 | sDefaults.putStringArray(KEY_IMS_REASONINFO_MAPPING_STRING_ARRAY, null); |
Meng Wang | 542e262 | 2016-08-03 10:18:36 -0700 | [diff] [blame] | 2431 | sDefaults.putBoolean(KEY_ENHANCED_4G_LTE_TITLE_VARIANT_BOOL, false); |
clownshen | 6400b93 | 2018-08-16 16:54:16 +0800 | [diff] [blame^] | 2432 | sDefaults.putInt(KEY_ENHANCED_4G_LTE_TITLE_VARIANT_INT, 0); |
Tyler Gunn | 0f20d93 | 2016-08-09 15:56:43 -0700 | [diff] [blame] | 2433 | sDefaults.putBoolean(KEY_NOTIFY_VT_HANDOVER_TO_WIFI_FAILURE_BOOL, false); |
Jordan Liu | 1ca2e31d | 2016-12-01 11:39:30 -0800 | [diff] [blame] | 2434 | sDefaults.putStringArray(KEY_FILTERED_CNAP_NAMES_STRING_ARRAY, null); |
Meng Wang | 2c25e4a | 2016-09-19 14:18:05 -0700 | [diff] [blame] | 2435 | sDefaults.putBoolean(KEY_EDITABLE_WFC_ROAMING_MODE_BOOL, false); |
Sooraj Sasindran | 6a3d36f | 2016-10-13 11:36:34 -0700 | [diff] [blame] | 2436 | sDefaults.putBoolean(KEY_STK_DISABLE_LAUNCH_BROWSER_BOOL, false); |
Siddharth Ray | 9943c7b | 2018-04-04 17:07:35 -0700 | [diff] [blame] | 2437 | sDefaults.putBoolean(KEY_PERSIST_LPP_MODE_BOOL, true); |
pkanwar | d0063ae | 2016-11-23 11:20:30 -0800 | [diff] [blame] | 2438 | sDefaults.putStringArray(KEY_CARRIER_WIFI_STRING_ARRAY, null); |
pkanwar | ffd4583 | 2016-12-11 17:45:50 -0800 | [diff] [blame] | 2439 | sDefaults.putInt(KEY_PREF_NETWORK_NOTIFICATION_DELAY_INT, -1); |
pkanwar | 68e3de7 | 2017-08-13 12:18:19 -0700 | [diff] [blame] | 2440 | sDefaults.putInt(KEY_EMERGENCY_NOTIFICATION_DELAY_INT, -1); |
Tyler Gunn | 02212db | 2017-06-05 11:26:46 -0700 | [diff] [blame] | 2441 | sDefaults.putBoolean(KEY_ALLOW_USSD_REQUESTS_VIA_TELEPHONY_MANAGER_BOOL, true); |
Brad Ebinger | 17acc15 | 2016-12-09 13:18:30 -0800 | [diff] [blame] | 2442 | sDefaults.putBoolean(KEY_SUPPORT_3GPP_CALL_FORWARDING_WHILE_ROAMING_BOOL, true); |
Qiong Liu | 48fe53f | 2017-10-16 17:04:30 +0800 | [diff] [blame] | 2443 | sDefaults.putBoolean(KEY_DISPLAY_VOICEMAIL_NUMBER_AS_DEFAULT_CALL_FORWARDING_NUMBER_BOOL, |
| 2444 | false); |
Tyler Gunn | 662ae09 | 2017-02-16 16:21:14 -0800 | [diff] [blame] | 2445 | sDefaults.putBoolean(KEY_NOTIFY_INTERNATIONAL_CALL_ON_WFC_BOOL, false); |
Masaho Nishikawa | 4c7511c | 2017-12-18 14:33:38 +0900 | [diff] [blame] | 2446 | sDefaults.putBoolean(KEY_SHOW_VIDEO_CALL_CHARGES_ALERT_DIALOG_BOOL, false); |
Brad Ebinger | 9ab4321 | 2016-12-12 14:57:37 -0800 | [diff] [blame] | 2447 | sDefaults.putStringArray(KEY_CALL_FORWARDING_BLOCKS_WHILE_ROAMING_STRING_ARRAY, |
| 2448 | null); |
Sooraj Sasindran | 1b7bec5 | 2017-03-08 23:43:17 -0800 | [diff] [blame] | 2449 | sDefaults.putInt(KEY_LTE_EARFCNS_RSRP_BOOST_INT, 0); |
| 2450 | sDefaults.putStringArray(KEY_BOOSTED_LTE_EARFCNS_STRING_ARRAY, null); |
Wenting Xiong | cb35e99 | 2017-10-18 15:05:49 +0900 | [diff] [blame] | 2451 | sDefaults.putBoolean(KEY_USE_ONLY_RSRP_FOR_LTE_SIGNAL_BAR_BOOL, false); |
Sanket Padawe | db688bb | 2017-03-28 15:26:13 -0700 | [diff] [blame] | 2452 | sDefaults.putBoolean(KEY_DISABLE_VOICE_BARRING_NOTIFICATION_BOOL, false); |
pkanwar | becc869 | 2017-07-04 16:04:44 -0700 | [diff] [blame] | 2453 | sDefaults.putInt(IMSI_KEY_AVAILABILITY_INT, 0); |
pkanwar | 232573f | 2017-05-31 13:10:03 -0700 | [diff] [blame] | 2454 | sDefaults.putString(IMSI_KEY_DOWNLOAD_URL_STRING, null); |
Naveen Kalla | abd2842 | 2017-07-11 20:03:58 -0700 | [diff] [blame] | 2455 | sDefaults.putBoolean(KEY_CONVERT_CDMA_CALLER_ID_MMI_CODES_WHILE_ROAMING_ON_3GPP_BOOL, |
| 2456 | false); |
Naveen Kalla | 7e15c58 | 2017-07-13 20:43:21 -0700 | [diff] [blame] | 2457 | sDefaults.putStringArray(KEY_NON_ROAMING_OPERATOR_STRING_ARRAY, null); |
fionaxu | 1c6027c | 2017-06-01 18:52:17 -0700 | [diff] [blame] | 2458 | sDefaults.putStringArray(KEY_ROAMING_OPERATOR_STRING_ARRAY, null); |
Ping Sun | e0e3cbd | 2016-03-02 19:09:27 +0800 | [diff] [blame] | 2459 | sDefaults.putBoolean(KEY_SHOW_IMS_REGISTRATION_STATUS_BOOL, false); |
Hall Liu | 47ed620 | 2017-11-20 16:25:39 -0800 | [diff] [blame] | 2460 | sDefaults.putBoolean(KEY_RTT_SUPPORTED_BOOL, false); |
Omata Shou | 9766b18 | 2017-08-22 17:17:55 +0900 | [diff] [blame] | 2461 | sDefaults.putBoolean(KEY_DISABLE_CHARGE_INDICATION_BOOL, false); |
manabu, shimoda | 6ce3138 | 2017-12-25 18:38:47 +0900 | [diff] [blame] | 2462 | sDefaults.putBoolean(KEY_SUPPORT_NO_REPLY_TIMER_FOR_CFNRY_BOOL, true); |
Kazuya Ohshiro | 990af17 | 2017-09-27 16:02:55 +0900 | [diff] [blame] | 2463 | sDefaults.putStringArray(KEY_FEATURE_ACCESS_CODES_STRING_ARRAY, null); |
Kazuya Ohshiro | b8981ba | 2017-10-27 16:26:15 +0900 | [diff] [blame] | 2464 | sDefaults.putBoolean(KEY_IDENTIFY_HIGH_DEFINITION_CALLS_IN_CALL_LOG_BOOL, false); |
Wenting Xiong | f21f3cf | 2016-04-01 15:25:45 +0800 | [diff] [blame] | 2465 | sDefaults.putBoolean(KEY_SHOW_PRECISE_FAILED_CAUSE_BOOL, false); |
Masaho Nishikawa | 4018435 | 2017-11-01 20:33:36 +0900 | [diff] [blame] | 2466 | sDefaults.putBoolean(KEY_SPN_DISPLAY_RULE_USE_ROAMING_FROM_SERVICE_STATE_BOOL, false); |
Wenting Xiong | 63364fe | 2017-02-07 19:12:27 +0800 | [diff] [blame] | 2467 | sDefaults.putBoolean(KEY_ALWAYS_SHOW_DATA_RAT_ICON_BOOL, false); |
yinxu | 0d56f3c | 2017-11-29 15:02:05 -0800 | [diff] [blame] | 2468 | sDefaults.putBoolean(KEY_CARRIER_CONFIG_APPLIED_BOOL, false); |
pkanwar | 1e96fae | 2018-01-03 18:41:18 -0800 | [diff] [blame] | 2469 | sDefaults.putBoolean(KEY_CHECK_PRICING_WITH_CARRIER_FOR_DATA_ROAMING_BOOL, false); |
Kitta Koutarou | 911f56c | 2017-12-01 19:19:49 +0900 | [diff] [blame] | 2470 | sDefaults.putIntArray(KEY_LTE_RSRP_THRESHOLDS_INT_ARRAY, |
| 2471 | new int[] { |
Kitta Koutarou | 911f56c | 2017-12-01 19:19:49 +0900 | [diff] [blame] | 2472 | -128, /* SIGNAL_STRENGTH_POOR */ |
| 2473 | -118, /* SIGNAL_STRENGTH_MODERATE */ |
| 2474 | -108, /* SIGNAL_STRENGTH_GOOD */ |
| 2475 | -98, /* SIGNAL_STRENGTH_GREAT */ |
Kitta Koutarou | 911f56c | 2017-12-01 19:19:49 +0900 | [diff] [blame] | 2476 | }); |
Tomita, Ryounosuke X | d41feee | 2017-12-13 18:46:12 +0900 | [diff] [blame] | 2477 | sDefaults.putIntArray(KEY_WCDMA_RSCP_THRESHOLDS_INT_ARRAY, |
| 2478 | new int[] { |
| 2479 | -115, /* SIGNAL_STRENGTH_POOR */ |
| 2480 | -105, /* SIGNAL_STRENGTH_MODERATE */ |
| 2481 | -95, /* SIGNAL_STRENGTH_GOOD */ |
| 2482 | -85 /* SIGNAL_STRENGTH_GREAT */ |
| 2483 | }); |
| 2484 | sDefaults.putString(KEY_WCDMA_DEFAULT_SIGNAL_STRENGTH_MEASUREMENT_STRING, ""); |
Mengjun Leng | c935622 | 2018-08-28 11:05:34 +0800 | [diff] [blame] | 2485 | sDefaults.putBoolean(KEY_CONFIG_SHOW_ORIG_DIAL_STRING_FOR_CDMA_BOOL, false); |
Kikkawa Shohei | 638d11e | 2018-09-21 17:06:07 +0900 | [diff] [blame] | 2486 | sDefaults.putBoolean(KEY_SHOW_CALL_BLOCKING_DISABLED_NOTIFICATION_ALWAYS_BOOL, false); |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 2487 | } |
| 2488 | |
| 2489 | /** |
| 2490 | * Gets the configuration values for a particular subscription, which is associated with a |
| 2491 | * specific SIM card. If an invalid subId is used, the returned config will contain default |
yinxu | 349b644 | 2018-03-16 10:16:53 -0700 | [diff] [blame] | 2492 | * values. After using this method to get the configuration bundle, |
| 2493 | * {@link #isConfigForIdentifiedCarrier(PersistableBundle)} should be called to confirm whether |
| 2494 | * any carrier specific configuration has been applied. |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 2495 | * |
Junda Liu | fbd740c | 2015-06-18 16:29:35 -0700 | [diff] [blame] | 2496 | * <p>Requires Permission: |
| 2497 | * {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE} |
| 2498 | * |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 2499 | * @param subId the subscription ID, normally obtained from {@link SubscriptionManager}. |
Jonathan Basseri | 4f9ad167 | 2015-05-12 10:06:32 -0700 | [diff] [blame] | 2500 | * @return A {@link PersistableBundle} containing the config for the given subId, or default |
| 2501 | * values for an invalid subId. |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 2502 | */ |
Jonathan Basseri | b731c3d | 2015-05-05 12:00:59 -0700 | [diff] [blame] | 2503 | @Nullable |
Jonathan Basseri | 4f9ad167 | 2015-05-12 10:06:32 -0700 | [diff] [blame] | 2504 | public PersistableBundle getConfigForSubId(int subId) { |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 2505 | try { |
Chenjie Luo | 90bc39d | 2015-12-03 12:24:12 -0800 | [diff] [blame] | 2506 | ICarrierConfigLoader loader = getICarrierConfigLoader(); |
| 2507 | if (loader == null) { |
| 2508 | Rlog.w(TAG, "Error getting config for subId " + subId |
| 2509 | + " ICarrierConfigLoader is null"); |
| 2510 | return null; |
| 2511 | } |
Malcolm Chen | d1272d1 | 2018-02-28 15:20:45 -0800 | [diff] [blame] | 2512 | return loader.getConfigForSubId(subId, mContext.getOpPackageName()); |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 2513 | } catch (RemoteException ex) { |
Chenjie Luo | 90bc39d | 2015-12-03 12:24:12 -0800 | [diff] [blame] | 2514 | Rlog.e(TAG, "Error getting config for subId " + subId + ": " |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 2515 | + ex.toString()); |
| 2516 | } |
| 2517 | return null; |
| 2518 | } |
| 2519 | |
| 2520 | /** |
yinxu | 349b644 | 2018-03-16 10:16:53 -0700 | [diff] [blame] | 2521 | * Gets the configuration values for the default subscription. After using this method to get |
| 2522 | * the configuration bundle, {@link #isConfigForIdentifiedCarrier(PersistableBundle)} should be |
| 2523 | * called to confirm whether any carrier specific configuration has been applied. |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 2524 | * |
Junda Liu | fbd740c | 2015-06-18 16:29:35 -0700 | [diff] [blame] | 2525 | * <p>Requires Permission: |
| 2526 | * {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE} |
| 2527 | * |
Derek Tan | 818822a | 2016-05-25 18:37:05 +0000 | [diff] [blame] | 2528 | * @see #getConfigForSubId |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 2529 | */ |
Jonathan Basseri | b731c3d | 2015-05-05 12:00:59 -0700 | [diff] [blame] | 2530 | @Nullable |
Jonathan Basseri | 4f9ad167 | 2015-05-12 10:06:32 -0700 | [diff] [blame] | 2531 | public PersistableBundle getConfig() { |
Derek Tan | 818822a | 2016-05-25 18:37:05 +0000 | [diff] [blame] | 2532 | return getConfigForSubId(SubscriptionManager.getDefaultSubscriptionId()); |
Shishir Agrawal | 3bf26b5 | 2016-02-17 15:52:09 -0800 | [diff] [blame] | 2533 | } |
| 2534 | |
| 2535 | /** |
yinxu | 0d56f3c | 2017-11-29 15:02:05 -0800 | [diff] [blame] | 2536 | * Determines whether a configuration {@link PersistableBundle} obtained from |
| 2537 | * {@link #getConfig()} or {@link #getConfigForSubId(int)} corresponds to an identified carrier. |
| 2538 | * <p> |
| 2539 | * When an app receives the {@link CarrierConfigManager#ACTION_CARRIER_CONFIG_CHANGED} |
| 2540 | * broadcast which informs it that the carrier configuration has changed, it is possible |
| 2541 | * that another reload of the carrier configuration has begun since the intent was sent. |
| 2542 | * In this case, the carrier configuration the app fetches (e.g. via {@link #getConfig()}) |
| 2543 | * may not represent the configuration for the current carrier. It should be noted that it |
| 2544 | * does not necessarily mean the configuration belongs to current carrier when this function |
| 2545 | * return true because it may belong to another previous identified carrier. Users should |
| 2546 | * always call {@link #getConfig()} or {@link #getConfigForSubId(int)} after receiving the |
| 2547 | * broadcast {@link #ACTION_CARRIER_CONFIG_CHANGED}. |
| 2548 | * </p> |
| 2549 | * <p> |
| 2550 | * After using {@link #getConfig()} or {@link #getConfigForSubId(int)} an app should always |
| 2551 | * use this method to confirm whether any carrier specific configuration has been applied. |
yinxu | 349b644 | 2018-03-16 10:16:53 -0700 | [diff] [blame] | 2552 | * Especially when an app misses the broadcast {@link #ACTION_CARRIER_CONFIG_CHANGED} but it |
| 2553 | * still needs to get the current configuration, it must use this method to verify whether the |
| 2554 | * configuration is default or carrier overridden. |
yinxu | 0d56f3c | 2017-11-29 15:02:05 -0800 | [diff] [blame] | 2555 | * </p> |
| 2556 | * |
| 2557 | * @param bundle the configuration bundle to be checked. |
| 2558 | * @return boolean true if any carrier specific configuration bundle has been applied, false |
| 2559 | * otherwise or the bundle is null. |
| 2560 | */ |
| 2561 | public static boolean isConfigForIdentifiedCarrier(PersistableBundle bundle) { |
| 2562 | return bundle != null && bundle.getBoolean(KEY_CARRIER_CONFIG_APPLIED_BOOL); |
| 2563 | } |
| 2564 | |
| 2565 | /** |
Shishir Agrawal | 3bf26b5 | 2016-02-17 15:52:09 -0800 | [diff] [blame] | 2566 | * Calling this method triggers telephony services to fetch the current carrier configuration. |
| 2567 | * <p> |
| 2568 | * Normally this does not need to be called because the platform reloads config on its own. |
| 2569 | * This should be called by a carrier service app if it wants to update config at an arbitrary |
| 2570 | * moment. |
| 2571 | * </p> |
| 2572 | * <p>Requires that the calling app has carrier privileges. |
Shishir Agrawal | 3bf26b5 | 2016-02-17 15:52:09 -0800 | [diff] [blame] | 2573 | * <p> |
| 2574 | * This method returns before the reload has completed, and |
| 2575 | * {@link android.service.carrier.CarrierService#onLoadConfig} will be called from an |
| 2576 | * arbitrary thread. |
| 2577 | * </p> |
Ricardo Loo Foronda | f2a8aea | 2017-10-26 17:02:31 -0700 | [diff] [blame] | 2578 | * @see TelephonyManager#hasCarrierPrivileges |
Shishir Agrawal | 3bf26b5 | 2016-02-17 15:52:09 -0800 | [diff] [blame] | 2579 | */ |
| 2580 | public void notifyConfigChangedForSubId(int subId) { |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 2581 | try { |
Chenjie Luo | 90bc39d | 2015-12-03 12:24:12 -0800 | [diff] [blame] | 2582 | ICarrierConfigLoader loader = getICarrierConfigLoader(); |
| 2583 | if (loader == null) { |
| 2584 | Rlog.w(TAG, "Error reloading config for subId=" + subId |
| 2585 | + " ICarrierConfigLoader is null"); |
| 2586 | return; |
| 2587 | } |
| 2588 | loader.notifyConfigChangedForSubId(subId); |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 2589 | } catch (RemoteException ex) { |
| 2590 | Rlog.e(TAG, "Error reloading config for subId=" + subId + ": " + ex.toString()); |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 2591 | } |
| 2592 | } |
| 2593 | |
| 2594 | /** |
| 2595 | * Request the carrier config loader to update the cofig for phoneId. |
Jonathan Basseri | 9b56ad8 | 2015-04-27 14:14:38 -0700 | [diff] [blame] | 2596 | * <p> |
| 2597 | * Depending on simState, the config may be cleared or loaded from config app. This is only used |
| 2598 | * by SubscriptionInfoUpdater. |
| 2599 | * </p> |
Nancy Chen | 9e4cd83 | 2015-05-22 17:29:43 -0700 | [diff] [blame] | 2600 | * |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 2601 | * @hide |
| 2602 | */ |
| 2603 | @SystemApi |
Jeff Sharkey | d86b8fe | 2017-06-02 17:36:26 -0600 | [diff] [blame] | 2604 | @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 2605 | public void updateConfigForPhoneId(int phoneId, String simState) { |
| 2606 | try { |
Chenjie Luo | 90bc39d | 2015-12-03 12:24:12 -0800 | [diff] [blame] | 2607 | ICarrierConfigLoader loader = getICarrierConfigLoader(); |
| 2608 | if (loader == null) { |
| 2609 | Rlog.w(TAG, "Error updating config for phoneId=" + phoneId |
| 2610 | + " ICarrierConfigLoader is null"); |
| 2611 | return; |
| 2612 | } |
| 2613 | loader.updateConfigForPhoneId(phoneId, simState); |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 2614 | } catch (RemoteException ex) { |
| 2615 | Rlog.e(TAG, "Error updating config for phoneId=" + phoneId + ": " + ex.toString()); |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 2616 | } |
| 2617 | } |
| 2618 | |
Jeff Sharkey | 17bebd2 | 2017-07-19 21:00:38 -0600 | [diff] [blame] | 2619 | /** {@hide} */ |
| 2620 | public String getDefaultCarrierServicePackageName() { |
| 2621 | try { |
| 2622 | return getICarrierConfigLoader().getDefaultCarrierServicePackageName(); |
| 2623 | } catch (Throwable t) { |
| 2624 | return null; |
| 2625 | } |
| 2626 | } |
| 2627 | |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 2628 | /** |
Jonathan Basseri | 9892718 | 2015-04-23 23:34:15 -0700 | [diff] [blame] | 2629 | * Returns a new bundle with the default value for every supported configuration variable. |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 2630 | * |
| 2631 | * @hide |
| 2632 | */ |
Jonathan Basseri | b731c3d | 2015-05-05 12:00:59 -0700 | [diff] [blame] | 2633 | @NonNull |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 2634 | @SystemApi |
Jeff Sharkey | d86b8fe | 2017-06-02 17:36:26 -0600 | [diff] [blame] | 2635 | @SuppressLint("Doclava125") |
Jonathan Basseri | 4f9ad167 | 2015-05-12 10:06:32 -0700 | [diff] [blame] | 2636 | public static PersistableBundle getDefaultConfig() { |
| 2637 | return new PersistableBundle(sDefaults); |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 2638 | } |
| 2639 | |
| 2640 | /** @hide */ |
Chenjie Luo | 90bc39d | 2015-12-03 12:24:12 -0800 | [diff] [blame] | 2641 | @Nullable |
Jonathan Basseri | 9a1c9b6 | 2015-02-25 13:01:52 -0800 | [diff] [blame] | 2642 | private ICarrierConfigLoader getICarrierConfigLoader() { |
| 2643 | return ICarrierConfigLoader.Stub |
| 2644 | .asInterface(ServiceManager.getService(Context.CARRIER_CONFIG_SERVICE)); |
| 2645 | } |
| 2646 | } |