Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac904f68 authored by Shane's avatar Shane Committed by Jian-Syuan (Shane) Wong
Browse files

Update ViewRootImplTest votePreferredFrameRate_infrequentLayer_defaultHigh

Update ViewRootImplTest
votePreferredFrameRate_infrequentLayer_defaultHigh so that the expected
frame rate category should be always Normal for intermittent after this change - ag/27699133

Fixes: 346370686
Test: atest FrameworksCoreTests:android.view.ViewRootImplTest#votePreferredFrameRate_infrequentLayer_defaultHigh
Change-Id: Ia61173349b03c122bf66299fdb0e6ab409cd8b32
parent 715e4fd9
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -1175,11 +1175,8 @@ public class ViewRootImplTest {
        // Infrequent update
        Thread.sleep(delay);

        // Even though this is not a small View, step 3 is triggered by this flag, which
        // brings intermittent to LOW
        int intermittentExpected = toolkitFrameRateBySizeReadOnly()
                ? FRAME_RATE_CATEGORY_LOW
                : FRAME_RATE_CATEGORY_NORMAL;
        // The expected category is normal for intermittent.
        int intermittentExpected = FRAME_RATE_CATEGORY_NORMAL;

        sInstrumentation.runOnMainSync(() -> {
            mView.invalidate();