summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
diff options
context:
space:
mode:
authorwilsonshih <wilsonshih@google.com>2019-12-06 18:46:07 +0800
committerwilsonshih <wilsonshih@google.com>2019-12-10 13:19:31 +0800
commit29fd42c9d7d6c3f453a6afb863585cdbddb1ddd2 (patch)
tree9ccd15c71151a0aabe9372b4f7d33dd6f3430e4d /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
parent993b3ed57126e67e442a010172c17df21cc02a8f (diff)
Isolate mAnimationCompleteLock from mSync.
Sometimes the test fail because activity starts for more than 5 seconds, and it seems only happen when calling startActivitySync and running for split screen tests. If there are two activities A and B are running in the same process. Consider the following sequence: 1. Start ActivityA then move it to primary split screen. 2. Start ActivityB with startActivitySync, it would launched on second split screen and wait for enter animation complete. 3. Resume ActivityA naturally, but since ActivityB is blocking mSync in waitForEnterAnimationComplete, performResume for ActivityA would waiting for mSync on main thread. 4. Animation complete, scheduleEnterAnimationComplete for ActivityB, however ENTER_ANIMATION_COMPLETE cannot be executed due to main thread was blocked. The deadlock occurs until mAnimationCompleteLock timeout. Note: There is also another case where the first activity is started more than 5 seconds at the beginning of the test. Bug: 127741025 Test: atest ActivityThreadTest Test: atest android.server.wm.lifecycle Change-Id: I8b4fe44f962dd31d130ee6b38dabf6e0c90b4060
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions