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

Commit b5e3fedd authored by shawnlin's avatar shawnlin Committed by Automerger Merge Worker
Browse files

[DO NOT MERGE] Fixed LocalDisplayAdapterTest test failure am: dcc1ed47

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15401700

Change-Id: Ib7d79d602f0f8869076dea7b26cabfe33af11a5c
parents 435fbc69 dcc1ed47
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -134,6 +134,14 @@ public class LocalDisplayAdapterTest {
        when(mMockedResources.getFloat(com.android.internal.R.dimen
                .config_screenBrightnessSettingMaximumFloat))
                .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