summaryrefslogtreecommitdiff
path: root/libs/gui/FrameRateUtils.cpp
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2023-10-19 18:58:07 -0700
committer Siarhei Vishniakou <svv@google.com> 2023-10-29 13:43:02 -0700
commitae08b5e5f48fa9711a32ae0cb71d53505fe911f2 (patch)
treea6c87456ea4840205c740745a335a6799bed560a /libs/gui/FrameRateUtils.cpp
parent574cfcf497cd70675d1106cd522ce07bf282b141 (diff)
input_verifier: Ensure bad event does not change verifier state
Before this CL, the verifier combined a check and a storage operation into a single action. After the check, a bad event would cause the verifier to return, but the state would have already be altered. In this CL, we ensure that the check happens first, so that a bad event does not modify the verifier state. Bug: 287342122 Test: atest inputflinger_tests Change-Id: Ib981231046faa062717a9d00856bf9551e510a33
Diffstat (limited to 'libs/gui/FrameRateUtils.cpp')
0 files changed, 0 insertions, 0 deletions