diff options
author | nttsai <nttsai@google.com> | 2019-04-03 15:50:06 +0800 |
---|---|---|
committer | NT Tsai <nttsai@google.com> | 2019-04-15 06:14:33 +0000 |
commit | a2363540475778db4d6351c581dafb8407a50173 (patch) | |
tree | 5b7cda39de440eabfe9a5e3a690c936db67aabd9 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | a498804d40484e73e660a9aad9c0138f7b8ed24d (diff) |
Fix a deadlock WMG->WMS, WMS->WMG
In ImmersiveModeConfirmation, the WindowManager operations shouldn't be
called while holding the WM lock. Thus, I remove the assigned operation of
mWindowManager member in the constructor function. Next, I add a private
function to get a valid mWindowManager member in 3 functions (handleHide,
handleShow, onAttachedToWindow). The 3 functions are called by a different
thread by specific events. It should avoid the deadlock we saw now.
Bug: 129101307, 128520392
Test: local build and manually test it for 2 times
Test Steps: 1. Boot up the device 2. Start Photo to view a photo in full
screen and exit full screen
Change-Id: If42f4fd6a31869d5eefa8b445c32665aef1ee07d
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions