Merge "[DO NOT MERGE] Fixed LocalDisplayAdapterTest test failure" into sc-v2-dev

This commit is contained in:
Shawn Lin
2021-08-03 04:19:16 +00:00
committed by Android (Google) Code Review

View File

@@ -134,6 +134,14 @@ public class LocalDisplayAdapterTest {
when(mMockedResources.getFloat(com.android.internal.R.dimen when(mMockedResources.getFloat(com.android.internal.R.dimen
.config_screenBrightnessSettingMaximumFloat)) .config_screenBrightnessSettingMaximumFloat))
.thenReturn(BACKLIGHT_RANGE_ZERO_TO_ONE[1]); .thenReturn(BACKLIGHT_RANGE_ZERO_TO_ONE[1]);
when(mMockedResources.getStringArray(R.array.config_displayUniqueIdArray))
.thenReturn(new String[]{});
TypedArray mockArray = mock(TypedArray.class);
when(mockArray.length()).thenReturn(0);
when(mMockedResources.obtainTypedArray(R.array.config_maskBuiltInDisplayCutoutArray))
.thenReturn(mockArray);
when(mMockedResources.obtainTypedArray(R.array.config_waterfallCutoutArray))
.thenReturn(mockArray);
} }
@After @After