summaryrefslogtreecommitdiff
path: root/libs/androidfw/AssetManager.cpp
diff options
context:
space:
mode:
author Adam Bookatz <bookatz@google.com> 2024-04-01 18:14:20 -0700
committer Adam Bookatz <bookatz@google.com> 2024-04-16 15:15:37 -0700
commitf3cd5559c883f3be75a3c6a03ae10fe35db575ae (patch)
tree7cfd37b4da578fe24ea11002b3dbf8f68940f752 /libs/androidfw/AssetManager.cpp
parentfad849bcd7ee9a94e78eaaeb94f97e0013bf78fb (diff)
Schedule stopping inactive background users
When a full user enters the background, we can now schedule it to be stopped at a later time (if it doesn't become the foreground user before then). This way, it will no longer use up resources. The idea is that, if the device does switch back to the user on a short- or intermediate-timescale, the background user will be ready to go, reducing the user start/switch time; however, if the device does not switch back to the user on a long timescale, there is no point in the user taking up RAM, and it is therefore stopped. The stopping time is configurable and can be disabled entirely. We further make no absolete guarantees that the background user will be stopped; we do so at our discretion. Bug: 330351042 Test: atest UserControllerTest#testScheduleStopOfBackgroundUser_switch Test: atest UserControllerTest#testScheduleStopOfBackgroundUser_startInBackground Test: atest UserControllerTest Change-Id: Ibd94ef70ec601834a8157e29eac49471ec7435f0
Diffstat (limited to 'libs/androidfw/AssetManager.cpp')
0 files changed, 0 insertions, 0 deletions