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

Commit 17055f02 authored by Shane's avatar Shane
Browse files

[VRR] Fix ViewRootImplTest#votePreferredFrameRate_applyTextureViewHeuristic

Remove the initial frame rate category check since the behavior is differernt on the devices such as cf_x86_64_auto-trunk_staging-userdebug. It triggers infrequent update logic that lowers the frame rate category to NORMAL.

Bug: 333957123
Test: atest
ViewRootImplTest#votePreferredFrameRate_applyTextureViewHeuristic

Change-Id: Iba25eb46cdc4fd528c9aec6bee2ed99759b28140
parent ce9397b5
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -1258,18 +1258,6 @@ public class ViewRootImplTest {
        sInstrumentation.waitForIdleSync();

        mViewRootImpl = mView.getViewRootImpl();
        waitForFrameRateCategoryToSettle(mView);

        sInstrumentation.runOnMainSync(() -> {
            assertEquals(FRAME_RATE_CATEGORY_DEFAULT,
                    mViewRootImpl.getPreferredFrameRateCategory());
            mView.invalidate();
            int expected = toolkitFrameRateDefaultNormalReadOnly()
                    ? FRAME_RATE_CATEGORY_NORMAL : FRAME_RATE_CATEGORY_HIGH;
            runAfterDraw(() -> assertEquals(expected,
                    mViewRootImpl.getLastPreferredFrameRateCategory()));
        });
        waitForAfterDraw();

        waitForFrameRateCategoryToSettle(mView);