Add Settings.Global keys for Dsrm plus feature

Bug: 283897403
Test: atest SettingsBackupTest

Change-Id: I1db4dbe10a5da67e97365cfb571f3eb682ca67e5
Signed-off-by: Diaesh Antony <diaeshantony@google.com>
This commit is contained in:
Diaesh Antony
2023-05-24 05:32:19 +00:00
committed by Mars Lin
parent 5c8ee219f2
commit 6b519818c7
2 changed files with 22 additions and 0 deletions

View File

@@ -12612,6 +12612,26 @@ public final class Settings {
@Readable
public static final String MOBILE_DATA_ALWAYS_ON = "mobile_data_always_on";
/**
* The duration in milliseconds of each action, separated by commas. Ex:
*
* "18000,18000,18000,18000,0"
*
* See com.android.internal.telephony.data.DataStallRecoveryManager for more info
* @hide
*/
public static final String DSRM_DURATION_MILLIS = "dsrm_duration_millis";
/**
* The list of DSRM enabled actions, separated by commas. Ex:
*
* "true,true,false,true,true"
*
* See com.android.internal.telephony.data.DataStallRecoveryManager for more info
* @hide
*/
public static final String DSRM_ENABLED_ACTIONS = "dsrm_enabled_actions";
/**
* Whether the wifi data connection should remain active even when higher
* priority networks like Ethernet are active, to keep both networks.

View File

@@ -345,6 +345,8 @@ public class SettingsBackupTest {
Settings.Global.MIN_DURATION_BETWEEN_RECOVERY_STEPS_IN_MS,
Settings.Global.MOBILE_DATA, // Candidate for backup?
Settings.Global.MOBILE_DATA_ALWAYS_ON,
Settings.Global.DSRM_DURATION_MILLIS,
Settings.Global.DSRM_ENABLED_ACTIONS,
Settings.Global.MODE_RINGER,
Settings.Global.MULTI_SIM_DATA_CALL_SUBSCRIPTION,
Settings.Global.MULTI_SIM_SMS_PROMPT,