Modify proc stats to show new memory use computation.
Switch the proc status UI's memory use bar to be based on the
new total memory use computation, instead of showing that weird
"time spent in memory states" thing.
Also now have it link to a detail page that shows details of time
spent in memory states and RAM used by various things.
Change-Id: I6817a499db518adb8e72466a5e9cfe18a81be5d5
diff --git a/src/com/android/settings/Utils.java b/src/com/android/settings/Utils.java
index 78d4098..5f90442 100644
--- a/src/com/android/settings/Utils.java
+++ b/src/com/android/settings/Utils.java
@@ -79,6 +79,15 @@
public static final float DISABLED_ALPHA = 0.4f;
/**
+ * Color spectrum to use to indicate badness. 0 is completely transparent (no data),
+ * 1 is most bad (red), the last value is least bad (green).
+ */
+ public static final int[] BADNESS_COLORS = new int[] {
+ 0x00000000, 0xffc43828, 0xffe54918, 0xfff47b00,
+ 0xfffabf2c, 0xff679e37, 0xff0a7f42
+ };
+
+ /**
* Name of the meta-data item that should be set in the AndroidManifest.xml
* to specify the icon that should be displayed for the preference.
*/