summaryrefslogtreecommitdiff
path: root/libs/androidfw/ApkParsing.cpp
diff options
context:
space:
mode:
author wilsonshih <wilsonshih@google.com> 2022-11-21 02:42:32 +0000
committer wilsonshih <wilsonshih@google.com> 2023-03-17 11:55:09 +0800
commite74d7bf2f91843352af771b5124638f4114a4af3 (patch)
tree3182e9fe822947f831cbe27f889c034ac5c808b6 /libs/androidfw/ApkParsing.cpp
parent99e9394054b3750e4ccd6461b88082119e6c8cc5 (diff)
Introduce ActivitySnapshotController(3/N)
The AppSnapshotController is response for transition analysis, so TaskSnapshotController and ActivitySnapshotController does not need to do duplicate analysis. Also, it should be easier to do test by de-couple the "transition-analysiser" and "transition-handler". And for the basic implementation of Activity snapshot controller: 1. Record and/or remove an activity snapshot when an activity transition happen. 2. Delete and/or load an activity snapshot from disk to cache when a task transition happen. 3. Only keep one snapshot for the visible task in the cache. 4. This feature is disabled on Low Ram device. 5. Persisted snapshot file will be removed when activity removed. 6. All persisted files for a user will be removed while first access. 7. Purge persisted files on disk when persited file exceed a maximum count. 8. Works on multi-user environment. Bug: 259497289 Test: atest TransitionTests ActivitySnapshotControllerTests\ AppSnapshotControllerTests TaskSnapshotControllerTest Change-Id: I4fc0ca96c748c6123ffabcab9c6b03b7057ac840
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions