Merge "[DO NOT MERGE] Fixed LocalDisplayAdapterTest test failure" into sc-v2-dev
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user