summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.cpp
diff options
context:
space:
mode:
author Harry Cutts <hcutts@google.com> 2024-02-12 14:32:03 +0000
committer Harry Cutts <hcutts@google.com> 2024-02-12 16:55:10 +0000
commit1c6ce0689f7955dd72f4c8158ff5ed13d7f4714d (patch)
tree4c2f3697aac426b6069311b8ff2243a26bb4cc9a /libs/hwui/FrameInfoVisualizer.cpp
parentb8c7f5eb6bd2c77d41f84b2f6194b41e989bd541 (diff)
Reland "uinput: Specify timestamps when injecting events..."
The reland fixes an issue where the time at registration would be used for timestamp values forever unless `delay` commands were introduced. (Original description, with additional Test line:) Last year support for specifying timestamps for uinput events was added to the Linux Kernel [0]. This allows us to give precise timestamps for events being played back from an evemu recording, despite the actual times at which we inject them being imprecise due to how threads and the kernel are scheduled. [0]: https://lore.kernel.org/lkml/20230427000152.1407471-1-biswarupp@google.com/ Bug: 310958309 Test: with the patch added to the device's kernel, play back pointing stick and touchscreen recordings. Compare `getevent -lt` output with the timestamps in the recordings to check that the offsets between timestamps match (e.g. using a spreadsheet). Test: atest UinputTests Test: atest android.view.cts.input.InputDeviceKeyLayoutMapTest \ android.view.cts.input.InputDeviceSensorManagerTest \ --rerun-until-failure=10 Change-Id: Icf77e8adba075ab070806311f31c6a5e1bd98bc9
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions