summaryrefslogtreecommitdiff
path: root/api/api_test.go
diff options
context:
space:
mode:
author Hongwei Wang <hwwang@google.com> 2024-07-10 13:22:26 -0700
committer Hongwei Wang <hwwang@google.com> 2024-07-18 10:40:37 -0700
commit8232c305f66364a26eba5d97bda2fb1c635f460a (patch)
treef537cbbd72afde7b6d23a57ef88c44b5d9f202ce /api/api_test.go
parent2cb43006a192bb7d13ff387e253f3a04b092f970 (diff)
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
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions