History log of /packages/apps/Settings/src/com/android/settings/applications/RunningState.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
cc28cb372da331e75330d4544d5ae90b7cf34f65 04-May-2017 Doris Ling <dling@google.com> Fix crash when primary user select app installed by secondary user.

- PackageManager.getPackageInfo() can return null. When trying to check
the app permission info, check for null package info and only process
the permission info when package info is available.
- Update usage of PackageManager.MATCH_UNINSTALLED_PACKAGES to
PackageManager.MATCH_ANY_USER, as the implementation for querying
packages for other users have been changed.
- Add PackageManager APIs used by AppStateAppOpsBridge to
IPackageManagerWrapper for test purpose.
- Change UserManager.get() to Context.getSystemService() to fix test
failure.

Change-Id: I52de924618aa252ffaae02b8f06ebe5b1d0def61
Fix: 37409266
Test: make RunSettingsRoboTests
/packages/apps/Settings/src/com/android/settings/applications/RunningState.java
21556cdba176e8c544ecf24522d4939dcf0dcc2c 01-Nov-2016 Amith Yamasani <yamasani@google.com> Adapt to behavior change in MATCH_UNINSTALLED_PACKAGES

Don't use the PM flag to reach across users.
If retrieving labels, etc., use MATCH_ANY_USER, since
several Settings screens show work profile apps as well.

Bug: 31000380
Test: Manual test of affected screens
Change-Id: Ib6f981ae8443f640276d395c37247c8c0b610894
/packages/apps/Settings/src/com/android/settings/applications/RunningState.java
acb1a61f3f1309fadbf762f4273fc6f641927586 11-Nov-2016 Sudheer Shanka <sudheersai@google.com> Update usage of ActivityManagerNative.

Bug: 30977067
Test: N/A
Change-Id: I46e37a09cff059d2784a819bc2651d6973fbd268
/packages/apps/Settings/src/com/android/settings/applications/RunningState.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/RunningState.java
762104ea5d5be567c434fcd8d610b0007d4a94fd 01-Sep-2015 Xiaohui Chen <xiaohuic@google.com> Cleanup USER_OWNER in Settings

This cl updates a couple places related to managed profiles.

Bug: 19913735
Change-Id: I72b5315885fc34d8716339ecc18447c15867a5ac
/packages/apps/Settings/src/com/android/settings/applications/RunningState.java
6e58d516f05bbceabdddd3aa08a94fcc32858e71 25-Aug-2015 Wei Liu <luciferleo@google.com> Refactor UidDetailProvider and its dependencies to SettingsLib.

so that it can be reused by Wear app data usage.

Change-Id: Id05f888274e15fbeffa175ee8073de02a8966867
/packages/apps/Settings/src/com/android/settings/applications/RunningState.java
67cd6ab93a526fe65877743e458590f4e6f187ee 08-Jun-2015 Tony Mantler <nicoya@google.com> Move ApplicationsState to SettingsLib

Also take InterestingConfigChanges along for the ride
and delete unused AppPermissionSettings

b/21328967

Change-Id: I4d0c1a27054845a54cf68e95a92024d2e46f636e
/packages/apps/Settings/src/com/android/settings/applications/RunningState.java
5c22ab97812e33f328f05a092b569f89969b2903 21-Jan-2015 Fyodor Kupolov <fkupolov@google.com> Reset RunningState on user related changes

RunningState now listens to user-related broadcasts and resets its state if
necessary.

Previously, user entry was visible even after the user had been removed.

Bug:18696308
Change-Id: I499956c434d0d05bfa2a99b5e3e71ac73fe83297
/packages/apps/Settings/src/com/android/settings/applications/RunningState.java
903fa3f8ebabc4dd8c1841c54c65418937f052c8 15-Dec-2014 Zoltan Szatmary-Ban <szatmz@google.com> Badge items in Settings > Apps > Running correctly

