OSDN Git Service

Update rotation without holding the WOL lock.
authorMichael Wright <michaelwr@google.com>
Tue, 25 Aug 2015 20:15:12 +0000 (21:15 +0100)
committerMichael Wright <michaelwr@google.com>
Tue, 25 Aug 2015 20:15:12 +0000 (21:15 +0100)
commit74f6c79b513c5a6e032c009a037f67e256aab7ba
tree35be50f594899a27bea92dd24613a3da7916db11
parent26b555d42ce2cf78d42ebcc9806447bf83df9318
Update rotation without holding the WOL lock.

We need to make sure to only ever update the orientation of the
device from WindowOrientationListener when we're not holding the WOL
class lock, otherwise we can deadlock when WMS calls into us to set
the orientation based on an apps preference.

Bug: 23491348
Change-Id: Ifeded4d5d1dc923fa2ce0473bc4b7fe950dc0cfd
services/core/java/com/android/server/policy/WindowOrientationListener.java