commit | 46b42e3b66c26c616922da4d1a68c385bb270104 | [log] [tgz] |
---|---|---|
author | Amith Yamasani <yamasani@google.com> | Thu Aug 15 09:47:37 2024 -0700 |
committer | Amith Yamasani <yamasani@google.com> | Wed Aug 21 05:05:09 2024 +0000 |
tree | e3522380069b27175aa9a19ee807da868e6f5010 | |
parent | 94e64d081d5b4e636b0c7d4c996d06d8996b6f5f [diff] |
Add a rate limiter to the getRunningAppProcesses() call Allow at most 400 calls per second to system_server and return a cached value at other times. This is distributed as 4 calls every 10 ms. Bug: 360374604 Test: Take a trace to verify AIDL call doesn't exceed 4 every 10ms. Flag: android.app.rate_limit_get_running_app_processes Change-Id: I0781949fe3fcef170e8a3c09f6de4aeba4c2989d