summaryrefslogtreecommitdiff
path: root/libs/gui/SurfaceComposerClient.cpp
diff options
context:
space:
mode:
author Jeff Sharkey <jsharkey@android.com> 2017-02-21 18:30:28 -0700
committer Jeff Sharkey <jsharkey@android.com> 2017-02-22 11:44:00 -0700
commit871a8f236ef2a055b9955b47a342b2c44c020ef7 (patch)
tree5a244a3f593ac20f0fd771a8ae8ca37b7fb90aeb /libs/gui/SurfaceComposerClient.cpp
parent42714ad63c08899719bc1a6fe7fb3966fd66f0a8 (diff)
Logic for atmoic/tombstone behavior; split mode.
Flesh out logic for cache directories that request new atomic and/or tombstone clearing behaviors. Atomic directories are considered for deletion as a single all-or-nothing unit, and tombstone directories truncate any removed files instead of unlinking them. Since these behaviors can be mixed together, add local tests that quickly verify several different permutations. Reduce memory footprint of CacheItem objects by only storing name and pointer to parent (instead of full path). Fix ordering bug by switching to std::stable_sort. Add "V2_DEFY_QUOTA" flag so we can split clearing into two distinct phases: clearing data for apps above their quotas, and then pushing deeper by clearing data for apps below their quotas. Test: adb shell /data/nativetest64/installd_cache_test/installd_cache_test Bug: 34692014, 33811826 Change-Id: I156897de1d1d1c371b2b837128b2e286bf33d40d
Diffstat (limited to 'libs/gui/SurfaceComposerClient.cpp')
0 files changed, 0 insertions, 0 deletions