summaryrefslogtreecommitdiff
path: root/core/java/android/util/RotationUtils.java
Commit message (Collapse)AuthorAgeFilesLines
* Add rotatePointF to RotationUtilsIlya Matyukhin2022-11-281-0/+24
| | | | | | Bug: 218374828 Test: atest RotationUtilsTest Change-Id: I877e762b1f2b96ae8da3e6b08a78ba4d066c2880
* Enable RRS (FHD<->QHD) support for UDFPSIlya Matyukhin2022-04-201-13/+25
| | | | | | | | | | UDFPS position and assets are configured in pixels in native resolution. This CL adds a mechanism to detect a runtime resolution change and scale the UDFPS coordinates accordingly. Bug: 223342274 Test: atest SystemUITests:com.android.systemui.biometrics Change-Id: Iaa1f3d633b50019d06bdecb5063490ad6eb11272
* Hook up fixed-rotation logic to shell transitionsEvan Rosky2022-02-091-1/+54
| | | | | | | | | | | | | | | | | | | | | | | This works by separating an app launching to 2 phases (similar to legacy fixed rotation). First it launches the app into a different rotation. Once the animation finishes it creates a new seamless display-rotation transition. Because we have displayRotation in windowconfiguration, we can directly rotate a window's surface instead of checking explicitly for fixedRotationState. Since the second-phase is a transition, we don't (ab)use seamlessRotator. Once the display lines-up, the surfaces and configurations automatically update. Since we still want to explore shell-transitions style rotation (single-transition), add a system property to turn it off and on. Bug: 217560545 Test: existing tests and manual tests Change-Id: I0b34b32ff5b2650a519d3c195df452de446cf515
* DisplayContent rotateBounds not keeping same physical position for 180Chris Li2021-02-231-0/+55
| | | | | | | | | | | | Rotation_90 + rotation_90 is different from the result of rotation_180 with the current implementation. Should also take care of rotation_180. Fix: 180751251 Bug: 173124775 Test: atest WmTests:DisplayContentTests Test: atest WMShellUnitTests:DisplayLayoutTest Test: atest FrameworksCoreTests:RotationUtilsTest Change-Id: Ia1c87409b4c4cc412c3fd89e58d08b6ae2069fd0
* Create an API to get a cutout pathshawnlin2021-01-281-0/+32
| | | | | | | | | | | | - Added a new API to get the cutout paths. - Create a @hide class CutoutPathParserInfo - Used to store the needed info to create the cutout paths. - Will be used when DisplayCutout.getCutoutPath() is called to create the cutout paths. Bug: 172646505 Test: atest DisplayCutoutTest DisplayContentTests WmDisplayCutoutTest Change-Id: Ief92ce4466f6bffb2a9375388b71de43049b4eef
* Make WmDisplayCutout support waterfall and long edge cutoutshawnlin2020-01-311-0/+72
Bug: 146876976 Test: atest WmTests:WmDisplayCutoutTest atest DisplayLayoutTest Change-Id: I1315533e17bd634f5db6be4276e66a00987dfc3d