summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2024-09-20 11:09:13 +0800
committer Riddle Hsu <riddlehsu@google.com> 2024-10-08 11:29:11 +0800
commit714eee2e9aee89b9be81d5171400a2e85e5552a4 (patch)
tree1afe9a9b6e373b3de80073fe72f6bf08a5c8691d /libs/androidfw/StringPool.cpp
parentd8aa9a2a6156c355cae1e2b1e9bc863d09765499 (diff)
Reduce unnecessary calculation from input device change
The notifyConfigurationChanged can be called for any attributes change of InputDevice. And the change may be unrelated to display configuration. E.g. motion range change of touch panel. So before asking window manager to recompute entire display configuration, check if attributes which can affect display are changed. That reduces the execution time of the method from 5ms to <0.1ms when turning on/off screen, and it reduces lock contention between other important operations. Bug: 368461853 Flag: com.android.window.flags.filter_irrelevant_input_device_change Test: atest WindowManagerServiceTests# \ testInputDeviceNotifyConfigurationChanged Change-Id: Ifce6778d8180865b7597a391b5fddd0009a04162
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions