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
diff --git a/core/tests/coretests/src/android/view/ViewRootImplTest.java b/core/tests/coretests/src/android/view/ViewRootImplTest.java
index 94e187a..9019fb3 100644
--- a/core/tests/coretests/src/android/view/ViewRootImplTest.java
+++ b/core/tests/coretests/src/android/view/ViewRootImplTest.java
@@ -1175,11 +1175,8 @@
// 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();