Merge "Fix issue #6686339: 2 taps required to launch notification..." into jb-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0fa4d30b03
@@ -4395,7 +4395,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
pw.print(prefix); pw.print("mUserRotationMode="); pw.print(mUserRotationMode);
|
||||
pw.print(" mUserRotation="); pw.print(mUserRotation);
|
||||
pw.print(" mAllowAllRotations="); pw.println(mAllowAllRotations);
|
||||
pw.print(prefix); pw.print(" mCurrentAppOrientation="); pw.println(mCurrentAppOrientation);
|
||||
pw.print(prefix); pw.print("mCurrentAppOrientation="); pw.println(mCurrentAppOrientation);
|
||||
pw.print(prefix); pw.print("mCarDockEnablesAccelerometer=");
|
||||
pw.print(mCarDockEnablesAccelerometer);
|
||||
pw.print(" mDeskDockEnablesAccelerometer=");
|
||||
@@ -4403,12 +4403,13 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
pw.print(prefix); pw.print("mLidKeyboardAccessibility=");
|
||||
pw.print(mLidKeyboardAccessibility);
|
||||
pw.print(" mLidNavigationAccessibility="); pw.print(mLidNavigationAccessibility);
|
||||
pw.print(" mLidControlsSleep="); pw.print(mLidControlsSleep);
|
||||
pw.print(" mLongPressOnPowerBehavior="); pw.println(mLongPressOnPowerBehavior);
|
||||
pw.print(" mLidControlsSleep="); pw.println(mLidControlsSleep);
|
||||
pw.print(prefix); pw.print("mLongPressOnPowerBehavior=");
|
||||
pw.print(mLongPressOnPowerBehavior);
|
||||
pw.print(" mHasSoftInput="); pw.println(mHasSoftInput);
|
||||
pw.print(prefix); pw.print("mScreenOnEarly="); pw.print(mScreenOnEarly);
|
||||
pw.print(" mScreenOnFully="); pw.print(mScreenOnFully);
|
||||
pw.print(" mOrientationSensorEnabled="); pw.print(mOrientationSensorEnabled);
|
||||
pw.print(" mHasSoftInput="); pw.println(mHasSoftInput);
|
||||
pw.print(" mOrientationSensorEnabled="); pw.println(mOrientationSensorEnabled);
|
||||
pw.print(prefix); pw.print("mUnrestrictedScreen=("); pw.print(mUnrestrictedScreenLeft);
|
||||
pw.print(","); pw.print(mUnrestrictedScreenTop);
|
||||
pw.print(") "); pw.print(mUnrestrictedScreenWidth);
|
||||
|
||||
@@ -9542,12 +9542,14 @@ public class WindowManagerService extends IWindowManager.Stub
|
||||
}
|
||||
}
|
||||
}
|
||||
pw.println();
|
||||
if (mOpeningApps.size() > 0) {
|
||||
pw.print(" mOpeningApps="); pw.println(mOpeningApps);
|
||||
}
|
||||
if (mClosingApps.size() > 0) {
|
||||
pw.print(" mClosingApps="); pw.println(mClosingApps);
|
||||
if (mOpeningApps.size() > 0 || mClosingApps.size() > 0) {
|
||||
pw.println();
|
||||
if (mOpeningApps.size() > 0) {
|
||||
pw.print(" mOpeningApps="); pw.println(mOpeningApps);
|
||||
}
|
||||
if (mClosingApps.size() > 0) {
|
||||
pw.print(" mClosingApps="); pw.println(mClosingApps);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9761,7 +9763,7 @@ public class WindowManagerService extends IWindowManager.Stub
|
||||
pw.print(" mTransitionWindowAnimationScale="); pw.print(mTransitionAnimationScale);
|
||||
pw.print(" mAnimatorDurationScale="); pw.println(mAnimatorDurationScale);
|
||||
pw.print(" mTraversalScheduled="); pw.print(mTraversalScheduled);
|
||||
pw.print(" mNextAppTransition=0x");
|
||||
pw.print(" mNextAppTransition=0x");
|
||||
pw.print(Integer.toHexString(mNextAppTransition));
|
||||
pw.print(" mAppTransitionReady="); pw.println(mAppTransitionReady);
|
||||
pw.print(" mAppTransitionRunning="); pw.print(mAppTransitionRunning);
|
||||
@@ -9803,7 +9805,7 @@ public class WindowManagerService extends IWindowManager.Stub
|
||||
pw.println(mNextAppTransitionCallback);
|
||||
}
|
||||
pw.print(" mStartingIconInTransition="); pw.print(mStartingIconInTransition);
|
||||
pw.print(", mSkipAppTransitionAnimation="); pw.println(mSkipAppTransitionAnimation);
|
||||
pw.print(" mSkipAppTransitionAnimation="); pw.println(mSkipAppTransitionAnimation);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9971,6 +9973,12 @@ public class WindowManagerService extends IWindowManager.Stub
|
||||
}
|
||||
|
||||
synchronized(mWindowMap) {
|
||||
pw.println();
|
||||
if (dumpAll) {
|
||||
pw.println("-------------------------------------------------------------------------------");
|
||||
}
|
||||
dumpLastANRLocked(pw);
|
||||
pw.println();
|
||||
if (dumpAll) {
|
||||
pw.println("-------------------------------------------------------------------------------");
|
||||
}
|
||||
@@ -9990,11 +9998,6 @@ public class WindowManagerService extends IWindowManager.Stub
|
||||
pw.println("-------------------------------------------------------------------------------");
|
||||
}
|
||||
dumpWindowsLocked(pw, dumpAll, null);
|
||||
pw.println();
|
||||
if (dumpAll) {
|
||||
pw.println("-------------------------------------------------------------------------------");
|
||||
}
|
||||
dumpLastANRLocked(pw);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -718,6 +718,28 @@ final class WindowState implements WindowManagerPolicy.WindowState {
|
||||
|| ((mAppToken != null) && (mAppToken.mAppAnimator.animation != null)));
|
||||
}
|
||||
|
||||
/**
|
||||
* Like isReadyForDisplay(), but ignores any force hiding of the window due
|
||||
* to the keyguard.
|
||||
*/
|
||||
boolean isReadyForDisplayIgnoringKeyguard() {
|
||||
if (mRootToken.waitingToShow &&
|
||||
mService.mNextAppTransition != WindowManagerPolicy.TRANSIT_UNSET) {
|
||||
return false;
|
||||
}
|
||||
final AppWindowToken atoken = mAppToken;
|
||||
if (atoken == null && !mPolicyVisibility) {
|
||||
// If this is not an app window, and the policy has asked to force
|
||||
// hide, then we really do want to hide.
|
||||
return false;
|
||||
}
|
||||
return mHasSurface && !mDestroying
|
||||
&& ((!mAttachedHidden && mViewVisibility == View.VISIBLE
|
||||
&& !mRootToken.hidden)
|
||||
|| mWinAnimator.mAnimation != null
|
||||
|| ((atoken != null) && (atoken.mAppAnimator.animation != null)));
|
||||
}
|
||||
|
||||
/**
|
||||
* Like isOnScreen, but returns false if the surface hasn't yet
|
||||
* been drawn.
|
||||
|
||||
@@ -1218,10 +1218,10 @@ class WindowStateAnimator {
|
||||
}
|
||||
Slog.v(TAG, "performShow on " + this
|
||||
+ ": mDrawState=" + mDrawState + " readyForDisplay="
|
||||
+ mWin.isReadyForDisplay()
|
||||
+ mWin.isReadyForDisplayIgnoringKeyguard()
|
||||
+ " starting=" + (mWin.mAttrs.type == TYPE_APPLICATION_STARTING), e);
|
||||
}
|
||||
if (mDrawState == READY_TO_SHOW && mWin.isReadyForDisplay()) {
|
||||
if (mDrawState == READY_TO_SHOW && mWin.isReadyForDisplayIgnoringKeyguard()) {
|
||||
if (SHOW_TRANSACTIONS || DEBUG_ORIENTATION)
|
||||
WindowManagerService.logSurface(mWin, "SHOW (performShowLocked)", null);
|
||||
if (DEBUG_VISIBILITY) Slog.v(TAG, "Showing " + this
|
||||
|
||||
Reference in New Issue
Block a user