Automated import from //branches/donutburger/...@141746,141746
diff --git a/policy/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/com/android/internal/policy/impl/PhoneWindowManager.java
index 5ea73bd..c6c053e 100644
--- a/policy/com/android/internal/policy/impl/PhoneWindowManager.java
+++ b/policy/com/android/internal/policy/impl/PhoneWindowManager.java
@@ -1615,9 +1615,9 @@
 
     /** {@inheritDoc} */
     public void screenTurnedOff(int why) {
+        EventLog.writeEvent(70000, 0);
+        mKeyguardMediator.onScreenTurnedOff(why);
         synchronized (mLock) {
-            EventLog.writeEvent(70000, 0);
-            mKeyguardMediator.onScreenTurnedOff(why);
             mScreenOn = false;
             updateOrientationListenerLp();
         }
@@ -1625,9 +1625,9 @@
 
     /** {@inheritDoc} */
     public void screenTurnedOn() {
+        EventLog.writeEvent(70000, 1);
+        mKeyguardMediator.onScreenTurnedOn();
         synchronized (mLock) {
-            EventLog.writeEvent(70000, 1);
-            mKeyguardMediator.onScreenTurnedOn();
             mScreenOn = true;
             updateOrientationListenerLp();
         }