Files
frameworks_base/core/java/android/app
Riddle Hsu 5bfdaddc98 Round screen size of configuration
To avoid precision problem of float, such as
(int)(960/1.2f)=799
(int)(960/1.2f+0.5f)=800

(int)(540/1.2f)=449
(int)(540/1.2f+0.5f)=450

Bug: 204481252
Test: DisplayContentTests#testCreateTestDisplayContentFromDimensions
Change-Id: I8f78d9bd14b7fb9d12a20a662ad4ec04f82ce7f2
2022-05-12 17:12:37 +08:00
..
2021-12-19 18:40:50 +00:00
2021-12-21 11:46:10 +00:00
2022-04-21 10:23:10 -07:00
…
2021-09-27 16:55:15 +08:00