commit | 8d5a06f1466dcda77f9b474bc19b508fbe6266cb | [log] [tgz] |
---|---|---|
author | Hongwei Wang <hwwang@google.com> | Tue Mar 26 16:36:07 2024 -0700 |
committer | Hongwei Wang <hwwang@google.com> | Thu Apr 04 19:22:40 2024 +0000 |
tree | 9ee9f6e7d1361c0daac44f63a42eed5138ab5fb5 | |
parent | d4f04830d16b4403d232985d0dd740df6cef3de9 [diff] |
Allow resource override for PiP size spec Putting the default/min size percentage value into resources so they could be overridden on device basis. Add a second set of default/minimum size percentage if the Display is near square. This is to make sure the default PiP window does not overlap with the hinge as much as possible. Screenshot: before https://screenshot.googleplex.com/8mk7KozJ9g9d56K.png Screenshot: after https://screenshot.googleplex.com/Z9dfdGzdJqJuZ5E.png Bug: 318602602 Test: atest WMShellUnitTests:PhoneSizeSpecSourceTest Change-Id: I890857db0aa415b700bf0b81d0d0c37968322e03 (cherry picked from commit b2f07fe729de24c9d705f5768826e29414439c6a)