diff options
author | 2024-09-04 18:38:31 +0000 | |
---|---|---|
committer | 2024-09-08 01:15:31 +0000 | |
commit | 8858f6b5608e22e2f08e8a3544b9eee04aa706f8 (patch) | |
tree | 189f4215e938a6f03fef3231a904d8e5d480ead6 /libs/androidfw/AssetManager.cpp | |
parent | 5bb8031597a249e890773c4131ac1c7e90da09e3 (diff) |
Rate limit calls to AM.getMemoryInfo().
Apps do not need to call getMemoryInfo any more than 100 times per
second. Rate limit this API - if apps want to consume information about
their own memory usage, they can use the getMyMemoryState API instead.
Flag: android.app.rate_limit_get_memory_info
Bug: 364312431
Test: atest ActivityManagerTest
Test: manually check logs for cache hits/misses
Change-Id: If2494509d76e269b0ad75d8d73bc6848adab490b
Diffstat (limited to 'libs/androidfw/AssetManager.cpp')
0 files changed, 0 insertions, 0 deletions