summaryrefslogtreecommitdiff
path: root/libs/ultrahdr/jpegencoderhelper.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2023-11-02 18:05:36 +0000
committer Prabir Pradhan <prabirmsp@google.com> 2023-11-03 21:54:00 +0000
commitb9dd164bea3b6855517ac1b17fd02a68aa297c90 (patch)
tree8c0a0b4f78867e123042ede13c8c9f498b08bc1b /libs/ultrahdr/jpegencoderhelper.cpp
parenta8cdbe17cded8d5747fccdf43552fdcef8392526 (diff)
Do not re-use the same EventEntry and DispatchEntry for fallback keys
Re-using the same EventEntry and DispatchEntry for fallbacks is incorrect. A fallback can be thought of as a completely new event generated for a channel, in which case it should not share the same eventId as the original event. Re-using the same DispatchEntry leads to the incorrect behavior, since the expected flags in the event will be overridden by the the resolvedFlags (and other resolved fields) from the old DispatchEntry. This CL also fixed this incorrect behavior, which is verified with the new tests added in the following CL. Bug: 210460522 Test: atest inputflinger_tests Change-Id: I30fd72a7da85043ea19fedaace41e79b20c85645
Diffstat (limited to 'libs/ultrahdr/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions