From c535be179a06916ee12c7d1184ef70129d6ba76a Mon Sep 17 00:00:00 2001 From: Daniel Nishi Date: Fri, 10 Jun 2016 13:51:36 -0700 Subject: [PATCH] Add a flag to toggle how much the storage manager should retain. This flag is used to set how many days of storage the automatic storage manager will retain when clearing data. Bug: 28965462 Change-Id: I87afafb7d3252d8c390ea43b7c45fd923f911e4e --- core/java/android/provider/Settings.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index d558070b371a8..aed4e52d97d81 100755 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -6245,6 +6245,21 @@ public final class Settings { public static final String AUTOMATIC_STORAGE_MANAGER_ENABLED = "automatic_storage_manager_enabled"; + /** + * How many days of information for the automatic storage manager to retain on the device. + * + * @hide + */ + public static final String AUTOMATIC_STORAGE_MANAGER_DAYS_TO_RETAIN = + "automatic_storage_manager_days_to_retain"; + + /** + * Default number of days of information for the automatic storage manager to retain. + * + * @hide + */ + public static final int AUTOMATIC_STORAGE_MANAGER_DAYS_TO_RETAIN_DEFAULT = 90; + /** * This are the settings to be backed up. *