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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user