Refactor OHM to use (float)offset for translating windows
The core function of OHM is translate all windows down instead of resize, it's unnecessary to set WCT & app bounds that will introduce DA require to cache configuration in DAInfo as well as handle configuration changes stuffs This change ensure App Compat mode works good: - Remove wct.setBounds() & wct.setAppBounds() - Use float instead of bounds for transition/animation - Remove unused code - Reset setWindowCrop(leash, -1, -1) after rotate - Reset setCornerRadius(leash, -1) after rotate - Add dump() for OneHandedAnimationController - Add dump() for OneHandedSurfaceTransactionHelper Test: atest WMShellUnitTests Test: maunal trigger OHM, rotate, and obseve function works Bug: 184091042 Bug: 181091031 Change-Id: I401d9b8a79a2a1526b8683362a1e0330458141b1
Loading
Please register or sign in to comment