diff options
| author | 2022-02-27 00:56:08 +0000 | |
|---|---|---|
| committer | 2022-02-27 00:56:08 +0000 | |
| commit | dcd0113fb9a375d60dd3b4891c7d174dea0ee29e (patch) | |
| tree | d818ccfde62bbf350fdf78a7a90e5f4c963daacb | |
| parent | 1366bac65cdc48271ef099783317f43bb17b0a03 (diff) | |
| parent | b08061d1cee0c4270ca1bf971d199db0f2d2131d (diff) | |
Merge "Added basic network request handling" am: f64547164a am: b08061d1ce
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1988650
Change-Id: I61e8c61149c7ae71bf39bc9ffd01f313de9f7d43
| -rw-r--r-- | telephony/java/android/telephony/CarrierConfigManager.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/CarrierConfigManager.java b/telephony/java/android/telephony/CarrierConfigManager.java index 027a3d914f5b..111c70d2f0bb 100644 --- a/telephony/java/android/telephony/CarrierConfigManager.java +++ b/telephony/java/android/telephony/CarrierConfigManager.java @@ -5446,6 +5446,18 @@ public class CarrierConfigManager { public static final String KEY_APN_PRIORITY_STRING_ARRAY = "apn_priority_string_array"; /** + * Network capability priority for determine the satisfy order in telephony. This is used when + * the network only allows single PDN. The priority is from the lowest 0 to the highest 100. + * The long-lived network request usually has the lowest priority. This allows other short-lived + * requests like MMS requests to be established. Emergency request always has the highest + * priority. + * + * // TODO: Remove KEY_APN_PRIORITY_STRING_ARRAY + * @hide + */ + public static final String KEY_TELEPHONY_NETWORK_CAPABILITY_PRIORITIES_STRING_ARRAY = + "telephony_network_capability_priorities_string_array"; + /** * The patterns of missed incoming call sms. This is the regular expression used for * matching the missed incoming call's date, time, and caller id. The pattern should match * fields for at least month, day, hour, and minute. Year is optional although it is encouraged. @@ -6213,6 +6225,11 @@ public class CarrierConfigManager { "enterprise:0", "default:1", "mms:2", "supl:2", "dun:2", "hipri:3", "fota:2", "ims:2", "cbs:2", "ia:2", "emergency:2", "mcx:3", "xcap:3" }); + sDefaults.putStringArray( + KEY_TELEPHONY_NETWORK_CAPABILITY_PRIORITIES_STRING_ARRAY, new String[] { + "eims:90", "supl:80", "mms:70", "xcap:70", "cbs:50", "mcx:50", "fota:50", + "ims:40", "dun:30", "enterprise:20", "internet:20" + }); sDefaults.putStringArray(KEY_MISSED_INCOMING_CALL_SMS_PATTERN_STRING_ARRAY, new String[0]); sDefaults.putBoolean(KEY_DISABLE_DUN_APN_WHILE_ROAMING_WITH_PRESET_APN_BOOL, false); sDefaults.putString(KEY_DEFAULT_PREFERRED_APN_NAME_STRING, ""); |