summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Jorge Gil <jorgegil@google.com> 2024-10-31 16:51:18 +0000
committer Jorge Gil <jorgegil@google.com> 2024-10-31 16:55:48 +0000
commitbcca774a46703e63c77ffdb10125c5d0946e2514 (patch)
tree1f99959bfc4c7eb1fed645470d7831d4d7aa516c /libs/androidfw/StringPool.cpp
parent7e1bc07dcb8d85533e2d3837febef272f39cd90b (diff)
Use AnimatorTestRule to end animators during tests
Using runOnUiThread to execute code that starts an Animator allows the animation to keep running beyond the lifetime of the test. This led to an eventual crash in WMShellUnitTests when the exit desktop animation finished and attempted to end() a jank CUJ, who no longer had a worker thread to work with and caused a NPE. Instead, run the test in a looper thread and use AnimatorTestRule to advance time to the end of the animation before the test finishes. Fix: 374328725 Fix: 375386897 Fix: 375386605 Fix: 375396353 Fix: 375397302 Flag: EXEMPT bugfix Test: atest WMShellModuleTests - no crashes Change-Id: I888b467972bf3974960a4d210d7f8a0d1ef4f306
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions