Add carrier config to skip validation if recently validate.

Bug: 148611362
Test: unittest
Change-Id: I4f4e1f698bf883e6eaf80959f3592562015c70f5
This commit is contained in:
Malcolm Chen
2020-02-04 19:01:25 -08:00
parent 5cf71d715e
commit 46e16493ba

View File

@@ -3382,6 +3382,25 @@ public class CarrierConfigManager {
public static final String KEY_SUBSCRIPTION_GROUP_UUID_STRING =
"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.
@@ -4330,6 +4349,7 @@ public class CarrierConfigManager {
sDefaults.putAll(Wifi.getDefaults());
sDefaults.putBoolean(ENABLE_EAP_METHOD_PREFIX_BOOL, false);
sDefaults.putBoolean(KEY_SHOW_FORWARDED_NUMBER_BOOL, false);
sDefaults.putLong(KEY_DATA_SWITCH_VALIDATION_MIN_GAP_LONG, 0);
sDefaults.putAll(Iwlan.getDefaults());
}