That is, add a badge if the item belongs to a managed profile and
do not add if it belongs to the primary.

Bug: 18235061
Change-Id: Ice599b30cd2827180c21c8d0601af7f30b46e94b
/packages/apps/Settings/src/com/android/settings/applications/RunningState.java
f43aa811b7d29d0af3a3c9c05d581230cd2e831a 09-Dec-2014 Alexandra Gherghina <alexgherghina@google.com> Fix NPE in Running Processes view in Apps Settings

Bug: 18676587
Change-Id: Ib4b400241f0ebd6dd4aacad4bfdda6dfb75cdfb5
/packages/apps/Settings/src/com/android/settings/applications/RunningState.java
c41d613751e9cc41b787be28a9799f8c6920c4dd 30-Oct-2014 Alexandra Gherghina <alexgherghina@google.com> Hide managed profile entry in secondary users

Bug: 18132630
Change-Id: I0395373ac6f088f8fc880110c740cb5f05827901
/packages/apps/Settings/src/com/android/settings/applications/RunningState.java
0f5440f6e26581f51d67fe3cf32af9dd840e5519 30-Oct-2014 Alexandra Gherghina <alexgherghina@google.com> Apply predefined icon and label to managed profiles

Bug: 18132630
Change-Id: Ie6cfee420847d6992accb0bc0ca3f5535260bc55
/packages/apps/Settings/src/com/android/settings/applications/RunningState.java
0ba89bd54c4b44b3803342da10b0c08b0bf76ad4 10-Oct-2014 Alan Viverette <alanv@google.com> Update Settings to use themed Context.getDrawable()

Explicit null theme is passed when using Resources.getDrawable() and
no theme is available, e.g. when using getResourcesForApplication().
This fixes an issue with ic_text_dot theming and helps avoid similar
issues in the future.

BUG: 17648301
Change-Id: I3e97c3490b6f2a55744f567b21284f2935ae9af7
/packages/apps/Settings/src/com/android/settings/applications/RunningState.java
95b86a5488a27d95bda8b6db1f608d6ce55dae8a 24-Jul-2014 Alexandra Gherghina <alexgherghina@google.com> Refactoring useless UserUtils class

Bug: 16542609
Change-Id: Iadb83c5e378cd342ea89d6e224ddc45e6f940c8b
/packages/apps/Settings/src/com/android/settings/applications/RunningState.java
bf427a2064e76cabc5e50573bcfcc0c954dd0720 25-Apr-2014 Jun Su <juns@nvidia.com> Fix NullPointerException issue when user change

When info is null, we have risk to have access null point.

Change-Id: Ie6acee5c99d6297e31d46585435a735a38b19e82
/packages/apps/Settings/src/com/android/settings/applications/RunningState.java
b0b0b110c04ddbbe5e2651dcb1a6f13551c61fb8 14-May-2013 Amith Yamasani <yamasani@google.com> Use circular avatars wherever appropriate

Battery stats, Data usage and Running apps

Change-Id: Ib7f851e55ef7e44f18d3f8a2cd27f5f2204b0145
/packages/apps/Settings/src/com/android/settings/applications/RunningState.java
910b2116b0f1d3efdb95d663003a2181bf9faf33 05-Oct-2012 Johan Redestig <johan.redestig@sonymobile.com> Fix NullPointerException at RunningState

getServiceInfo returns null if you have a service defined in the
manifest as: <service android:name=".Xxx" android:exported="false" />
or and in an <application> with no label or icon.
Dont crash the Settings application because of that.

Change-Id: I6f9f69c130e610b7e4ab66426177b7bade1e1515
/packages/apps/Settings/src/com/android/settings/applications/RunningState.java
0e092f4eb010976349e3fd1e49e41e14b1a33aaa 11-Oct-2012 Jeff Sharkey <jsharkey@android.com> Switch to IPackageManager.getServiceInfo().

