Fix issue #10948509: Crash in procstats when there is no data

Also make us much better about determining which app to blame for
a particular running process, organize the display of services by
their owning app, apply some new heuristics for deciding what goes
in the process list so that we can still display interesting processes
when we haven't collected pss data for them yet, etc.

Change-Id: I7e87225d3dabc66cf3ff020b5db48401b14aaf47
This commit is contained in:
Dianne Hackborn
2013-09-29 17:07:49 -07:00
parent bc2c3db8f9
commit 5635594c38
5 changed files with 288 additions and 95 deletions

View File

@@ -45,7 +45,7 @@ public class ProcessStatsPreference extends Preference {
public void setPercent(double percentOfWeight, double percentOfTime) {
mProgress = (int) Math.ceil(percentOfWeight);
mProgressText = getContext().getResources().getString(
R.string.percentage, (int) Math.ceil(percentOfTime));
R.string.percentage, (int) Math.round(percentOfTime));
notifyChanged();
}