Resize all changed windows and fix moveTaskToStack

- Add all changing windows to mResizingWindows when an ActivityStack
is resized.

- Stop calling TaskStack.setBounds if the bounds haven't changed.

- Make moving a task from one stack to another work properly.

- Eliminate unused methods and redundant variables in WindowState and
WindowStateAnimator.

Change-Id: I3a950c777bcc50cdeced150d44423d4d0b38af4a
diff --git a/services/java/com/android/server/wm/StackBox.java b/services/java/com/android/server/wm/StackBox.java
index 2b43b40..3bd1d4c 100644
--- a/services/java/com/android/server/wm/StackBox.java
+++ b/services/java/com/android/server/wm/StackBox.java
@@ -274,8 +274,10 @@
         boolean change;
         if (mStack != null) {
             change = !mBounds.equals(bounds);
-            mBounds.set(bounds);
-            mStack.setBounds(bounds);
+            if (change) {
+                mBounds.set(bounds);
+                mStack.setBounds(bounds);
+            }
         } else {
             mTmpRect.set(bounds);
             if (mVertical) {