diff options
| author | Craig Mautner <cmautner@google.com> | 2012-09-02 07:47:24 -0700 |
|---|---|---|
| committer | Craig Mautner <cmautner@google.com> | 2012-09-02 07:47:24 -0700 |
| commit | 398341927f3dca68d71024483aa276d10af4c080 (patch) | |
| tree | 1635c135120968daa998c7fd4d179a8f315663ff /core/java/android/view | |
| parent | ce20a45e03c2748e79daea187f7d21c33bdfe643 (diff) | |
| download | frameworks_base-398341927f3dca68d71024483aa276d10af4c080.zip frameworks_base-398341927f3dca68d71024483aa276d10af4c080.tar.gz frameworks_base-398341927f3dca68d71024483aa276d10af4c080.tar.bz2 | |
Minor refactors.
- Refactor DragState to take Display instead of DisplayContent.
- Rename xxxAnimationLw methods in WindowManagerPolicy to xxxPostLayout
to reflect animation refactoring.
Change-Id: I502f2aa45a699ad395a249a12abf9843294623f0
Diffstat (limited to 'core/java/android/view')
| -rw-r--r-- | core/java/android/view/WindowManagerPolicy.java | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/core/java/android/view/WindowManagerPolicy.java b/core/java/android/view/WindowManagerPolicy.java index 7173d1d..05838f9 100644 --- a/core/java/android/view/WindowManagerPolicy.java +++ b/core/java/android/view/WindowManagerPolicy.java @@ -827,32 +827,33 @@ public interface WindowManagerPolicy { static final int FINISH_LAYOUT_REDO_ANIM = 0x0008; /** - * Called when animation of the windows is about to start. + * Called following layout of all windows before each window has policy applied. * * @param displayWidth The current full width of the screen. * @param displayHeight The current full height of the screen. */ - public void beginAnimationLw(int displayWidth, int displayHeight); + public void beginPostLayoutPolicyLw(int displayWidth, int displayHeight); /** - * Called each time a window is animating. + * Called following layout of all window to apply policy to each window. * * @param win The window being positioned. * @param attrs The LayoutParams of the window. */ - public void animatingWindowLw(WindowState win, + public void applyPostLayoutPolicyLw(WindowState win, WindowManager.LayoutParams attrs); /** - * Called when animation of the windows is finished. If in this function you do - * something that may have modified the animation state of another window, - * be sure to return true in order to perform another animation frame. + * Called following layout of all windows and after policy has been applied + * to each window. If in this function you do + * something that may have modified the animation state of another window, + * be sure to return non-zero in order to perform another pass through layout. * * @return Return any bit set of {@link #FINISH_LAYOUT_REDO_LAYOUT}, * {@link #FINISH_LAYOUT_REDO_CONFIG}, {@link #FINISH_LAYOUT_REDO_WALLPAPER}, * or {@link #FINISH_LAYOUT_REDO_ANIM}. */ - public int finishAnimationLw(); + public int finishPostLayoutPolicyLw(); /** * Return true if it is okay to perform animations for an app transition |
