Loading packages/SystemUI/src/com/android/systemui/ScreenDecorations.java +3 −3 Original line number Diff line number Diff line Loading @@ -971,11 +971,11 @@ public class ScreenDecorations extends CoreStartable implements Tunable , Dumpab cutoutView.updateRotation(mRotation); } } } // update all provider views inside overlay updateOverlayProviderViews(); } } private boolean hasRoundedCorners() { return mRoundedCornerFactory.getHasProviders(); Loading packages/SystemUI/tests/src/com/android/systemui/ScreenDecorationsTest.java +4 −0 Original line number Diff line number Diff line Loading @@ -63,6 +63,7 @@ import android.util.RotationUtils; import android.util.Size; import android.view.Display; import android.view.DisplayCutout; import android.view.Surface; import android.view.View; import android.view.ViewGroup; import android.view.WindowManager; Loading Loading @@ -974,6 +975,7 @@ public class ScreenDecorationsTest extends SysuiTestCase { getTestsDrawable(com.android.systemui.tests.R.drawable.rounded4px) /* roundedBottomDrawable */, 0 /* roundedPadding */, false /* fillCutout */, true /* privacyDot */); doReturn(Surface.ROTATION_0).when(mDisplay).getRotation(); mScreenDecorations.start(); Loading @@ -987,6 +989,8 @@ public class ScreenDecorationsTest extends SysuiTestCase { getTestsDrawable(com.android.systemui.tests.R.drawable.rounded5px) /* roundedBottomDrawable */, 0 /* roundedPadding */, false /* fillCutout */, true /* privacyDot */); doReturn(Surface.ROTATION_270).when(mDisplay).getRotation(); mScreenDecorations.onConfigurationChanged(null); assertEquals(new Size(4, 4), resDelegate.getTopRoundedSize()); Loading Loading
packages/SystemUI/src/com/android/systemui/ScreenDecorations.java +3 −3 Original line number Diff line number Diff line Loading @@ -971,11 +971,11 @@ public class ScreenDecorations extends CoreStartable implements Tunable , Dumpab cutoutView.updateRotation(mRotation); } } } // update all provider views inside overlay updateOverlayProviderViews(); } } private boolean hasRoundedCorners() { return mRoundedCornerFactory.getHasProviders(); Loading
packages/SystemUI/tests/src/com/android/systemui/ScreenDecorationsTest.java +4 −0 Original line number Diff line number Diff line Loading @@ -63,6 +63,7 @@ import android.util.RotationUtils; import android.util.Size; import android.view.Display; import android.view.DisplayCutout; import android.view.Surface; import android.view.View; import android.view.ViewGroup; import android.view.WindowManager; Loading Loading @@ -974,6 +975,7 @@ public class ScreenDecorationsTest extends SysuiTestCase { getTestsDrawable(com.android.systemui.tests.R.drawable.rounded4px) /* roundedBottomDrawable */, 0 /* roundedPadding */, false /* fillCutout */, true /* privacyDot */); doReturn(Surface.ROTATION_0).when(mDisplay).getRotation(); mScreenDecorations.start(); Loading @@ -987,6 +989,8 @@ public class ScreenDecorationsTest extends SysuiTestCase { getTestsDrawable(com.android.systemui.tests.R.drawable.rounded5px) /* roundedBottomDrawable */, 0 /* roundedPadding */, false /* fillCutout */, true /* privacyDot */); doReturn(Surface.ROTATION_270).when(mDisplay).getRotation(); mScreenDecorations.onConfigurationChanged(null); assertEquals(new Size(4, 4), resDelegate.getTopRoundedSize()); Loading