summaryrefslogtreecommitdiff
path: root/libs/battery/LongArrayMultiStateCounterTest.cpp
diff options
context:
space:
mode:
author Arthur Hung <arthurhung@google.com> 2021-09-01 14:52:30 +0000
committer Arthur Hung <arthurhung@google.com> 2021-09-13 08:44:17 +0000
commitabbb9d8a0d43df618b75c8a4b7fd796f0b1cb9c2 (patch)
treef2c0f43ad224f01ad75fac2dc455266532c1a778 /libs/battery/LongArrayMultiStateCounterTest.cpp
parent38953ba5e4f2a33c397382ed336075b71a8717c0 (diff)
Fix drag and drop failed while recording video
The 'transferTouchFocus' would check if the two windows are exist and if they are coming from same display. But the mirror surface would share the same token of the original one. That could cause 'getWindowHandle' return the first window that not belongs to the display of the target window. To fix this, we would check the touch state to see if the from window is being touched, and check if the target window is also coming from same display, then do the transfer touch focus. Bug: 195380978 Test: atest inputflinger_tests Test: atest CrossAppDragAndDropTests Test: enable video recording, do drag and drop Change-Id: I458dfb138d446656117828f1229fcc871e8b5e1d
Diffstat (limited to 'libs/battery/LongArrayMultiStateCounterTest.cpp')
0 files changed, 0 insertions, 0 deletions