summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Zim <zezeozue@google.com> 2023-02-22 13:55:35 +0000
committer Zim <zezeozue@google.com> 2023-03-01 19:04:28 +0000
commite9781e625f183632c0ed95b180fea9a6766052c6 (patch)
treefdabab605034a12004dd51411a57b03325edf644 /libs/input/PointerController.cpp
parent0683f76ebe7c9e73d37ef3adc07e9d105c79fb8a (diff)
Skip computing proc states during app initialization
Now that app initialization covers class loading, there can be hundreds of milliseconds delay before a top app activity gets scheduled to start. During this delay, computing proc states overrides the top app special case set at attachApplication to boost the sched group. This is fixed with the following changes: 1. Skip computing proc states when the application hasn't finished attach application 2. Trigger a proc state update immediately after scheduling bindApplication. This ensures that the special cased proc state is applied as soon as possible Test: atest MockingOomAdjusterTests Bug: 253908737 Change-Id: Iae30a508b8b079dc88d6d5ffa027b7d805fec9e4
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions