OSDN Git Service

Add counters for the automatic storage manager.
authorDaniel Nishi <dhnishi@google.com>
Fri, 24 Jun 2016 22:49:25 +0000 (15:49 -0700)
committerDaniel Nishi <dhnishi@google.com>
Fri, 24 Jun 2016 22:49:25 +0000 (15:49 -0700)
In order to attribute storage savings, we log how much data has
been freed and the last time that the automatic storage manager
has run.

Bug: 29643106
Change-Id: Ibb57b44b5e7550d4ab11e95b47db2f5d6599a96f

core/java/android/provider/Settings.java

index c531954..c83cc96 100755 (executable)
@@ -6270,6 +6270,24 @@ public final class Settings {
         public static final int AUTOMATIC_STORAGE_MANAGER_DAYS_TO_RETAIN_DEFAULT = 90;
 
         /**
+         * How many bytes the automatic storage manager has cleared out.
+         *
+         * @hide
+         */
+        public static final String AUTOMATIC_STORAGE_MANAGER_BYTES_CLEARED =
+                "automatic_storage_manager_bytes_cleared";
+
+
+        /**
+         * Last run time for the automatic storage manager.
+         *
+         * @hide
+         */
+        public static final String AUTOMATIC_STORAGE_MANAGER_LAST_RUN =
+                "automatic_storage_manager_last_run";
+
+
+        /**
          * This are the settings to be backed up.
          *
          * NOTE: Settings are backed up and restored in the order they appear