Bug: 7095093
Change-Id: I79b9f077c9d69c5629b7dd0071a11ccda50839cd
/packages/apps/Settings/src/com/android/settings/applications/RunningState.java
7cb4780870fe72882c9b37e91d1b812f16998b3d 10-Oct-2012 Jeff Sharkey <jsharkey@android.com> Use user-specific PackageManager.

Bug: 7095093
Change-Id: Ia97065d4bdf5203372b76b62a6dfd72858892234
/packages/apps/Settings/src/com/android/settings/applications/RunningState.java
c715fb1207361bb2a793752eefb02f1956075739 22-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix issue 7198767, 7198366, 7189824.

Bug #7198767: Crash on choosing App info from the Recent apps tab
Bug #7198366: Settings UI should not show other Users' apps
Bug #7189824: Settings crashes on trying to access Battery usage summary

Also fix running services to be able to show user bitmap when in
secondary users, crash in running services if a service is running
whose app is not installed for the current user.

Change-Id: Ief24810c9ddce1ec3f8641ce08af79e1bc18f221
/packages/apps/Settings/src/com/android/settings/applications/RunningState.java
271c8b06c2b6f12cd7f51c2be2ca50167b96e742 21-Aug-2012 Dianne Hackborn <hackbod@google.com> Make manage apps UI multi-user aware.

The details screens still need some work.

Change-Id: I850cc9ba9a8db7787fae629ae3cb6c6772c726f5
/packages/apps/Settings/src/com/android/settings/applications/RunningState.java
b71efad62e1dc63d4b928e06419637ef1c3011ed 02-Dec-2011 Amith Yamasani <yamasani@google.com> Potential fix for NPE in Running services.

Bug: 5698270

Loop was removing items from the list being iterated.

Change-Id: I39e98c554b2fe6024381afbe79b737b812e78f08
/packages/apps/Settings/src/com/android/settings/applications/RunningState.java
4bed01d8727b106a1a6bd09a1d82309e1b0df040 08-Sep-2011 Dianne Hackborn <hackbod@google.com> Fix an issue in how running services are shown.

If a process had started services, but another process was
using it for more important reasons, it would still be shown
as just with running services. Now it will be bundled into
the other process that has a dependency on this.

This fixes an issue where something like a live wallpaper
that say sits forever with a connection to market's licensing
service would not show up to the user as using far more memory
than it should because it is keeping market running (if market
also leaves one of its services running, which it tends to do).

Change-Id: I0fd953b7221f7a3b35400007bb9e8437f09d066e
/packages/apps/Settings/src/com/android/settings/applications/RunningState.java
430a3d3376cfa2c2a03d6f18d28577c34750102c 08-Aug-2011 Dianne Hackborn <hackbod@google.com> Update to work with the activity manager taking over OOM settings.

The values it needs are no longer in properties.

Also fix a few problems: bug with apps being left in the services
list, sorting of internal storage.

Change-Id: Ife9706e004931269c36a7bc37b9dbb016064c2e4
/packages/apps/Settings/src/com/android/settings/applications/RunningState.java
2826bc4ca52686f6863409e36eaea1a7f45de3eb 06-Aug-2011 Dianne Hackborn <hackbod@google.com> Use new more efficient API for retrieving pss.

Change-Id: Ibcbcc397c2a7c19acd2de640528392df9bb780bb
/packages/apps/Settings/src/com/android/settings/applications/RunningState.java
f70f60c4dcfa576ea4ca9eda88eb1f258d1b38f1 14-Jul-2011 Dianne Hackborn <hackbod@android.com> am 7d19d795: am b41b85dc: am c74500f4: Merge "Fix NPE due to missing ProcessItem.mPackageInfo"

* commit '7d19d795c8d7a5692879523d8179a8a46226bbbc':
Fix NPE due to missing ProcessItem.mPackageInfo
8258dc23d3584d8ca2b0ddade6fb84adb86e4866 20-Dec-2010 Johannes Carlsson <johannes.carlsson.x@sonyericsson.com> Fix NPE due to missing ProcessItem.mPackageInfo

