History log of /packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e0b0e9f9025038d72f8129606cc1f432afcb54e0 29-Nov-2017 Fan Zhang <zhfan@google.com> Refactor help menu stuff into a controller

This is a clean up to action bar menu item pattern, we will use the same
pattern to build search icon on all pages in a later change.

Bug: 68814716
Test: robotests
Change-Id: Iedd3ec263e8ccb63ed75ec7a95b28c00878b1de4
/packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java
64590ec7a6e97fe817f08122ae58fcbf5dc3b503 22-Jul-2017 Andrew Sapperstein <asapperstein@google.com> Add help uri for process stats summary and apps.

Bug: 62903521
Test: manual
Change-Id: I55cdb061d79232676d4064677bd7f5936700e8b7
/packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java
265d3c2a0c36251bf8a9f571d7239b6dd404d942 22-Jun-2016 Tamas Berghammer <tberghammer@google.com> Update package names to work with the proto3 compiler

Bug: b/28974522
Change-Id: I5f3adf4946ee4ba1e09e4f40afe83c151405972a
/packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java
6507613ebcd22e4691c2af92a5c161bd327db336 08-Aug-2016 Fan Zhang <zhfan@google.com> Log visibility change for all fragments.

Bug: 30681771
Test: SettingsUnitTests

Refactor visibility logging from InstrumentedFragment into a mixin. And
apply mixin in remaining fragments.

Change-Id: Ibbb59904336254a3e4bb9e8c7d0b36e5a6bc2622
/packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java
b370a8d580cdc435081155e6ff5e50d6bb9105e7 23-Mar-2016 Joe Onorato <joeo@google.com> Adapt to procstats classes which moved.

Change-Id: I29a04ef3a3230f688ddf13e607a755b7d7f61991
/packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java
9d1bfd1e8de6e46137a9571507c03526880d6a46 27-Jan-2016 Chris Wren <cwren@android.com> port settings over to new metrics enum

Change-Id: I0b3efd2f4db773ccbc52bfe59ee8eb0dab9584fb
/packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java
39b467482d1bf256a111c757e9b7621c6f523271 10-Sep-2015 Jason Monk <jmonk@google.com> Depend on support lib preferences

Bug: 24576551
Change-Id: Ic6190bacd3f7582c9bbc8de972da4612bd92421e
/packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java
e492ee06adbf4661d8b8b53f41f236c9173c5ca4 19-Aug-2015 Julia Reynolds <juliacr@google.com> Make the app header bar more consistent.

- Don't include info link if just came from app info page
- include back button on app info page when launched from header
Bug: 22203029

Change-Id: I737332a487c41e0a93d161b55659700a1f936844
/packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java
ab2046aa76bb00b9a49c62c314e4d40415eebecf 27-May-2015 Jason Monk <jmonk@google.com> 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
/packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java
beb171d2e50f93b5fb78d73b372a4981e13e04ff 21-May-2015 Jason Monk <jmonk@android.com> Unbanish memory screen and new UX

Give memory screen a makeover so that it looks nice enough to be
restored to its rightful home.

Bug: 20694769
Change-Id: I2f6933037b3fbbfb0d9fe5e3ca821ef59e171faa
/packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java
f4db340daeb50572d7e0ab12f4745affae8b567f 07-May-2015 Jason Monk <jmonk@google.com> Consistently use weight to get average mem usage

Rather than just for the labels...

Also update bg mem to be converted to the same memory scale for
the bars. Also undo some bad average calculations that only made
things worse.

Bug: 20694769
Change-Id: I676803bf76d336355441891e768ba3c228dbfbca
/packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java
1de522323fc2b20b86f59819d819708cafdbd2ab 07-May-2015 Jason Monk <jmonk@google.com> Updates/fixes to memory settings

- Update memory states to be Good performance, Ok performance, etc.
- Update header info to be based on history rather than
instantaneous
- Color memory bar differently based on state
- Fix run frequency bucketing to be correct
- Show dialog for selecting duration, and fix duration selection
- Update process naming to:
- If process name is "anything:xxxx" then show "Xxxx"
- If process name is "com.app.package.interface" then show "Interface"
- If process name is the package name then show the app name
- Otherwise fallback to the process name string

Bug: 20694769
Change-Id: Ic1fab28bfd2422bde84dd10bd305a4cc34be98cf
/packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java
2583fc1e069d0a54df46258d360499492d7e86d2 25-Mar-2015 Jason Monk <jmonk@google.com> 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
/packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java
8a963babe2e36b7a41f77b8d2598c97658196e58 20-Mar-2015 Chris Wren <cwren@android.com> log visibility of views

