Loading services/java/com/android/server/wm/WindowAnimator.java +8 −4 Original line number Original line Diff line number Diff line Loading @@ -140,6 +140,8 @@ public class WindowAnimator { mService.debugLayoutRepeats("appToken " + appAnimator.mAppToken + " done", mService.debugLayoutRepeats("appToken " + appAnimator.mAppToken + " done", mPendingLayoutChanges); mPendingLayoutChanges); } } if (WindowManagerService.DEBUG_ANIM) Slog.v(TAG, "updateWindowsApps...: done animating " + appAnimator.mAppToken); } } } } Loading @@ -157,6 +159,8 @@ public class WindowAnimator { mService.debugLayoutRepeats("exiting appToken " + appAnimator.mAppToken mService.debugLayoutRepeats("exiting appToken " + appAnimator.mAppToken + " done", mPendingLayoutChanges); + " done", mPendingLayoutChanges); } } if (WindowManagerService.DEBUG_ANIM) Slog.v(TAG, "updateWindowsApps...: done animating exiting " + appAnimator.mAppToken); } } } } Loading Loading @@ -246,9 +250,9 @@ public class WindowAnimator { if (mPolicy.doesForceHide(win, win.mAttrs)) { if (mPolicy.doesForceHide(win, win.mAttrs)) { if (!wasAnimating && nowAnimating) { if (!wasAnimating && nowAnimating) { if (WindowManagerService.DEBUG_VISIBILITY) Slog.v(TAG, if (WindowManagerService.DEBUG_ANIM || "Animation started that could impact force hide: " WindowManagerService.DEBUG_VISIBILITY) Slog.v(TAG, + win); "Animation started that could impact force hide: " + win); mBulkUpdateParams |= SET_FORCE_HIDING_CHANGED; mBulkUpdateParams |= SET_FORCE_HIDING_CHANGED; mPendingLayoutChanges |= WindowManagerPolicy.FINISH_LAYOUT_REDO_WALLPAPER; mPendingLayoutChanges |= WindowManagerPolicy.FINISH_LAYOUT_REDO_WALLPAPER; if (WindowManagerService.DEBUG_LAYOUT_REPEATS) { if (WindowManagerService.DEBUG_LAYOUT_REPEATS) { Loading services/java/com/android/server/wm/WindowManagerService.java +15 −6 Original line number Original line Diff line number Diff line Loading @@ -130,8 +130,6 @@ import android.view.animation.AnimationSet; import android.view.animation.AnimationUtils; import android.view.animation.AnimationUtils; import android.view.animation.Interpolator; import android.view.animation.Interpolator; import android.view.animation.ScaleAnimation; import android.view.animation.ScaleAnimation; import android.view.animation.Transformation; import android.view.animation.TranslateAnimation; import java.io.BufferedWriter; import java.io.BufferedWriter; import java.io.DataInputStream; import java.io.DataInputStream; Loading Loading @@ -3245,12 +3243,21 @@ public class WindowManagerService extends IWindowManager.Stub if (mNextAppTransitionType == ActivityOptions.ANIM_CUSTOM) { if (mNextAppTransitionType == ActivityOptions.ANIM_CUSTOM) { a = loadAnimation(mNextAppTransitionPackage, enter ? a = loadAnimation(mNextAppTransitionPackage, enter ? mNextAppTransitionEnter : mNextAppTransitionExit); mNextAppTransitionEnter : mNextAppTransitionExit); if (DEBUG_ANIM) Slog.v(TAG, "applyAnimation: wtoken=" + wtoken + " anim=" + a + " nextAppTransition=ANIM_CUSTOM" + " transit=" + transit + " Callers " + Debug.getCallers(3)); } else if (mNextAppTransitionType == ActivityOptions.ANIM_SCALE_UP) { } else if (mNextAppTransitionType == ActivityOptions.ANIM_SCALE_UP) { a = createScaleUpAnimationLocked(transit, enter); a = createScaleUpAnimationLocked(transit, enter); initialized = true; initialized = true; if (DEBUG_ANIM) Slog.v(TAG, "applyAnimation: wtoken=" + wtoken + " anim=" + a + " nextAppTransition=ANIM_SCALE_UP" + " transit=" + transit + " Callers " + Debug.getCallers(3)); } else if (mNextAppTransitionType == ActivityOptions.ANIM_THUMBNAIL) { } else if (mNextAppTransitionType == ActivityOptions.ANIM_THUMBNAIL) { a = createThumbnailAnimationLocked(transit, enter, false); a = createThumbnailAnimationLocked(transit, enter, false); initialized = true; initialized = true; if (DEBUG_ANIM) Slog.v(TAG, "applyAnimation: wtoken=" + wtoken + " anim=" + a + " nextAppTransition=ANIM_THUMBNAIL" + " transit=" + transit + " Callers " + Debug.getCallers(3)); } else { } else { int animAttr = 0; int animAttr = 0; switch (transit) { switch (transit) { Loading Loading @@ -3309,7 +3316,7 @@ public class WindowManagerService extends IWindowManager.Stub if (DEBUG_ANIM) Slog.v(TAG, "applyAnimation: wtoken=" + wtoken if (DEBUG_ANIM) Slog.v(TAG, "applyAnimation: wtoken=" + wtoken + " anim=" + a + " anim=" + a + " animAttr=0x" + Integer.toHexString(animAttr) + " animAttr=0x" + Integer.toHexString(animAttr) + " transit=" + transit); + " transit=" + transit + " Callers " + Debug.getCallers(3)); } } if (a != null) { if (a != null) { if (DEBUG_ANIM) { if (DEBUG_ANIM) { Loading Loading @@ -7856,7 +7863,9 @@ public class WindowManagerService extends IWindowManager.Stub mToTopApps.clear(); mToTopApps.clear(); } } WindowState oldWallpaper = mWallpaperTarget; WindowState oldWallpaper = mWallpaperTarget != null && mWallpaperTarget.mWinAnimator.isAnimating() ? null : mWallpaperTarget; adjustWallpaperWindowsLocked(); adjustWallpaperWindowsLocked(); mInnerFields.mWallpaperMayChange = false; mInnerFields.mWallpaperMayChange = false; Loading Loading @@ -8167,8 +8176,8 @@ public class WindowManagerService extends IWindowManager.Stub // to go through the process of getting informed // to go through the process of getting informed // by the application when it has finished drawing. // by the application when it has finished drawing. if (w.mOrientationChanging) { if (w.mOrientationChanging) { if (DEBUG_ORIENTATION) Slog.v(TAG, if (DEBUG_ANIM || DEBUG_ORIENTATION) Slog.v(TAG, "Orientation start waiting for draw in " "Orientation start waiting for draw mDrawState=DRAW_PENDING in " + w + ", surface " + winAnimator.mSurface); + w + ", surface " + winAnimator.mSurface); winAnimator.mDrawState = WindowStateAnimator.DRAW_PENDING; winAnimator.mDrawState = WindowStateAnimator.DRAW_PENDING; if (w.mAppToken != null) { if (w.mAppToken != null) { Loading services/java/com/android/server/wm/WindowStateAnimator.java +12 −6 Original line number Original line Diff line number Diff line Loading @@ -380,8 +380,9 @@ class WindowStateAnimator { boolean finishDrawingLocked() { boolean finishDrawingLocked() { if (mDrawState == DRAW_PENDING) { if (mDrawState == DRAW_PENDING) { if (SHOW_TRANSACTIONS || DEBUG_ORIENTATION) Slog.v( if (DEBUG_ANIM || SHOW_TRANSACTIONS || DEBUG_ORIENTATION) Slog.v( TAG, "finishDrawingLocked: " + this + " in " + mSurface); TAG, "finishDrawingLocked: mDrawState=COMMIT_DRAW_PENDING " + this + " in " + mSurface); mDrawState = COMMIT_DRAW_PENDING; mDrawState = COMMIT_DRAW_PENDING; return true; return true; } } Loading @@ -393,7 +394,8 @@ class WindowStateAnimator { if (mDrawState != COMMIT_DRAW_PENDING) { if (mDrawState != COMMIT_DRAW_PENDING) { return false; return false; } } //Slog.i(TAG, "commitFinishDrawingLocked: Draw pending. " + mSurface); if (DEBUG_ANIM) Slog.i(TAG, "commitFinishDrawingLocked: mDrawState=READY_TO_SHOW " + mSurface); mDrawState = READY_TO_SHOW; mDrawState = READY_TO_SHOW; final boolean starting = mWin.mAttrs.type == TYPE_APPLICATION_STARTING; final boolean starting = mWin.mAttrs.type == TYPE_APPLICATION_STARTING; final AppWindowToken atoken = mWin.mAppToken; final AppWindowToken atoken = mWin.mAppToken; Loading Loading @@ -526,8 +528,8 @@ class WindowStateAnimator { if (mSurface == null) { if (mSurface == null) { mReportDestroySurface = false; mReportDestroySurface = false; mSurfacePendingDestroy = false; mSurfacePendingDestroy = false; if (DEBUG_ORIENTATION) Slog.i(TAG, if (DEBUG_ANIM || DEBUG_ORIENTATION) Slog.i(TAG, "createSurface " + this + ": DRAW NOW PENDING"); "createSurface " + this + ": mDrawState=DRAW_PENDING"); mDrawState = DRAW_PENDING; mDrawState = DRAW_PENDING; if (mWin.mAppToken != null) { if (mWin.mAppToken != null) { mWin.mAppToken.allDrawn = false; mWin.mAppToken.allDrawn = false; Loading Loading @@ -1062,6 +1064,9 @@ class WindowStateAnimator { } } } } } else { } else { if (DEBUG_ANIM) { Slog.v(TAG, "prepareSurface: No changes in animation for " + mWin); } displayed = true; displayed = true; } } Loading Loading @@ -1145,6 +1150,7 @@ class WindowStateAnimator { // Force the show in the next prepareSurfaceLocked() call. // Force the show in the next prepareSurfaceLocked() call. mLastAlpha = -1; mLastAlpha = -1; if (DEBUG_ANIM) Slog.v(TAG, "performShowLocked: mDrawState=HAS_DRAWN"); mDrawState = HAS_DRAWN; mDrawState = HAS_DRAWN; mService.scheduleAnimationLocked(); mService.scheduleAnimationLocked(); Loading Loading @@ -1285,7 +1291,7 @@ class WindowStateAnimator { + " anim=" + anim + " attr=0x" + Integer.toHexString(attr) + " anim=" + anim + " attr=0x" + Integer.toHexString(attr) + " a=" + a + " a=" + a + " mAnimation=" + mAnimation + " mAnimation=" + mAnimation + " isEntrance=" + isEntrance); + " isEntrance=" + isEntrance + " Callers " + Debug.getCallers(3)); if (a != null) { if (a != null) { if (WindowManagerService.DEBUG_ANIM) { if (WindowManagerService.DEBUG_ANIM) { RuntimeException e = null; RuntimeException e = null; Loading Loading
services/java/com/android/server/wm/WindowAnimator.java +8 −4 Original line number Original line Diff line number Diff line Loading @@ -140,6 +140,8 @@ public class WindowAnimator { mService.debugLayoutRepeats("appToken " + appAnimator.mAppToken + " done", mService.debugLayoutRepeats("appToken " + appAnimator.mAppToken + " done", mPendingLayoutChanges); mPendingLayoutChanges); } } if (WindowManagerService.DEBUG_ANIM) Slog.v(TAG, "updateWindowsApps...: done animating " + appAnimator.mAppToken); } } } } Loading @@ -157,6 +159,8 @@ public class WindowAnimator { mService.debugLayoutRepeats("exiting appToken " + appAnimator.mAppToken mService.debugLayoutRepeats("exiting appToken " + appAnimator.mAppToken + " done", mPendingLayoutChanges); + " done", mPendingLayoutChanges); } } if (WindowManagerService.DEBUG_ANIM) Slog.v(TAG, "updateWindowsApps...: done animating exiting " + appAnimator.mAppToken); } } } } Loading Loading @@ -246,9 +250,9 @@ public class WindowAnimator { if (mPolicy.doesForceHide(win, win.mAttrs)) { if (mPolicy.doesForceHide(win, win.mAttrs)) { if (!wasAnimating && nowAnimating) { if (!wasAnimating && nowAnimating) { if (WindowManagerService.DEBUG_VISIBILITY) Slog.v(TAG, if (WindowManagerService.DEBUG_ANIM || "Animation started that could impact force hide: " WindowManagerService.DEBUG_VISIBILITY) Slog.v(TAG, + win); "Animation started that could impact force hide: " + win); mBulkUpdateParams |= SET_FORCE_HIDING_CHANGED; mBulkUpdateParams |= SET_FORCE_HIDING_CHANGED; mPendingLayoutChanges |= WindowManagerPolicy.FINISH_LAYOUT_REDO_WALLPAPER; mPendingLayoutChanges |= WindowManagerPolicy.FINISH_LAYOUT_REDO_WALLPAPER; if (WindowManagerService.DEBUG_LAYOUT_REPEATS) { if (WindowManagerService.DEBUG_LAYOUT_REPEATS) { Loading
services/java/com/android/server/wm/WindowManagerService.java +15 −6 Original line number Original line Diff line number Diff line Loading @@ -130,8 +130,6 @@ import android.view.animation.AnimationSet; import android.view.animation.AnimationUtils; import android.view.animation.AnimationUtils; import android.view.animation.Interpolator; import android.view.animation.Interpolator; import android.view.animation.ScaleAnimation; import android.view.animation.ScaleAnimation; import android.view.animation.Transformation; import android.view.animation.TranslateAnimation; import java.io.BufferedWriter; import java.io.BufferedWriter; import java.io.DataInputStream; import java.io.DataInputStream; Loading Loading @@ -3245,12 +3243,21 @@ public class WindowManagerService extends IWindowManager.Stub if (mNextAppTransitionType == ActivityOptions.ANIM_CUSTOM) { if (mNextAppTransitionType == ActivityOptions.ANIM_CUSTOM) { a = loadAnimation(mNextAppTransitionPackage, enter ? a = loadAnimation(mNextAppTransitionPackage, enter ? mNextAppTransitionEnter : mNextAppTransitionExit); mNextAppTransitionEnter : mNextAppTransitionExit); if (DEBUG_ANIM) Slog.v(TAG, "applyAnimation: wtoken=" + wtoken + " anim=" + a + " nextAppTransition=ANIM_CUSTOM" + " transit=" + transit + " Callers " + Debug.getCallers(3)); } else if (mNextAppTransitionType == ActivityOptions.ANIM_SCALE_UP) { } else if (mNextAppTransitionType == ActivityOptions.ANIM_SCALE_UP) { a = createScaleUpAnimationLocked(transit, enter); a = createScaleUpAnimationLocked(transit, enter); initialized = true; initialized = true; if (DEBUG_ANIM) Slog.v(TAG, "applyAnimation: wtoken=" + wtoken + " anim=" + a + " nextAppTransition=ANIM_SCALE_UP" + " transit=" + transit + " Callers " + Debug.getCallers(3)); } else if (mNextAppTransitionType == ActivityOptions.ANIM_THUMBNAIL) { } else if (mNextAppTransitionType == ActivityOptions.ANIM_THUMBNAIL) { a = createThumbnailAnimationLocked(transit, enter, false); a = createThumbnailAnimationLocked(transit, enter, false); initialized = true; initialized = true; if (DEBUG_ANIM) Slog.v(TAG, "applyAnimation: wtoken=" + wtoken + " anim=" + a + " nextAppTransition=ANIM_THUMBNAIL" + " transit=" + transit + " Callers " + Debug.getCallers(3)); } else { } else { int animAttr = 0; int animAttr = 0; switch (transit) { switch (transit) { Loading Loading @@ -3309,7 +3316,7 @@ public class WindowManagerService extends IWindowManager.Stub if (DEBUG_ANIM) Slog.v(TAG, "applyAnimation: wtoken=" + wtoken if (DEBUG_ANIM) Slog.v(TAG, "applyAnimation: wtoken=" + wtoken + " anim=" + a + " anim=" + a + " animAttr=0x" + Integer.toHexString(animAttr) + " animAttr=0x" + Integer.toHexString(animAttr) + " transit=" + transit); + " transit=" + transit + " Callers " + Debug.getCallers(3)); } } if (a != null) { if (a != null) { if (DEBUG_ANIM) { if (DEBUG_ANIM) { Loading Loading @@ -7856,7 +7863,9 @@ public class WindowManagerService extends IWindowManager.Stub mToTopApps.clear(); mToTopApps.clear(); } } WindowState oldWallpaper = mWallpaperTarget; WindowState oldWallpaper = mWallpaperTarget != null && mWallpaperTarget.mWinAnimator.isAnimating() ? null : mWallpaperTarget; adjustWallpaperWindowsLocked(); adjustWallpaperWindowsLocked(); mInnerFields.mWallpaperMayChange = false; mInnerFields.mWallpaperMayChange = false; Loading Loading @@ -8167,8 +8176,8 @@ public class WindowManagerService extends IWindowManager.Stub // to go through the process of getting informed // to go through the process of getting informed // by the application when it has finished drawing. // by the application when it has finished drawing. if (w.mOrientationChanging) { if (w.mOrientationChanging) { if (DEBUG_ORIENTATION) Slog.v(TAG, if (DEBUG_ANIM || DEBUG_ORIENTATION) Slog.v(TAG, "Orientation start waiting for draw in " "Orientation start waiting for draw mDrawState=DRAW_PENDING in " + w + ", surface " + winAnimator.mSurface); + w + ", surface " + winAnimator.mSurface); winAnimator.mDrawState = WindowStateAnimator.DRAW_PENDING; winAnimator.mDrawState = WindowStateAnimator.DRAW_PENDING; if (w.mAppToken != null) { if (w.mAppToken != null) { Loading
services/java/com/android/server/wm/WindowStateAnimator.java +12 −6 Original line number Original line Diff line number Diff line Loading @@ -380,8 +380,9 @@ class WindowStateAnimator { boolean finishDrawingLocked() { boolean finishDrawingLocked() { if (mDrawState == DRAW_PENDING) { if (mDrawState == DRAW_PENDING) { if (SHOW_TRANSACTIONS || DEBUG_ORIENTATION) Slog.v( if (DEBUG_ANIM || SHOW_TRANSACTIONS || DEBUG_ORIENTATION) Slog.v( TAG, "finishDrawingLocked: " + this + " in " + mSurface); TAG, "finishDrawingLocked: mDrawState=COMMIT_DRAW_PENDING " + this + " in " + mSurface); mDrawState = COMMIT_DRAW_PENDING; mDrawState = COMMIT_DRAW_PENDING; return true; return true; } } Loading @@ -393,7 +394,8 @@ class WindowStateAnimator { if (mDrawState != COMMIT_DRAW_PENDING) { if (mDrawState != COMMIT_DRAW_PENDING) { return false; return false; } } //Slog.i(TAG, "commitFinishDrawingLocked: Draw pending. " + mSurface); if (DEBUG_ANIM) Slog.i(TAG, "commitFinishDrawingLocked: mDrawState=READY_TO_SHOW " + mSurface); mDrawState = READY_TO_SHOW; mDrawState = READY_TO_SHOW; final boolean starting = mWin.mAttrs.type == TYPE_APPLICATION_STARTING; final boolean starting = mWin.mAttrs.type == TYPE_APPLICATION_STARTING; final AppWindowToken atoken = mWin.mAppToken; final AppWindowToken atoken = mWin.mAppToken; Loading Loading @@ -526,8 +528,8 @@ class WindowStateAnimator { if (mSurface == null) { if (mSurface == null) { mReportDestroySurface = false; mReportDestroySurface = false; mSurfacePendingDestroy = false; mSurfacePendingDestroy = false; if (DEBUG_ORIENTATION) Slog.i(TAG, if (DEBUG_ANIM || DEBUG_ORIENTATION) Slog.i(TAG, "createSurface " + this + ": DRAW NOW PENDING"); "createSurface " + this + ": mDrawState=DRAW_PENDING"); mDrawState = DRAW_PENDING; mDrawState = DRAW_PENDING; if (mWin.mAppToken != null) { if (mWin.mAppToken != null) { mWin.mAppToken.allDrawn = false; mWin.mAppToken.allDrawn = false; Loading Loading @@ -1062,6 +1064,9 @@ class WindowStateAnimator { } } } } } else { } else { if (DEBUG_ANIM) { Slog.v(TAG, "prepareSurface: No changes in animation for " + mWin); } displayed = true; displayed = true; } } Loading Loading @@ -1145,6 +1150,7 @@ class WindowStateAnimator { // Force the show in the next prepareSurfaceLocked() call. // Force the show in the next prepareSurfaceLocked() call. mLastAlpha = -1; mLastAlpha = -1; if (DEBUG_ANIM) Slog.v(TAG, "performShowLocked: mDrawState=HAS_DRAWN"); mDrawState = HAS_DRAWN; mDrawState = HAS_DRAWN; mService.scheduleAnimationLocked(); mService.scheduleAnimationLocked(); Loading Loading @@ -1285,7 +1291,7 @@ class WindowStateAnimator { + " anim=" + anim + " attr=0x" + Integer.toHexString(attr) + " anim=" + anim + " attr=0x" + Integer.toHexString(attr) + " a=" + a + " a=" + a + " mAnimation=" + mAnimation + " mAnimation=" + mAnimation + " isEntrance=" + isEntrance); + " isEntrance=" + isEntrance + " Callers " + Debug.getCallers(3)); if (a != null) { if (a != null) { if (WindowManagerService.DEBUG_ANIM) { if (WindowManagerService.DEBUG_ANIM) { RuntimeException e = null; RuntimeException e = null; Loading