summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimation.cpp
diff options
context:
space:
mode:
author Abdelrahman Awadalla <blobou@google.com> 2024-09-21 14:48:47 +0000
committer Abdelrahman Awadalla <blobou@google.com> 2024-09-23 22:02:22 +0000
commit899dedf5b7f89a007e9b113abad05235162404c5 (patch)
treebaf5be0c18a5ad460142973dbbbcde747ebfcc50 /cmds/bootanimation/BootAnimation.cpp
parentded22208553e1a5c595985475a3e7ad694b4b4d1 (diff)
Fixing Concurrent Modification Exception in TouchpadDebugView
A race conditions is being hit because the updates in TouchpadVisualizationView are happening from different threads. In this case, hardware state update is received (which happens on the InputReader thread) at the same time as the onDraw (which happens on the UI thread). So, Handlers is used to start posting the updateHardwareState and and updateGestureInfo in TouchpadDebugView and onDraw and onTouchpadHardwareStateNotified in TouchpadVisualizationView. Test: $ atest TouchpadDebugViewTest Test: $ atest TouchpadDebugViewControllerTests Test: Presubmit checks Bug: 368743974 Flag: com.android.hardware.input.touchpad_visualizer Change-Id: I14df74b188b3ba8aadd49e1ce4098e7da1cc1dcb
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
0 files changed, 0 insertions, 0 deletions