diff options
| author | 2023-06-02 13:44:24 -0700 | |
|---|---|---|
| committer | 2023-06-02 14:42:26 -0700 | |
| commit | b5fd71549f6e0306d25ad55ec2128b2ca9c38a73 (patch) | |
| tree | 616fcf0ea60d4e43df13845097d7096ab682d261 /libs/androidfw/FileStream.cpp | |
| 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
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions