summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2010-11-10 18:01:21 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2010-11-10 18:01:21 -0800
commit63f40387d931b5cd555b4743a4d8ff4f1ccf9558 (patch)
tree2ef9f9adfcd2a7ad3e47731150669859647f624d /core
parent5314335c9e28673923ad034e5f8a5ba765552a08 (diff)
parent34594e75e4a7962840f34c0b57116ecf1497f118 (diff)
downloadframeworks_base-63f40387d931b5cd555b4743a4d8ff4f1ccf9558.zip
frameworks_base-63f40387d931b5cd555b4743a4d8ff4f1ccf9558.tar.gz
frameworks_base-63f40387d931b5cd555b4743a4d8ff4f1ccf9558.tar.bz2
am 34594e75: Merge "Fix issue #3177284: Account for wake lock power usage on Crespo" into gingerbread
* commit '34594e75e4a7962840f34c0b57116ecf1497f118': Fix issue #3177284: Account for wake lock power usage on Crespo
Diffstat (limited to 'core')
-rw-r--r--core/java/com/android/internal/os/PowerProfile.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/com/android/internal/os/PowerProfile.java b/core/java/com/android/internal/os/PowerProfile.java
index 127ed68..99a6843 100644
--- a/core/java/com/android/internal/os/PowerProfile.java
+++ b/core/java/com/android/internal/os/PowerProfile.java
@@ -47,6 +47,15 @@ public class PowerProfile {
public static final String POWER_CPU_IDLE = "cpu.idle";
/**
+ * Power consumption when CPU is awake (when a wake lock is held). This
+ * should be 0 on devices that can go into full CPU power collapse even
+ * when a wake lock is held. Otherwise, this is the power consumption in
+ * addition to POWERR_CPU_IDLE due to a wake lock being held but with no
+ * CPU activity.
+ */
+ public static final String POWER_CPU_AWAKE = "cpu.awake";
+
+ /**
* Power consumption when CPU is in power collapse mode.
*/
public static final String POWER_CPU_ACTIVE = "cpu.active";