diff options
| author | 2023-03-03 01:09:08 +0000 | |
|---|---|---|
| committer | 2023-03-17 18:02:09 +0000 | |
| commit | a0104a0551a2ea57329cefd8fa716b547c9eeed9 (patch) | |
| tree | 53656d7266ce82bf49f71a8f962b98fcf5d385b3 /libs/androidfw/ResourceTimer.cpp | |
| parent | acfdabf2469191b11c3dca78a8f8458bd480b9f4 (diff) | |
Add an ActivityManager callback for UID frozen state changes
Allow a client to ask for frozen state changes. CachedAppOptimzer will
fire this callback when all processes in a Uid have become frozen and
also when a process in a fozen Uid becomes unfrozen. Currently this is
intended to be used in ConnectivityService to kill sockets for frozen apps.
Freezing is done on a process basis however the callback operates on the
Uid level. I added some methods and a boolean on UidRecord to query the
frozen state of it's proceses so that we only fire the callback when
appropriate.
This feature is off by default.
Test: Tested with a ConnectivityService patch to register for this callback
Test: and kill sockets on notification of a frozen Uid.
Bug: 253914114
Change-Id: I27ae40f345532836bdcb0e0dc3d7d7315c110d29
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions