Some improvements to the battery usage UI:

- Show wake lock usage in the battery history.
- Show WIFI usage in the battery history.
- Show the amount an app has held a wake lock in the app details.
- Also fix service run time computation in running services.

Change-Id: I5aa959857f83808fbc709f65204f59bbfb73935b
This commit is contained in:
Dianne Hackborn
2010-08-13 14:15:44 -07:00
parent 3673546205
commit be5994d201
6 changed files with 127 additions and 23 deletions

View File

@@ -115,11 +115,11 @@ public class RunningProcessesView extends FrameLayout
}
if (uptimeView != null) {
if (mItem.mActiveSince >= 0) {
if (mFirstRunTime >= 0) {
//Log.i("foo", "Time for " + mItem.mDisplayLabel
// + ": " + (SystemClock.uptimeMillis()-mFirstRunTime));
uptimeView.setText(DateUtils.formatElapsedTime(builder,
(SystemClock.uptimeMillis()-mFirstRunTime)/1000));
(SystemClock.elapsedRealtime()-mFirstRunTime)/1000));
} else {
boolean isService = false;
if (mItem instanceof RunningState.MergedItem) {