Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 8232c305 authored by Hongwei Wang's avatar Hongwei Wang
Browse files

Add PictureInPictureParams#isSameAspectRatio [1/N]

This is to replace the float number check when comparing the given Rect
over aspect ratio. In this new static method, we allow for rounding
errors on width / height.

CTS tests have been updated to use and test this method.

What's next:
- Move the aspect ratio check from WMShell to Activity

Flag: EXEMPT refactor
Bug: 352118806
Test: atest CtsWindowManagerDeviceOther:PictureInPictureParamsTest
Change-Id: I205abb2b6cf4414be9ad8700ed1adf7fcea50ad5
parent 2cb43006
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment