Loading services/java/com/android/server/WindowManagerService.java +8 −12 Original line number Diff line number Diff line Loading @@ -5610,7 +5610,7 @@ public class WindowManagerService extends IWindowManager.Stub // If an app switch key has been pressed, and we have // waited too long for the current app to finish // processing keys, then wait no more! doFinishedKeyLocked(true); doFinishedKeyLocked(false); continue; } long switchTimeout = mTimeToSwitch - now; Loading Loading @@ -6008,7 +6008,7 @@ public class WindowManagerService extends IWindowManager.Stub + ((mLastWin != null) ? mLastWin.mToken.paused : "null")); if (mLastWin != null && (!mLastWin.mToken.paused || force || !mEventDispatching)) { doFinishedKeyLocked(false); doFinishedKeyLocked(true); } else { // Make sure to wake up anyone currently waiting to // dispatch a key, so they can re-evaluate their Loading Loading @@ -6086,14 +6086,10 @@ public class WindowManagerService extends IWindowManager.Stub // The new window is above the old; finish pending input to the last // window and start directing it to the new one. mLastWin.mToken.paused = false; doFinishedKeyLocked(true); // does a notifyAll() } // Either the new window is lower, so there is no need to wake key waiters, // or we just finished key input to the previous window, which implicitly // notified the key waiters. In both cases, we don't need to issue the // notification here. doFinishedKeyLocked(false); // does a notifyAll() return; } } // Now that we've put a new window state in place, make the event waiter // take notice and retarget its attentions. Loading Loading @@ -6134,7 +6130,7 @@ public class WindowManagerService extends IWindowManager.Stub + token.paused); token.paused = false; if (mLastWin != null && mLastWin.mToken == token && mFinished) { doFinishedKeyLocked(true); doFinishedKeyLocked(false); } else { notifyAll(); } Loading Loading @@ -6162,13 +6158,13 @@ public class WindowManagerService extends IWindowManager.Stub } } private final void doFinishedKeyLocked(boolean doRecycle) { private final void doFinishedKeyLocked(boolean force) { if (mLastWin != null) { releasePendingPointerLocked(mLastWin.mSession); releasePendingTrackballLocked(mLastWin.mSession); } if (mLastWin == null || !mLastWin.mToken.paused if (force || mLastWin == null || !mLastWin.mToken.paused || !mLastWin.isVisibleLw()) { // If the current window has been paused, we aren't -really- // finished... so let the waiters still wait. Loading Loading
services/java/com/android/server/WindowManagerService.java +8 −12 Original line number Diff line number Diff line Loading @@ -5610,7 +5610,7 @@ public class WindowManagerService extends IWindowManager.Stub // If an app switch key has been pressed, and we have // waited too long for the current app to finish // processing keys, then wait no more! doFinishedKeyLocked(true); doFinishedKeyLocked(false); continue; } long switchTimeout = mTimeToSwitch - now; Loading Loading @@ -6008,7 +6008,7 @@ public class WindowManagerService extends IWindowManager.Stub + ((mLastWin != null) ? mLastWin.mToken.paused : "null")); if (mLastWin != null && (!mLastWin.mToken.paused || force || !mEventDispatching)) { doFinishedKeyLocked(false); doFinishedKeyLocked(true); } else { // Make sure to wake up anyone currently waiting to // dispatch a key, so they can re-evaluate their Loading Loading @@ -6086,14 +6086,10 @@ public class WindowManagerService extends IWindowManager.Stub // The new window is above the old; finish pending input to the last // window and start directing it to the new one. mLastWin.mToken.paused = false; doFinishedKeyLocked(true); // does a notifyAll() } // Either the new window is lower, so there is no need to wake key waiters, // or we just finished key input to the previous window, which implicitly // notified the key waiters. In both cases, we don't need to issue the // notification here. doFinishedKeyLocked(false); // does a notifyAll() return; } } // Now that we've put a new window state in place, make the event waiter // take notice and retarget its attentions. Loading Loading @@ -6134,7 +6130,7 @@ public class WindowManagerService extends IWindowManager.Stub + token.paused); token.paused = false; if (mLastWin != null && mLastWin.mToken == token && mFinished) { doFinishedKeyLocked(true); doFinishedKeyLocked(false); } else { notifyAll(); } Loading Loading @@ -6162,13 +6158,13 @@ public class WindowManagerService extends IWindowManager.Stub } } private final void doFinishedKeyLocked(boolean doRecycle) { private final void doFinishedKeyLocked(boolean force) { if (mLastWin != null) { releasePendingPointerLocked(mLastWin.mSession); releasePendingTrackballLocked(mLastWin.mSession); } if (mLastWin == null || !mLastWin.mToken.paused if (force || mLastWin == null || !mLastWin.mToken.paused || !mLastWin.isVisibleLw()) { // If the current window has been paused, we aren't -really- // finished... so let the waiters still wait. Loading