commit | b5fd71549f6e0306d25ad55ec2128b2ca9c38a73 | [log] [tgz] |
---|---|---|
author | Ikram Gabiyev <gabiyev@google.com> | Fri Jun 02 13:44:24 2023 -0700 |
committer | Ikram Gabiyev <gabiyev@google.com> | Fri Jun 02 14:42:26 2023 -0700 |
tree | 616fcf0ea60d4e43df13845097d7096ab682d261 | |
parent | cec1c35e34810212382f277319849af33ad5ff6c [diff] |
Make pip size spec calculations more precise Improve the procision of the new pip size spec calculations by making sure we are as close to the requested aspect ratio as possible. Also make sure to use rounding instead of casting to integer. Update the PipSizeSpecHandlerTest to reflect the changes as well. Bug: 283500710 Test: atest WMShellUnitTests:PipSizeSpecHandlerTest Test: atest PinnedStackTests Change-Id: Iec0f9df11720584de46c839f5b30559bd8d22222