summaryrefslogtreecommitdiff
path: root/libs/androidfw/ObbFile.cpp
diff options
context:
space:
mode:
author Harry Cutts <hcutts@google.com> 2025-03-14 17:28:28 +0000
committer Harry Cutts <hcutts@google.com> 2025-03-14 17:28:28 +0000
commit54cbe9b562fd5e2381144578011201839f562745 (patch)
tree9bf1c8953bbf3a51bcc9cd037f0d749e363b3f76 /libs/androidfw/ObbFile.cpp
parent79e6e3d4e1fb1975638158927edd6783ea7d10dc (diff)
uinput: don't read next line of evemu recording until peek
When EvemuParser "accepts" a line of an evemu recording (i.e. it's found the line type it was expecting and is ready to process it), it calls CommentAwareReader#advance() before processing the current line. advance() was reading the next line of the file, ready for peeking, even though the current line hadn't been processed yet. When playing from standard input, this meant that a line wouldn't be executed until the next one was written, requiring a no-op line to be added to the end of event recordings. To fix this, only load the next line when peekLine() is called after the advance(). Test: $ atest --host UinputTestsRavenwood Test: $ atest InputTests:com.android.test.input.UinputRecordingIntegrationTests Bug: 367419268 Flag: TEST_ONLY Change-Id: I69c2cb651cd871ea0ceea9702c66b76abb37285a
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions