OSDN Git Service

Added missing lock and clean up locked function that wasn't locked
authorMatthew Ng <ngmatthew@google.com>
Tue, 30 May 2017 22:29:19 +0000 (15:29 -0700)
committerMatthew Ng <ngmatthew@google.com>
Tue, 30 May 2017 23:28:28 +0000 (16:28 -0700)
commitd79885346055a8b256823b76c68b62df51bca2e9
treee3f850201c5f205154cb93852d8679d1ef98ac07
parent4c6a49ed4770cd26158a9e910577241f6d64f842
Added missing lock and clean up locked function that wasn't locked

There was a missing lock that systemui would call to register a docked
stack listener. Since it was missing, it is assumed that two threads
went into a race condition which caused it to crash when handling begin
before finish broadcasts for the same DockedStackDividerController.
Also moved getDefaultDisplayContentLocked call that was not locked to a
locked area.

Change-Id: I3c7ef805024aaf0f5f7c4ab68fc779797114a038
Fixes: 62104210
Test: go/wm-smoke
services/core/java/com/android/server/wm/WindowManagerService.java