Skip to content

Commit f47629e

Browse files
adyabrAndroid Build Cherrypicker Worker
authored andcommitted
FrameRateCtsActivity: don't try to set frame rate for different resolutions
setFrameRate should never change resolution, and the test should not test that scenatio. Bug: 311617937 Test: atest CtsGraphicsTestCases.android.graphics.cts.SetFrameRateTest Test: presubmit (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:d371e84ab64866df2a51bac252d669ca32b696b8) Merged-In: Iab06510f7b0e930c7f5ac4589de6238afd43d13a Change-Id: Iab06510f7b0e930c7f5ac4589de6238afd43d13a
1 parent 32136f4 commit f47629e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/tests/graphics/src/android/graphics/cts/FrameRateCtsActivity.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,8 @@ private List<Float> getSeamedRefreshRates(Display.Mode mode, Display display) {
440440
List<Float> seamedRefreshRates = new ArrayList<>();
441441
Display.Mode[] modes = display.getSupportedModes();
442442
for (Display.Mode otherMode : modes) {
443-
if (!DisplayUtil.isModeSwitchSeamless(mode, otherMode)) {
443+
if (hasSameResolution(mode, otherMode)
444+
&& !DisplayUtil.isModeSwitchSeamless(mode, otherMode)) {
444445
seamedRefreshRates.add(otherMode.getRefreshRate());
445446
}
446447
}

0 commit comments

Comments
 (0)