commit | c301e09c19cc6d659217e545c4e5213ae27ece1f | [log] [tgz] |
---|---|---|
author | Shen Lin <shhenlin@gmail.com> | Fri Nov 18 16:47:58 2022 +0800 |
committer | Shen Lin <shhenlin@gmail.com> | Fri Dec 09 09:45:10 2022 +0000 |
tree | 2203134761197d62f230712c088ddf1af8f23547 | |
parent | 140a69e94fd3e78a69f8ea9cefea47bc05060d80 [diff] |
Introduce trimMemory to AppIconCacheManager This CL adds a method to trim lrucache size dynamically based on the level of onLowMemory to avoid calling evictAll to frequently, and to make cache resize more reasonable. Bug: 259630755 Test: atest AppIconCacheManagerTest -c Change-Id: I1b9692a0fad8c13722da4906cf844232707e74b2