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

@@ -92,8 +92,8 @@ public class RunningServiceDetails extends Activity
& ApplicationInfo.FLAG_SYSTEM) != 0;
ApplicationErrorReport.RunningServiceInfo info
= new ApplicationErrorReport.RunningServiceInfo();
if (mActiveItem.mItem.mActiveSince >= 0) {
info.durationMillis = SystemClock.uptimeMillis()-mActiveItem.mFirstRunTime;
if (mActiveItem.mFirstRunTime >= 0) {
info.durationMillis = SystemClock.elapsedRealtime()-mActiveItem.mFirstRunTime;
} else {
info.durationMillis = -1;
}