Move process stats screen into memory screen.
- Move process stats from developer options to top level settings item. - Some minor UI changes to the top of the page - Major UI updates to detail page, now shows info with processes as pref categories and services as prefs, with a way to kill them (taken from Running Services page). - Some major refactorings in code, in attempt to make it more usable - Added color bar on per app basis to visualize the avg/max relationship - Updated the way avg is calculated across multiple entries in ProcStatsPackageEntry to be more accurate - Change the way max memory is calculated in ProcStatsPackageEntry to be less accurate but more useful Bug: 19443802 Change-Id: Ia6aaabe42c415c50997a09bfb814a6f6e5731772
This commit is contained in:
@@ -164,8 +164,6 @@ public class DevelopmentSettings extends SettingsPreferenceFragment
|
||||
|
||||
private static final String SHOW_ALL_ANRS_KEY = "show_all_anrs";
|
||||
|
||||
private static final String PROCESS_STATS = "proc_stats";
|
||||
|
||||
private static final String PACKAGE_MIME_TYPE = "application/vnd.android.package-archive";
|
||||
|
||||
private static final String TERMINAL_APP_PACKAGE = "com.android.terminal";
|
||||
@@ -246,7 +244,6 @@ public class DevelopmentSettings extends SettingsPreferenceFragment
|
||||
|
||||
private SwitchPreference mShowAllANRs;
|
||||
|
||||
private PreferenceScreen mProcessStats;
|
||||
private final ArrayList<Preference> mAllPrefs = new ArrayList<Preference>();
|
||||
|
||||
private final ArrayList<SwitchPreference> mResetSwitchPrefs
|
||||
@@ -397,9 +394,6 @@ public class DevelopmentSettings extends SettingsPreferenceFragment
|
||||
mAllPrefs.add(hdcpChecking);
|
||||
removePreferenceForProduction(hdcpChecking);
|
||||
}
|
||||
|
||||
mProcessStats = (PreferenceScreen) findPreference(PROCESS_STATS);
|
||||
mAllPrefs.add(mProcessStats);
|
||||
}
|
||||
|
||||
private ListPreference addListPreference(String prefKey) {
|
||||
|
Reference in New Issue
Block a user