Depends-On: I5b1dccb5d103ece3112acf38889bae16273b092f
Change-Id: I116aed2bb805f723a5bf2ec9eb94257de0b4a7b5
/packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java
55eaa96fe44ab473975fd2d9b3d97836935752fe 19-Mar-2015 Alan Viverette <alanv@google.com> Clean up usage of theme colors, deprecated Resources.getColor* methods

Change-Id: I34e11e0773c9f8e00e3eab422781094e19a16d3d
/packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java
324bd766ee1af9f6b7c7027336bdc15f81e39749 07-Feb-2015 Dianne Hackborn <hackbod@google.com> Include home state in mem usage.

Change-Id: I7639e963386adf55a18139f395e7fc43277cc930
/packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java
b94079a704ef9ca144ca94885d655b2befabcf45 31-Jan-2015 Dianne Hackborn <hackbod@google.com> Make proc stats UI app-centric instead of process-centric.

The UI now shows a much simpler overview of memory use for
the current measured duration, computing the weighted RAM
user per application. (This is done basically by rolling up
each individual process into an app that can contain multiple
processes, and using the recently introduced weighted RAM for
all data processing.)

The details screen is updated to reflect this new design,
showing an overview of a particular application, which
separate entries for each process running for that app.

Change-Id: I47d79c30086d733eb37440a6c21b18a92b767d01
/packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java
c891ce6565fbeba8414c470b109088ac959f7143 12-Sep-2014 Dianne Hackborn <hackbod@google.com> Fix some things in settings: manage apps, battery, procstats

Issue #17461567: java.lang.ArithmeticException: divide by zero when
looking at Settings > Battery

Yeah, let's not do that.

Issue #17365562: Running services RAM totals are wrong

Okay so like a few months ago, I had this vacation coming up, and
it was around the feature complete (hahah) deadline, and I had to
rush to get this in before I left. So I rushed. And, well, I forgot
a few things. Here they are. We now show the right numbers and
even update things correctly when you change what processes are
being shown. Wow.

Finally, fixed a few issues in the dev tools procstats UI.

Change-Id: I8348a9c2ec3226a455c5c8465729e4487f324c8b
/packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java
7253df35a09d8d61ececedbb66179171802e42a7 03-Sep-2014 Elliott Hughes <enh@google.com> Start cleaning up percentage formatting in Settings.

This fixes some of the percentage formatting issues, but there are
still about ten strings with hard-coded %%s in them.

Bug: 15476051
Change-Id: I668b6b16e598425f6006f6de0005c980f613f5b2
/packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java
74868d1c5d47b9f0475e4df1966f41f861521950 24-Jun-2014 Dianne Hackborn <hackbod@google.com> More work on proc stats UI for summary display.

Improve how we compute the bar to better represent the
actual memory situation. Scale the per-app bars to try to
show them better in terms of overall memory use. And some
bug fixes.

Change-Id: I336ff0c938a39092f2ac54d354c57d6b1b8220c0
/packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java
68f005fbd48f18cdab0168ba92b8fd40776edc1e 19-Jun-2014 Dianne Hackborn <hackbod@google.com> Modify proc stats to show new memory use computation.

Switch the proc status UI's memory use bar to be based on the
new total memory use computation, instead of showing that weird
"time spent in memory states" thing.

Also now have it link to a detail page that shows details of time
spent in memory states and RAM used by various things.

Change-Id: I6817a499db518adb8e72466a5e9cfe18a81be5d5
/packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java
0ec4251d12cdce0dfbc9cb3d9f46e33acf20af3f 19-Jun-2014 Fabrice Di Meglio <fdimeglio@google.com> Make Process Stats more beautiful

- update padding layouts for being consistent with the rest of the Settings App

See bug: #15384992 Setting Dashboard - padding updates

Change-Id: I1813eec92a97e4cd9adb4a9c9852c8cd03c38a05
/packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java
263bcc8b732dbb47d3ce63904e0e05191fabbad6 18-Jan-2014 Fabrice Di Meglio <fdimeglio@google.com> Use Drawer in Settings app

- get rid of PreferenceActivity as much as we can and use fragments instead
- add Drawer widget
- add Dashboard high level entry into the Drawer (but this is work in progress and would be done in another CL)
- add bypass of fragment's Header validation when launched from the Drawer but *force* validation if external
call thru an Intent

Be aware that WifiPickerActivity should remain for now a PreferenceActivity. It is used by SetupWizard and should
not trigger running the SettingsActivity's header building code. SetupWizard is a Home during the provisionnig process
and then deactivate itself as a Home but would make the Home header to appear in the Drawer (because momentarily we
would have two Home).

