Skip to content

Commit 67e6070

Browse files
Craig MautnerAndroid (Google) Code Review
authored andcommitted
Merge "Change method of tracking moving AppWindowTokens." into jb-dev
2 parents 9cf5831 + ef25d7a commit 67e6070

File tree

5 files changed

+146
-105
lines changed

5 files changed

+146
-105
lines changed

services/java/com/android/server/wm/WindowAnimator.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,11 @@ private void testWallpaperAndBackgroundLocked() {
134134
}
135135

136136
private void updateWindowsAppsAndRotationAnimationsLocked() {
137+
final ArrayList<AppWindowToken> appTokens = mService.mAnimatingAppTokens;
137138
int i;
138-
final int NAT = mService.mAppTokens.size();
139+
final int NAT = appTokens.size();
139140
for (i=0; i<NAT; i++) {
140-
final AppWindowAnimator appAnimator = mService.mAppTokens.get(i).mAppAnimator;
141+
final AppWindowAnimator appAnimator = appTokens.get(i).mAppAnimator;
141142
final boolean wasAnimating = appAnimator.animation != null
142143
&& appAnimator.animation != AppWindowAnimator.sDummyAnimation;
143144
if (appAnimator.stepAnimationLocked(mCurrentTime, mInnerDw, mInnerDh)) {
@@ -401,9 +402,10 @@ private void updateWindowsAndWallpaperLocked() {
401402
private void testTokenMayBeDrawnLocked() {
402403
// See if any windows have been drawn, so they (and others
403404
// associated with them) can now be shown.
404-
final int NT = mService.mAppTokens.size();
405+
final ArrayList<AppWindowToken> appTokens = mService.mAnimatingAppTokens;
406+
final int NT = appTokens.size();
405407
for (int i=0; i<NT; i++) {
406-
AppWindowToken wtoken = mService.mAppTokens.get(i);
408+
AppWindowToken wtoken = appTokens.get(i);
407409
if (wtoken.mAppAnimator.freezingScreen) {
408410
int numInteresting = wtoken.numInterestingWindows;
409411
if (numInteresting > 0 && wtoken.numDrawnWindows >= numInteresting) {

0 commit comments

Comments
 (0)