summaryrefslogtreecommitdiffstats
path: root/core/java/android/provider
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2009-07-06 16:36:05 -0700
committerChristopher Tate <ctate@google.com>2009-07-06 17:43:03 -0700
commit8031a3df2fd0c38d85eeae39c1ea2c83e813f4ff (patch)
tree4969dcee824e9a26164cda1eab4138dd3281f98f /core/java/android/provider
parent8d07c0684619b6c30f525d25d92835254a7220a9 (diff)
downloadframeworks_base-8031a3df2fd0c38d85eeae39c1ea2c83e813f4ff.zip
frameworks_base-8031a3df2fd0c38d85eeae39c1ea2c83e813f4ff.tar.gz
frameworks_base-8031a3df2fd0c38d85eeae39c1ea2c83e813f4ff.tar.bz2
Make enable/provisioning of the backup service a two-step process
This CL adds the concept of 'provisioned' to the backup manager. No backups will be scheduled until the user has indicated that backups are to be enabled *and* has clicked all the way through the setup wizard. When the user first turns on the backup system, the delay before the initial backup pass is different from the periodic backup interval. Currently that initial delay is 12 hours. The intent here is to guess at a less-active time for performing that first backup pass. NOTE: currently the backup service defaults to 'provisioned'. Once the real code goes live in Setup Wizard, this will be changed to default to not-provisioned until the user has confirmed all the relevant UI.
Diffstat (limited to 'core/java/android/provider')
-rw-r--r--core/java/android/provider/Settings.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java
index 7017333..7f63bff 100644
--- a/core/java/android/provider/Settings.java
+++ b/core/java/android/provider/Settings.java
@@ -2269,13 +2269,20 @@ public final class Settings {
public static final String USE_LOCATION_FOR_SERVICES = "use_location";
/**
- * Controls whether data backup is enabled.
+ * Controls whether settings backup is enabled.
* Type: int ( 0 = disabled, 1 = enabled )
* @hide
*/
public static final String BACKUP_ENABLED = "backup_enabled";
/**
+ * Indicates whether settings backup has been fully provisioned.
+ * Type: int ( 0 = unprovisioned, 1 = fully provisioned )
+ * @hide
+ */
+ public static final String BACKUP_PROVISIONED = "backup_provisioned";
+
+ /**
* Component of the transport to use for backup/restore.
* @hide
*/