summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Ikram Gabiyev <gabiyev@google.com> 2023-06-02 13:44:24 -0700
committer Ikram Gabiyev <gabiyev@google.com> 2023-06-02 14:42:26 -0700
commitb5fd71549f6e0306d25ad55ec2128b2ca9c38a73 (patch)
tree616fcf0ea60d4e43df13845097d7096ab682d261 /libs/androidfw/FileStream.cpp
parentcec1c35e34810212382f277319849af33ad5ff6c (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
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions