summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Amith Yamasani <yamasani@google.com> 2024-08-15 09:47:37 -0700
committer Amith Yamasani <yamasani@google.com> 2024-08-21 05:05:09 +0000
commit46b42e3b66c26c616922da4d1a68c385bb270104 (patch)
treee3522380069b27175aa9a19ee807da868e6f5010 /libs/input/PointerController.cpp
parent94e64d081d5b4e636b0c7d4c996d06d8996b6f5f (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
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions