summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorMarin Shalamanov <shalamanov@google.com>2020-01-25 02:36:10 +0100
committerMarin Shalamanov <shalamanov@google.com>2020-02-05 06:50:35 +0100
commitfb3879f221f17ce100bc606d2c89868030169a2f (patch)
tree8242871a5c924bf4b848d01c1239960173d65311 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent2688fe61c42fe4750a0a06f2bf9366b9cb5a5399 (diff)
Epsilon comparison in RefreshRateRange constructor.
In DisplayModeDirector there may be votes for refresh rate ranges which are within EPS of each other but do not intersect. For example [0, 60] and [60+eps, 60+eps]. This CL adds an epsilon check in the constructor of RefreshRateRange and a unit test for the described scenario. Fix: 148310029 Test: atest DisplayModeDirectorTest Test: Manual with a device with PEAK_REFRESH_RATE = 60, from an app setting the preferred mode to a 60fps mode (which appears as 60+eps on the device). Change-Id: I24e225edc0d7e388897e9e30f5bce858ac56cb06
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions