summaryrefslogtreecommitdiffstats
path: root/core/java/android
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-07-20 17:42:21 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-07-20 17:42:21 -0700
commitef1a92abe1bebe4feba4ba33cd0c7e25ee83fcc0 (patch)
treeba43c1b40c48a78ec881e493261eb216ea683df1 /core/java/android
parent890231f1d5912f5b71371e73f44df2db2e741b1b (diff)
parent3f7e35c2c7d3d7f08f50c1d93cd16b1f49354ccc (diff)
downloadframeworks_base-ef1a92abe1bebe4feba4ba33cd0c7e25ee83fcc0.zip
frameworks_base-ef1a92abe1bebe4feba4ba33cd0c7e25ee83fcc0.tar.gz
frameworks_base-ef1a92abe1bebe4feba4ba33cd0c7e25ee83fcc0.tar.bz2
Merge change 7961 into donut
* changes: Bluetooth at command tracking.
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/os/BatteryStats.java22
1 files changed, 21 insertions, 1 deletions
diff --git a/core/java/android/os/BatteryStats.java b/core/java/android/os/BatteryStats.java
index 528def5..e203fd5 100644
--- a/core/java/android/os/BatteryStats.java
+++ b/core/java/android/os/BatteryStats.java
@@ -508,6 +508,19 @@ public abstract class BatteryStats implements Parcelable {
public abstract long getBatteryUptime(long curTime);
/**
+ * @deprecated use getRadioDataUptime
+ */
+ public long getRadioDataUptimeMs() {
+ return getRadioDataUptime() / 1000;
+ }
+
+ /**
+ * Returns the time that the radio was on for data transfers.
+ * @return the uptime in microseconds while unplugged
+ */
+ public abstract long getRadioDataUptime();
+
+ /**
* Returns the current battery realtime in microseconds.
*
* @param curTime the amount of elapsed realtime in microseconds.
@@ -1128,7 +1141,14 @@ public abstract class BatteryStats implements Parcelable {
}
if (!didOne) sb.append("No activity");
pw.println(sb.toString());
-
+
+ sb.setLength(0);
+ sb.append(prefix);
+ sb.append(" Radio data uptime when unplugged: ");
+ sb.append(getRadioDataUptime() / 1000);
+ sb.append(" ms");
+ pw.println(sb.toString());
+
sb.setLength(0);
sb.append(prefix);
sb.append(" Wifi on: "); formatTimeMs(sb, wifiOnTime / 1000);