commit | 509d4ce70b04d0cad2f4b2d3a81ec2f6f1fc86c8 | [log] [tgz] |
---|---|---|
author | Varun Shah <[email protected]> | Tue Sep 10 00:50:54 2024 +0000 |
committer | Varun Shah <[email protected]> | Tue Sep 10 17:49:42 2024 +0000 |
tree | 195b1131da9c18cc0d3991bd4fba4ef016a15d90 | |
parent | d65f8d0605f6ddf9adb8bb5305ca3321363f0feb [diff] |
Rate limit calls to AM.getMyMemoryState(). Apps do not need to call getMyMemoryState any more than 200 times per second. Rate limit this API to 2 calls every 10ms which will allow apps to keep getting updated info at a reasonable interval. Flag: android.app.rate_limit_get_my_memory_state Bug: 365182205 Test: atest ActivityManagerTest Test: manually check logs for cache hits/misses Change-Id: I0ab53c8f477dc5a82c812d1fe541491e04367cc9