summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Jean Chen <chenjean@google.com> 2023-07-13 14:45:54 +0800
committer Jean Chen <chenjean@google.com> 2023-07-13 06:56:41 +0000
commit2bb5f88c7d48654b7c1c29fb3cc639d152f1b2eb (patch)
tree7be0966a9a1d256944d9e97b1ae38efe0250d084 /libs/androidfw/FileStream.cpp
parentd68a00cc4074376cb5bbaf9996082bedf860bb2c (diff)
Fix WindowMagnificationAnimationControllerTest fail
The root cause is that we are using different types (int and float) between the code base and the test case. If we convert a floating-point number to an integer, the decimal part of the float value is truncated. But, the round() method rounds upward if the value after the decimal is greater than or equal to 5. Bug: 290648269 Test: atest WindowMagnificationAnimationControllerTest (Pixel 7 & Pixel Fold) Change-Id: I0ae0f69e9078f998f5d6c08b2aefbe00e1628af9
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions