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