Also, verified that:

- the WiFi settings still work when called from SetupWizard
- when you have multiple Launchers, the Home header will appear in the list of Headers in the Drawer

Change-Id: I407a5e0fdd843ad7615d3d511c416a44e3d97c90
/packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java
ab89566e82eec92718f97fe3e63d3e240e7f90d1 24-Jan-2014 Dianne Hackborn <hackbod@google.com> Update to follow per-version proc stats change.

Change-Id: Iea44f1c7e9bd59a2eeaa1739bbaa5c0bdc349b0b
/packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java
b1e33884190732a58bfbfe659898e02d41fe39f4 11-Oct-2013 Dianne Hackborn <hackbod@google.com> Allow tapping on memory status regions to filter proc stats.

Change-Id: Iade56907df648a95600919578154635c49ac9dce
/packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java
5635594c38fb319e050054e42109eb736f274acc 30-Sep-2013 Dianne Hackborn <hackbod@google.com> 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
/packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java
88cf7709cb7ed829980cb8ddac3d5c7ac945d772 24-Sep-2013 Dianne Hackborn <hackbod@google.com> Implement issue #10895990: Better durations for proc stats

Add new option to select data duration to show, with the default
being 3 hours.

Reworked how menus are updated to remove redundant code.

Switch to using new proc stats service API for retrieving stats,
which is more efficient and won't hit IPC limits.

Fixed layout for details items to ellipsize long items.

Change-Id: I1a0f8a4adf8fc330c2639077323c6379d23ad987
/packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java
49759af6b06b884d3a1af9dbb120370893744b94 15-Sep-2013 Dianne Hackborn <hackbod@google.com> Various proc stats UI improvements.

- Option to include system processes.
- Option to use uss instead of pss sizes.
- Option to select type of stats: background processes, foreground (top)
processes, cached processes.
- Details now shows max mem usage.

Change-Id: Ic994564ce846bc1021bf35576feeb9ef095b0e48
/packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java
04436c51f63492944bbed276021a51cfe2081613 09-Sep-2013 Dianne Hackborn <hackbod@google.com> Follow-on for #10671878: Proc stats needs to remove old data structures

The UI can now show better information about services, now that we
have the name of the process each service runs in and its total run
time.

Change-Id: I0777d8295a50c8f69c57bad24ccafe3bf0fbe5b8
/packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java
04486738342fa5e11a78df836efe34b85bee125a 05-Sep-2013 Dianne Hackborn <hackbod@google.com> Add details screen to proc stats.

Lets you see the actual RAM use and % running time, a list of
all of the services that are associated with it (kind-of, not
working correctly for those that share processes), and most
importantly a glorious FORCE STOP button.

Change-Id: I34ac30c88f1187227a8a7809ae103118c8b9a865
/packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java
a218e732b0a67e446f30bf2aa13e6df070fe856a 19-Aug-2013 Christopher Tate <ctate@google.com> Don't crash when procstats has data for a now-disused uid

That is, PackageManager.getPackagesForUid(uid) can return null,
so deal with it.

Bug 10374656

Change-Id: I4eacd48c809b778e131d37dba0e86c583553e41f
/packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java
a582a051951be9b1afd57e05fd6a405bccd9a46f 10-Aug-2013 Dianne Hackborn <hackbod@google.com> Proc stats UI improvements.

Now have a chart showing the memory state, and text showing the
current memory state. Trying to do better at picking the application
to blame for a process hosting multiple apps. Start of infrastructure
for more detailed reporting.

Change-Id: I93ca7ecf2fd0bc01e3be8d28b80212ac78fe7607
/packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java
c9e4bd111664705959716629c2535c085e6c7cd6 09-Aug-2013 Dianne Hackborn <hackbod@google.com> Improve process stats UI.

Now roll up multiple process stats to have at least a
day of data, change the visualization to have the bars show
"weight" (duration*pss) and the text the percent of total
time running, add label to show how much time the stats
are over.

Change-Id: I73763cb6a66d03d856ea4bf517eac0fe39c79c52
/packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java
c6d658e37d7c0ab2d264fff4850ea20823669558 08-Aug-2013 Dianne Hackborn <hackbod@google.com> Initial rough stab at a proc stats UI.

You see procs, and you see some stats.

Change-Id: I91c86d198fd5e64a41c72901e150466b3c602caf
/packages/apps/Settings/src/com/android/settings/applications/ProcessStatsUi.java