summaryrefslogtreecommitdiff
path: root/libs/androidfw/AssetsProvider.cpp
diff options
context:
space:
mode:
author Alexandra-Mara Smau <smaraa@google.com> 2023-09-18 16:50:02 +0000
committer Alexandra-Mara Smau <smaraa@google.com> 2023-09-22 12:47:24 +0000
commitc184579279ef40840c68bed6625088c1b226baed (patch)
tree6579aa0e1650d77b8de7a2a7886824f9097954ec /libs/androidfw/AssetsProvider.cpp
parent7f9d72ca6975ccbc1d830ca65fe7408ecf8465f1 (diff)
Fix press HOME logging tests.
The logic to log the system event triggered by the key press is executed after the tests check if the system event was logged. This happens when: 1. PhoneWindowManager posts handleShortPressOnHome, message queue: [handleShortPressOnHome] 2. TestPhoneWindowManager posts runWithScissors, message queue: [handleShortPressOnHome, runWithScissors] 3. Handler runs handleShortPressOnHome, which posts logKeyboardSystemsEvent, message queue: [runWithScissors, logKeyboardSystemsEvent] 4. Handler runs runWithScissors, fails the assertion that keyboardSystemEvent was logged, message queue: [logKeyboardSystemsEvent] 5. Handler runs logKeyboardSystemsEvent, message queue: [] A copy of the KeyEvent is needed, because the KeyEvent gets recycle later on. Test: atest ShortcutLoggingTests Change-Id: I0878bb616296ebbed4bf2a7e9479a970c3eb6bce Bug: b/300023716
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions