diff options
| author | 2024-10-18 07:07:35 +0000 | |
|---|---|---|
| committer | 2024-10-31 02:01:19 +0000 | |
| commit | 7a0c3b2bacb0f318bb457bc9d46ea6316d62e876 (patch) | |
| tree | 0dd7db091370df5b153987b0027edcd33ed671cb /libs/androidfw/StringPool.cpp | |
| parent | 0ef1067a3bc0910692429b294ba636576684449f (diff) | |
Inject swipe events with fixed frequency
The current implementation of `input swipe` injects too many motion
events during the swipe simulation. This behavior is different from the
real situation and other tools such as UI Automator.
This CL adds a sleep between input events so that they are emitted with
fixed frequency (120Hz).
Bug: 373998306
Test: atest InputShellCommandTest
Test: adb shell input swipe 200 800 200 200
Test: adb shell input swipe 200 800 200 200 100
Flag: EXEMPT minor change with unit test
Change-Id: I8b0d1a387e910280da8676201797723c47567a3a
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions