Added basic network request handling

Supported basic network request handling, attach/detach
from data network. Also supported dynamic priority update
based on config changed event.

Bug: 196597630
Test: Manual
Merged-In: I0b3e8d5c511b5b76d38b81a9c28956cf4aee3961
Change-Id: I0b3e8d5c511b5b76d38b81a9c28956cf4aee3961
This commit is contained in:
Jack Yu
2021-10-01 02:50:46 -07:00
parent 2a491d487f
commit ba0e302d69

View File

@@ -5304,6 +5304,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
@@ -6089,6 +6101,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, "");