diff options
| author | 2020-02-19 22:19:01 +0000 | |
|---|---|---|
| committer | 2020-02-19 22:19:01 +0000 | |
| commit | ebf5f1d4f37ac66f0a81b8a8a80927c95f36da35 (patch) | |
| tree | 8d0133a04df03309802954c4fe1220c1d618a5e0 | |
| parent | 2cef69cb5f452059ece1621004a0124e8999cde4 (diff) | |
| parent | beb963fbc27a1d21cb2bd42b6e954b43fdc0cec2 (diff) | |
Merge "Add carrier config to skip validation if recently validate." am: beb963fbc2
Change-Id: Ie918c367e4aaa3e2bcb9e7c86093e6ea43fa7320
| -rw-r--r-- | telephony/java/android/telephony/CarrierConfigManager.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/CarrierConfigManager.java b/telephony/java/android/telephony/CarrierConfigManager.java index 9f0ab0234b63..bca09e5a3c0e 100644 --- a/telephony/java/android/telephony/CarrierConfigManager.java +++ b/telephony/java/android/telephony/CarrierConfigManager.java @@ -3349,6 +3349,25 @@ public class CarrierConfigManager { "subscription_group_uuid_string"; /** + * Data switch validation minimal gap time, in milliseconds. + * + * Which means, if the same subscription on the same network (based on MCC+MNC+TAC+subId) + * was recently validated (within this time gap), and Telephony receives a request to switch to + * it again, Telephony will skip the validation part and switch to it as soon as connection + * is setup, as if it's already validated. + * + * If the network was validated within the gap but the latest validation result is false, the + * validation will not be skipped. + * + * If not set or set to 0, validation will never be skipped. + * The max acceptable value of this config is 24 hours. + * + * @hide + */ + public static final String KEY_DATA_SWITCH_VALIDATION_MIN_GAP_LONG = + "data_switch_validation_min_gap_LONG"; + + /** * A boolean property indicating whether this subscription should be managed as an opportunistic * subscription. * @@ -3916,6 +3935,7 @@ public class CarrierConfigManager { sDefaults.putLong(KEY_DATA_SWITCH_VALIDATION_TIMEOUT_LONG, 2000); sDefaults.putInt(KEY_PARAMETERS_USED_FOR_LTE_SIGNAL_BAR_INT, CellSignalStrengthLte.USE_RSRP); + sDefaults.putLong(KEY_DATA_SWITCH_VALIDATION_MIN_GAP_LONG, 0); } /** |