More memory updates
- Some string changes - Make processes in memory details not clickable - Put processes in a 'detail' category - Hide processes when an app only has 1 - Add memory item to bottom of app info page Bug: 20694769 Change-Id: Ifbe2205aeef230e44752d075578524249b30bdf8
This commit is contained in:
@@ -106,19 +106,9 @@ public class ProcessStatsUi extends ProcessStatsBase {
|
||||
if (!(preference instanceof ProcessStatsPreference)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
ProcessStatsPreference pgp = (ProcessStatsPreference) preference;
|
||||
Bundle args = new Bundle();
|
||||
args.putParcelable(ProcessStatsDetail.EXTRA_PACKAGE_ENTRY, pgp.getEntry());
|
||||
MemInfo memInfo = mStatsManager.getMemInfo();
|
||||
args.putDouble(ProcessStatsDetail.EXTRA_WEIGHT_TO_RAM,
|
||||
memInfo.weightToRam);
|
||||
args.putLong(ProcessStatsDetail.EXTRA_TOTAL_TIME, memInfo.memTotalTime);
|
||||
args.putDouble(ProcessStatsDetail.EXTRA_MAX_MEMORY_USAGE,
|
||||
memInfo.usedWeight * memInfo.weightToRam);
|
||||
args.putDouble(ProcessStatsDetail.EXTRA_TOTAL_SCALE, memInfo.totalScale);
|
||||
((SettingsActivity) getActivity()).startPreferencePanel(
|
||||
ProcessStatsDetail.class.getName(), args, R.string.details_title, null, null, 0);
|
||||
launchMemoryDetail((SettingsActivity) getActivity(), memInfo, pgp.getEntry());
|
||||
|
||||
return super.onPreferenceTreeClick(preferenceScreen, preference);
|
||||
}
|
||||
@@ -153,6 +143,7 @@ public class ProcessStatsUi extends ProcessStatsBase {
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void refreshUi() {
|
||||
mAppListGroup.removeAll();
|
||||
mAppListGroup.setOrderingAsAdded(false);
|
||||
|
Reference in New Issue
Block a user