summaryrefslogtreecommitdiff
path: root/libs/gui/LayerState.cpp
diff options
context:
space:
mode:
author Yeabkal Wubshit <yeabkal@google.com> 2024-01-17 17:03:42 -0800
committer Yeabkal Wubshit <yeabkal@google.com> 2024-01-19 17:07:12 -0800
commitb8aadfa28ed77ac586be838171709626be01b175 (patch)
tree40c86470954f23a917c1eceeb0a54040e0ba825e /libs/gui/LayerState.cpp
parent8af3ec98ffcb94a0fa6d0f0b3553c82552708d04 (diff)
Rate limit user activity pokes in InputDispatcher
This rate limiting used to exist in PowerManager's JNI entry point. Moving it to InputDispatcher helps us avoid building and sending the request to the PowerManager JNI layer if the request is not going to be sent to the Java layer. We are also enabling configuration of this rate. Previously, a default rate of 100ms per use-activity type was used. We have added an XML config to allow overriding this value device-wide, for all user-activity types. This helps devices adjust the rate as per their use cases. Bug: 320499729 Test: atest InputDispatcherUserActivityPokeTests Change-Id: I66fce1082e857b4d74b69e2d87d1a5fe1d9eb57c
Diffstat (limited to 'libs/gui/LayerState.cpp')
0 files changed, 0 insertions, 0 deletions