The reason was that a item was removed from the SparseArray while
iterating it causing one ProcessItem to be skipped in the loop which
makes sure that mPackageInfo is not null. This happens when all
processes for one uid is stopped and a new process is created.
This problem was found by running monkey.

Change-Id: I5e9a76e8007819d5e6d9ba15af0c2362da193526
/packages/apps/Settings/src/com/android/settings/applications/RunningState.java
2372ba5b54f018cbc2e01f66b661c2e322d174d7 14-Feb-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3405731: Manage applications app names don't update with locale

Change-Id: Ia7dcf7973bde6785afb5978ee2a7858bc6740582
/packages/apps/Settings/src/com/android/settings/applications/RunningState.java
1337d0f70b18dd732c6a617be83e5be0bb8f2f87 14-Oct-2010 Dianne Hackborn <hackbod@google.com> Implement issue #3094621 and #3094609 - wipe sd card

3094621: add "wipe sd card" option to factory data reset
3094609: collapse unmount/format into one command

Implements requested UI changes. Also some final tweaks to
Manage Applications.

Change-Id: I0219195dd0c74d8c003ef1c3f6e09714859d7f89
/packages/apps/Settings/src/com/android/settings/applications/RunningState.java
2d5cd1dfbc635fef3321694f33faf38ffa993d3f 03-Sep-2010 Dianne Hackborn <hackbod@google.com> Follow rename.

Change-Id: I255df1429b999943d7b3d2ca2b453045f195fdb9
/packages/apps/Settings/src/com/android/settings/applications/RunningState.java
508fedc4102790dcd7004e4962e2b540967b714b 29-Jul-2010 Dianne Hackborn <hackbod@google.com> Improvements to manage apps / running services:

- Running services now keeps a single data structure to make
switching through the UI a lot faster.
- Display text when there are no apps.
- Fix deadlock.
- Add new preference entry to view manage apps for storage use.
- Etc.

Change-Id: I0f5babf407ed7e84169f59584ddcb6cd0e9d67d9
/packages/apps/Settings/src/com/android/settings/applications/RunningState.java
c01b0c83fca571229621d16b757a46dc0fae7dfe 24-Jun-2010 Dianne Hackborn <hackbod@google.com> Allow user to see and stop heavy-weight processes.

Change-Id: If5caed3972ab03a54fbf8c459cdfc136e4bdc020
/packages/apps/Settings/src/com/android/settings/applications/RunningState.java
ea38e678537cf740b5f30c1d69c7a332e98cdd2c 11-Jun-2010 Dianne Hackborn <hackbod@google.com> Show history of battery level.

Also clean up to remove dead code for running services and old
battery usage UI.

Finally some string improvements from Roy.

Change-Id: I8765a4c744b92edd1505f14c47fea57b918e5d7b
/packages/apps/Settings/src/com/android/settings/applications/RunningState.java
728ac35373028b79205a788c526ef4b495518ec1 07-Jun-2010 Dianne Hackborn <hackbod@google.com> New Running Services UI.

This introduces a simplified (thanks, dsandler!) UI for Running Services,
collapsing the groups of apps and processes into single lines. Tapping
on a line moves to a new activity showing details on that group, where the
stop functionality is now available.

This UI is now also integrated into Manage Applications, as the Running
tab. You no longer get a really confusing, misleading, scary list of
every package that appears to be laying around for some reason.

The code was also re-organized, to put everything related to Manage
Applications and Running Services under its own package.

There is still some clean-up -- some performance improvements (such as
not re-computing the world when we switch to the details view), and if
this looks good then eradicating the old running services UI.

Change-Id: I3fc059c18060600742cab5b455d11ff74bf45ae3
/packages/apps/Settings/src/com/android/settings/applications/RunningState.java