commit | b90bcd2bd03883095823ec9f36316ecfde7f895a | [log] [tgz] |
---|---|---|
author | Massimo Carli <mcarli@google.com> | Wed May 08 17:43:53 2024 +0000 |
committer | Massimo Carli <mcarli@google.com> | Fri May 10 09:49:42 2024 +0000 |
tree | 89eb8d9ff0eb16b0109e679feea2473bbdf0a1b4 | |
parent | b3b7b19703177255e3b6580b6e92f2c9ca6d7cb8 [diff] |
[2/n] Add cache to width/height thin definition Convertion between dp and pixel just need to be done when density changes. We implemented an IntSupplier which returns a cached value updating only when density changes. Bug: 334077350 Bug: 339738650 Test: atest WmTests:LetterboxConfigurationTest Change-Id: I7adb6cd94d9f1908ea15561a1654914cb3665e19